ast2600: Configure u-boot-with-spl.bin target
authorJoel Stanley <joel@jms.id.au>
Wed, 29 Jun 2022 07:05:23 +0000 (16:35 +0930)
committerTom Rini <trini@konsulko.com>
Wed, 6 Jul 2022 18:32:00 +0000 (14:32 -0400)
commit154cffa16a7b6647e180ed6cef55342b39580aff
tree3b17fcd8a022b6fc81a7c370de43caa628cb22df
parenta16175350c3f1706c9bbfd8458c60ea6429034fc
ast2600: Configure u-boot-with-spl.bin target

The normal way of loading u-boot is as a FIT, so configure u-boot.img as
the SPL playload.

The u-boot-with-spl.bin target will add padding according to
CONFIG_SPL_MAX_SIZE which defaults to 64KB on the AST2600.

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

Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>
configs/evb-ast2600_defconfig