Autoload uEnv.txt when agl-sota is enabled
[AGL/meta-agl.git] / meta-agl-bsp / meta-renesas / recipes-bsp / u-boot / u-boot / 0001-Autoload-uEnv.txt-on-boot.patch
1 From bd56666d27f765113749c2e55eda97b67a659b2b Mon Sep 17 00:00:00 2001
2 From: Anton Gerasimov <anton@advancedtelematic.com>
3 Date: Wed, 2 Nov 2016 15:17:16 +0100
4 Subject: [PATCH] Autoload uEnv.txt on boot
5
6 ---
7  include/configs/porter.h | 4 ++++
8  1 file changed, 4 insertions(+)
9
10 diff --git a/include/configs/porter.h b/include/configs/porter.h
11 index 45e6556..19dab74 100644
12 --- a/include/configs/porter.h
13 +++ b/include/configs/porter.h
14 @@ -151,6 +151,10 @@
15  #define CONFIG_EXTRA_ENV_SETTINGS \
16         "bootm_low=0x40e00000\0" \
17         "bootm_size=0x100000\0" \
18 +       "bootcmd=if fatload mmc 1:1 0x50000000 uEnv.txt; then env import -t 0x50000000 ${filesize}; run bootcmd; fi;\0"
19 +
20 +/* Shell scripting features */
21 +#define CONFIG_SYS_HUSH_PARSER
22  
23  /* SH Ether */
24  #define CONFIG_NET_MULTI
25 -- 
26 2.7.4
27