UBI: infinite error loop
Quoted 6 lines · [email protected] wrote:
Quoted 2 lines · Patrick
When I am doing an the ubiattach -p
/dev/mtd4command I have the following infinite error loop:[ ... ]
Look like it doesn't handle subpage reading :
you have ecc error when reading 512 bytes at offset 512.
Also, keep in mind read-after-write checks don't work with subpages,
http://www.linux-mtd.infradead.org/faq/ubi.html#L_subpage_verify_fail
─────────────────────────────────────────────────────────── I get "ubi_io_write: error -5 while writing 512 bytes to PEB 5:512"
If you have a 2048 bytes per NAND page device, and have CONFIG_MTD_NAND_VERIFY_WRITE enabled in your kernel, you will need to turn it off. The code does not currently (as of 2.6.26) perform verification of sub-page writes correctly. As UBI is one of the few users of sub-page writes, not much else seems to be affected by this bug. ───────────────────────────────────────────────────────────
YES, I realize that is not your error, but this was something that badly tripped us up until an intense search-engine session .... ;-\ (I have no idea if this has since been fixed or not?)
cheers!
-blf-
Signature · 3 lines
Brian Foster Principal MTS, Software | La Ciotat, France Maxim Integrated Products | Web: http://www.maxim-ic.com/
Quoted 13 lines · Brian Foster
Also, keep in mind read-after-write checks don't work with subpages,
http://www.linux-mtd.infradead.org/faq/ubi.html#L_subpage_verify_fail
─────────────────────────────────────────────────────────── I get "ubi_io_write: error -5 while writing 512 bytes to PEB 5:512"If you have a 2048 bytes per NAND page device, and have
CONFIG_MTD_NAND_VERIFY_WRITEenabled in your kernel, you will need to turn it off. The code does not currently (as of 2.6.26) perform verification of sub-page writes correctly. As UBI is one of the few users of sub-page writes, not much else seems to be affected by this bug. ───────────────────────────────────────────────────────────
Quoted 4 lines
YES, I realize that is not your error, but this was something that badly tripped us up until an intense search-engine session .... ;-\ (I have no idea if this has since been fixed or not?)
Well, no one cares enough to investigate this and fix the issue. I think this article should be removed - may be this will inspire someone to send a fix...
Signature · 2 lines
Best Regards, Artem Bityutskiy