[U-Boot] [PATCH 3/3] socfpga: Adapt environment storage for DE0-nano-SoC

Frank Kunz mailinglists at kunz-im-inter.net
Sat Jan 28 21:47:17 CET 2017


Increase environment size and locate storage location on MMC after GPT.

Signed-off-by: Frank Kunz <mailinglists at kunz-im-inter.net>
---
:100644 100644 d58240e751... 5d0542bd8f... M	include/configs/socfpga_de0_nano_soc.h
 include/configs/socfpga_de0_nano_soc.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/configs/socfpga_de0_nano_soc.h b/include/configs/socfpga_de0_nano_soc.h
index d58240e751..5d0542bd8f 100644
--- a/include/configs/socfpga_de0_nano_soc.h
+++ b/include/configs/socfpga_de0_nano_soc.h
@@ -13,9 +13,13 @@
 #define CONFIG_DOS_PARTITION
 #define CONFIG_FAT_WRITE
 #define CONFIG_HW_WATCHDOG
-
 #define CONFIG_SPL_ABORT_ON_RAW_IMAGE
 
+/* U-Boot env settings */
+#define CONFIG_ENV_SIZE (8*1024)
+#define CONFIG_SYS_MMC_ENV_DEV 0	/* device 0 */
+#define CONFIG_ENV_OFFSET (34*512)	/* just after the GPT */
+
 /* Memory configurations */
 #define PHYS_SDRAM_1_SIZE		0x40000000	/* 1GiB */
 
-- 
2.11.0



More information about the U-Boot mailing list