From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pv0-f177.google.com ([74.125.83.177]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QjDLw-0004Bq-Rc for barebox@lists.infradead.org; Tue, 19 Jul 2011 16:41:05 +0000 Received: by pvg20 with SMTP id 20so4752890pvg.36 for ; Tue, 19 Jul 2011 09:40:55 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <20110718064437.GE20587@pengutronix.de> From: Kamel BOUHARA Date: Tue, 19 Jul 2011 18:40:35 +0200 Message-ID: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1167546245==" Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Fwd: Nand MTD IOError -5 To: barebox@lists.infradead.org --===============1167546245== Content-Type: multipart/alternative; boundary=bcaec51dd16f9415ef04a86ec794 --bcaec51dd16f9415ef04a86ec794 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable ---------- Forwarded message ---------- From: Kamel BOUHARA Date: 2011/7/19 Subject: Re: Nand MTD IOError -5 To: Sascha Hauer 2011/7/18 Sascha Hauer > >> On Fri, Jul 15, 2011 at 01:21:21PM +0200, Kamel BOUHARA wrote: >> > Hello, >> > >> > Im having a trouble with my Nand Flash device wich is a 512MiB Micron >> with >> > 4GB capacity. >> > I get io error -5 for any erase/write operation on it like this : >> > >> > barebox@Phytec phyCard-i.MX27:/ update -t barebox -d nand >> >> Is this really a phycard or have you just used it as a template for your >> board? > > No, it's not Im using it as a template because the fec, I've also post for it here :http://lists.infradead.org/pipermail/barebox/2011-July/003802.html Sorry, no idea. It just looks there are quite many bad blocks. Does it > work under Linux? 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... Thanks anyway ! :/ 2011/7/18 Sascha Hauer > On Fri, Jul 15, 2011 at 01:21:21PM +0200, Kamel BOUHARA wrote: > > Hello, > > > > Im having a trouble with my Nand Flash device wich is a 512MiB Micron > with > > 4GB capacity. > > I get io error -5 for any erase/write operation on it like this : > > > > barebox@Phytec phyCard-i.MX27:/ update -t barebox -d nand > > Is this really a phycard or have you just used it as a template for your > board? > > > > > phy0: Link is up - 100/Full > > host 192.168.0.2 is alive > > > erasing partition /dev/nand0.barebox.bb > > > > > erase: I/O error > > > > flashing barebox.bin to /dev/nand0.barebox.bb > > TFTP from server 192.168.0.2 ('barebox.bin' -> '/dev/nand0.barebox.bb') > > write: I/O error > > tftp failed: error -5 > > And here is the device init at the boot runtime: > > NAND device: Manufacturer ID: 0x2c, Chip ID: 0xac (Micron NAND 512MiB > 1,8V > > 8-bi) > > > > nand_read_bbt: Bad block at 0x17840000 > > > > nand_read_bbt: Bad block at 0x17860000 > > > > nand_read_bbt: Bad block at 0x1f0c0000 > > > > nand_read_bbt: Bad block at 0x1f0e0000 > > > > nand_read_bbt: Bad block at 0x1f6c0000 > > > > nand_read_bbt: Bad block at 0x1f6e0000 > > > > So it seems tge device is detect and bbt are correctly calculated... > > Any idea of what could be the problem ? > > Sorry, no idea. It just looks there are quite many bad blocks. Does it > work under Linux? > > Sascha > > > > -- > Pengutronix e.K. | = | > Industrial Linux Solutions | http://www.pengutronix.de/ = | > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 = | > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 = | > --=20 __________________________________ *Kamel BOUHARA* 7 rue Jules C=E9sar 02100 SAINT-QUENTIN 06.17.83.29.04 --=20 __________________________________ *Kamel BOUHARA* 7 rue Jules C=E9sar 02100 SAINT-QUENTIN 06.17.83.29.04 --bcaec51dd16f9415ef04a86ec794 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

---------- Forwarded message ----------<= br>From: Kamel BOUHARA = <k.bouhara@gmail.com>
Date: 2011/7/19
Subject: Re: Nand MTD IOError -5
To: Sascha Hauer <= ;s.hauer@pengutronix.de>

2011/7/18 Sascha Hauer=A0<s.hauer@pengutronix.de>
On Fri, Jul 15, 2011 at 01:21:21PM +0200, Kamel BOUHARA wrote:
>= Hello,
>
> Im having a trouble with my Nand Flash device wich = is a 512MiB Micron with
> 4GB capacity.
> I get io error -5 for= any erase/write operation on it like this :
>
> =A0barebox@Phytec phyCard-i.MX27:/ update -t barebox -d nand
Is this really a phycard or have you just used it as a template= for your
board?

No, = it's not Im using it as a template because the fec, =A0I've also po= st for it here :http://lists.infradead.org/pipermail/= barebox/2011-July/003802.html

=A0
2011/7/18 Sascha Hauer <s.hauer@pengutroni= x.de>
On Fri, Jul 15, 2011 at 01:21:21PM +0200, Kamel BOUHARA wrote:
> Hello,
>
> Im having a trouble with my Nand Flash device wich is a 512MiB Micron = with
> 4GB capacity.
> I get io error -5 for any erase/write operation on it like this :
>
> =A0barebox@Phytec phyCard-i.MX27:/ update -t barebox -d nand

Is this really a phycard or have you just used it as a template for y= our
board?

>
> phy0: Link is up - 100/Full
> host 192.168.0.2 is alive
> > erasing partition /dev/nand0.barebox.bb
> >
> erase: I/O error
>
> flashing barebox.bin to /dev/nand0.barebox.bb
> TFTP from server 192.168.0.2 ('barebox.bin' -> '/dev/nand0.barebox.bb= 9;)
> =A0 =A0 =A0 =A0 write: I/O error
> tftp failed: error -5
> And here is the device init at the boot runtime:
> NAND device: Manufacturer ID: 0x2c, Chip ID: 0xac (Micron NAND 512MiB = 1,8V
> 8-bi)
>
> nand_read_bbt: Bad block at 0x17840000
>
> nand_read_bbt: Bad block at 0x17860000
>
> nand_read_bbt: Bad block at 0x1f0c0000
>
> nand_read_bbt: Bad block at 0x1f0e0000
>
> nand_read_bbt: Bad block at 0x1f6c0000
>
> nand_read_bbt: Bad block at 0x1f6e0000
>
> So it seems tge device is detect and bbt are correctly calculated... > Any idea of what could be the problem ?

Sorry, no idea. It just looks there are quite many bad blocks. Does i= t
work under Linux?

Sascha



--
Pengutronix e.K. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 | =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 |
Industrial Linux Solutions =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 | http://www.pengutronix.de/ = =A0|
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 =A0 = =A0|
Amtsgericht Hildesheim, HRA 2686 =A0 =A0 =A0 =A0 =A0 | Fax: =A0 +49-5121-20= 6917-5555 |



<= /div>
--
__________________________________
Kamel BOUHARA 7 rue Jules C=E9sar
02100 SAINT-QUENTIN
06.17.83.29.04





--
________________________= __________
Kamel B= OUHARA
7 rue Jules C=E9sar
02100 SAINT-QUENTIN
06.17.= 83.29.04


--bcaec51dd16f9415ef04a86ec794-- --===============1167546245== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox --===============1167546245==--