From: Stefan Herbrechtsmeier Date: Tue, 16 Sep 2014 15:51:06 +0000 (+0200) Subject: omap3: overo: Call bootm only after successful nand read X-Git-Tag: v2015.01-rc1~125^2~11 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f2565a551c001f0441dbe51dc31438961fce7b53;p=u-boot omap3: overo: Call bootm only after successful nand read Signed-off-by: Stefan Herbrechtsmeier --- diff --git a/include/configs/omap3_overo.h b/include/configs/omap3_overo.h index b17e495f5f..d042eea1b0 100644 --- a/include/configs/omap3_overo.h +++ b/include/configs/omap3_overo.h @@ -131,8 +131,9 @@ "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 " \