Changes between Version 3 and Version 4 of Linux/Kernel/SimulateNandMtdDevice


Ignore:
Timestamp:
10/06/11 16:52:23 (7 years ago)
Author:
tj
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Linux/Kernel/SimulateNandMtdDevice

    v3 v4  
    9090There is a technique, however, that can achieve the same end result - albeit not as cleanly. It depends upon the kernel having been built with the mtdblock, nandsim and other supporting modules. A typical Ubuntu kernel will have these modules available. This example creates a 256MB NAND device using 512-byte erase-blocks, copies the contents of the '''system.img''' YAFFS partition image into it, then mounts it so the file system can be accessed like any other. 
    9191 
    92 For larger devices, the system may not have enough memory to adequately back the simulated device with RAM. Therefore it is possible to tell nandsim to use a file as the backing store. I've done that here for a 256MB device: 
     92For larger devices, the system may not have enough memory to adequately back the simulated device with RAM, therefore it is possible to tell nandsim to use a file as the backing store. I've done that here for a 256MB device: 
    9393 
    9494{{{