Open main menu

DAVE Developer's Wiki β

Changes

Building Linux kernel (BELK/BXELK)

382 bytes added, 13:59, 16 April 2021
Instructions
:The former command selects the default BORA configuration, while the latter builds the kernel binary image with the required u-boot header and the kernel device tree. Please note that the <code>mkimage</code> tool is required for building the <code>uImage</code> binary. This tool must be installed on the Linux development server (please refer to the package manager of the Linux distribution).
 
=== kernel modules ===
It is possible to build the kernel modules too, together with the kernel image:
 
make UIMAGE_LOADADDR=0x8000 uImage '''modules''' bora.dtb
 
then, the built modules have to be prepared for being installed in the rfs:
 
make INSTALL_MOD_PATH=''<directory_for_modules>'' modules_install
 
and properly copy them in the target root file system
 
=== tftpboot ===
Default linux kernel configuration can be changed by using the standard <code>menuconfig</code>, <code>xconfig</code>, or <code>gconfig</code> make target. Subsequent builds just require <code>uImage</code> make target to update the binary image. Once the build process is complete, the kernel binary image is stored into the <code>arch/arm/boot/uImage</code> file. Both this file and the kernel device tree can be copied to the tftp root directory (eg. <code>/tftpboot/bora/</code>) with the following commands:
8,221
edits