On 2021-01-10, harr...@gmx.ph wrote: > For 32-bit Allwinner boards, the u-boot-sunxi package provides the image > u-boot-sunxi-with-spl.bin (as well as the standard uboot.elf), but for > 64-bit boards it provides instead several components such as sunxi-spl.bin, > u-boot.bin and u-boot-nodtb.bin. This is because originally ARM Trusted > Firmware wasn't available in Debian (according to commit 59a1bb4f) and so > a full bootable image had to be made later on the target system using the > u-boot-install-sunxi64 script. ... > arm64 sunxi orangepi_one_plus > /usr/lib/arm-trusted-firmware/sun50i_h6/bl31.bin u-boot.bin spl/sunxi-spl.bin > u-boot-nodtb.bin arch/arm/dts/sun50i-h6-orangepi-one-plus.dtb > u-boot-sunxi-with-spl.fit.itb > > to: > > arm64 sunxi orangepi_one_plus > /usr/lib/arm-trusted-firmware/sun50i_h6/bl31.bin u-boot-sunxi-with-spl.bin > > and similarly so could all the other arm64 sunxi entries.
This is fairly new in u-boot, but yes, it's probably possible in most cases with recent u-boot versions. > That would mean we could further simplify the u-boot-install-sunxi script. This part is already done in the 2021.01~rc version experimental. > Below is a suggested patch to the latest version (commit 81c17086) which > includes some other suggested small improvements such as eliminating > temporary files. Please compare against the u-boot-install-sunxi script in the 2021.01~rc+ versions in experimental. > Out of interest, what's the reason for including uboot.elf? It was > originally added for all boards in commit d22b2e11, removed in c769484b > then reinstated in 128e7344, but I'm not sure where it gets used. I tried removing it at some point, but some platforms require it (e.g. p2371-2180 in u-boot-tegra). Thanks! live well, vagrant
signature.asc
Description: PGP signature