This documentation will introduce how to build U-Boot from source code.
You need to choose the
VIM3, U-Boot version, Linux version, system version, etc.
$ source setenv.sh
At current stage, two version of U-Boot supported:
- SoC vendor U-Boot version
2015.01, version is old but has best support
- Mainline U-Boot version, latest version but some functions may not work
You need to choose the correct version due to your requirement.
Just a simple command to build.
$ make uboot
You can find the binaries in folder
build/u-boot/fip/_tmp, what we need are
u-boot.bin.sd.bin- Used to burn to SD card
u-boot.bin- Used to burn to eMMC
You can also choose to U-Boot as Debian package which can be installed in Ubuntu system.
$ make uboot-deb
You can find the Debian packages in folder
VERSION : Means to Fenix version, e.g.
BOARD : Means to Khadas board, e.g.
So the folder may be
build/images/debs/1.0.7/VIM3, and the U-Boot Debian packages will be
- SoC vendor U-Boot Debian package :
- Mainline U-Boot Debian package :