Kconfig 2.5 KB

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