
On Mon, Jun 27, 2022 at 05:28:10PM +0930, Joel Stanley wrote:
For the u-boot-with-spl.bin target to be useful for the AST2600, set the maximum SPL size which also sets the padding length.
The normal way of loading u-boot is as a FIT, so configure u-boot.img as the SPL playload.
With this the following simple steps can be used to build and boot a system:
make u-boot-with-spl.bin truncate -s 64M u-boot-with-spl.bin qemu-system-arm -nographic -M ast2600-evb \ -drive file=u-boot-with-spl.bin,if=mtd,format=raw
Signed-off-by: Joel Stanley joel@jms.id.au Reviewed-by: Chia-Wei Wang chiawei_wang@aspeedtech.com Reviewed-by: Cédric Le Goater clg@kaod.org
This doesn't quite apply correct now as CONFIG_SPL_MAX_SIZE is in Kconfig. I migrated that manually but now CI doesn't run: https://source.denx.de/u-boot/u-boot/-/jobs/457298 so I wonder if I migrated it wrong, or something else. To be clear, I have applied https://patchwork.ozlabs.org/project/uboot/patch/20220628042725.217333-1-joe... first.