From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Wed, 28 Jan 2009 10:39:30 +0100 Subject: [U-Boot] [PATCH 11/31] powerpc, mgcoge, mgsuvd: MTD feature activated, partitions set Message-ID: <498027D2.1050809@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de - 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) Signed-off-by: Thomas Herzmann Signed-off-by: Heiko Schocher --- include/configs/keymile-common.h | 2 ++ include/configs/mgcoge.h | 5 +++++ include/configs/mgsuvd.h | 13 +++++++++---- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/include/configs/keymile-common.h b/include/configs/keymile-common.h index 2864e8e..aaefdf1 100644 --- a/include/configs/keymile-common.h +++ b/include/configs/keymile-common.h @@ -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 */ diff --git a/include/configs/mgcoge.h b/include/configs/mgcoge.h index 07e0b8e..a754f0b 100644 --- a/include/configs/mgcoge.h +++ b/include/configs/mgcoge.h @@ -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 */ diff --git a/include/configs/mgsuvd.h b/include/configs/mgsuvd.h index 01f5bd3..7c97a21 100644 --- a/include/configs/mgsuvd.h +++ b/include/configs/mgsuvd.h @@ -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 */ -- 1.6.0.6 -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany