Debian Build U-Boot from source code¶
Toolchain Installation for Out of Debian Builds¶
To install the toolchain, follow the Debian Flexbuild Toolchain installation guide.
Build U-Boot Out of Tree¶
Obtain sources:
Configure compilation environment:
Cleanup everything:
Select configuration:
Build U-Boot:
Install the Built U-Boot on an SD Card¶
sudo dd if=u-boot-with-spl.imx of=/dev/sdX bs=1K seek=1; sync
(Replace /dev/sdX with the correct device)
If you want to use our recovery SD card to flash the built U-Boot to eMMC, then copy it to the appropriate location in the SD card:
And eject the SD card gracefully from host machine.
Note: If you manually upgrade an existing U-Boot, and you have an old environment saved, it is a good idea to reset your environment to the new default.)