build/patch/u-boot/legacy/u-boot-imx6/board_udoo/udoo-adjust-env.patch

16 lines
628 B
Diff

diff --git a/include/configs/udoo.h b/include/configs/udoo.h
old mode 100644
new mode 100644
index bcce41d..2296f89
--- a/include/configs/udoo.h
+++ b/include/configs/udoo.h
@@ -81,7 +81,7 @@
"mmcargs=setenv bootargs console=${console},${baudrate} " \
"root=${mmcroot}\0" \
"loadbootscript=" \
- "load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
+ "load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script}; || load mmc ${mmcdev}:${mmcpart} ${loadaddr} /boot/${script};\0" \
"bootscript=echo Running bootscript from mmc ...; " \
"source\0" \
"loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \