Kconfig 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. menu "Device virtual file system"
  2. config RT_USING_DFS
  3. bool "Using device virtual file system"
  4. select RT_USING_MUTEX
  5. default y
  6. help
  7. The device file system is a light weight virtual file system.
  8. if RT_USING_DFS
  9. config DFS_USING_WORKDIR
  10. bool "Using working directory"
  11. default y
  12. config DFS_FILESYSTEMS_MAX
  13. int "The maximal number of mounted file system"
  14. default 4 if RT_USING_DFS_NFS
  15. default 2
  16. config DFS_FILESYSTEM_TYPES_MAX
  17. int "The maximal number of file system type"
  18. default 4 if RT_USING_DFS_NFS
  19. default 2
  20. config DFS_FD_MAX
  21. int "The maximal number of opened files"
  22. default 16
  23. config RT_USING_DFS_MNTTABLE
  24. bool "Using mount table for file system"
  25. default n
  26. help
  27. User can use mount table for automatically mount, for example:
  28. const struct dfs_mount_tbl mount_table[] =
  29. {
  30. {"flash0", "/", "elm", 0, 0},
  31. {0}
  32. };
  33. The mount_table must be terminated with NULL.
  34. config RT_USING_DFS_ELMFAT
  35. bool "Enable elm-chan fatfs"
  36. default n
  37. help
  38. FatFs is a generic FAT/exFAT file system module for small embedded systems.
  39. if RT_USING_DFS_ELMFAT
  40. menu "elm-chan's FatFs, Generic FAT Filesystem Module"
  41. config RT_DFS_ELM_CODE_PAGE
  42. int "OEM code page"
  43. default 437
  44. config RT_DFS_ELM_WORD_ACCESS
  45. bool "Using RT_DFS_ELM_WORD_ACCESS"
  46. default y
  47. choice
  48. prompt "Support long file name"
  49. default RT_DFS_ELM_USE_LFN_3
  50. config RT_DFS_ELM_USE_LFN_0
  51. bool "0: LFN disable"
  52. config RT_DFS_ELM_USE_LFN_1
  53. bool "1: LFN with static LFN working buffer"
  54. config RT_DFS_ELM_USE_LFN_2
  55. bool "2: LFN with dynamic LFN working buffer on the stack"
  56. config RT_DFS_ELM_USE_LFN_3
  57. bool "3: LFN with dynamic LFN working buffer on the heap"
  58. endchoice
  59. config RT_DFS_ELM_USE_LFN
  60. int
  61. default 0 if RT_DFS_ELM_USE_LFN_0
  62. default 1 if RT_DFS_ELM_USE_LFN_1
  63. default 2 if RT_DFS_ELM_USE_LFN_2
  64. default 3 if RT_DFS_ELM_USE_LFN_3
  65. config RT_DFS_ELM_MAX_LFN
  66. int "Maximal size of file name length"
  67. range 12 255
  68. default 255
  69. config RT_DFS_ELM_DRIVES
  70. int "Number of volumes (logical drives) to be used."
  71. default 2
  72. config RT_DFS_ELM_MAX_SECTOR_SIZE
  73. int "Maximum sector size to be handled."
  74. default 512
  75. help
  76. if you use some spi nor flash for fatfs, please set this the erase sector size, for example 4096.
  77. config RT_DFS_ELM_USE_ERASE
  78. bool "Enable sector erase feature"
  79. default n
  80. config RT_DFS_ELM_REENTRANT
  81. bool "Enable the reentrancy (thread safe) of the FatFs module"
  82. default y
  83. endmenu
  84. endif
  85. config RT_USING_DFS_DEVFS
  86. bool "Using devfs for device objects"
  87. default y
  88. config RT_USING_DFS_ROMFS
  89. bool "Enable ReadOnly file system on flash"
  90. default n
  91. config RT_USING_DFS_RAMFS
  92. bool "Enable RAM file system"
  93. default n
  94. config RT_USING_DFS_UFFS
  95. bool "Enable UFFS file system: Ultra-low-cost Flash File System"
  96. select RT_USING_MTD_NAND
  97. default n
  98. if RT_USING_DFS_UFFS
  99. choice
  100. prompt "UFFS ECC mode"
  101. default RT_UFFS_ECC_MODE_1
  102. config RT_UFFS_ECC_MODE_0
  103. bool "0: Do not use ECC"
  104. config RT_UFFS_ECC_MODE_1
  105. bool "1: UFFS calculate the ECC"
  106. config RT_UFFS_ECC_MODE_2
  107. bool "2: Flash driver(or by hardware) calculate the ECC"
  108. config RT_UFFS_ECC_MODE_3
  109. bool "3: Hardware calculate the ECC and automatically write to spare."
  110. endchoice
  111. config RT_UFFS_ECC_MODE
  112. int
  113. default 0 if RT_UFFS_ECC_MODE_0
  114. default 1 if RT_UFFS_ECC_MODE_1
  115. default 2 if RT_UFFS_ECC_MODE_2
  116. default 3 if RT_UFFS_ECC_MODE_3
  117. endif
  118. config RT_USING_DFS_JFFS2
  119. bool "Enable JFFS2 file system"
  120. select RT_USING_MTD_NOR
  121. default n
  122. config RT_USING_DFS_NFS
  123. bool "Using NFS v3 client file system"
  124. depends on RT_USING_LWIP
  125. default n
  126. if RT_USING_DFS_NFS
  127. config RT_NFS_HOST_EXPORT
  128. string "NFSv3 host export"
  129. default "192.168.1.5:/"
  130. endif
  131. endif
  132. endmenu