Skip to contentSkip to conversation

OMAP3:Beagle: Enable mtdparts

PATCH New Nishanth Menon 2 participants 2 messages Mar 6, 2009 – Mar 25, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 OMAP3:Beagle: Enable mtdparts

http://www.denx.de/wiki/DULG/UBootCmdGroupFlash#UBootCmdFlMtdparts
provides a flexible way to create and maintain u-boot mtd partitions. This allows commands such as "nand erase fs" to work and the user no longer needs to decode the absolute nand offsets. This patch enables this function for beagleboard

---
 include/configs/omap3_beagle.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
include/configs/omap3_beagle.h +5 -0
index 9057606..c64999f 100644
@@ -98,6 +98,11 @@
 #define CONFIG_CMD_EXT2		/* EXT2 Support			*/
 #define CONFIG_CMD_FAT		/* FAT support			*/
 #define CONFIG_CMD_JFFS2	/* JFFS2 Support		*/
+#define CONFIG_JFFS2_CMDLINE	/* Enable MTD parts commands */
+#define MTDIDS_DEFAULT			"nand0=nand"
+#define MTDPARTS_DEFAULT		"mtdparts=nand:512k(x-loader),"\
+					"1920k(u-boot),128k(u-boot-env),"\
+					"4m(kernel),-(fs)"
 
 #define CONFIG_CMD_I2C		/* I2C serial bus support	*/
 #define CONFIG_CMD_MMC		/* MMC support			*/
Signature · 1 line
1.5.4.3
#1 lore raw

PATCH v2 1/1 OMAP3:Beagle: Enable mtdparts

From: Nishanth Menon <[email protected]>

http://www.denx.de/wiki/DULG/UBootCmdGroupFlash#UBootCmdFlMtdparts
provides a flexible way to create and maintain u-boot mtd partitions. This allows commands such as "nand erase fs" to work and the user no longer needs to decode the absolute nand offsets. This patch enables this function for beagleboard

---
Fix mtdparts command support as introduced by commit 68d7d65100

Best Regards,
J.

 include/configs/omap3_beagle.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
include/configs/omap3_beagle.h +5 -0
index 9057606..0f9344b 100644
@@ -98,6 +98,11 @@
 #define CONFIG_CMD_EXT2		/* EXT2 Support			*/
 #define CONFIG_CMD_FAT		/* FAT support			*/
 #define CONFIG_CMD_JFFS2	/* JFFS2 Support		*/
+#define CONFIG_CMD_MTDPARTS	/* Enable MTD parts commands */
+#define MTDIDS_DEFAULT			"nand0=nand"
+#define MTDPARTS_DEFAULT		"mtdparts=nand:512k(x-loader),"\
+					"1920k(u-boot),128k(u-boot-env),"\
+					"4m(kernel),-(fs)"
 
 #define CONFIG_CMD_I2C		/* I2C serial bus support	*/
 #define CONFIG_CMD_MMC		/* MMC support			*/
Signature · 1 line
1.6.2.1