[U-Boot] [PATCH] pm9263: save environment at the NOR Flash end

Asen Chavdarov Dimov dimov at ronetix.at
Mon Sep 12 19:18:27 CEST 2011


This patch moves the sector for the environment from the gap between U-Boot
and the Linux kernel to the end of the NOR flash and this way lets the U-Boot
rom file to increase a little bit when adding functionality.

Signed-off-by: Asen Chavdarov Dimov <dimov at ronetix.at>
---
 include/configs/pm9263.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/include/configs/pm9263.h b/include/configs/pm9263.h
index 1e282d2..f1bd389 100644
--- a/include/configs/pm9263.h
+++ b/include/configs/pm9263.h
@@ -340,9 +340,11 @@
 #elif defined(CONFIG_SYS_USE_FLASH) /* CFG_USE_FLASH */
 
 #define CONFIG_ENV_IS_IN_FLASH	1
-#define CONFIG_ENV_OFFSET	0x40000
 #define CONFIG_ENV_SECT_SIZE	0x10000
 #define	CONFIG_ENV_SIZE		0x10000
+#define NORFLASH_SIZE		0x400000 /* 4MiB */
+#define CONFIG_ENV_ADDR		(CONFIG_SYS_FLASH_BASE + NORFLASH_SIZE - \
+				CONFIG_ENV_SIZE)
 #define CONFIG_ENV_OVERWRITE	1
 
 /* JFFS Partition offset set */
-- 
1.7.4.4



More information about the U-Boot mailing list