Commit 429d6b47 authored by David Boddie's avatar David Boddie

Update kernel rebuilding information to 5.2

parent e7fcc41d
......@@ -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-devkit_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-devkit_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-devkit.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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment