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