Skip to contentSkip to conversation

p1010rdb: enable mtdparts for NAND

PATCH New Zhao Qiang 2 participants 2 messages Sep 26, 2013 – Nov 25, 2013

lore
Share & tools
lore

Zhao Qiang

author
#0 lore raw

PATCH 1/1 p1010rdb: enable mtdparts for NAND

The default partition table matches the .dts files for these boards in Linux. This allows these partitions to be used by name with U-Boot's "nand" command.

---
 include/configs/P1010RDB.h | 7 +++++++
 1 file changed, 7 insertions(+)
include/configs/P1010RDB.h +7 -0
index f0d6c8b..5864402 100644
@@ -329,6 +329,13 @@ extern unsigned long get_sdram_size(void);
 #define CONFIG_SYS_NAND_BASE_PHYS	CONFIG_SYS_NAND_BASE
 #endif
 
+#define CONFIG_MTD_DEVICE
+#define CONFIG_MTD_PARTITION
+#define CONFIG_CMD_MTDPARTS
+#define MTDIDS_DEFAULT			"nand0=ff800000.flash"
+#define MTDPARTS_DEFAULT		\
+	"mtdparts=ff800000.flash:2m(uboot-env),1m(dtb),5m(kernel),56m(fs),-(usr)"
+
 #define CONFIG_SYS_NAND_CSPR	(CSPR_PHYS_ADDR(CONFIG_SYS_NAND_BASE_PHYS) \
 				| CSPR_PORT_SIZE_8	\
 				| CSPR_MSEL_NAND	\
Signature · 1 line
1.8.0
#1 lore raw

PATCH 1/1 p1010rdb: enable mtdparts for NAND

Quoted 6 lines · Zhao Qiang

The default partition table matches the .dts files for these boards in Linux. This allows these partitions to be used by name with U-Boot's "nand" command.

---

Applied to u-boot-mpc85xx/master. Thanks.

York