summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2014-06-27 10:50:10 +0200
committerStefan Agner <stefan.agner@toradex.com>2014-06-27 10:50:10 +0200
commit2f185d43fffb8201b925f4cdb36ebfb0ca529697 (patch)
treee5fee7dbb44b94420fa1c131ea62156dbde601e3
parent0242d1cf0d907c6f61351bb6cc799dd5bafe4932 (diff)
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).
-rw-r--r--include/configs/colibri_vf.h2
1 files changed, 1 insertions, 1 deletions
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