Kconfig 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # drivers/mtd/ubi/Kconfig
  2. menu "UBI - Unsorted block images"
  3. depends on MTD
  4. config MTD_UBI
  5. tristate "Enable UBI"
  6. depends on MTD
  7. select CRC32
  8. help
  9. UBI is a software layer above MTD layer which admits of LVM-like
  10. logical volumes on top of MTD devices, hides some complexities of
  11. flash chips like wear and bad blocks and provides some other useful
  12. capabilities. Please, consult the MTD web site for more details
  13. (www.linux-mtd.infradead.org).
  14. config MTD_UBI_WL_THRESHOLD
  15. int "UBI wear-leveling threshold"
  16. default 4096
  17. range 2 65536
  18. depends on MTD_UBI
  19. help
  20. This parameter defines the maximum difference between the highest
  21. erase counter value and the lowest erase counter value of eraseblocks
  22. of UBI devices. When this threshold is exceeded, UBI starts performing
  23. wear leveling by means of moving data from eraseblock with low erase
  24. counter to eraseblocks with high erase counter. Leave the default
  25. value if unsure.
  26. config MTD_UBI_BEB_RESERVE
  27. int "Percentage of reserved eraseblocks for bad eraseblocks handling"
  28. default 1
  29. range 0 25
  30. depends on MTD_UBI
  31. help
  32. If the MTD device admits of bad eraseblocks (e.g. NAND flash), UBI
  33. reserves some amount of physical eraseblocks to handle new bad
  34. eraseblocks. For example, if a flash physical eraseblock becomes bad,
  35. UBI uses these reserved physical eraseblocks to relocate the bad one.
  36. This option specifies how many physical eraseblocks will be reserved
  37. for bad eraseblock handling (percents of total number of good flash
  38. eraseblocks). If the underlying flash does not admit of bad
  39. eraseblocks (e.g. NOR flash), this value is ignored and nothing is
  40. reserved. Leave the default value if unsure.
  41. config MTD_UBI_GLUEBI
  42. bool "Emulate MTD devices"
  43. default n
  44. depends on MTD_UBI
  45. help
  46. This option enables MTD devices emulation on top of UBI volumes: for
  47. each UBI volumes an MTD device is created, and all I/O to this MTD
  48. device is redirected to the UBI volume. This is handy to make
  49. MTD-oriented software (like JFFS2) work on top of UBI. Do not enable
  50. this if no legacy software will be used.
  51. source "drivers/mtd/ubi/Kconfig.debug"
  52. endmenu