summaryrefslogtreecommitdiffstats
path: root/include/configs/m28evk.h
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2014-09-23 13:18:18 +0200
committerStefano Babic <sbabic@denx.de>2014-09-29 11:35:54 +0200
commit4ba9b1c2e3805c1399b2c432b5c0b2f1d985b88a (patch)
tree64a4d4c83d8dd96de89259a486241540b7d8d436 /include/configs/m28evk.h
parent5546ad0734bb5eed2b3cd6333dbcec51ae45185a (diff)
downloadtalos-obmc-uboot-4ba9b1c2e3805c1399b2c432b5c0b2f1d985b88a.tar.gz
talos-obmc-uboot-4ba9b1c2e3805c1399b2c432b5c0b2f1d985b88a.zip
arm: m28evk: Test if bootscript exists before loading it
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>
Diffstat (limited to 'include/configs/m28evk.h')
-rw-r--r--include/configs/m28evk.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/configs/m28evk.h b/include/configs/m28evk.h
index fccd29dc26..2d9ad5f23c 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 */
OpenPOWER on IntegriCloud