1

想知道我们是否可以在 Linux 上创建一个虚拟MTD设备或模拟一个MTD设备来玩UBIFS

我没有,我正在探索可以使用的选项UBIFS

4

1 回答 1

0

是的有一些。您可以在driver/mtd/devices/Kconfig中找到它们,而 MTDRAM 可能是您正在寻找的使用 vmalloc 内存进行存储备份的东西。

config MTD_SLRAM
        tristate "Uncached system RAM"
        help
          If your CPU cannot cache all of the physical memory in your machine,
          you can still use it for storage or swap by using this driver to
          present it to the system as a Memory Technology Device.

config MTD_PHRAM
        tristate "Physical system RAM"
        help
         config MTD_SLRAM
        tristate "Uncached system RAM"
        help
          If your CPU cannot cache all of the physical memory in your machine,
          you can still use it for storage or swap by using this driver to
          present it to the system as a Memory Technology Device.

config MTD_MTDRAM
    tristate "Test driver using RAM"
    help
      This enables a test MTD device driver which uses vmalloc() to
      provide storage.  You probably want to say 'N' unless you're
      testing stuff.
于 2016-01-11T16:00:46.450 回答