Re: [PATCH v3 2/2] [POWERPC] MPC8568E-MDS: add support for flash
From: Kumar Gala <hidden>
Date: 2007-10-19 13:22:46
On Oct 18, 2007, at 5:29 PM, Anton Vorontsov wrote:
On Thu, Oct 18, 2007 at 02:58:25PM -0500, Kumar Gala wrote: [...]quoted
quoted
+ + flash@0,0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "Spansion,S29GL256N11TFIV2O", "cfi-flash"; + reg = <0 0 2000000>; + bank-width = <2>; + device-width = <1>; +Are you basing the partition map on something or making it up? Clearly hrcw & u-boot are at fixed offsets, wondering about kernel & rootfs?I'm making it up. From the brief look at the u-boot* git sources, there is no `flashboot` yet, thus I'm free to make this up... I've partitioned this flash based on these thoughts: 1. HRCW - whole sector, to not wear out it, plus it's impossible to create just 64 bytes partition;
this makes sense.
2. Kernel - 2MB, should be enough for bootup kernels?
seems reasonable.
3. Rootfs - the rest up to...
do we need a small section for the device tree?
4. U-Boot at the end.
can we reorder partitions? not sure if there is any value in having the things we know will always be there like hrcw & u-boot at fixed mtd0, mtd1, etc.
I'm not saying that it's best map ever, I'm open to suggestions. ;-) * Unfortunately I didn't look at the stock Freescale u-boot, maybe there was flashboot, most probably.. I'll find the CD to look this up.
Yeah I have no idea what we ship w/regards to the BSPs. - k