public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users]  NAND: bad block in whole chip
@ 2008-08-12 17:28 Alemao
  2008-08-12 17:30 ` [U-Boot] " Alemao
  0 siblings, 1 reply; 8+ messages in thread
From: Alemao @ 2008-08-12 17:28 UTC (permalink / raw)
  To: u-boot

Hi all,

Im trying to use my NAND flash at MPC8360E-RDK based board.
But it seems that the whole chip is bad blocked.
Dont know if Im missing something... below some outputs:

=> nand info

Device 0: NAND 64MiB 3,3V 8-bit, sector size 16 KiB

=> nand bad
  00000000
  00004000
     .
     .
     .
  03ff4000
  03ff8000
  03ffc000
=> nand erase clean

NAND erase: device 0 whole chip
Skipping bad block at  0x00000000
Skipping bad block at  0x00004000
             .
             .
             .
Skipping bad block at  0x03ff8000
Skipping bad block at  0x03ffc000

OK
=>

I read that any block that contains bytes != 0xff in the OOB is
marked as "factory bad" block.

At nand_block_bad() function (drivers/nand/nand_base.c) I saw the
implementation of the statment above.

---
this->cmdfunc (mtd, NAND_CMD_READOOB, this->badblockpos, page);
		
if (this->read_byte(mtd) != 0xff) res = 1;
---


So I did some dumps in NAND:


=> nand dump 0x00004000
Page 0x00004000 dump:
             .
             .
             .
OOB:
        00 00 00 00 00 00 00 00
        00 00 00 00 00 00 00 00

=> nand dump 0x03ff8000
Page 03ff8000 dump:
             .
             .
             .
OOB:
        81 81 81 01 81 81 81 81
        81 81 81 81 81 81 81 81


All dumps had OOB != 0xff

I also tried to write only 1 byte... no success:

=> tftpboot 0x02000000 kernel_blob.img
=> nand write.jffs2 0x02000000 0x0 0x1
   .
   .
   .
Bad block at 0x2010000 in erase block from 0x2010000 will be skipped
writing NAND page at offset 0x2014000 failed
Data did not fit into device, due to bad blocks
 1 bytes written: ERROR
=>


Any help/suggestions welcome.


Im using U-Boot-1.1.4 with NAND and FSL_UPM drivers from U-Boot-1.3.3

Cheers,

--
Alemao

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [U-Boot] NAND: bad block in whole chip
@ 2008-08-13 14:34 Darrik Spaude
  0 siblings, 0 replies; 8+ messages in thread
From: Darrik Spaude @ 2008-08-13 14:34 UTC (permalink / raw)
  To: u-boot

When I had discovered that my NAND flash had all bad blocks, I found a
patch to dump the NAND blocks (which I think you had said you did). What
I found in my case was that on one board 8 data lines were disconnected
and on another one of the 0 ohm resistors was faulty (so one bit was
always read as 0).

Might you have a hardware problem with your NAND? Who is the
manufacturer of the NAND chip, what is its part number, and does u-boot
have that part and its ID listed as a supported device?

Darrik

------------

Now i got all NAND stuffs from u-boot-1.3.4, including common/cmd_nand.c
and drivers/mtd/nand/*, but still the same problem.

Other components of u-boot can influence NAND behavior?

I saw some people with similar problem using "nand scrub", but im little
bit afraid with this command...

Another thing i notice: when reseting the board without turning off
power, NAND is not found.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-08-27 14:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-12 17:28 [U-Boot-Users] NAND: bad block in whole chip Alemao
2008-08-12 17:30 ` [U-Boot] " Alemao
2008-08-12 17:57   ` Scott Wood
2008-08-13 14:10     ` Alemao
2008-08-13 14:44       ` Stefan Roese
2008-08-14 17:22         ` Alemao
2008-08-27 14:52           ` Alemao
  -- strict thread matches above, loose matches on Subject: below --
2008-08-13 14:34 Darrik Spaude

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox