<div class="gmail_quote">2009/2/12 David Gibson <span dir="ltr"><<a href="mailto:david@gibson.dropbear.id.au">david@gibson.dropbear.id.au</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">On Thu, Feb 12, 2009 at 12:10:58PM +0100, Jean-Michel Hautbois wrote:<br>
> 2009/2/12 Pieter <<a href="mailto:phenning@vastech.co.za">phenning@vastech.co.za</a>><br>
><br>
> > Jean-Michel Hautbois wrote:<br>
> > > Warning (reg_format): "reg" property in<br>
> > > /localbus@f0010100/flash@0,0/partition@ff800000 has invalid length (8<br>
> > > JM<br>
> > You are missing some definitions, The #address-cells and #size-cells = <1>;<br>
> > tis is a snippet of teh dts i defined for my board.<br>
> ><br>
> > flash@0,0 {<br>
> > #address-cells = <1>;<br>
> > #size-cells = <1>;<br>
> > compatible = "cfi-flash";<br>
> > reg = <0x0 0x0 0x08000000>;<br>
> > bank-width = <4>;<br>
> > device-width = <1>;<br>
> ><br>
> > /* set flash partition to correspond tu mtd parts in<br>
> > u-boot*/<br>
> > /* 0xf8000000 */<br>
> > partition@0x0 {<br>
> > label = "factory-image";<br>
> > reg = <0x00000000 0x01000000>;<br>
> > };<br>
> > /* 0xf9000000 */<br>
> > partition@0x01000000 {<br>
> > label = "app-image-1";<br>
> > reg = <0x01000000 0x01000000>;<br>
> > };<br>
> > cheers pieter<br>
> ><br>
><br>
> Hi do have these definitions, at a higher level:<br>
<br>
</div></div>The address-cells and size-cells definitions are not inherited. They<br>
cover only the immediate children of the node where they appear.<br>
Otherwise the default values apply (address-cells == 2, size-cells ==<br>
1), which are not right for your case.<br>
<font color="#888888"><br>
--<br>
David Gibson | I'll have my music baroque, and my code<br>
david AT <a href="http://gibson.dropbear.id.au" target="_blank">gibson.dropbear.id.au</a> | minimalist, thank you. NOT _the_ _other_<br>
| _way_ _around_!<br>
<a href="http://www.ozlabs.org/%7Edgibson" target="_blank">http://www.ozlabs.org/~dgibson</a><br>
</font></blockquote></div>OK, so, after having tested, I can't see any changes when booting.<br>I do not have more mtd in /proc/mtd.<br><br>JM<br>