diff mbox

[U-Boot] ARM: omap4_panda: enable saveenv command

Message ID 1426672307-5452-1-git-send-email-maxin.john@enea.com
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

maxin.john@enea.com March 18, 2015, 9:51 a.m. UTC
Enable saveenv command and the configs to store environment
persistently in the SD card.

Tested on OMAP4 Panda (OMAP4460 ES1.1)

Signed-off-by: Maxin B. John <maxin.john@enea.com>
---
 include/configs/omap4_panda.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Comments

Lokesh Vutla March 23, 2015, 4:24 a.m. UTC | #1
On Wednesday 18 March 2015 03:21 PM, Maxin B. John wrote:
> Enable saveenv command and the configs to store environment
> persistently in the SD card.
> 
> Tested on OMAP4 Panda (OMAP4460 ES1.1)
Looks good to me.
Acked-by: Lokesh Vutla <lokeshvutla@ti.com>

Thanks and regards,
Lokesh
> 
> Signed-off-by: Maxin B. John <maxin.john@enea.com>
> ---
>  include/configs/omap4_panda.h | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/include/configs/omap4_panda.h b/include/configs/omap4_panda.h
> index 7378acd..e97c5e3 100644
> --- a/include/configs/omap4_panda.h
> +++ b/include/configs/omap4_panda.h
> @@ -43,8 +43,13 @@
>  #define CONFIG_CMD_GPIO
>  
>  /* ENV related config options */
> -#define CONFIG_ENV_IS_NOWHERE
>  
>  #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
> +#define CONFIG_ENV_IS_IN_FAT
> +#define FAT_ENV_INTERFACE               "mmc"
> +#define FAT_ENV_DEVICE_AND_PART         "0:1"
> +#define FAT_ENV_FILE                    "uboot.env"
> +#define CONFIG_CMD_SAVEENV
> +#define CONFIG_ENV_OVERWRITE
>  
>  #endif /* __CONFIG_PANDA_H */
>
Tom Rini March 28, 2015, 6:09 p.m. UTC | #2
On Wed, Mar 18, 2015 at 10:51:47AM +0100, maxin.john@enea.com wrote:

> Enable saveenv command and the configs to store environment
> persistently in the SD card.
> 
> Tested on OMAP4 Panda (OMAP4460 ES1.1)
> 
> Signed-off-by: Maxin B. John <maxin.john@enea.com>
> Acked-by: Lokesh Vutla <lokeshvutla@ti.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/include/configs/omap4_panda.h b/include/configs/omap4_panda.h
index 7378acd..e97c5e3 100644
--- a/include/configs/omap4_panda.h
+++ b/include/configs/omap4_panda.h
@@ -43,8 +43,13 @@ 
 #define CONFIG_CMD_GPIO
 
 /* ENV related config options */
-#define CONFIG_ENV_IS_NOWHERE
 
 #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
+#define CONFIG_ENV_IS_IN_FAT
+#define FAT_ENV_INTERFACE               "mmc"
+#define FAT_ENV_DEVICE_AND_PART         "0:1"
+#define FAT_ENV_FILE                    "uboot.env"
+#define CONFIG_CMD_SAVEENV
+#define CONFIG_ENV_OVERWRITE
 
 #endif /* __CONFIG_PANDA_H */