mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 23:51:33 +00:00
bootm: use BOOTM_STATE_OS_CMDLINE flag for plain bootm
A plain bootm used to call the architecture specific boot function with no flags, but was modified by commit35fc84fa
"Refactor the bootm command to reduce code duplication" to call the architecture specific boot function multiple times with various flags in sequence. The BOOTM_STATE_OS_CMDLINE flag was not used, indeed it seems that at least ARM prepares the command line on BOOTM_STATE_OS_PREP. However on MIPS since commit59e8cbdb
"MIPS: bootm: refactor initialisation of kernel cmdline" the command line is not prepared in response to a BOOTM_STATE_OS_PREP flag, only on BOOTM_STATE_OS_CMDLINE or a call with no flags. The end result is that a combination of those 2 commits leads to MIPS boards booting kernels with no command line arguments. An extra invocation of the architecture specific boot function with BOOTM_STATE_OS_CMDLINE fixes this. Signed-off-by: Paul Burton <paul.burton@imgtec.com>
This commit is contained in:
parent
46ef4faed1
commit
5c427e49ce
1 changed files with 3 additions and 2 deletions
|
@ -799,8 +799,9 @@ int do_bootm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||||
|
|
||||||
return do_bootm_states(cmdtp, flag, argc, argv, BOOTM_STATE_START |
|
return do_bootm_states(cmdtp, flag, argc, argv, BOOTM_STATE_START |
|
||||||
BOOTM_STATE_FINDOS | BOOTM_STATE_FINDOTHER |
|
BOOTM_STATE_FINDOS | BOOTM_STATE_FINDOTHER |
|
||||||
BOOTM_STATE_LOADOS | BOOTM_STATE_OS_PREP |
|
BOOTM_STATE_LOADOS | BOOTM_STATE_OS_CMDLINE |
|
||||||
BOOTM_STATE_OS_FAKE_GO | BOOTM_STATE_OS_GO, &images, 1);
|
BOOTM_STATE_OS_PREP | BOOTM_STATE_OS_FAKE_GO |
|
||||||
|
BOOTM_STATE_OS_GO, &images, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
int bootm_maybe_autostart(cmd_tbl_t *cmdtp, const char *cmd)
|
int bootm_maybe_autostart(cmd_tbl_t *cmdtp, const char *cmd)
|
||||||
|
|
Loading…
Reference in a new issue