NAND fail testing

Thomas Gleixner tglx at linutronix.de
Thu Jan 13 12:48:03 EST 2005


On Thu, 2005-01-13 at 16:55, David A. Marlin wrote:
> Is there a simple way (using existing drivers and utilities) to "wear 
> out" one byte on a NAND type chip by repeatedly rewriting a single byte 
> (single address)?
> 
> I want to cause a single byte failure on a chip in order to perform 
> tests on erase and write error processing, but I only see how to write a 
> 'page' of data, not a single address.
> 

We have blocked the access to short writes. You can do the following:

Erase a block from userspace with flash_erase
Write a page of all 0xff except one byte to the first page using
nandwrite

Repeat until you get an error

tglx








More information about the linux-mtd mailing list