diff options
author | Anatolij Gustschin <agust@denx.de> | 2009-04-23 21:29:34 +0200 |
---|---|---|
committer | Kim Phillips <kim.phillips@freescale.com> | 2009-04-23 17:53:33 -0500 |
commit | 8e15088794807944b221c11609d36789efc7f767 (patch) | |
tree | 45a771addba333f368e1ce950d2c9ccea688467c /include | |
parent | 7ee38c044ca5041d3378d6507580ea4ec344af96 (diff) | |
download | u-boot-imx-8e15088794807944b221c11609d36789efc7f767.zip u-boot-imx-8e15088794807944b221c11609d36789efc7f767.tar.gz u-boot-imx-8e15088794807944b221c11609d36789efc7f767.tar.bz2 |
mpc83xx: MPC8360ERDK: fix environment offset configuration bug
The size of U-Boot binary for MPC8360ERDK increased
(> 2 flash sectors now), so 'saveenv' will partially
overwrite U-Boot in flash and will brick the board.
This patch moves environment offset to fourth flash
sector and also fixes CONFIG_SYS_MONITOR_LEN.
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/MPC8360ERDK.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/configs/MPC8360ERDK.h b/include/configs/MPC8360ERDK.h index f7ebdaa..477a1c5 100644 --- a/include/configs/MPC8360ERDK.h +++ b/include/configs/MPC8360ERDK.h @@ -162,7 +162,7 @@ #undef CONFIG_SYS_RAMBOOT #endif -#define CONFIG_SYS_MONITOR_LEN (256 * 1024) /* Reserve 256 kB for Mon */ +#define CONFIG_SYS_MONITOR_LEN (384 * 1024) /* Reserve 384 kB for Mon */ #define CONFIG_SYS_MALLOC_LEN (128 * 1024) /* Reserved for malloc */ /* @@ -339,7 +339,7 @@ #ifndef CONFIG_SYS_RAMBOOT #define CONFIG_ENV_IS_IN_FLASH 1 -#define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE + 0x40000) +#define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN) #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K(one sector) for env */ #define CONFIG_ENV_SIZE 0x20000 #else /* CONFIG_SYS_RAMBOOT */ |