<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Kamel BOUHARA</b> <span dir="ltr"><<a href="mailto:k.bouhara@gmail.com">k.bouhara@gmail.com</a>></span><br>
Date: 2011/7/19<br>Subject: Re: Nand MTD IOError -5<br>To: Sascha Hauer <<a href="mailto:s.hauer@pengutronix.de">s.hauer@pengutronix.de</a>><br><br><br><div class="im"><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex">
2011/7/18 Sascha Hauer <span dir="ltr"><<a href="mailto:s.hauer@pengutronix.de" target="_blank">s.hauer@pengutronix.de</a>></span><br><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex">
<div>On Fri, Jul 15, 2011 at 01:21:21PM +0200, Kamel BOUHARA wrote:<br>> Hello,<br>><br>> Im having a trouble with my Nand Flash device wich is a 512MiB Micron with<br>> 4GB capacity.<br>> I get io error -5 for any erase/write operation on it like this :<br>
><br>> barebox@Phytec phyCard-i.MX27:/ update -t barebox -d nand<br><br></div>Is this really a phycard or have you just used it as a template for your<br>board?</blockquote></blockquote><div><br></div></div><div>No, it's not Im using it as a template because the fec, I've also post for it here :<a href="http://lists.infradead.org/pipermail/barebox/2011-July/003802.html" target="_blank">http://lists.infradead.org/pipermail/barebox/2011-July/003802.html</a></div>
<div class="im">
<div><br></div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex">
Sorry, no idea. It just looks there are quite many bad blocks. Does it<br>work under Linux?</blockquote><div><br></div></div><div>It doesn't work on Linux or u-boot, same error, maybe I missed somethink, I will look to make it work on u-boot with advanced nand command first maybe...</div>
<div><br></div><div>Thanks anyway ! :/</div><div><div></div><div class="h5"><div> </div>
<div class="gmail_quote">2011/7/18 Sascha Hauer <span dir="ltr"><<a href="mailto:s.hauer@pengutronix.de" target="_blank">s.hauer@pengutronix.de</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On Fri, Jul 15, 2011 at 01:21:21PM +0200, Kamel BOUHARA wrote:<br>
> Hello,<br>
><br>
> Im having a trouble with my Nand Flash device wich is a 512MiB Micron with<br>
> 4GB capacity.<br>
> I get io error -5 for any erase/write operation on it like this :<br>
><br>
> barebox@Phytec phyCard-i.MX27:/ update -t barebox -d nand<br>
<br>
</div>Is this really a phycard or have you just used it as a template for your<br>
board?<br>
<div><br>
><br>
> phy0: Link is up - 100/Full<br>
> host 192.168.0.2 is alive<br>
> > erasing partition /dev/<a href="http://nand0.barebox.bb" target="_blank">nand0.barebox.bb</a><br>
> ><br>
> erase: I/O error<br>
><br>
> flashing barebox.bin to /dev/<a href="http://nand0.barebox.bb" target="_blank">nand0.barebox.bb</a><br>
> TFTP from server 192.168.0.2 ('barebox.bin' -> '/dev/<a href="http://nand0.barebox.bb" target="_blank">nand0.barebox.bb</a>')<br>
> write: I/O error<br>
> tftp failed: error -5<br>
> And here is the device init at the boot runtime:<br>
> NAND device: Manufacturer ID: 0x2c, Chip ID: 0xac (Micron NAND 512MiB 1,8V<br>
> 8-bi)<br>
><br>
</div><div>> nand_read_bbt: Bad block at 0x17840000<br>
><br>
> nand_read_bbt: Bad block at 0x17860000<br>
><br>
> nand_read_bbt: Bad block at 0x1f0c0000<br>
><br>
> nand_read_bbt: Bad block at 0x1f0e0000<br>
><br>
> nand_read_bbt: Bad block at 0x1f6c0000<br>
><br>
> nand_read_bbt: Bad block at 0x1f6e0000<br>
><br>
> So it seems tge device is detect and bbt are correctly calculated...<br>
> Any idea of what could be the problem ?<br>
<br>
</div>Sorry, no idea. It just looks there are quite many bad blocks. Does it<br>
work under Linux?<br>
<br>
Sascha<br>
<font color="#888888"><br>
<br>
<br>
--<br>
Pengutronix e.K. | |<br>
Industrial Linux Solutions | <a href="http://www.pengutronix.de/" target="_blank">http://www.pengutronix.de/</a> |<br>
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |<br>
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |<br>
</font></blockquote></div><br><br clear="all"><br></div></div><div><div></div><div class="h5">-- <br>__________________________________<br><i><font face="'comic sans ms', sans-serif">Kamel BOUHARA</font></i><div>
7 rue Jules César<div>02100 SAINT-QUENTIN<br>
06.17.83.29.04<br><br></div></div><br>
</div></div></div><br><br clear="all"><br>-- <br>__________________________________<br><i><font face="'comic sans ms', sans-serif">Kamel BOUHARA</font></i><div>7 rue Jules César<div>02100 SAINT-QUENTIN<br>06.17.83.29.04<br>
<br></div></div><br>