1Build Mainline u-boot - bl33:
2=============================
3
4Main Wiki Page : https://gitlab.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.com/baylibre/amlogic/atv/u-boot.git
11
12actual tag : u-boot/v2019.10/sei610-20190905-fix
13dev branch :  u-boot/v2019.10/sei610 (NOT COMPATIBLE with Actual AOSP, this branch have changes for A/B support + android10 bootflow)
14
15link to U-Boot aosp release wiki page :
16https://gitlab.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.com/baylibre/amlogic/atv/u-boot.git
23        cd u-boot
24        git checkout u-boot/v2019.10/sei610-20190905-fix
25        make [sei510|sei610]_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-sm1-kvim3l-khadas-vims-v2015.01-20191204-095738.tar.gz
41
42Then launch script:
43
44        ./generate-bins-new.sh <fip-collect-directory> <target-bl33-binary>
45
46flash result with:
47        fastboot flash bootloader uboot-bins/u-boot.bin
48        fastboot erase bootenv
49        fastboot reboot bootloader
50
51after reboot if partitions table need to be updated:
52        fastboot oem format
53
54More informations to update and flash bootloader on Yukawa:
55https://gitlab.com/baylibre/amlogic/atv/u-boot/wikis/U-Boot-for-Yukawa
56