]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/sh/lib/bootm.c
avr32/m68k/microblaze/nds32/nios2/openrisc/sh/sparc: fix do_bootm_linux
[karo-tx-uboot.git] / arch / sh / lib / bootm.c
index 57273fa4437da6a34096b3e2823cc4a2e1301506..4fdc7aab74577e3dadd68473b4cbf2e0bb1b26e6 100644 (file)
@@ -79,6 +79,12 @@ int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *ima
        unsigned long size = images->ep - (unsigned long)param;
        char *bootargs = getenv("bootargs");
 
+       /*
+        * allow the PREP bootm subcommand, it is required for bootm to work
+        */
+       if (flag & BOOTM_STATE_OS_PREP)
+               return 0;
+
        if ((flag != 0) && (flag != BOOTM_STATE_OS_GO))
                return 1;