mtd emulation --> NAND?

Artem B. Bityuckiy dedekind at infradead.org
Mon May 2 04:55:24 EDT 2005


В Пнд, 02/05/2005 в 07:51 +1200, Charles Manning пишет:
> I use a "high level"  mtd NAND emulation that I wrote for YAFFS testing. This 
> just provides the NAND mtd functions and uses none of the mtd.
> 
> I'm hoping there's a NAND emulation that emulates NAND at a very low level by 
> accepting ALE/CLE and byte read/writes. This would provide, say, emulation of 
> a 256Mbyte NAND part while exercising the whole of nand.c etc. This allows 
> complete testing of file system + mtd code without having any hardware on 
> hand.
> 
You might take a look at drivers/mtd/nand/nandsim.c

It emulates NAND in RAM but I think it will be problematic to allocate
256 MiB of memory. But you may think of some trick... Nonetheless, I
used it to emulate 64MiB flashes and it works fine and even may emulate
some delays. I also may perform logging of NAND operations.

Cheers,
Artem.

-- 
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.





More information about the linux-mtd mailing list