Skip to content
Snippets Groups Projects
Commit 14b256e5 authored by Marek Vasut's avatar Marek Vasut Committed by Stefano Babic
Browse files

arm: m53evk: 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: default avatarMarek Vasut <marex@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
parent 4ba9b1c2
No related branches found
No related tags found
No related merge requests found
...@@ -348,10 +348,12 @@ ...@@ -348,10 +348,12 @@
"bootm ${kernel_addr_r}\0" \ "bootm ${kernel_addr_r}\0" \
"try_bootscript=" \ "try_bootscript=" \
"mmc rescan;" \ "mmc rescan;" \
"if test -e mmc 0:1 ${bootscript} ; then " \
"if ext4load mmc 0:1 ${kernel_addr_r} ${bootscript};" \ "if ext4load mmc 0:1 ${kernel_addr_r} ${bootscript};" \
"then;" \ "then;" \
"\techo Running bootscript...;" \ "\techo Running bootscript...;" \
"\tsource ${kernel_addr_r};" \ "\tsource ${kernel_addr_r};" \
"fi ; " \
"fi\0" "fi\0"
#endif /* __M53EVK_CONFIG_H__ */ #endif /* __M53EVK_CONFIG_H__ */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment