summaryrefslogtreecommitdiff
path: root/include/configs/MPC8315ERDB.h
diff options
context:
space:
mode:
authorKevin Hao <kexin.hao@windriver.com>2016-07-08 11:25:14 +0800
committerYork Sun <york.sun@nxp.com>2016-07-21 11:08:35 -0700
commit16c8c1709dcd5839e9099be44b149cf906a0bac7 (patch)
tree1410f0e724f7f5a2d2cb5894a805d8b500c3dd4b /include/configs/MPC8315ERDB.h
parent7f25fdc7ffab4f7cf80b34ca35600091cdf79b5d (diff)
downloadu-boot-imx-16c8c1709dcd5839e9099be44b149cf906a0bac7.zip
u-boot-imx-16c8c1709dcd5839e9099be44b149cf906a0bac7.tar.gz
u-boot-imx-16c8c1709dcd5839e9099be44b149cf906a0bac7.tar.bz2
mpc83xx: fix the corruption of u-boot when saveenv
Robert P. J. Day has pointed that the value of SYS_MONITOR_LEN in MPC8315ERDB.h is smaller than the u-boot.bin. This will cause the overlap between the code of u-boot and the environment variable. So when executing saveenv, it will corrupt the code of u-boot and causes the board not boot. Fix this for all the mpc83xx boards by reserving a 512K area. Reported-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Kevin Hao <kexin.hao@windriver.com> Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'include/configs/MPC8315ERDB.h')
-rw-r--r--include/configs/MPC8315ERDB.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/configs/MPC8315ERDB.h b/include/configs/MPC8315ERDB.h
index 7ce5f59..5b23f94 100644
--- a/include/configs/MPC8315ERDB.h
+++ b/include/configs/MPC8315ERDB.h
@@ -169,7 +169,7 @@
/*
* The reserved memory
*/
-#define CONFIG_SYS_MONITOR_LEN (384 * 1024) /* Reserve 384 kB for Mon */
+#define CONFIG_SYS_MONITOR_LEN (512 * 1024) /* Reserve 512 kB for Mon */
#define CONFIG_SYS_MALLOC_LEN (512 * 1024) /* Reserved for malloc */
/*