summaryrefslogtreecommitdiff
path: root/configs/sandbox_spl_defconfig
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-03-07 17:35:15 -0700
committerTom Rini <trini@konsulko.com>2021-03-12 09:57:31 -0500
commit2e059e4a6ea075431942c51a48c682119b76bed2 (patch)
tree0482d4cfcb4d73deb05ca727bdb8d09618ada613 /configs/sandbox_spl_defconfig
parent891d9e84a72be6c9a7e11a1f559ab96d786d1c2d (diff)
spl: test: Add a test for spl_load_simple_fit()
As an example of an SPL test, add a new test for loading a FIT within SPL. This runs on sandbox_spl. For this to work, the text base is adjusted so that there is plenty of space available. While we are here, document struct spl_load_info properly, since this is currently ambiguous. This test only verifies the logic path. It does not actually check that the image is loaded correctly. It is not possible for sandbox's SPL to actually run u-boot.img since it currently includes u-boot.bin rather than u-boot. Further work could expand the test in that direction. The need for this was noted at: http://patchwork.ozlabs.org/project/uboot/patch/20201216000944.2832585-3-mr.nuke.me@gmail.com/ Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'configs/sandbox_spl_defconfig')
-rw-r--r--configs/sandbox_spl_defconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/configs/sandbox_spl_defconfig b/configs/sandbox_spl_defconfig
index c0118702a8..2696d0b6cd 100644
--- a/configs/sandbox_spl_defconfig
+++ b/configs/sandbox_spl_defconfig
@@ -1,4 +1,4 @@
-CONFIG_SYS_TEXT_BASE=0
+CONFIG_SYS_TEXT_BASE=0x200000
CONFIG_SPL_LIBCOMMON_SUPPORT=y
CONFIG_SPL_LIBGENERIC_SUPPORT=y
CONFIG_NR_DRAM_BANKS=1