]> git.sur5r.net Git - u-boot/blobdiff - arch/m68k/lib/bootm.c
Merge branch 'master' of git://git.denx.de/u-boot-usb
[u-boot] / arch / m68k / lib / bootm.c
index 56b6512be059e7b976eb1fab3d1684f49fee31f8..cc45167fcd584077d093fb4939dec4e8fae08669 100644 (file)
@@ -75,6 +75,12 @@ int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *ima
        void  (*kernel) (bd_t *, ulong, ulong, ulong, ulong);
        struct lmb *lmb = &images->lmb;
 
+       /*
+        * 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;