UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB 60:512, wri
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 did 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 seemed to be affected by this bug. In Linux 3.7,CONFIG_MTD_NAND_VERIFY_WRITE
was removed:
commit 657f28f8811c92724db10d18bbbec70d540147d6 Date: Tue Aug 14 22:38:45 2012 -0400 mtd: kill MTD_NAND_VERIFY_WRITE "Both UBI and JFFS2 are able to read verify what they wrote already. There are also MTD tests which do this verification. So I think there is no reason to keep this in the NAND layer, let alone wasting RAM in the driver to support this feature. Besides, it does not work for sub-pages and many drivers have it broken. It hurts more than it provides benefits." So kill MTD_NAND_VERIFY_WRITE entirely.