Kconfig 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. menuconfig MTD
  2. tristate "Memory Technology Device (MTD) support"
  3. depends on HAS_IOMEM
  4. help
  5. Memory Technology Devices are flash, RAM and similar chips, often
  6. used for solid state file systems on embedded devices. This option
  7. will provide the generic support for MTD drivers to register
  8. themselves with the kernel and for potential users of MTD devices
  9. to enumerate the devices which are present and obtain a handle on
  10. them. It will also allow you to select individual drivers for
  11. particular hardware and users of MTD devices. If unsure, say N.
  12. if MTD
  13. config MTD_DEBUG
  14. bool "Debugging"
  15. help
  16. This turns on low-level debugging for the entire MTD sub-system.
  17. Normally, you should say 'N'.
  18. config MTD_DEBUG_VERBOSE
  19. int "Debugging verbosity (0 = quiet, 3 = noisy)"
  20. depends on MTD_DEBUG
  21. default "0"
  22. help
  23. Determines the verbosity level of the MTD debugging messages.
  24. config MTD_CONCAT
  25. tristate "MTD concatenating support"
  26. help
  27. Support for concatenating several MTD devices into a single
  28. (virtual) one. This allows you to have -for example- a JFFS(2)
  29. file system spanning multiple physical flash chips. If unsure,
  30. say 'Y'.
  31. config MTD_PARTITIONS
  32. bool "MTD partitioning support"
  33. help
  34. If you have a device which needs to divide its flash chip(s) up
  35. into multiple 'partitions', each of which appears to the user as
  36. a separate MTD device, you require this option to be enabled. If
  37. unsure, say 'Y'.
  38. Note, however, that you don't need this option for the DiskOnChip
  39. devices. Partitioning on NFTL 'devices' is a different - that's the
  40. 'normal' form of partitioning used on a block device.
  41. config MTD_REDBOOT_PARTS
  42. tristate "RedBoot partition table parsing"
  43. depends on MTD_PARTITIONS
  44. ---help---
  45. RedBoot is a ROM monitor and bootloader which deals with multiple
  46. 'images' in flash devices by putting a table one of the erase
  47. blocks on the device, similar to a partition table, which gives
  48. the offsets, lengths and names of all the images stored in the
  49. flash.
  50. If you need code which can detect and parse this table, and register
  51. MTD 'partitions' corresponding to each image in the table, enable
  52. this option.
  53. You will still need the parsing functions to be called by the driver
  54. for your particular device. It won't happen automatically. The
  55. SA1100 map driver (CONFIG_MTD_SA1100) has an option for this, for
  56. example.
  57. config MTD_REDBOOT_DIRECTORY_BLOCK
  58. int "Location of RedBoot partition table"
  59. depends on MTD_REDBOOT_PARTS
  60. default "-1"
  61. ---help---
  62. This option is the Linux counterpart to the
  63. CYGNUM_REDBOOT_FIS_DIRECTORY_BLOCK RedBoot compile time
  64. option.
  65. The option specifies which Flash sectors holds the RedBoot
  66. partition table. A zero or positive value gives an absolute
  67. erase block number. A negative value specifies a number of
  68. sectors before the end of the device.
  69. For example "2" means block number 2, "-1" means the last
  70. block and "-2" means the penultimate block.
  71. config MTD_REDBOOT_PARTS_UNALLOCATED
  72. bool "Include unallocated flash regions"
  73. depends on MTD_REDBOOT_PARTS
  74. help
  75. If you need to register each unallocated flash region as a MTD
  76. 'partition', enable this option.
  77. config MTD_REDBOOT_PARTS_READONLY
  78. bool "Force read-only for RedBoot system images"
  79. depends on MTD_REDBOOT_PARTS
  80. help
  81. If you need to force read-only for 'RedBoot', 'RedBoot Config' and
  82. 'FIS directory' images, enable this option.
  83. config MTD_CMDLINE_PARTS
  84. bool "Command line partition table parsing"
  85. depends on MTD_PARTITIONS = "y" && MTD = "y"
  86. ---help---
  87. Allow generic configuration of the MTD partition tables via the kernel
  88. command line. Multiple flash resources are supported for hardware where
  89. different kinds of flash memory are available.
  90. You will still need the parsing functions to be called by the driver
  91. for your particular device. It won't happen automatically. The
  92. SA1100 map driver (CONFIG_MTD_SA1100) has an option for this, for
  93. example.
  94. The format for the command line is as follows:
  95. mtdparts=<mtddef>[;<mtddef]
  96. <mtddef> := <mtd-id>:<partdef>[,<partdef>]
  97. <partdef> := <size>[@offset][<name>][ro]
  98. <mtd-id> := unique id used in mapping driver/device
  99. <size> := standard linux memsize OR "-" to denote all
  100. remaining space
  101. <name> := (NAME)
  102. Due to the way Linux handles the command line, no spaces are
  103. allowed in the partition definition, including mtd id's and partition
  104. names.
  105. Examples:
  106. 1 flash resource (mtd-id "sa1100"), with 1 single writable partition:
  107. mtdparts=sa1100:-
  108. Same flash, but 2 named partitions, the first one being read-only:
  109. mtdparts=sa1100:256k(ARMboot)ro,-(root)
  110. If unsure, say 'N'.
  111. config MTD_AFS_PARTS
  112. tristate "ARM Firmware Suite partition parsing"
  113. depends on ARM && MTD_PARTITIONS
  114. ---help---
  115. The ARM Firmware Suite allows the user to divide flash devices into
  116. multiple 'images'. Each such image has a header containing its name
  117. and offset/size etc.
  118. If you need code which can detect and parse these tables, and
  119. register MTD 'partitions' corresponding to each image detected,
  120. enable this option.
  121. You will still need the parsing functions to be called by the driver
  122. for your particular device. It won't happen automatically. The
  123. 'armflash' map driver (CONFIG_MTD_ARMFLASH) does this, for example.
  124. config MTD_OF_PARTS
  125. tristate "Flash partition map based on OF description"
  126. depends on PPC_OF && MTD_PARTITIONS
  127. help
  128. This provides a partition parsing function which derives
  129. the partition map from the children of the flash node,
  130. as described in Documentation/powerpc/booting-without-of.txt.
  131. config MTD_AR7_PARTS
  132. tristate "TI AR7 partitioning support"
  133. depends on MTD_PARTITIONS
  134. ---help---
  135. TI AR7 partitioning support
  136. comment "User Modules And Translation Layers"
  137. config MTD_CHAR
  138. tristate "Direct char device access to MTD devices"
  139. help
  140. This provides a character device for each MTD device present in
  141. the system, allowing the user to read and write directly to the
  142. memory chips, and also use ioctl() to obtain information about
  143. the device, or to erase parts of it.
  144. config HAVE_MTD_OTP
  145. bool
  146. help
  147. Enable access to OTP regions using MTD_CHAR.
  148. config MTD_BLKDEVS
  149. tristate "Common interface to block layer for MTD 'translation layers'"
  150. depends on BLOCK
  151. default n
  152. config MTD_BLOCK
  153. tristate "Caching block device access to MTD devices"
  154. depends on BLOCK
  155. select MTD_BLKDEVS
  156. ---help---
  157. Although most flash chips have an erase size too large to be useful
  158. as block devices, it is possible to use MTD devices which are based
  159. on RAM chips in this manner. This block device is a user of MTD
  160. devices performing that function.
  161. At the moment, it is also required for the Journalling Flash File
  162. System(s) to obtain a handle on the MTD device when it's mounted
  163. (although JFFS and JFFS2 don't actually use any of the functionality
  164. of the mtdblock device).
  165. Later, it may be extended to perform read/erase/modify/write cycles
  166. on flash chips to emulate a smaller block size. Needless to say,
  167. this is very unsafe, but could be useful for file systems which are
  168. almost never written to.
  169. You do not need this option for use with the DiskOnChip devices. For
  170. those, enable NFTL support (CONFIG_NFTL) instead.
  171. config MTD_BLOCK_RO
  172. tristate "Readonly block device access to MTD devices"
  173. depends on MTD_BLOCK!=y && BLOCK
  174. select MTD_BLKDEVS
  175. help
  176. This allows you to mount read-only file systems (such as cramfs)
  177. from an MTD device, without the overhead (and danger) of the caching
  178. driver.
  179. You do not need this option for use with the DiskOnChip devices. For
  180. those, enable NFTL support (CONFIG_NFTL) instead.
  181. config FTL
  182. tristate "FTL (Flash Translation Layer) support"
  183. depends on BLOCK
  184. select MTD_BLKDEVS
  185. ---help---
  186. This provides support for the original Flash Translation Layer which
  187. is part of the PCMCIA specification. It uses a kind of pseudo-
  188. file system on a flash device to emulate a block device with
  189. 512-byte sectors, on top of which you put a 'normal' file system.
  190. You may find that the algorithms used in this code are patented
  191. unless you live in the Free World where software patents aren't
  192. legal - in the USA you are only permitted to use this on PCMCIA
  193. hardware, although under the terms of the GPL you're obviously
  194. permitted to copy, modify and distribute the code as you wish. Just
  195. not use it.
  196. config NFTL
  197. tristate "NFTL (NAND Flash Translation Layer) support"
  198. depends on BLOCK
  199. select MTD_BLKDEVS
  200. ---help---
  201. This provides support for the NAND Flash Translation Layer which is
  202. used on M-Systems' DiskOnChip devices. It uses a kind of pseudo-
  203. file system on a flash device to emulate a block device with
  204. 512-byte sectors, on top of which you put a 'normal' file system.
  205. You may find that the algorithms used in this code are patented
  206. unless you live in the Free World where software patents aren't
  207. legal - in the USA you are only permitted to use this on DiskOnChip
  208. hardware, although under the terms of the GPL you're obviously
  209. permitted to copy, modify and distribute the code as you wish. Just
  210. not use it.
  211. config NFTL_RW
  212. bool "Write support for NFTL"
  213. depends on NFTL
  214. help
  215. Support for writing to the NAND Flash Translation Layer, as used
  216. on the DiskOnChip.
  217. config INFTL
  218. tristate "INFTL (Inverse NAND Flash Translation Layer) support"
  219. depends on BLOCK
  220. select MTD_BLKDEVS
  221. ---help---
  222. This provides support for the Inverse NAND Flash Translation
  223. Layer which is used on M-Systems' newer DiskOnChip devices. It
  224. uses a kind of pseudo-file system on a flash device to emulate
  225. a block device with 512-byte sectors, on top of which you put
  226. a 'normal' file system.
  227. You may find that the algorithms used in this code are patented
  228. unless you live in the Free World where software patents aren't
  229. legal - in the USA you are only permitted to use this on DiskOnChip
  230. hardware, although under the terms of the GPL you're obviously
  231. permitted to copy, modify and distribute the code as you wish. Just
  232. not use it.
  233. config RFD_FTL
  234. tristate "Resident Flash Disk (Flash Translation Layer) support"
  235. depends on BLOCK
  236. select MTD_BLKDEVS
  237. ---help---
  238. This provides support for the flash translation layer known
  239. as the Resident Flash Disk (RFD), as used by the Embedded BIOS
  240. of General Software. There is a blurb at:
  241. http://www.gensw.com/pages/prod/bios/rfd.htm
  242. config SSFDC
  243. tristate "NAND SSFDC (SmartMedia) read only translation layer"
  244. depends on BLOCK
  245. select MTD_BLKDEVS
  246. help
  247. This enables read only access to SmartMedia formatted NAND
  248. flash. You can mount it with FAT file system.
  249. config MTD_OOPS
  250. tristate "Log panic/oops to an MTD buffer"
  251. depends on MTD
  252. help
  253. This enables panic and oops messages to be logged to a circular
  254. buffer in a flash partition where it can be read back at some
  255. later point.
  256. To use, add console=ttyMTDx to the kernel command line,
  257. where x is the MTD device number to use.
  258. source "drivers/mtd/chips/Kconfig"
  259. source "drivers/mtd/maps/Kconfig"
  260. source "drivers/mtd/devices/Kconfig"
  261. source "drivers/mtd/nand/Kconfig"
  262. source "drivers/mtd/onenand/Kconfig"
  263. source "drivers/mtd/ubi/Kconfig"
  264. endif # MTD