nand_write_ecc
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 /binnand_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 ffnand_write_ecc: col=0 last=512 page=18ff ecc_code=ff c0 f c0 c0 ffnand_write_ecc: Failed write verify, page 0x000018ff <2>jffs2_flush_wbuf(): Writ
e failed with -5nand_write_ecc: col=0 last=512 page=18ff ecc_code=ff c0 f c0 c0 ffnand_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
Quoted 9 lines · [email protected] said:
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_eccwas 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 firstnand_write_eccwas called by GC and when I copy the filenand_write_eccwas called again. But as the following message, the two calls write to the same page0x18FF. Why they write the same page?
Does this still happen with the latest code in CVS?
--
dwmw2