Commit c116bd3c authored by David Boddie's avatar David Boddie

Add missing part about creating a new boot directory

parent 4fd42e6f
Pipeline #4135 passed with stage
in 8 minutes and 47 seconds
......@@ -7,6 +7,7 @@ covers the process of installing the kernel and other binaries on the board.
The building step can be performed without any modifications to the board.
.. contents::
:local:
Preparations
------------
......@@ -55,23 +56,29 @@ Compile the kernel, optionally using ``ccache`` if installed::
INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=_modules \
make ARCH=arm64 librem5-evk_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
argument to the option.
Installing the Kernel
---------------------
Connect the development board to a network and find its address.
Connect the development board to a network and find its IP address. Log in as
``root`` and create the ``boot2`` directory inside the existing ``/boot``
directory::
mkdir /boot/boot2
Copy the kernel and device tree binary to the board, replacing ``pureos`` with
the IP address of the development board and ``$KERNEL_VERSION`` with the
version of the kernel that was built::
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/
Remove the ``source`` and ``build`` symlinks from the modules directory and
copy the directory for the corresponding kernel version to the correct location
on the board::
on the board, replacing ``$KERNEL_VERSION`` with the version of the kernel that
was built::
rm _modules/lib/modules/$KERNEL_VERSION/source
rm _modules/lib/modules/$KERNEL_VERSION/build
......
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