[U-Boot] [PATCH 2/5] omap3: overo: Call bootm only after successful nand read

Stefan Herbrechtsmeier stefan at herbrechtsmeier.net
Tue Sep 16 17:51:06 CEST 2014


Signed-off-by: Stefan Herbrechtsmeier <stefan at herbrechtsmeier.net>
---

 include/configs/omap3_overo.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/configs/omap3_overo.h b/include/configs/omap3_overo.h
index b17e495..d042eea 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 " \
-- 
2.1.0



More information about the U-Boot mailing list