[U-Boot] [PATCH 3/3] bootm: Add the missing PREP stage to bootz
Simon Glass
sjg at chromium.org
Wed Jul 3 16:12:48 CEST 2013
In the recent bootm refactor, the PREP stage was missing in the bootz
command. This causes unpredictable behaviour on platforms which need
this stage to operate correctly (e.g. ARM).
Signed-off-by: Simon Glass <sjg at chromium.org>
---
common/cmd_bootm.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
index 401055d..26ed7d8 100644
--- a/common/cmd_bootm.c
+++ b/common/cmd_bootm.c
@@ -1794,7 +1794,8 @@ int do_bootz(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
bootm_disable_interrupts();
ret = do_bootm_states(cmdtp, flag, argc, argv,
- BOOTM_STATE_OS_FAKE_GO | BOOTM_STATE_OS_GO,
+ BOOTM_STATE_OS_PREP | BOOTM_STATE_OS_FAKE_GO |
+ BOOTM_STATE_OS_GO,
&images, 1);
return ret;
--
1.8.3
More information about the U-Boot
mailing list