u-boot-mvebu: update to 2017.03
[oweals/openwrt.git] / package / boot / uboot-mvebu / patches / 003-boot_script.patch
1 diff --git a/configs/clearfog_defconfig b/configs/clearfog_defconfig
2 index 41e94e6daf..f23e65e345 100644
3 --- a/configs/clearfog_defconfig
4 +++ b/configs/clearfog_defconfig
5 @@ -11,6 +11,7 @@ CONFIG_DEFAULT_DEVICE_TREE="armada-388-clearfog"
6  CONFIG_BOOTDELAY=3
7  CONFIG_SYS_CONSOLE_INFO_QUIET=y
8  # CONFIG_DISPLAY_BOARDINFO is not set
9 +CONFIG_HUSH_PARSER=y
10  CONFIG_SPL=y
11  CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x141
12  CONFIG_SPL_I2C_SUPPORT=y
13 diff --git a/include/configs/clearfog.h b/include/configs/clearfog.h
14 index 0c51d2a288..e52ba8145f 100644
15 --- a/include/configs/clearfog.h
16 +++ b/include/configs/clearfog.h
17 @@ -82,7 +82,18 @@
18  /* Keep device tree and initrd in lower memory so the kernel can access them */
19  #define CONFIG_EXTRA_ENV_SETTINGS      \
20         "fdt_high=0x10000000\0"         \
21 -       "initrd_high=0x10000000\0"
22 +       "initrd_high=0x10000000\0"      \
23 +       "script=boot.scr\0"             \
24 +       "loadaddr=0x01000000\0"         \
25 +       "mmcdev=0\0"                    \
26 +       "mmcpart=1\0"                   \
27 +       "loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
28 +       "bootscript=echo Running bootscript from mmc ...; source ${loadaddr}\0"
29 +
30 +#define CONFIG_BOOTCOMMAND             \
31 +       "if run loadbootscript; then "  \
32 +               "run bootscript; "      \
33 +       "fi"
34  
35  /* SPL */
36  /*