nand_write_ecc
Steve Tsai
startec at ms11.hinet.net
Thu Jul 25 03:33:41 EDT 2002
I am using NAND flash as a root file system. When I and flash a new root
image to NAND flash and reboot the system. I copy a file to flash and
the system halt. I got the following message when I operate the board.
When nand_write_ecc was called, I will print out message as,
"nand_write_ecc: col=%d last=%d page=%x ecc_code=%x %x %x %x %x %x". I
think the first nand_write_ecc was called by GC and when I copy the file
nand_write_ecc was called again. But as the following message, the two
calls write to the same page 0x18FF. Why they write the same page?
Steve Tsai
/home> cd /bin
nand_write_ecc: col=0 last=512 page=18ff ecc_code=c3 33 f ff ff ff
/bin>
/bin>
/bin>
/bin> cp test test3
ARGH. About to write node to 0x0011fe90 on flash, but there's data
already there
:
0x0011fe90: 85 19 04 20 70 01 00 00 1a f5 30 d9 ff ff ff ff
nand_write_ecc: col=0 last=512 page=18ff ecc_code=ff c0 f c0 c0 ff
nand_write_ecc: Failed write verify, page 0x000018ff
<2>jffs2_flush_wbuf(): Writ
e failed with -5
nand_write_ecc: col=0 last=512 page=18ff ecc_code=ff c0 f c0 c0 ff
nand_write_ecc: Failed write verify, page 0x000018ff
<2>jffs2_flush_wbuf(): Writ
e failed with -5
Write of 2269 bytes at 0x0044400c failed. returned -5, retlen 0
Not marking the space at 0x0044400c as dirty because the flash driver
returned r
etlen zero
More information about the linux-mtd
mailing list