1
0

jffs2_config.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #ifndef JFFS2_CONFIG_H
  2. #define JFFS2_CONFIG_H
  3. #define __ECOS /* must be defined */
  4. #define FILE_PATH_MAX 128 /* the longest file path */
  5. #define CONFIG_JFFS2_ENTRY_NAME_MAX 23
  6. #define JFFS2_NAME_MAX CONFIG_JFFS2_ENTRY_NAME_MAX
  7. #define JFFS2_PATH_MAX FILE_PATH_MAX
  8. #define DEVICE_PART_MAX 1 /* the max partions on a nand deivce*/
  9. /* memory page size in kernel/asm/page.h, it is correspond with flash read/write
  10. * option, so this size has a great impact on reading/writing speed */
  11. #define CONFIG_JFFS2_PAGE_SHIFT 12 /* (1<<12) 4096bytes*/
  12. /* jffs2 support relative dir, command "ls" will get
  13. * +-------------------------------+
  14. * | finsh>>ls("/") |
  15. * | Directory /: |
  16. * | . <DIR> |
  17. * | .. <DIR> |
  18. * | dir1 <DIR> |
  19. * +-------------------------------+
  20. */
  21. #define CONFIG_JFFS2_NO_RELATIVEDIR
  22. //#define CYGPKG_FS_JFFS2_RET_DIRENT_DTYPE
  23. #if defined(CYGPKG_FS_JFFS2_RET_DIRENT_DTYPE)
  24. #define CYGPKG_FILEIO_DIRENT_DTYPE
  25. #endif
  26. #define CYGOPT_FS_JFFS2_WRITE /* if not defined, jffs2 is read only*/
  27. /* jffs2 debug output opion */
  28. #define CONFIG_JFFS2_FS_DEBUG 0 /* 1 or 2 */
  29. /* jffs2 gc thread section */
  30. //#define CYGOPT_FS_JFFS2_GCTHREAD
  31. #define CYGNUM_JFFS2_GC_THREAD_PRIORITY (RT_THREAD_PRIORITY_MAX-2) /* GC thread's priority */
  32. #define CYGNUM_JFFS2_GS_THREAD_TICKS 20 /* event timeout ticks */
  33. #define CYGNUM_JFFS2_GC_THREAD_TICKS 20 /* GC thread's running ticks */
  34. //#define CONFIG_JFFS2_FS_WRITEBUFFER /* should not be enabled */
  35. /* zlib section*/
  36. //#define CONFIG_JFFS2_ZLIB
  37. //#define CONFIG_JFFS2_RTIME
  38. //#define CONFIG_JFFS2_RUBIN
  39. //#define CONFIG_JFFS2_CMODE_NONE
  40. //#define CONFIG_JFFS2_CMODE_SIZE
  41. #endif