mpc8379e rdb nand flash support

??? yuyongbao at 126.com
Tue Apr 22 13:07:13 EST 2008


Dear all:
     Now I used the mpc8379erdb board and changed the nand flash from 32M to 1G .
     but when I used u-boot command for nand write ,some problem happened like:
U-Boot 1.3.0-rc2
///////////////////////////////////////////////////////////////////////////////////////////////
     Ehometech #help nand
nand info                  - show available NAND devices
nand device [dev]     - show or set current device
nand read[.jffs2]     - addr off|partition size
nand write[.jffs2]    - addr off|partition size - read/write `size' bytes starting
    at offset `off' to/from memory address `addr'
nand erase [clean] [off size] - erase `size' bytes from
    offset `off' (entire device if not specified)
nand bad - show bad blocks
nand dump[.oob] off - dump page
nand scrub - really clean NAND erasing bad blocks (UNSAFE)
nand markbad off - mark bad block at offset (UNSAFE)
nand biterr off - make a bit error at offset (UNSAFE)
nand lock [tight] [status] - bring nand to lock state or display locked pages
nand unlock [offset] [size] - unlock section

Ehometech #nand erase

NAND erase: device 0 whole chip
Erasing at 0x3ffc0000 -- 100% complete.
OK
Ehometech #nand bad

Device 0 bad blocks:
Ehometech #tftp 1000000 root-p2k-b4k.jffs2
TSEC0: No link.
Speed: 1000, full duplex
Using TSEC1 device
TFTP from server 192.168.0.200; our IP address is 192.168.0.220
Filename 'root-p2k-b4k.jffs2'.
Load address: 0x1000000
Loading: T T #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ##########################################
done
Bytes transferred = 5383652 (5225e4 hex)
Ehometech #nand write.jffs2 1000000 0 5225e4

NAND write: device 0 offset 0x0, size 0x5225e4

Writing data at 0x1a000 --   2% complete.writing NAND page at offset 0x20000 failed
Data did not fit into device, due to bad blocks
 5383652 bytes written: ERROR
Ehometech #nand device

Device 0: NAND 1GiB 3,3V 8-bit
Ehometech #

///////////////////////////////////////////////////////////////////////////////////////////////
    But the nand flash has no bad blocks when I use "nand bad"command. 
root-p2k-b4k.jffs2 is the jffs2 filesystem made by mkfs.jffs2 -e 0x40000 
 
   Thank you!Best wishes.
   
   Bob yu 
   2008-4-22
     


More information about the Linuxppc-embedded mailing list