Skip to contentSkip to conversation

imx: mx6: Change ENV offset to 512K bytes for larger u-boot image

PATCH New Ye.Li 2 participants 2 messages Jan 16, 2015 – Jan 22, 2015

lore
Share & tools
lore

Ye.Li

author
#0 lore raw

PATCH 1/1 imx: mx6: Change ENV offset to 512K bytes for larger u-boot image

To align with other mx6 boards, change ENV offset from 384KB to 512KB position to fit a larger u-boot image.

---
 include/configs/mx6slevk.h     |    2 +-
 include/configs/mx6sxsabresd.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
include/configs/mx6slevk.h +1 -1
index e3e7f76..ed50dfb 100644
@@ -187,7 +187,7 @@
 /* FLASH and environment organization */
 #define CONFIG_SYS_NO_FLASH
 
-#define CONFIG_ENV_OFFSET		(6 * SZ_64K)
+#define CONFIG_ENV_OFFSET		(8 * SZ_64K)
 #define CONFIG_ENV_SIZE			SZ_8K
 #define CONFIG_ENV_IS_IN_MMC
 
include/configs/mx6sxsabresd.h +1 -1
index 61a7a7a..c5dc982 100644
@@ -235,7 +235,7 @@
 /* FLASH and environment organization */
 #define CONFIG_SYS_NO_FLASH
 
-#define CONFIG_ENV_OFFSET		(6 * SZ_64K)
+#define CONFIG_ENV_OFFSET		(8 * SZ_64K)
 #define CONFIG_ENV_SIZE			SZ_8K
 #define CONFIG_ENV_IS_IN_MMC
 
Signature · 1 line
1.7.4.1
#1 lore raw

PATCH 1/1 imx: mx6: Change ENV offset to 512K bytes for larger u-boot image

Hi Ye,

Quoted 27 lines · Ye.Li

To align with other mx6 boards, change ENV offset from 384KB to 512KB position to fit a larger u-boot image.

---
 include/configs/mx6slevk.h     |    2 +-
 include/configs/mx6sxsabresd.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
include/configs/mx6slevk.h +1 -1
index e3e7f76..ed50dfb 100644
@@ -187,7 +187,7 @@
 /* FLASH and environment organization */
 #define CONFIG_SYS_NO_FLASH
 
-#define CONFIG_ENV_OFFSET		(6 * SZ_64K)
+#define CONFIG_ENV_OFFSET		(8 * SZ_64K)
 #define CONFIG_ENV_SIZE			SZ_8K
 #define CONFIG_ENV_IS_IN_MMC
 
include/configs/mx6sxsabresd.h +0 -0
index 61a7a7a..c5dc982 100644

include/configs/mx6sxsabresd.h line 241

Quoted 8 lines
include/configs/mx6sxsabresd.h +1 -1
@@ -235,7 +235,7 @@
 /* FLASH and environment organization */
 #define CONFIG_SYS_NO_FLASH
 
-#define CONFIG_ENV_OFFSET		(6 * SZ_64K)
+#define CONFIG_ENV_OFFSET		(8 * SZ_64K)
 #define CONFIG_ENV_SIZE			SZ_8K
 #define CONFIG_ENV_IS_IN_MMC
 

Applied after slightly rebasing due to SPI-NOR support in mx6slevk - 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
=====================================================================