Skip to content
Snippets Groups Projects
Commit 9c170e2e authored by Gabor Juhos's avatar Gabor Juhos Committed by Daniel Schwierzeck
Browse files

MIPS: bootm.c: add support for 'prep' and 'go' subcommands


The bootm command supports subcommands since long time
however those subcommands are not yet usable on MIPS.

The patch is based on the ARM implementation, and it adds
support for the 'prep' and 'go' subcommands only.

Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
parent 0ea7213f
No related branches found
No related tags found
No related merge requests found
...@@ -104,8 +104,19 @@ static void boot_jump_linux(bootm_headers_t *images) ...@@ -104,8 +104,19 @@ static void boot_jump_linux(bootm_headers_t *images)
int do_bootm_linux(int flag, int argc, char * const argv[], int do_bootm_linux(int flag, int argc, char * const argv[],
bootm_headers_t *images) bootm_headers_t *images)
{ {
if ((flag != 0) && (flag != BOOTM_STATE_OS_GO)) /* No need for those on MIPS */
return 1; if (flag & BOOTM_STATE_OS_BD_T || flag & BOOTM_STATE_OS_CMDLINE)
return -1;
if (flag & BOOTM_STATE_OS_PREP) {
boot_prep_linux(images);
return 0;
}
if (flag & BOOTM_STATE_OS_GO) {
boot_jump_linux(images);
return 0;
}
boot_prep_linux(images); boot_prep_linux(images);
boot_jump_linux(images); boot_jump_linux(images);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment