From: Fabio Estevam Date: Mon, 21 Mar 2016 14:00:53 +0000 (-0300) Subject: mx6sabre_common: Fix U-Boot corruption after 'saveenv' X-Git-Tag: KARO-TXSD-2017-03-15~1213^2~14 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8fb9eea5653796;p=karo-tx-uboot.git mx6sabre_common: Fix U-Boot corruption after 'saveenv' 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 --- diff --git a/include/configs/mx6sabre_common.h b/include/configs/mx6sabre_common.h index a6d821bb4d..112f187e5d 100644 --- a/include/configs/mx6sabre_common.h +++ b/include/configs/mx6sabre_common.h @@ -209,7 +209,7 @@ #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 */