]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mx6sabre_common: Fix U-Boot corruption after 'saveenv'
authorFabio Estevam <fabio.estevam@nxp.com>
Mon, 21 Mar 2016 14:00:53 +0000 (11:00 -0300)
committerStefano Babic <sbabic@denx.de>
Fri, 25 Mar 2016 13:02:58 +0000 (14:02 +0100)
Booting mx6qp sabreauto board and then doing:

=> saveenv
=> reset

, causes a system hang.

This happens because the size of the U-Boot binary is larger than
CONFIG_ENV_OFFSET.

Fix this problem by increasing CONFIG_ENV_OFFSET, so that the U-boot binary
and the environment variables region do not overlap.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
include/configs/mx6sabre_common.h

index a6d821bb4dcafd6c9f6ce18808ede31d784a0d12..112f187e5dd58a884f43faab63ba37d2011e505e 100644 (file)
 #define CONFIG_ENV_IS_IN_MMC
 
 #if defined(CONFIG_ENV_IS_IN_MMC)
-#define CONFIG_ENV_OFFSET              (8 * 64 * 1024)
+#define CONFIG_ENV_OFFSET              (768 * 1024)
 #endif
 
 /* Framebuffer */