Skip to contentSkip to conversation

powerpc, mgcoge, mgsuvd: MTD feature activated, partitions set

PATCH New Heiko Schocher 1 participant 1 message Jan 28, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 11/31 powerpc, mgcoge, mgsuvd: MTD feature activated, partitions set

- activated the MTD and JFFS2 cmdline-features
- set the default partition table to meet the
needs of the keymile boot concept
- increased the u-boot size for mgsuvd
from 256k to 384k (will be needed soon)

---
 include/configs/keymile-common.h |    2 ++
 include/configs/mgcoge.h         |    5 +++++
 include/configs/mgsuvd.h         |   13 +++++++++----
 3 files changed, 16 insertions(+), 4 deletions(-)
include/configs/keymile-common.h +2 -0
index 2864e8e..aaefdf1 100644
@@ -48,6 +48,8 @@
 #define CONFIG_CMD_DTT
 #define CONFIG_CMD_EEPROM
 #define CONFIG_CMD_I2C
+#define CONFIG_CMD_JFFS2
+#define CONFIG_JFFS2_CMDLINE
 #endif
 
 #undef	CONFIG_WATCHDOG			/* disable platform specific watchdog */
include/configs/mgcoge.h +5 -0
index 07e0b8e..a754f0b 100644
@@ -355,4 +355,9 @@
 #define OF_TBCLK		(bd->bi_busfreq / 4)
 #define OF_STDOUT_PATH		"/soc/cpm/serial at 11a90"
 
+#define MTDIDS_DEFAULT		"nor0=boot,nor1=app"
+#define MTDPARTS_DEFAULT	(\
+	"mtdparts=boot:384k(u-boot),128k(env),128k(envred),3456k(free);" \
+	"app:3m(esw0),10m(rootfs0),3m(esw1),10m(rootfs1),1m(var),5m(cfg)")
+
 #endif /* __CONFIG_H */
include/configs/mgsuvd.h +9 -4
index 01f5bd3..7c97a21 100644
@@ -64,11 +64,11 @@
 	"tftpsrcp=69\0"							\
 	"tftpdstp=69\0"							\
 	"mtdids=nor0=app \0"						\
-	"mtdparts=mtdparts=app:256k(u-boot),128k(env),128k(envred),"	\
-		"256k(free),1536k(esw0),8704k(rootfs0),1536k(esw1),"	\
+	"mtdparts=mtdparts=app:384k(u-boot),128k(env),128k(envred),"	\
+		"128k(free),1536k(esw0),8704k(rootfs0),1536k(esw1),"	\
 		"2432k(rootfs1),640k(var),768k(cfg)\0"			\
 	"partition=nor0,9 \0"						\
-	"new_env=prot off F0040000 F007FFFF; era F0040000 F007FFFF \0" 	\
+	"new_env=prot off F0060000 F009FFFF; era F0060000 F009FFFF \0" 	\
 	""
 
 #undef CONFIG_RTC_MPC8xx		/* MPC866 does not support RTC	*/
@@ -101,7 +101,7 @@
  */
 #define CONFIG_SYS_SDRAM_BASE		0x00000000
 #define CONFIG_SYS_FLASH_BASE		0xf0000000
-#define CONFIG_SYS_MONITOR_LEN		(256 << 10)	/* Reserve 256 kB for Monitor	*/
+#define CONFIG_SYS_MONITOR_LEN		(384 << 10)	/* Reserve 256 kB for Monitor	*/
 #define CONFIG_SYS_MONITOR_BASE	CONFIG_SYS_FLASH_BASE
 #define CONFIG_SYS_MALLOC_LEN		(256 << 10)	/* Reserve 256 kB for malloc()	*/
 
@@ -316,4 +316,9 @@
 #define CONFIG_SYS_DTT_HYSTERESIS	3
 #define CONFIG_SYS_DTT_BUS_NUM		(CONFIG_SYS_MAX_I2C_BUS)
 
+#define MTDIDS_DEFAULT		"nor0=app"
+#define MTDPARTS_DEFAULT ( \
+  "mtdparts=app:384k(u-boot),128k(env),128k(envred),128k(free),"	\
+  "1536k(esw0),8704k(rootfs0),1536k(esw1),2432k(rootfs1),640k(var),768k(cfg)")
+
 #endif	/* __CONFIG_H */
Signature · 5 lines
1.6.0.6

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany