Skip to content

New bootflow based on U-Boot SPL

Julien Masson requested to merge jmasson/uboot-spl into main

Update all scripts to new bootflow based on U-Boot SPL

The bootflow has been redesigned as follow:

DDR Loader > U-Boot SPL > BL31 (ATF) > OP-TEE > U-Boot
|_____________________|   |__________________________|
     mmcboot.bin                bootloaders.img

In recovery mode lk has been replaced by:

DDR Loader > U-Boot SPL -> fastboot
|_____________________|
  Download Agent (DA)

We don't build anymore the BL2 (ATF) and we don't generate fip binary.

The out directory will now contains these files:

  • bootloaders-${mode}.img: flashed in bootloaders partition
  • da-${mode}.bin: used when we are in recovery mode (replace lk.bin)
  • mmcboot-${mode}.bin: flashed in BOOT0 eMMC part
  • u-boot-initial-${mode}-env: after converted in binary format, flashed in BOOT1 eMMC part

bootloaders image is a fit image, all the components in this image are described in the bootloaders*.its file. In factory mode all the components are signed.

Both mmcboot.bin and da.bin are a concatenation of the DDR loader and U-Boot SPL. The main difference is that the U-Boot SPL inside da.bin has been compiled with usb/fastboot support and fit verification in factory mode.

Edited by Julien Masson

Merge request reports

Loading