jffs2_config.h 1.6 KB

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