Skip to contentSkip to conversation

FIX: config: goni: Change goni configuration to store envs at eMMC

PATCH New Lukasz Majewski 2 participants 2 messages Jun 9, 2014 – Jun 18, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 FIX: config: goni: Change goni configuration to store envs at eMMC

Up till now goni's configuration has been stored at OneNAND. Since u-boot itself is now stored at eMMC it is more handy to store envs there as well.

---
 include/configs/s5p_goni.h | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
include/configs/s5p_goni.h +6 -3
index fce1716..804f97f 100644
@@ -220,9 +220,12 @@
 #define CONFIG_SYS_MONITOR_LEN		(256 << 10)	/* 256 KiB */
 
 /* FLASH and environment organization */
-#define CONFIG_ENV_IS_IN_ONENAND	1
-#define CONFIG_ENV_SIZE			(256 << 10)	/* 256 KiB, 0x40000 */
-#define CONFIG_ENV_ADDR			(1 << 20)	/* 1 MB, 0x100000 */
+#define CONFIG_MMC_DEFAULT_DEV	0
+#define CONFIG_ENV_IS_IN_MMC
+#define CONFIG_SYS_MMC_ENV_DEV		CONFIG_MMC_DEFAULT_DEV
+#define CONFIG_ENV_SIZE			4096
+#define CONFIG_ENV_OFFSET		((32 - 4) << 10) /* 32KiB - 4KiB */
+#define CONFIG_ENV_OVERWRITE
 
 #define CONFIG_USE_ONENAND_BOARD_INIT
 #define CONFIG_SAMSUNG_ONENAND		1
Signature · 1 line
2.0.0.rc2
#1 lore raw

PATCH 1/1 FIX: config: goni: Change goni configuration to store envs at eMMC

Quoted 19 lines · Lukasz Majewski

Up till now goni's configuration has been stored at OneNAND. Since u-boot itself is now stored at eMMC it is more handy to store envs there as well.

---
 include/configs/s5p_goni.h | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
include/configs/s5p_goni.h +0 -2
index fce1716..804f97f 100644
@@ -220,9 +220,12 @@
 #define CONFIG_SYS_MONITOR_LEN		(256 << 10)	/* 256 KiB */
 
 /* FLASH and environment organization */
-#define CONFIG_ENV_IS_IN_ONENAND	1
-#define CONFIG_ENV_SIZE			(256 << 10)	/* 256 KiB, 0x40000 */

include/configs/s5p_goni.h line 231

Quoted 10 lines
include/configs/s5p_goni.h +6 -1
-#define CONFIG_ENV_ADDR			(1 << 20)	/* 1 MB, 0x100000 */
+#define CONFIG_MMC_DEFAULT_DEV	0
+#define CONFIG_ENV_IS_IN_MMC
+#define CONFIG_SYS_MMC_ENV_DEV		CONFIG_MMC_DEFAULT_DEV
+#define CONFIG_ENV_SIZE			4096
+#define CONFIG_ENV_OFFSET		((32 - 4) << 10) /* 32KiB - 4KiB */
+#define CONFIG_ENV_OVERWRITE
 
 #define CONFIG_USE_ONENAND_BOARD_INIT
 #define CONFIG_SAMSUNG_ONENAND		1

applied to u-boot-samsung.

Thanks,
Minkyu Kang.