]> www.infradead.org Git - mtd-www.git/commitdiff
UBI FAQ: document behaviour when lots of blocks go bad
authorDaniel Drake <dsd@laptop.org>
Wed, 4 Apr 2012 21:27:36 +0000 (22:27 +0100)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 13 Apr 2012 17:14:14 +0000 (20:14 +0300)
Based on an email from Artem.

Signed-off-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
faq/ubi.xml

index c9f1c5780e8331ced11cf034a88187d2348f53a8..8af461e58e1188f659ba9ddd5c4d1e9a654db2af 100644 (file)
@@ -26,6 +26,7 @@
        <li><a href="ubi.html#L_restrict">Can UBI logical eraseblocks be written randomly?</a></li>
        <li><a href="ubi.html#L_why_no_oob">Why UBI does not use OOB area of NAND flashes?</a></li>
        <li><a href="ubi.html#L_crash_safe">Is UBI tolerant of power failures?</a></li>
+       <li><a href="ubi.html#L_bad_blocks_exceeded">What happens when the PEBs reserved for bad block handling run out?</a></li>
        <li><a href="ubi.html#L_mlc">May UBI be used on MLC flash?</a></li>
        <li><a href="ubi.html#L_vid_offset_mismatch">Why does ubiattach on a freshly formatted device fail with "Invalid argument"?</a></li>
        <li><a href="ubi.html#L_subpage">What is a sub-page?</a></li>
@@ -456,6 +457,22 @@ must be an issue for UBI as well.</p>
 
 
 
+<h2><a name="L_bad_blocks_exceeded">What happens when the PEBs reserved for bad block handling run out?</a></h2>
+
+By default, 1% of the available PEBs are reserved for handling bad blocks.
+
+If the number of blocks that turn bad exceeds that allocation, an error
+will be presented and UBI will switch to read-only mode.
+
+To recover from this error you could re-flash the device. The run-time
+recovery would require deleting or shrinking one of the UBI volumes.
+
+So, you need to carefully select the amount of PEBs reserved for bad
+blocks handling. For Nokia phones like N900 (with Samsung OneNAND flash,
+256MiB in size, 128KiB PEBs) 1% was just fine.
+
+
+
 <h2><a name="L_mlc">May UBI be used on MLC flash?</a></h2>
 
 <p>Yes, it may, as long as the flash is supported by the MTD layer. UBI does