Kconfig 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. menuconfig MTD
  2. tristate "Memory Technology Device (MTD) support"
  3. help
  4. Memory Technology Devices are flash, RAM and similar chips, often
  5. used for solid state file systems on embedded devices. This option
  6. will provide the generic support for MTD drivers to register
  7. themselves with the kernel and for potential users of MTD devices
  8. to enumerate the devices which are present and obtain a handle on
  9. them. It will also allow you to select individual drivers for
  10. particular hardware and users of MTD devices. If unsure, say N.
  11. if MTD
  12. config MTD_TESTS
  13. tristate "MTD tests support (DANGEROUS)"
  14. depends on m
  15. help
  16. This option includes various MTD tests into compilation. The tests
  17. should normally be compiled as kernel modules. The modules perform
  18. various checks and verifications when loaded.
  19. WARNING: some of the tests will ERASE entire MTD device which they
  20. test. Do not use these tests unless you really know what you do.
  21. config MTD_REDBOOT_PARTS
  22. tristate "RedBoot partition table parsing"
  23. help
  24. RedBoot is a ROM monitor and bootloader which deals with multiple
  25. 'images' in flash devices by putting a table one of the erase
  26. blocks on the device, similar to a partition table, which gives
  27. the offsets, lengths and names of all the images stored in the
  28. flash.
  29. If you need code which can detect and parse this table, and register
  30. MTD 'partitions' corresponding to each image in the table, enable
  31. this option.
  32. You will still need the parsing functions to be called by the driver
  33. for your particular device. It won't happen automatically. The
  34. SA1100 map driver (CONFIG_MTD_SA1100) has an option for this, for
  35. example.
  36. if MTD_REDBOOT_PARTS
  37. config MTD_REDBOOT_DIRECTORY_BLOCK
  38. int "Location of RedBoot partition table"
  39. default "-1"
  40. help
  41. This option is the Linux counterpart to the
  42. CYGNUM_REDBOOT_FIS_DIRECTORY_BLOCK RedBoot compile time
  43. option.
  44. The option specifies which Flash sectors holds the RedBoot
  45. partition table. A zero or positive value gives an absolute
  46. erase block number. A negative value specifies a number of
  47. sectors before the end of the device.
  48. For example "2" means block number 2, "-1" means the last
  49. block and "-2" means the penultimate block.
  50. config MTD_REDBOOT_PARTS_UNALLOCATED
  51. bool "Include unallocated flash regions"
  52. help
  53. If you need to register each unallocated flash region as a MTD
  54. 'partition', enable this option.
  55. config MTD_REDBOOT_PARTS_READONLY
  56. bool "Force read-only for RedBoot system images"
  57. help
  58. If you need to force read-only for 'RedBoot', 'RedBoot Config' and
  59. 'FIS directory' images, enable this option.
  60. endif # MTD_REDBOOT_PARTS
  61. config MTD_CMDLINE_PARTS
  62. tristate "Command line partition table parsing"
  63. depends on MTD
  64. help
  65. Allow generic configuration of the MTD partition tables via the kernel
  66. command line. Multiple flash resources are supported for hardware where
  67. different kinds of flash memory are available.
  68. You will still need the parsing functions to be called by the driver
  69. for your particular device. It won't happen automatically. The
  70. SA1100 map driver (CONFIG_MTD_SA1100) has an option for this, for
  71. example.
  72. The format for the command line is as follows:
  73. mtdparts=<mtddef>[;<mtddef]
  74. <mtddef> := <mtd-id>:<partdef>[,<partdef>]
  75. <partdef> := <size>[@offset][<name>][ro]
  76. <mtd-id> := unique id used in mapping driver/device
  77. <size> := standard linux memsize OR "-" to denote all
  78. remaining space
  79. <name> := (NAME)
  80. Due to the way Linux handles the command line, no spaces are
  81. allowed in the partition definition, including mtd id's and partition
  82. names.
  83. Examples:
  84. 1 flash resource (mtd-id "sa1100"), with 1 single writable partition:
  85. mtdparts=sa1100:-
  86. Same flash, but 2 named partitions, the first one being read-only:
  87. mtdparts=sa1100:256k(ARMboot)ro,-(root)
  88. If unsure, say 'N'.
  89. config MTD_AFS_PARTS
  90. tristate "ARM Firmware Suite partition parsing"
  91. depends on (ARM || ARM64)
  92. help
  93. The ARM Firmware Suite allows the user to divide flash devices into
  94. multiple 'images'. Each such image has a header containing its name
  95. and offset/size etc.
  96. If you need code which can detect and parse these tables, and
  97. register MTD 'partitions' corresponding to each image detected,
  98. enable this option.
  99. You will still need the parsing functions to be called by the driver
  100. for your particular device. It won't happen automatically. The
  101. 'physmap' map driver (CONFIG_MTD_PHYSMAP) does this, for example.
  102. config MTD_OF_PARTS
  103. tristate "OpenFirmware partitioning information support"
  104. default y
  105. depends on OF
  106. help
  107. This provides a partition parsing function which derives
  108. the partition map from the children of the flash node,
  109. as described in Documentation/devicetree/bindings/mtd/partition.txt.
  110. config MTD_AR7_PARTS
  111. tristate "TI AR7 partitioning support"
  112. help
  113. TI AR7 partitioning support
  114. config MTD_BCM63XX_PARTS
  115. tristate "BCM63XX CFE partitioning support"
  116. depends on BCM63XX || BMIPS_GENERIC || COMPILE_TEST
  117. select CRC32
  118. help
  119. This provides partions parsing for BCM63xx devices with CFE
  120. bootloaders.
  121. config MTD_BCM47XX_PARTS
  122. tristate "BCM47XX partitioning support"
  123. depends on BCM47XX || ARCH_BCM_5301X
  124. help
  125. This provides partitions parser for devices based on BCM47xx
  126. boards.
  127. menu "Partition parsers"
  128. source "drivers/mtd/parsers/Kconfig"
  129. endmenu
  130. comment "User Modules And Translation Layers"
  131. #
  132. # MTD block device support is select'ed if needed
  133. #
  134. config MTD_BLKDEVS
  135. tristate
  136. config MTD_BLOCK
  137. tristate "Caching block device access to MTD devices"
  138. depends on BLOCK
  139. select MTD_BLKDEVS
  140. help
  141. Although most flash chips have an erase size too large to be useful
  142. as block devices, it is possible to use MTD devices which are based
  143. on RAM chips in this manner. This block device is a user of MTD
  144. devices performing that function.
  145. At the moment, it is also required for the Journalling Flash File
  146. System(s) to obtain a handle on the MTD device when it's mounted
  147. (although JFFS and JFFS2 don't actually use any of the functionality
  148. of the mtdblock device).
  149. Later, it may be extended to perform read/erase/modify/write cycles
  150. on flash chips to emulate a smaller block size. Needless to say,
  151. this is very unsafe, but could be useful for file systems which are
  152. almost never written to.
  153. You do not need this option for use with the DiskOnChip devices. For
  154. those, enable NFTL support (CONFIG_NFTL) instead.
  155. config MTD_BLOCK_RO
  156. tristate "Readonly block device access to MTD devices"
  157. depends on MTD_BLOCK!=y && BLOCK
  158. select MTD_BLKDEVS
  159. help
  160. This allows you to mount read-only file systems (such as cramfs)
  161. from an MTD device, without the overhead (and danger) of the caching
  162. driver.
  163. You do not need this option for use with the DiskOnChip devices. For
  164. those, enable NFTL support (CONFIG_NFTL) instead.
  165. config FTL
  166. tristate "FTL (Flash Translation Layer) support"
  167. depends on BLOCK
  168. select MTD_BLKDEVS
  169. help
  170. This provides support for the original Flash Translation Layer which
  171. is part of the PCMCIA specification. It uses a kind of pseudo-
  172. file system on a flash device to emulate a block device with
  173. 512-byte sectors, on top of which you put a 'normal' file system.
  174. You may find that the algorithms used in this code are patented
  175. unless you live in the Free World where software patents aren't
  176. legal - in the USA you are only permitted to use this on PCMCIA
  177. hardware, although under the terms of the GPL you're obviously
  178. permitted to copy, modify and distribute the code as you wish. Just
  179. not use it.
  180. config NFTL
  181. tristate "NFTL (NAND Flash Translation Layer) support"
  182. depends on BLOCK
  183. select MTD_BLKDEVS
  184. help
  185. This provides support for the NAND Flash Translation Layer which is
  186. used on M-Systems' DiskOnChip devices. It uses a kind of pseudo-
  187. file system on a flash device to emulate a block device with
  188. 512-byte sectors, on top of which you put a 'normal' file system.
  189. You may find that the algorithms used in this code are patented
  190. unless you live in the Free World where software patents aren't
  191. legal - in the USA you are only permitted to use this on DiskOnChip
  192. hardware, although under the terms of the GPL you're obviously
  193. permitted to copy, modify and distribute the code as you wish. Just
  194. not use it.
  195. config NFTL_RW
  196. bool "Write support for NFTL"
  197. depends on NFTL
  198. help
  199. Support for writing to the NAND Flash Translation Layer, as used
  200. on the DiskOnChip.
  201. config INFTL
  202. tristate "INFTL (Inverse NAND Flash Translation Layer) support"
  203. depends on BLOCK
  204. select MTD_BLKDEVS
  205. help
  206. This provides support for the Inverse NAND Flash Translation
  207. Layer which is used on M-Systems' newer DiskOnChip devices. It
  208. uses a kind of pseudo-file system on a flash device to emulate
  209. a block device with 512-byte sectors, on top of which you put
  210. a 'normal' file system.
  211. You may find that the algorithms used in this code are patented
  212. unless you live in the Free World where software patents aren't
  213. legal - in the USA you are only permitted to use this on DiskOnChip
  214. hardware, although under the terms of the GPL you're obviously
  215. permitted to copy, modify and distribute the code as you wish. Just
  216. not use it.
  217. config RFD_FTL
  218. tristate "Resident Flash Disk (Flash Translation Layer) support"
  219. depends on BLOCK
  220. select MTD_BLKDEVS
  221. help
  222. This provides support for the flash translation layer known
  223. as the Resident Flash Disk (RFD), as used by the Embedded BIOS
  224. of General Software. There is a blurb at:
  225. http://www.gensw.com/pages/prod/bios/rfd.htm
  226. config SSFDC
  227. tristate "NAND SSFDC (SmartMedia) read only translation layer"
  228. depends on BLOCK
  229. select MTD_BLKDEVS
  230. help
  231. This enables read only access to SmartMedia formatted NAND
  232. flash. You can mount it with FAT file system.
  233. config SM_FTL
  234. tristate "SmartMedia/xD new translation layer"
  235. depends on BLOCK
  236. select MTD_BLKDEVS
  237. select MTD_NAND_ECC
  238. help
  239. This enables EXPERIMENTAL R/W support for SmartMedia/xD
  240. FTL (Flash translation layer).
  241. Write support is only lightly tested, therefore this driver
  242. isn't recommended to use with valuable data (anyway if you have
  243. valuable data, do backups regardless of software/hardware you
  244. use, because you never know what will eat your data...)
  245. If you only need R/O access, you can use older R/O driver
  246. (CONFIG_SSFDC)
  247. config MTD_OOPS
  248. tristate "Log panic/oops to an MTD buffer"
  249. help
  250. This enables panic and oops messages to be logged to a circular
  251. buffer in a flash partition where it can be read back at some
  252. later point.
  253. config MTD_SWAP
  254. tristate "Swap on MTD device support"
  255. depends on MTD && SWAP
  256. select MTD_BLKDEVS
  257. help
  258. Provides volatile block device driver on top of mtd partition
  259. suitable for swapping. The mapping of written blocks is not saved.
  260. The driver provides wear leveling by storing erase counter into the
  261. OOB.
  262. config MTD_PARTITIONED_MASTER
  263. bool "Retain master device when partitioned"
  264. default n
  265. depends on MTD
  266. help
  267. For historical reasons, by default, either a master is present or
  268. several partitions are present, but not both. The concern was that
  269. data listed in multiple partitions was dangerous; however, SCSI does
  270. this and it is frequently useful for applications. This config option
  271. leaves the master in even if the device is partitioned. It also makes
  272. the parent of the partition device be the master device, rather than
  273. what lies behind the master.
  274. source "drivers/mtd/chips/Kconfig"
  275. source "drivers/mtd/maps/Kconfig"
  276. source "drivers/mtd/devices/Kconfig"
  277. source "drivers/mtd/nand/Kconfig"
  278. source "drivers/mtd/lpddr/Kconfig"
  279. source "drivers/mtd/spi-nor/Kconfig"
  280. source "drivers/mtd/ubi/Kconfig"
  281. endif # MTD