From 9a9f4cc3946e52e6a05d150539357da3d3754e14 Mon Sep 17 00:00:00 2001 From: Klaus Goger Date: Fri, 17 Feb 2017 08:48:14 +0100 Subject: sun50i: increase CONFIG_ENV_OFFSET increase CONFIG_ENV_OFFSET to 640k so the environment don't overlap with the FIT payload. Signed-off-by: Klaus Goger --- include/configs/sunxi-common.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h index aaab809453..91cfada9f3 100644 --- a/include/configs/sunxi-common.h +++ b/include/configs/sunxi-common.h @@ -179,7 +179,11 @@ #define CONFIG_SPL_SPI_SUPPORT #define CONFIG_SPL_SPI_FLASH_SUPPORT #else -#define CONFIG_ENV_OFFSET (544 << 10) /* (8 + 24 + 512) KiB */ +#ifdef CONFIG_MACH_SUN50I + #define CONFIG_ENV_OFFSET (640 << 10) /* (8 + 32 + 600) KiB */ +#else + #define CONFIG_ENV_OFFSET (544 << 10) /* (8 + 24 + 512) KiB */ +#endif #define CONFIG_ENV_IS_IN_MMC #define CONFIG_SYS_MMC_ENV_DEV 0 /* first detected MMC controller */ #define CONFIG_SYS_MMC_MAX_DEVICE 4 -- cgit v1.2.3