[U-Boot] [PATCH 22/31] mpc83xx, kmeter1, mtd: set the default partition table
Kim Phillips
kim.phillips at freescale.com
Thu Jan 29 03:10:55 CET 2009
On Wed, 28 Jan 2009 10:40:24 +0100
Heiko Schocher <hs at denx.de> wrote:
> diff --git a/include/configs/kmeter1.h b/include/configs/kmeter1.h
> index d66ba8b..feb6150 100644
> --- a/include/configs/kmeter1.h
> +++ b/include/configs/kmeter1.h
> @@ -322,6 +322,11 @@
> #define CONFIG_SYS_DTT_BUS_NUM (2)
> #define CONFIG_SYS_DTT_BOARD_INIT 1
>
> +#define MTDIDS_DEFAULT "nor0=app"
> +#define MTDPARTS_DEFAULT ( \
> + "mtdparts=app:256k(u-boot),128k(env),128k(envred)," \
> + "1536k(esw0),8704k(rootfs0),1536k(esw1),2432k(rootfs1),640k(var),768k(cfg)")
> +
> #if defined(CONFIG_PCI)
> #define CONFIG_CMD_PCI
> #endif
> @@ -448,6 +453,10 @@
> "ramdisk_addr_r=F10000\0" \
> "EEprom_ivm=pca9547:70:9\0" \
> "DTT_bus=pca9547:70:a\0" \
> + "mtdids=nor0=app \0" \
> + "mtdparts=mtdparts=app:256k(u-boot),128k(env),128k(envred)," \
> + "1536k(esw0),8704k(rootfs0),1536k(esw1)," \
> + "2432k(rootfs1),640k(var),768k(cfg)\0" \
> ""
instead of repeating strings, can we employ xstr here?
Kim
More information about the U-Boot
mailing list