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: Marek Vasut <marex@denx.de> Cc: Stefano Babic <sbabic@denx.de>
This commit is contained in:
committed by
Stefano Babic
parent
4ba9b1c2e3
commit
14b256e5c0
@@ -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__ */
|
||||||
|
|||||||
Reference in New Issue
Block a user