June 2017
Intermediate to advanced
478 pages
13h 14m
English
Barebox has used Kconfig/Kbuild for a long time. There are default configuration files in arch/[architecture]/configs. As an example, assume that you want to build barebox for the BeagleBoard C4. You need two configurations, one for the SPL, and one for the main binary. Firstly, build MLO:
$ make ARCH=arm CROSS_COMPILE=arm-cortex_a8-linux-gnueabihf- \am335x_mlo_defconfig$ make ARCH=arm CROSS_COMPILE=arm-cortex_a8-linux-gnueabihf-
The result is the secondary program loader, images/barebox-am33xx-beaglebone-mlo.img.
Next, build barebox:
$ make ARCH=arm CROSS_COMPILE=arm-cortex_a8-linux-gnueabihf- \am335x_defconfig$ make ARCH=arm CROSS_COMPILE=arm-cortex_a8-linux-gnueabihf-
Copy MLO and the barebox binary to an SD card: ...
Read now
Unlock full access