UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB 60:512, wri

来源:互联网 发布:mac删除windows后内存 编辑:程序博客网 时间:2024/05/21 03:54

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 657f28f8811c92724db10d18bbbec70d540147d6Date:   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.

0 0
原创粉丝点击