Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
David Boddie
developer.puri.sm
Commits
429d6b47
Commit
429d6b47
authored
Sep 23, 2019
by
David Boddie
💬
Browse files
Update kernel rebuilding information to 5.2
parent
e7fcc41d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Development_Environment/Boards/HowTo/Rebuilding_the_Kernel.rst
View file @
429d6b47
...
...
@@ -26,9 +26,9 @@ Installing the Toolchain
Install the necessary packages for your system. On Debian-based systems, you
can do this with the ``apt`` tool::
sudo apt install crossbuild-essential-arm64 build-essential gcc-aarch64-linux-gnu bison
sudo apt install crossbuild-essential-arm64 build-essential gcc-aarch64-linux-gnu bison
flex libssl-dev bc kmod
On Fedora, use the ``dnf`` tool::
On Fedora, use the ``dnf`` tool
to install the extra packages. For example
::
sudo dnf install gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu
...
...
@@ -39,8 +39,8 @@ Building the Kernel
Clone the `linux-emcraft repository`_ and enter the working directory::
git clone https://source.puri.sm/Librem5/linux-
emcraft.git
cd linux-
emcraft
git clone
-b imx8-5.2-devkit
https://source.puri.sm/Librem5/linux-
next.git linux-next-5.2
cd linux-
next-5.2
For simplicity, we create a directory to hold the modules that will be built::
...
...
@@ -51,12 +51,12 @@ Compile the kernel, optionally using ``ccache`` if installed::
# With ccache:
CROSS_COMPILE='ccache aarch64-linux-gnu-' \
INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=_modules \
make ARCH=arm64 librem5-evk_defconfig all modules_install
make ARCH=arm64 librem5-
d
evk
it
_defconfig all modules_install
# Without ccache:
CROSS_COMPILE=aarch64-linux-gnu- \
INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=_modules \
make ARCH=arm64 librem5-evk_defconfig all modules_install
make ARCH=arm64 librem5-
d
evk
it
_defconfig all modules_install
You can also pass the ``-j`` command line option to ``make`` if you want to
compile many files in parallel, specifying the number of parallel builds as an
...
...
@@ -75,7 +75,7 @@ From the workstation, copy the kernel and device tree binary to the board,
replacing ``pureos`` with the IP address of the development board::
scp arch/arm64/boot/Image root@pureos:/boot/boot2/
scp arch/arm64/boot/dts/freescale/librem5-evk.dtb root@pureos:/boot/boot2/dtbs/
scp arch/arm64/boot/dts/freescale/
imx8mq-
librem5-
d
evk
it
.dtb root@pureos:/boot/boot2/dtbs/
Remove the ``source`` and ``build`` symlinks from the modules directory and
copy the directory for the corresponding kernel version to the correct location
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment