Patchwork [U-Boot,4/5] omap5912-osk: Increase flash partition for u-boot

login
register
mail settings
Submitter Hunter, Jon
Date April 9, 2013, 9:41 p.m.
Message ID <1365543693-5742-5-git-send-email-jon-hunter@ti.com>
Download mbox | patch
Permalink /patch/235252/
State Accepted
Delegated to: Tom Rini
Headers show

Comments

Hunter, Jon - April 9, 2013, 9:41 p.m.
The current u-boot binary needs more than 128KB of flash space and so
move the u-boot environment from an offset of 128KB to 256KB in flash
to ensure the enviroment does not overlap with u-boot.

Signed-off-by: Jon Hunter <jon-hunter@ti.com>
---
 include/configs/omap5912osk.h |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Patch

diff --git a/include/configs/omap5912osk.h b/include/configs/omap5912osk.h
index 558e933..3276a50 100644
--- a/include/configs/omap5912osk.h
+++ b/include/configs/omap5912osk.h
@@ -178,10 +178,10 @@ 
  */
 #define CONFIG_ENV_IS_IN_FLASH	1
 /* addr of environment */
-#define CONFIG_ENV_ADDR	(CONFIG_SYS_FLASH_BASE + 0x020000)
+#define CONFIG_ENV_ADDR	(CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 
-#define CONFIG_ENV_SIZE	0x20000	/* Total Size of Environment Sector */
-#define CONFIG_ENV_OFFSET	0x20000	/* environment starts here  */
+#define CONFIG_ENV_SIZE		0x20000	/* Total Size of Environment Sector */
+#define CONFIG_ENV_OFFSET	0x40000	/* environment starts here  */
 
 #define CONFIG_SYS_SDRAM_BASE		PHYS_SDRAM_1
 #define CONFIG_SYS_INIT_RAM_ADDR        PHYS_SRAM