On 7/4/08, Grant Likely <[EMAIL PROTECTED]> wrote:
> On Fri, Jul 04, 2008 at 06:35:39PM +0200, Andre Schwarz wrote:
> > + #address-cells = <2>;
> > + #size-cells = <1>;
> > + ranges = <0x0 0x0 0xff800000 0x00800000>;
> > + [EMAIL PROTECTED],0 {
> > + compatible = "cfi-flash";
>
> For completeness, it is good practice for the first entry in the compatible
> list to be the actual flash chip, followed by "cfi-flash"
>
> > + reg = <0 0 0x800000>;
> > + #address-cells = <1>;
> > + #size-cells = <1>;
> > + bank-width = <1>;
> > + device-width = <1>;
> > + [EMAIL PROTECTED] {
> > + reg = <0x0 0x800000>;
> > + };
>
> I don't know if this is legal; to have overlapping flash sections (but
> I'm not a cfi-flash binding expert).
>
> > + [EMAIL PROTECTED] {
> > + reg = <0x0 0x40000>;
> > + };
> > + [EMAIL PROTECTED] {
> > + reg = <0x40000 0x10000>;
> > + };
> > + [EMAIL PROTECTED] {
> > + reg = <0x50000 0x10000>;
> > + };
> > + [EMAIL PROTECTED] {
> > + reg = <0x60000 0x40000>;
> > + };
> > + [EMAIL PROTECTED] {
> > + reg = <0xa00000 0x60000>;
> > + };
> > + [EMAIL PROTECTED] {
> > + reg = <0x100000 0x300000>;
> > + };
> > + [EMAIL PROTECTED] {
> > + reg = <0x400000 0x3c0000>;
> > + };
> > + [EMAIL PROTECTED] {
> > + reg = <0x7c0000 0x10000>;
> > + };
> > + [EMAIL PROTECTED] {
> > + reg = <0x7d0000 0x10000>;
> > + };
> > + [EMAIL PROTECTED] {
> > + reg = <0x7e0000 0x10000>;
> > + };
> > + [EMAIL PROTECTED] {
> > + reg = <0x7f0000 0x10000>;
> > + };
>
> I think it would be better to just leave out the partition information
> and modify U-Boot to fill them in (just like memory and clock speed are
> left out). Things like flash partitions are less like hardware
> description and more like configuration data.
Has anyone tried writing a RedBoot type partition table onto their
flash device? If it is there the kernel will read the partition info
from it. It's a config option in the kernel flash support section. Is
there a utility for creating these tables?
--
Jon Smirl
[EMAIL PROTECTED]
_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev