1Build Mainline u-boot - bl33: 2============================= 3 4Main Wiki Page : https://gitlab.baylibre.com/baylibre/amlogic/atv/u-boot/wikis/home 5 6Download the toolchain : gcc-linaro-7.2.1-2017.11-x86_64_aarch64-elf 7 http://releases.linaro.org/components/toolchain/binaries/7.2-2017.11/aarch64-elf/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-elf.tar.xz 8 9Download U-Boot Source Code From : 10 https://gitlab.baylibre.com/baylibre/amlogic/atv/u-boot.git 11 12actual tag : u-boot/v2021.07/integ-20210712 13dev branch : u-boot/v2021.07/integ 14 15link to U-Boot aosp release wiki page : 16https://gitlab.baylibre.com/baylibre/amlogic/atv/u-boot/wikis/U-Boot-for-Yukawa-Release 17 18Compile: 19 20 export PATH=<path-to-toolchain>/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-elf/bin:$PATH 21 export CROSS_COMPILE=aarch64-elf- 22 git clone https://gitlab.baylibre.com/baylibre/amlogic/atv/u-boot.git 23 cd u-boot 24 git checkout u-boot/v2021.07/integ-20210712 25 make [sei510|sei610|sei610_ab|khadas-vim3_android|khadas-vim3_android_ab|khadas-vim3l_android|khadas-vim3l_android_ab]_defconfig 26 make 27 28Generate fip binary 29=================== 30 31use tarball in fip_packages folder and untar it 32 33- For sei510 (yukawa_sei510): 34 tar -xaf fip-collect-g12a-g12a_u200_v1-amlogic-dev_9.2.1811_21-20191203-113239.tar.gz 35 36- For sei610 (yukawa): 37 tar -xaf fip-collect-g12a-sm1_ac214_v1-amlogic-dev_9.2.1811_21-20191204-161855.tar.gz 38 39- For VIM3L (yukawa): 40 tar -xaf fip-collect-g12a-kvim3l-khadas-vims-pie-20210111-211224.tar.gz 41 42- For VIM3 (yukawa): 43 tar -xaf fip-collect-g12b-kvim3-khadas-vims-pie-20210111-211833.tar.gz 44 45Then launch script for scripts folder: 46 47 ./generate-bins-new.sh <fip-collect-directory> <target-bl33-binary> 48 49flash result with: 50 fastboot flash bootloader uboot-bins/u-boot.bin 51 fastboot erase bootenv 52 fastboot reboot bootloader 53 54after reboot if partitions table need to be updated: 55 fastboot oem format 56 57More informations to update and flash bootloader on Yukawa: 58https://gitlab.baylibre.com/baylibre/amlogic/atv/u-boot/wikis/U-Boot-for-Yukawa 59 60 61Generate new fip_packages for Khadas VIM3/3L 62============================================= 63 64- Launch collect script for script foler : 65 ./collect-khadas_binaries-git-refboard.sh <khadas-uboot-branch> <soc> <refboard> 66 67branch to use for VIM3/3L : khadas-vims-pie 68soc VIM3 : g12b 69 VIM3L: sm1 70 71refboard VIM3 : kvim3 72 VIM3L: kvim3l 73 74- Generate tarball : 75 Example: 76 tar -czf fip-collect-g12b-kvim3-khadas-vims-pie-20210111-211833.tar.gz fip-collect-g12b-kvim3-khadas-vims-pie-20210111-211833 77 78 Adapt folder name with folder generate by collect script. 79 80- to generate fip bin cf "Generate fip binary" 81