<div class="gmail_quote">2009/2/12 David Gibson <span dir="ltr">&lt;<a href="mailto:david@gibson.dropbear.id.au">david@gibson.dropbear.id.au</a>&gt;</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>
&gt; 2009/2/12 Pieter &lt;<a href="mailto:phenning@vastech.co.za">phenning@vastech.co.za</a>&gt;<br>
&gt;<br>
&gt; &gt; Jean-Michel Hautbois wrote:<br>
&gt; &gt; &gt; Warning (reg_format): &quot;reg&quot; property in<br>
&gt; &gt; &gt; /localbus@f0010100/flash@0,0/partition@ff800000 has invalid length (8<br>
&gt; &gt; &gt; JM<br>
&gt; &gt; You are missing some definitions, The #address-cells and #size-cells = &lt;1&gt;;<br>
&gt; &gt; tis is a snippet of teh dts i defined for my board.<br>
&gt; &gt;<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp;flash@0,0 {<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#address-cells = &lt;1&gt;;<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#size-cells = &lt;1&gt;;<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;compatible = &quot;cfi-flash&quot;;<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;reg = &lt;0x0 0x0 0x08000000&gt;;<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bank-width = &lt;4&gt;;<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;device-width = &lt;1&gt;;<br>
&gt; &gt;<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /* set flash partition to correspond tu mtd parts in<br>
&gt; &gt; u-boot*/<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/* &nbsp; &nbsp; 0xf8000000 */<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;partition@0x0 {<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;label = &quot;factory-image&quot;;<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;reg = &lt;0x00000000 0x01000000&gt;;<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;};<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/* &nbsp; &nbsp; 0xf9000000 */<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;partition@0x01000000 {<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;label = &quot;app-image-1&quot;;<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;reg = &lt;0x01000000 0x01000000&gt;;<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;};<br>
&gt; &gt; cheers pieter<br>
&gt; &gt;<br>
&gt;<br>
&gt; Hi do have these definitions, at a higher level:<br>
<br>
</div></div>The address-cells and size-cells definitions are not inherited. &nbsp;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 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| I&#39;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> &nbsp;| minimalist, thank you. &nbsp;NOT _the_ _other_<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| _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&#39;t see any changes when booting.<br>I do not have more mtd in /proc/mtd.<br><br>JM<br>