<div class="gmail_quote">2009/2/12 Pieter <span dir="ltr"><<a href="mailto:phenning@vastech.co.za">phenning@vastech.co.za</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 class="Ih2E3d">Jean-Michel Hautbois wrote:<br>
> 2009/2/12 David Gibson <<a href="mailto:david@gibson.dropbear.id.au">david@gibson.dropbear.id.au</a><br>
</div>> <mailto:<a href="mailto:david@gibson.dropbear.id.au">david@gibson.dropbear.id.au</a>>><br>
<div class="Ih2E3d">><br>
> 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>
</div>> <mailto:<a href="mailto:phenning@vastech.co.za">phenning@vastech.co.za</a>>><br>
<div><div></div><div class="Wj3C7c">> ><br>
> > > Jean-Michel Hautbois wrote:<br>
> > > > Warning (reg_format): "reg" property in<br>
> > > > /localbus@f0010100/flash@0,0/partition@ff800000 has invalid<br>
> length (8<br>
> > > > JM<br>
> > > You are missing some definitions, The #address-cells and<br>
> #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>
> 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>
><br>
> --<br>
> David Gibson | I'll have my music baroque, and<br>
> my code<br>
</div></div>> david AT <a href="http://gibson.dropbear.id.au" target="_blank">gibson.dropbear.id.au</a> <<a href="http://gibson.dropbear.id.au" target="_blank">http://gibson.dropbear.id.au</a>> |<br>
<div class="Ih2E3d">> minimalist, thank you. NOT _the_ _other_<br>
> | _way_ _around_!<br>
</div>> <a href="http://www.ozlabs.org/%7Edgibson" target="_blank">http://www.ozlabs.org/~dgibson</a> <<a href="http://www.ozlabs.org/%7Edgibson" target="_blank">http://www.ozlabs.org/%7Edgibson</a>><br>
<div class="Ih2E3d">><br>
> 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>
</div>have you defined the following in your kernel config<br>
<br>
CONFIG_MTD_PHYSMAP_OF=y<br>
CONFIG_MTD_PARTITIONS=y<br>
CONFIG_MTD_OF_PARTS=y<br>
<br>
cheers pieter<br>
</blockquote><div><br>I didn't have CONFIG_MTD_OF_PARTS=y.<br><br>Know, I have this output:<br><br> Found: Intel I28F016S3<br>fe000000.flash: Found 4 x8 devices at 0x0 in 32-bit bank<br>fe000000.flash: Found an alias at 0x800000 for the chip at 0x0<br>
fe000000.flash: Found an alias at 0x1000000 for the chip at 0x0<br>fe000000.flash: Found an alias at 0x1800000 for the chip at 0x0<br>erase region 0: offset=0x0,size=0x40000,blocks=32<br>RedBoot partition parsing not available<br>
Creating 3 MTD partitions on "fe000000.flash":<br>0x0000ff800000-0x0000ffc00000 : "kernel"<br>mtd: partition "kernel" is out of reach -- disabled<br>mtd: Giving out device 0 to kernel<br>0x0000ffc00000-0x0000fff00000 : "user"<br>
mtd: partition "sofrel" is out of reach -- disabled<br>mtd: Giving out device 1 to user<br>0x0000fff00000-0x000100000000 : "u-boot"<br>mtd: partition "u-boot" is out of reach -- disabled<br>mtd: Giving out device 2 to u-boot</div>
</div><br>I think that the problem is in the reg part, but I can't understand why.<br>Isn't it the RAM mpping of my MTD that is the first address ?<br><br>Thanks agains,<br>Regards,<br>JM<br>