[#5217] reading nand on bf526 ezbrd error for bad blocks

Document created by Aaronwu Employee on Sep 25, 2013
Version 1Show Document
  • View in full screen mode

[#5217] reading nand on bf526 ezbrd error for bad blocks

Submitted By: Mingquan Pan

Open Date

2009-06-08 04:53:25     Close Date

2009-06-10 00:01:29

Priority:

Medium     Assignee:

Nobody

Category:

N/A     Fixed In Release:

2009R1

Found In Release:

2009R1     Status:

Closed

Board:

N/A     Processor:

BF526

Silicon Revision:

    Resolution:

N/A

Is the bug repeatable?:

N/A     

Summary: reading nand on bf526 ezbrd error for bad blocks

Details:

 

reading nand on bf526 ezbrd error for bad blocks on two bf526 ezbrd.

 

After copying the config from bf527 ezkit and switch the jumpers, the u-boot booted up can found nand device ,but it fails to do read and erase operations.

 

U-Boot 2008.10-svn1905 (ADI-2009R1-rc1) (Jun  8 2009 - 14:51:24)

 

CPU:   ADSP bf526-0.0 (Detected Rev: 0.0) (parallel flash boot)

Board: ADI BF526 EZ-Board board

       Support: http://blackfin.uclinux.org/

Clock: VCO: 400 MHz, Core: 400 MHz, System: 80 MHz

RAM:   64 MB

Flash:  4 MB

NAND:  256 MiB

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   6E:5F:32:77:51:5E

Hit any key to stop autoboot:  0

bfin>

bfin> nand info

 

Device 0: NAND 256MiB 1,8V 8-bit, sector size 128 KiB

 

 

bfin>

 

Device 0: NAND 256MiB 1,8V 8-bit, sector size 128 KiB

bfin> nand read 0x20000 0x300 0x1000

....

 

Skipping bad block 0x0ff80000

Skipping bad block 0x0ffa0000

Skipping bad block 0x0ffc0000

Skipping bad block 0x0ffe0000

NAND read from offset 10000000 failed -22

0 bytes read: ERROR

 

Does the chip block really go wrong?

 

Follow-ups

 

--- Mike Frysinger                                           2009-06-08 04:57:06

it is very unlikely that you have a NAND device that does not have a couple of

bad blocks.  use `nand bad` to see whether it is a problem in the driver.

 

--- Mingquan Pan                                             2009-06-08 23:08:51

using 'nand bad', it flashes a long list of bad blocks, and it looks all the

blocks are bad.

 

The head of this list is out of buffer.

....

07ca0000

  07cc0000

  07ce0000

  07d00000

  07d20000

  07d40000

  07d60000

  07d80000

  07da0000

  07dc0000

  07de0000

  07e00000

  07e20000

  07e40000

  07e60000

  07e80000

  07ea0000

  07ec0000

  07ee0000

  07f00000

  07f20000

  07f40000

  07f60000

  07f80000

  07fa0000

  07fc0000

  07fe0000

  08000000

  08020000

  08040000

  08060000

  08080000

  080a0000

  080c0000

  080e0000

  08100000

  08120000

  08140000

  08160000

  08180000

  081a0000

  081c0000

  081e0000

  08200000

  08220000

  08240000

  08260000

  08280000

  082a0000

  082c0000

  082e0000

  08300000

  08320000

  08340000

  08360000

  08380000

  083a0000

  083c0000

  083e0000

  08400000

  08420000

  08440000

  08460000

  08480000

  084a0000

  084c0000

  084e0000

  08500000

  08520000

  08540000

  08560000

  08580000

  085a0000

  085c0000

  085e0000

  08600000

  08620000

  08640000

  08660000

  08680000

  086a0000

  086c0000

  086e0000

  08700000

  08720000

  08740000

  08760000

  08780000

  087a0000

  087c0000

  087e0000

  08800000

  08820000

  08840000

  08860000

  08880000

  088a0000

  088c0000

  088e0000

  08900000

  08920000

  08940000

  08960000

  08980000

  089a0000

  089c0000

  089e0000

  08a00000

  08a20000

  08a40000

  08a60000

  08a80000

  08aa0000

  08ac0000

  08ae0000

  08b00000

  08b20000

  08b40000

  08b60000

  08b80000

  08ba0000

  08bc0000

  08be0000

  08c00000

  08c20000

  08c40000

  08c60000

  08c80000

  08ca0000

  08cc0000

  08ce0000

  08d00000

  08d20000

  08d40000

  08d60000

  08d80000

  08da0000

  08dc0000

  08de0000

  08e00000

  08e20000

  08e40000

  08e60000

  08e80000

  08ea0000

  08ec0000

  08ee0000

  08f00000

  08f20000

  08f40000

  08f60000

  08f80000

  08fa0000

  08fc0000

  08fe0000

  09000000

  09020000

  09040000

  09060000

  09080000

  090a0000

  090c0000

  090e0000

  09100000

  09120000

  09140000

  09160000

  09180000

  091a0000

  091c0000

  091e0000

  09200000

  09220000

  09240000

  09260000

  09280000

  092a0000

  092c0000

  092e0000

  09300000

  09320000

  09340000

  09360000

  09380000

  093a0000

  093c0000

  093e0000

  09400000

  09420000

  09440000

  09460000

  09480000

  094a0000

  094c0000

  094e0000

  09500000

  09520000

  09540000

  09560000

  09580000

  095a0000

  095c0000

  095e0000

  09600000

  09620000

  09640000

  09660000

  09680000

  096a0000

  096c0000

  096e0000

  09700000

  09720000

  09740000

  09760000

  09780000

  097a0000

  097c0000

  097e0000

  09800000

  09820000

  09840000

  09860000

  09880000

  098a0000

  098c0000

  098e0000

  09900000

  09920000

  09940000

  09960000

  09980000

  099a0000

  099c0000

  099e0000

  09a00000

  09a20000

  09a40000

  09a60000

  09a80000

  09aa0000

  09ac0000

  09ae0000

  09b00000

  09b20000

  09b40000

  09b60000

  09b80000

  09ba0000

  09bc0000

  09be0000

  09c00000

  09c20000

  09c40000

  09c60000

  09c80000

  09ca0000

  09cc0000

  09ce0000

  09d00000

  09d20000

  09d40000

  09d60000

  09d80000

  09da0000

  09dc0000

  09de0000

  09e00000

  09e20000

  09e40000

  09e60000

  09e80000

  09ea0000

  09ec0000

  09ee0000

  09f00000

  09f20000

  09f40000

  09f60000

  09f80000

  09fa0000

  09fc0000

  09fe0000

  0a000000

  0a020000

  0a040000

  0a060000

  0a080000

  0a0a0000

  0a0c0000

  0a0e0000

  0a100000

  0a120000

  0a140000

  0a160000

  0a180000                                                                    

                                                                          

...

0fe40000

  0fe60000

  0fe80000

  0fea0000

  0fec0000

  0fee0000

  0ff00000

  0ff20000

  0ff40000

  0ff60000

  0ff80000

  0ffa0000

  0ffc0000

  0ffe0000

 

The same with other bf526 ezbrd.

 

--- Mike Frysinger                                           2009-06-09 02:34:11

use `nand dump 0` then.  it's possible the NAND flash is programmed already with

something from VDSP which means a different OOB format which means u-boot not

built with the Blackfin Bootrom OOB option will detect all blocks as bad.

 

if it is that problem, you'll have to use `nand scrub` to reset things.

 

--- Mingquan Pan                                             2009-06-10 00:01:29

It is ok now after tring this. Thanks. Close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes