public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 11/31] powerpc, mgcoge, mgsuvd: MTD feature activated, partitions set
Date: Wed, 28 Jan 2009 10:39:30 +0100	[thread overview]
Message-ID: <498027D2.1050809@denx.de> (raw)

- 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 <thomas.herzmann@keymile.com>
Signed-off-by: Heiko Schocher <hs@denx.de>
---
 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

                 reply	other threads:[~2009-01-28  9:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=498027D2.1050809@denx.de \
    --to=hs@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox