[U-Boot-Users] u-boot erase doesnt work as expected.

Ram vshrirama at gmail.com
Tue Mar 27 14:36:42 CEST 2007


Im using Micron Nand Flash MT29F1G16ABB. Im using the u-boot nand driver code
(drivers/nand). It uses large page sizes (2K)


Im able to detect the nand chip, im able to write and read.

However, When i do erase and read it back, The first 84 bytes is always
constant which ever page i read. (2nd, 4th, 6th and so on are 0x42)

I expect the erase to write 0xff to all the bytes in the flash.



Page size=>0x800
oobsize=>0x40
Erase Block Size=>0x20000

Am i missing something?.

Regards,
sriram

NAND read: device 0 offset 0, size 2048 ... 2048 bytes read: OK
STORM # md 0x80000000
80000000: 00420042 00420042 00420042 00420042    B.B.B.B.B.B.B.B.
80000010: 00420042 00420042 00420042 00420042    B.B.B.B.B.B.B.B.
80000020: 00420042 00420042 00420042 00420042    B.B.B.B.B.B.B.B.
80000030: 00420042 00420042 00420042 00420042    B.B.B.B.B.B.B.B.
80000040: 00420042 00420042 00420042 00420042    B.B.B.B.B.B.B.B.
80000050: 00420042 ffffffff ffffffff ffffffff    B.B.............
80000060: ffffffff ffffffff ffffffff ffffffff    ................
80000070: ffffffff ffffffff ffffffff ffffffff    ................
80000080: ffffffff ffffffff ffffffff ffffffff    ................
80000090: ffffffff ffffffff ffffffff ffffffff    ................
800000a0: ffffffff ffffffff ffffffff ffffffff    ................
800000b0: ffffffff ffffffff ffffffff ffffffff    ................
800000c0: ffffffff ffffffff ffffffff ffffffff    ................
800000d0: ffffffff ffffffff ffffffff ffffffff    ................
800000e0: ffffffff ffffffff ffffffff ffffffff    ................
800000f0: ffffffff ffffffff ffffffff ffffffff    ................




More information about the U-Boot mailing list