aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorSimon Glass2023-10-01 19:15:24 -0600
committerTom Rini2023-12-13 18:39:05 -0500
commit6b8f26bca4854ea6826d8d9f3b1f644e349c9b7e (patch)
treee12007c15e28e29590781963a088b2521767403a /cmd
parentcde03fa23e2fa47707ef81b9a91b1f4b631adbb7 (diff)
sandbox: Add a dummy booti command
Add basic sandbox support for 'booti' so we can start to boot the test ARMbian image. This is helpful in checking that it is parsed correctly. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/Kconfig2
-rw-r--r--cmd/booti.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig
index bebe816b075..748b959961d 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -285,7 +285,7 @@ config CMD_BOOTZ
config CMD_BOOTI
bool "booti"
- depends on ARM64 || RISCV
+ depends on ARM64 || RISCV || SANDBOX
default y
help
Boot an AArch64 Linux Kernel image from memory.
diff --git a/cmd/booti.c b/cmd/booti.c
index 2db8f4a16ff..41d40c962ec 100644
--- a/cmd/booti.c
+++ b/cmd/booti.c
@@ -75,7 +75,7 @@ static int booti_start(struct cmd_tbl *cmdtp, int flag, int argc,
unmap_sysmem((void *)ld);
ret = booti_setup(ld, &relocated_addr, &image_size, false);
- if (ret != 0)
+ if (ret || IS_ENABLED(CONFIG_SANDBOX))
return 1;
/* Handle BOOTM_STATE_LOADOS */