]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
omap3: overo: Call bootm only after successful nand read
authorStefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
Tue, 16 Sep 2014 15:51:06 +0000 (17:51 +0200)
committerTom Rini <trini@ti.com>
Thu, 23 Oct 2014 15:53:01 +0000 (11:53 -0400)
Signed-off-by: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
include/configs/omap3_overo.h

index b17e495f5f7915af44e75c8841932299a810e2a2..d042eea1b04ccd195e7fe9193a063e5822beba3a 100644 (file)
                "bootz ${loadaddr} - ${fdtaddr}\0" \
        "nandboot=echo Booting from nand ...; " \
                "run nandargs; " \
-               "nand read ${loadaddr} linux; " \
-               "bootm ${loadaddr}\0" \
+               "if nand read ${loadaddr} linux; then " \
+                       "bootm ${loadaddr};" \
+               "fi;\0" \
 
 #define CONFIG_BOOTCOMMAND \
        "mmc dev ${mmcdev}; if mmc rescan; then " \