From: Simon Kagstrom Date: Fri, 11 Sep 2009 15:52:16 +0200 Subject: [U-Boot] [PATCH v2] Support for the OpenRD base board In-Reply-To: <73173D32E9439E4ABB5151606C3E19E202ED2FECE1@SC-VEXCH1.marvell.com> References: <20090911141824.4950751d@marrow.netinsight.se> <73173D32E9439E4ABB5151606C3E19E202ED2FECE1@SC-VEXCH1.marvell.com> Message-ID: <20090911155216.26496b53@marrow.netinsight.se> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, 11 Sep 2009 06:33:44 -0700 Prafulla Wadaskar wrote: > > > > +#define CONFIG_ENV_SIZE 0x20000 /* 128k */ > > > > +#define CONFIG_ENV_ADDR 0xa0000 > > > > +#define CONFIG_ENV_OFFSET 0xa0000 /* env > > starts here */ > > > Do you really need this address? the u-boot binary is > > within 256kb, at the most it can go till 512kb > > > > This is where the default environment (for the U-boot shipped by > > Marvell) resides. Like on Sheevaplug, it uses 4-bit ECC, so current > > U-boot won't be able to read it, but I know you're working on it. > So I think, you want to retain both environment variables untouched > ( i.e. latest u-boot and u-boot shipped by Marvell) > But so far as mainlined u-boot is considered, > doesn't it make sense to pack uboot-bin and environment sector together? > like sheevaplug, I think first 2 sectors for u-boot and next once sector for env should be better to choose. Right, makes sense. I'll update that and skip the current address. > > > > +#define MTDIDS_DEFAULT "nand0=nand_mtd" > > > > +#define MTDPARTS_DEFAULT > > > > "mtdparts=nand_mtd:0x100000 at 0x000000(uboot),0x400000 at 0x100000( > > > > uImage),"\ > > > > + "0x1fb00000 at 0x500000(rootfs)" > > > I don't quite understand this. This is also the default addresses > > shipped with the board. > W..r.to line 24 at http://git.marvell.com/?p=orion.git;a=blob;f=arch/arm/mach-kirkwood/openrd_base-setup.c;h=947dfb8cd5b252bf326d691ee5179e29ad07a9a9;hb=HEAD > By default kernel has same mdtpart configuration as you are describing here. > So you don't need this default setup here, you should skip it OK, I understand. However, but it might also be useful from U-boot. Locally, I've loaded the kernel from the ubifs partition, and then it's useful to have this defined in U-boot as well. If it shouldn't be there by default, I'll remove it though. // Simon