Skip to contentSkip to conversation

ARM: dockstar: move start of environment area

PATCH New Eric Cooper 2 participants 2 messages Oct 12, 2015 – Oct 19, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dockstar: move start of environment area

The default dockstar configuration for U-Boot currently causes it to overrun the environment area, so that a "saveenv" command bricks the device. This patch moves the environment to a higher address to avoid that.

---
 include/configs/dockstar.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/configs/dockstar.h +2 -2
index b27b202..d0d9d53 100644
@@ -60,8 +60,8 @@
  * it has to be rounded to sector size
  */
 #define CONFIG_ENV_SIZE			0x20000	/* 128k */
-#define CONFIG_ENV_ADDR			0x60000
-#define CONFIG_ENV_OFFSET		0x60000	/* env starts here */
+#define CONFIG_ENV_ADDR			0x80000
+#define CONFIG_ENV_OFFSET		0x80000	/* env starts here */
 
 /*
  * Default environment variables

--
2.6.1

#1 lore raw

PATCH 1/1 ARM: dockstar: move start of environment area

Hello Eric,

Quoted 26 lines · Eric Cooper

The default dockstar configuration for U-Boot currently causes it to overrun the environment area, so that a "saveenv" command bricks the device. This patch moves the environment to a higher address to avoid that.

---
 include/configs/dockstar.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/configs/dockstar.h +2 -3
index b27b202..d0d9d53 100644
@@ -60,8 +60,8 @@
  * it has to be rounded to sector size
  */
 #define CONFIG_ENV_SIZE			0x20000	/* 128k */
-#define CONFIG_ENV_ADDR			0x60000
-#define CONFIG_ENV_OFFSET		0x60000	/* env starts here */
+#define CONFIG_ENV_ADDR			0x80000
+#define CONFIG_ENV_OFFSET		0x80000	/* env starts here */
 
 /*
  * Default environment variables
--
Quoted 1 line

2.6.1

Applied to u-boot-arm/master, thanks!

Amicalement,

Signature · 1 line
Albert.