Kconfig 4.6 KB

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