【问题标题】:Is there a way to create virtual Linux MTD device, sort of simulate one for experiments有没有办法创建虚拟 Linux MTD 设备,有点模拟实验
【发布时间】:2016-01-11 07:50:38
【问题描述】:

想知道我们是否可以创建一个虚拟的MTD 设备,或者在Linux 上模拟一个MTD 设备来使用UBIFS。

我没有,我正在探索与UBIFS 一起玩的选项。

【问题讨论】:

  • 可能不会,因为 UBI 几乎要求使用 MTD 设备。 OTOH,SPI闪存芯片不难找到。或者在最坏的情况下使用 MTDRAM、PHRAM 或 BLOCK2MTD 驱动程序。

标签: linux linux-kernel flash-memory ubifs


【解决方案1】:

是的,有一些。您可以在 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.

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-04-18
    • 2015-06-01
    • 2017-04-03
    • 2020-10-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多