June 2017
Intermediate to advanced
478 pages
13h 14m
English
The NAND simulator emulates a NAND chip using system RAM. The main use is for testing code that has to be NAND-aware without access to physical NAND memory. In particular, the ability to simulate bad blocks, bit flips, and other errors allows you to test code paths that are difficult to exercise using real flash memory. For more information, the best place to look is in the code itself, which has a comprehensive description of the ways you can configure the driver. The code is in drivers/mtd/nand/nandsim.c. Enable it with the kernel configuration CONFIG_MTD_NAND_NANDSIM.
Read now
Unlock full access