Commit 4ba9b1c2e3805c1399b2c432b5c0b2f1d985b88a
Committed by
Stefano Babic
1 parent
5546ad0734
Exists in
v2017.01-smarct4x
and in
37 other branches
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>
Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff
include/configs/m28evk.h
... | ... | @@ -279,10 +279,12 @@ |
279 | 279 | "bootm ${kernel_addr_r}\0" \ |
280 | 280 | "try_bootscript=" \ |
281 | 281 | "mmc rescan;" \ |
282 | + "if test -e mmc 0:2 ${bootscript} ; then " \ | |
282 | 283 | "if ext4load mmc 0:2 ${kernel_addr_r} ${bootscript};" \ |
283 | 284 | "then;" \ |
284 | 285 | "\techo Running bootscript...;" \ |
285 | 286 | "\tsource ${kernel_addr_r};" \ |
287 | + "fi ; " \ | |
286 | 288 | "fi\0" |
287 | 289 | |
288 | 290 | /* The rest of the configuration is shared */ |