Skip to contentSkip to conversation

ARM: omap4_panda: enable saveenv command

PATCH In review Maxin B. John 3 participants 3 messages Mar 18, 2015 – Mar 28, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: omap4_panda: enable saveenv command

Enable saveenv command and the configs to store environment persistently in the SD card.

Tested on OMAP4 Panda (OMAP4460 ES1.1)

---
 include/configs/omap4_panda.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
include/configs/omap4_panda.h +6 -1
index 7378acd..e97c5e3 100644
@@ -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 */
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 ARM: omap4_panda: enable saveenv command

Quoted 4 lines · Maxin B. John

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.

Thanks and regards,
Lokesh

Quoted 26 lines
---
 include/configs/omap4_panda.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
include/configs/omap4_panda.h +6 -1
index 7378acd..e97c5e3 100644
@@ -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 */
#2 lore raw
In reply to Maxin B. John
Quoted 7 lines · maxin.john at enea.com

Enable saveenv command and the configs to store environment persistently in the SD card.

Tested on OMAP4 Panda (OMAP4460 ES1.1)

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150328/a649474f/attachment.sig>