Skip to contentSkip to conversation

configs: db410c: Set eMMC env partition to BOOT2

PATCH New Ramon Fried 2 participants 4 messages Jun 14, 2018 – Jun 19, 2018 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 configs: db410c: Set eMMC env partition to BOOT2

BOOT2 partition is empty and free for using to store the environment. Use that instead of the default user partition.

---
 include/configs/dragonboard410c.h | 1 +
 1 file changed, 1 insertion(+)
include/configs/dragonboard410c.h +1 -0
index 86fa735470..46a7179f1b 100644
@@ -94,6 +94,7 @@ REFLASH(dragonboard/u-boot.img, 8)\
 
 #define CONFIG_ENV_SIZE			0x2000
 #define CONFIG_SYS_MMC_ENV_DEV		0	/* mmc0 = emmc, mmc1 = sd */
+#define CONFIG_SYS_MMC_ENV_PART 2 /* Set env partition to BOOT2 partition */
 
 /* Size of malloc() pool */
 #define CONFIG_SYS_MALLOC_LEN		(CONFIG_ENV_SIZE + SZ_8M)
Signature · 1 line
2.17.1
#1 lore raw

PATCH 2/2 configs: dragonboard410c: remove env partition offset

BOOT2 is not partitioned, no need for partition offset.

---
 arch/arm/dts/dragonboard410c-uboot.dtsi | 4 ----
 1 file changed, 4 deletions(-)
arch/arm/dts/dragonboard410c-uboot.dtsi +0 -4
index b968f5eb68..5675086c91 100644
@@ -6,10 +6,6 @@
  */
 
 / {
-	config {
-		u-boot,mmc-env-partition = "boot";
-	};
-
 	soc {
 		u-boot,dm-pre-reloc;
 
Signature · 1 line
2.17.1
#2 lore raw

PATCH 2/2 configs: dragonboard410c: remove env partition offset

Quoted 3 lines · Ramon Fried

BOOT2 is not partitioned, no need for partition offset.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180619/4e74181d/attachment.sig>
#3 lore raw

PATCH 1/2 configs: db410c: Set eMMC env partition to BOOT2

In reply to Ramon Fried
Quoted 4 lines · Ramon Fried

BOOT2 partition is empty and free for using to store the environment. Use that instead of the default user partition.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180619/f9b2e839/attachment.sig>