From 2f185d43fffb8201b925f4cdb36ebfb0ca529697 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Fri, 27 Jun 2014 10:50:10 +0200 Subject: colibri vf50/61: fix environment offset Environment offset was set to block 6 (0xC0000), which is still inside the U-Boot partition. Since U-Boot is small enouth to fit in the first 5 blocks, it usually is not an issue, however if one of this 5 blocks is bad, then the environment overwrites part of the boot loader. This fix sets the environment to erase block 12 (0x180000). --- include/configs/colibri_vf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/colibri_vf.h b/include/configs/colibri_vf.h index e00a21bc5d..64a4ccb73a 100644 --- a/include/configs/colibri_vf.h +++ b/include/configs/colibri_vf.h @@ -217,7 +217,7 @@ /* Environment organization */ #define CONFIG_ENV_IS_IN_NAND #define CONFIG_ENV_SIZE (64 * 2048) -#define CONFIG_ENV_OFFSET (6 * 64 * 2048) +#define CONFIG_ENV_OFFSET (12 * 64 * 2048) #define CONFIG_OF_LIBFDT #define CONFIG_CMD_BOOTZ -- cgit v1.2.3