aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2022-06-29 16:35:23 +0930
committerTom Rini <trini@konsulko.com>2022-07-06 14:32:00 -0400
commit154cffa16a7b6647e180ed6cef55342b39580aff (patch)
tree3b17fcd8a022b6fc81a7c370de43caa628cb22df
parenta16175350c3f1706c9bbfd8458c60ea6429034fc (diff)
downloadu-boot-154cffa16a7b6647e180ed6cef55342b39580aff.zip
u-boot-154cffa16a7b6647e180ed6cef55342b39580aff.tar.gz
u-boot-154cffa16a7b6647e180ed6cef55342b39580aff.tar.bz2
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>
-rw-r--r--configs/evb-ast2600_defconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/configs/evb-ast2600_defconfig b/configs/evb-ast2600_defconfig
index 588d78e..970d356 100644
--- a/configs/evb-ast2600_defconfig
+++ b/configs/evb-ast2600_defconfig
@@ -21,6 +21,8 @@ CONFIG_SPL_SIZE_LIMIT=0x10000
CONFIG_SPL=y
# CONFIG_ARMV7_NONSEC is not set
CONFIG_SYS_LOAD_ADDR=0x83000000
+CONFIG_SPL_PAYLOAD="u-boot.img"
+CONFIG_BUILD_TARGET="u-boot-with-spl.bin"
# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
CONFIG_FIT=y
CONFIG_SPL_FIT_SIGNATURE=y