Skip to contentSkip to conversation

Add UBI stress testing section

PATCH Applied Martin Lund 2 participants 2 messages Oct 2, 2018 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add UBI stress testing section

Not many are aware of the UBI stress testing tools available in mtd-utils so lets mention them. Also, lets give a short example on how to run the tests.

---
 doc/ubi.xml | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
doc/ubi.xml +15 -0
index 299b0f1..f20e1aa 100644
@@ -49,6 +49,7 @@
 	</li>
 	<li><a href="ubi.html#L_fastmap">Fastmap</a></li>
 	<li><a href="ubi.html#L_ubiblock">R/O block devices on top of UBI volumes</a></li>
+	<li><a href="ubi.html#L_ubitest">UBI stress testing</a></li>
 	<li><a href="ubi.html#L_ubidoc">More documentation</a></li>
 </ol>
 
@@ -1349,6 +1350,20 @@ $ ubiblock --remove /dev/ubi0_0
 </pre>
 
 
+<h2><a name="L_ubitest">UBI stress testing</a></h2>
+
+<p>If enabled, mtd-utils include user-space tools that can be used to stress
+test the UBI stack. This is useful if you want to test the stability and
+correctness of your particular UBI stack implementation.</p>
+
+<p>Example, running various UBI tests:</p>
+
+<pre>
+$ flash_erase /dev/mtd3 0 0
+$ ubiattach --mtdn 3
+$ /usr/libexec/mtd-utils/runubitests.sh /dev/ubi0
+</pre>
+
 
 <h2><a name="L_ubidoc">More documentation</a></h2>
 
Signature · 1 line
2.19.0