Customizing the BSP

Kernel & Devicetree

The following steps describe how our kernel can be modified.

Entering Devshell

  1. Configure Kernel with the current defconfig
bitbake linux-karo -c configure
  1. Enter Devshell
bitbake linux-karo -c devshell

Note

In the devshell you are inside the already patched and configured Kernel source, with a working cross-compile environment.

Building Kernel

Building the Kernel inside the devshell:

make uImage LOADADDR=<kernel-loadaddr>
Module LOADADDR
TXMP/QSMP 0xc0008000
TX6 0x10008000
TXUL 0x80008000

Note

The console output will tell you the build directory it left. Inside it at arch/arm/boot/uImage you’ll find your Kernel.

Devicetree

.dts(i) files are located in arch/arm[64]/boot/dts/.

Hint

For your own hardware add your own *.dts files. Use our approach as a guide.

To compile a specific devicetree run:

make <dts-file-name>.dtb

Note

The console output will tell you the build directory it left. Inside it at arch/arm/boot/dts/ you’ll find your dtb files.