~~tag>VIM4 uboot~~ {{indexmenu_n>1}} ====== VIM4 Build U-Boot ====== You can build Ubuntu OS images easily via the link [[kg>Fenix]].Here are the steps how to build U-Boot. ===== Setup Environment ===== Choose your ''board'' (e.g. ''VIM4''), ''U-Boot version'', ''Linux version'', or ''system version'',the correct version for your requirements. ```shell $ source setenv.sh ``` ===== Build U-Boot ===== Build U-Boot with a single command: ```shell $ make uboot ``` The binaries are located in ''build/u-boot/fip/_tmp''. choose ''u-boot.bin.sd.bin.signed'', ''u-boot.bin.signed'', ''u-boot.bin.spi.bin.signed''. * ''u-boot.bin.sd.bin.signed'' - flashing to the **SD card** * ''u-boot.bin.signed'' - flashing to the **eMMC** ===== Build U-Boot Debian package ===== You can also choose the Debian U-Boot package: ```shell $ make uboot-deb ``` Debian packages are located in ''build/images/debs/{VERSION}/{BOARD}''. **VERSION** : refers to the Fenix version, e.g. ''1.0.11''\\ **BOARD** : refers to the Khadas SBC, e.g. ''VIM4'' The folder location is ''build/images/debs/1.0.11/VIM4'', and the Debian U-Boot package is ''linux-u-boot-xxx-xxx_xxx-xxx_arm64.deb''. * SoC Vendor Debian U-Boot package: ''linux-u-boot-vim4-vendor_1.0.11-2019.01_arm64.deb'' ===== About U-Boot Source Code ===== [[kg>u-boot/tree/khadas-vims-v2019.01|U-Boot for VIM4]], the branch is ''khadas-vims-v2019.01''. ===== See Aslo ===== * [[products:sbc:vim4:configurations:upgrade-linux-uboot]] * [[products:sbc:vim4:development:linux:build-linux-kernel]] * [[products:sbc:vim4:development:linux:build-ubuntu]]