mpc83xx: fix the corruption of u-boot when saveenv
authorKevin Hao <kexin.hao@windriver.com>
Fri, 8 Jul 2016 03:25:14 +0000 (11:25 +0800)
committerYork Sun <york.sun@nxp.com>
Thu, 21 Jul 2016 18:08:35 +0000 (11:08 -0700)
commit16c8c1709dcd5839e9099be44b149cf906a0bac7
tree1410f0e724f7f5a2d2cb5894a805d8b500c3dd4b
parent7f25fdc7ffab4f7cf80b34ca35600091cdf79b5d
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>
include/configs/MPC8308RDB.h
include/configs/MPC8313ERDB.h
include/configs/MPC8315ERDB.h
include/configs/MPC8323ERDB.h
include/configs/MPC832XEMDS.h
include/configs/MPC8349EMDS.h
include/configs/MPC8349ITX.h
include/configs/MPC837XEMDS.h
include/configs/MPC837XERDB.h