天天看點

menuconfig 缺失 MTD partitioning support 解決辦法menuconfig 缺失 MTD partitioning support  解決辦法

menuconfig 缺失 MTD partitioning support  解決辦法

               這是最近核心的問題,mtd目錄下的Kconfig沒有對MTD進行完全的支援,需要我們自己手動修改Kconfig

menuconfig 缺失 MTD partitioning support 解決辦法menuconfig 缺失 MTD partitioning support  解決辦法

對比可知,左邊的Kconfig是正确的,右邊的Kconfig是導緻我們在menuconfig裡面看不到MTD partitioning support的原因所在。補全即可

menuconfig 缺失 MTD partitioning support 解決辦法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.
           
menuconfig 缺失 MTD partitioning support 解決辦法menuconfig 缺失 MTD partitioning support  解決辦法

繼續閱讀