[U-Boot] [PATCH v3 17/30] sunxi: arm64: Increase u-boot size on MMC environment

Jagan Teki jagannadh.teki at gmail.com
Sun Jan 28 16:19:38 UTC 2018


U-Boot size is crossing MMC environment offset due to adding
new features on arm64 boards. So update the ENV_OFFSET to
0x100000 so the u-boot size limit increased to 0xf6000

MMC layout(updated):
===================
  part: sector:   size
unused:      0:   8KiB
   SPL:     16:  32KiB
U-Boot:     80: 984KiB
  uENV:   2048: 128KiB

Signed-off-by: Jagan Teki <jagan at amarulasolutions.com>
---
 env/Kconfig                    | 3 ++-
 include/configs/sunxi-common.h | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/env/Kconfig b/env/Kconfig
index 692f863..e2b32c2 100644
--- a/env/Kconfig
+++ b/env/Kconfig
@@ -441,7 +441,8 @@ config ENV_OFFSET
 	hex "Environment Offset"
 	depends on !ENV_IS_IN_UBI
 	depends on !ENV_IS_NOWHERE
-	default 0x88000 if ARCH_SUNXI
+	default 0x88000 if ARCH_SUNXI && !ARM64
+	default 0x100000 if ARCH_SUNXI && ARM64
 	help
 	  Offset from the start of the device (or partition)
 
diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h
index 6236e12..687c7a3 100644
--- a/include/configs/sunxi-common.h
+++ b/include/configs/sunxi-common.h
@@ -154,7 +154,7 @@
  * (CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)), but the value will be used
  * directly in a makefile, without the preprocessor expansion.
  */
-#define CONFIG_BOARD_SIZE_LIMIT		0x7e000
+#define CONFIG_BOARD_SIZE_LIMIT		0xf6000
 #endif
 
 #if CONFIG_MMC_SUNXI_SLOT_EXTRA != -1
-- 
2.7.4



More information about the U-Boot mailing list