Skip to contentSkip to conversation

mx7dsabresd: Increase CONFIG_ENV_OFFSET

PATCH New Fabio Estevam 2 participants 2 messages May 28, 2017 – May 31, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mx7dsabresd: Increase CONFIG_ENV_OFFSET

From: Fabio Estevam <[email protected]>

After running 'saveenv' we can no longer boot.

Adjust CONFIG_ENV_OFFSET so that U-Boot binary and the environment section do not overlap.

---
 include/configs/mx7dsabresd.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/mx7dsabresd.h +1 -1
index 39291a2..fe9fd66 100644
@@ -207,7 +207,7 @@
 #define CONFIG_APBH_DMA_BURST8
 #endif
 
-#define CONFIG_ENV_OFFSET		(8 * SZ_64K)
+#define CONFIG_ENV_OFFSET		(12 * SZ_64K)
 #ifdef CONFIG_NAND_MXS
 #define CONFIG_SYS_FSL_USDHC_NUM	1
 #else
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 mx7dsabresd: Increase CONFIG_ENV_OFFSET

Quoted 18 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

After running 'saveenv' we can no longer boot.

Adjust CONFIG_ENV_OFFSET so that U-Boot binary and the environment section do not overlap.

---
 include/configs/mx7dsabresd.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/mx7dsabresd.h +0 -0
index 39291a2..fe9fd66 100644

include/configs/mx7dsabresd.h line 213

Quoted 8 lines
include/configs/mx7dsabresd.h +1 -1
@@ -207,7 +207,7 @@
 #define CONFIG_APBH_DMA_BURST8
 #endif
 
-#define CONFIG_ENV_OFFSET		(8 * SZ_64K)
+#define CONFIG_ENV_OFFSET		(12 * SZ_64K)
 #ifdef CONFIG_NAND_MXS
 #define CONFIG_SYS_FSL_USDHC_NUM	1
 #else

Applied to u-boot-imx -master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================