menuconfig 缺失 MTD partitioning support 解決辦法
這是最近核心的問題,mtd目錄下的Kconfig沒有對MTD進行完全的支援,需要我們自己手動修改Kconfig
![](https://img.laitimes.com/img/9ZDMuAjOiMmIsIjOiQnIsISM5QTN0UTNxEjMygDM0EDMy8CX0Vmbu4GZzNmLn9Gbi1yZtl2Lc9CX6MHc0RHaiojIsJye.jpg)
對比可知,左邊的Kconfig是正确的,右邊的Kconfig是導緻我們在menuconfig裡面看不到MTD partitioning support的原因所在。補全即可
把下面這段話補充進去就可以了~
config MTD_PARTITIONS
bool "MTD partitioning support"
help
If you have a device which needs to divide its flash chip(s) up
into multiple 'partitions', each of which appears to the user as
a separate MTD device, you require this option to be enabled. If
unsure, say 'Y'.
Note, however, that you don't need this option for the DiskOnChip
devices. Partitioning on NFTL 'devices' is a different - that's the
'normal' form of partitioning used on a block device.