All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/4] arm: m28evk: Test if bootscript exists before loading it
@ 2014-09-23 11:18 Marek Vasut
  2014-09-23 11:18 ` [U-Boot] [PATCH 2/4] arm: m53evk: " Marek Vasut
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Marek Vasut @ 2014-09-23 11:18 UTC (permalink / raw)
  To: u-boot

Make sure the boot.scr exists on the card before loading it
from the card to avoid annoying message on the console.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
---
 include/configs/m28evk.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/configs/m28evk.h b/include/configs/m28evk.h
index fccd29d..2d9ad5f 100644
--- a/include/configs/m28evk.h
+++ b/include/configs/m28evk.h
@@ -279,10 +279,12 @@
 		"bootm ${kernel_addr_r}\0"				\
 	"try_bootscript="						\
 		"mmc rescan;"						\
+		"if test -e mmc 0:2 ${bootscript} ; then "		\
 		"if ext4load mmc 0:2 ${kernel_addr_r} ${bootscript};"	\
 		"then;"							\
 			"\techo Running bootscript...;"			\
 			"\tsource ${kernel_addr_r};"			\
+		"fi ; "							\
 		"fi\0"
 
 /* The rest of the configuration is shared */
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-09-29  9:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-23 11:18 [U-Boot] [PATCH 1/4] arm: m28evk: Test if bootscript exists before loading it Marek Vasut
2014-09-23 11:18 ` [U-Boot] [PATCH 2/4] arm: m53evk: " Marek Vasut
2014-09-29  9:37   ` Stefano Babic
2014-09-23 11:18 ` [U-Boot] [PATCH 3/4] arm: m28evk: Enable FS_GENERIC Marek Vasut
2014-09-29  9:37   ` Stefano Babic
2014-09-23 11:18 ` [U-Boot] [PATCH 4/4] arm: m53evk: " Marek Vasut
2014-09-29  9:38   ` Stefano Babic
2014-09-29  9:36 ` [U-Boot] [PATCH 1/4] arm: m28evk: Test if bootscript exists before loading it Stefano Babic

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.