xref: /OK3568_Linux_fs/buildroot/fs/jffs2/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1config BR2_TARGET_ROOTFS_JFFS2
2	bool "jffs2 root filesystem"
3	help
4	  Build a jffs2 root filesystem
5
6if BR2_TARGET_ROOTFS_JFFS2
7
8choice
9	prompt "Flash Type"
10	default BR2_TARGET_ROOTFS_JFFS2_FLASH_128
11
12config BR2_TARGET_ROOTFS_JFFS2_DATAFLASH_1056
13	bool "AT45 dataflash with 1056 byte pagesize"
14	select BR2_TARGET_ROOTFS_JFFS2_NOCLEANMARKER
15
16config BR2_TARGET_ROOTFS_JFFS2_DATAFLASH_528
17	bool "AT45 dataflash with 528 byte pagesize"
18	select BR2_TARGET_ROOTFS_JFFS2_NOCLEANMARKER
19
20config BR2_TARGET_ROOTFS_JFFS2_NANDFLASH_16K
21	bool "NAND flash with 16 kB erasesize"
22	select BR2_TARGET_ROOTFS_JFFS2_NOCLEANMARKER
23
24config BR2_TARGET_ROOTFS_JFFS2_NANDFLASH_128K
25	bool "NAND flash with 128 kB erasesize"
26	select BR2_TARGET_ROOTFS_JFFS2_NOCLEANMARKER
27
28config BR2_TARGET_ROOTFS_JFFS2_FLASH_128
29	bool "Parallel flash with 128 kB erase size"
30
31config BR2_TARGET_ROOTFS_JFFS2_FLASH_64
32	bool "Parallel flash with 64 kB erase size"
33
34config BR2_TARGET_ROOTFS_JFFS2_CUSTOM
35	bool "Select custom erase size"
36
37endchoice
38
39config BR2_TARGET_ROOTFS_JFFS2_CUSTOM_EBSIZE
40	hex "Erase block size"
41	default 0x20000
42	depends on BR2_TARGET_ROOTFS_JFFS2_CUSTOM
43	help
44	  Set to erase size of memory
45
46config BR2_TARGET_ROOTFS_JFFS2_EBSIZE
47	hex
48	default 0x2100 if BR2_TARGET_ROOTFS_JFFS2_DATAFLASH_1056
49	default 0x1080 if BR2_TARGET_ROOTFS_JFFS2_DATAFLASH_528
50	default 0x4000 if BR2_TARGET_ROOTFS_JFFS2_NANDFLASH_16K
51	default 0x20000 if BR2_TARGET_ROOTFS_JFFS2_NANDFLASH_128K
52	default 0x20000 if BR2_TARGET_ROOTFS_JFFS2_FLASH_128
53	default 0x10000 if BR2_TARGET_ROOTFS_JFFS2_FLASH_64
54	default BR2_TARGET_ROOTFS_JFFS2_CUSTOM_EBSIZE if BR2_TARGET_ROOTFS_JFFS2_CUSTOM
55
56config BR2_TARGET_ROOTFS_JFFS2_NOCLEANMARKER
57	bool "Do not use Cleanmarker"
58	default y if BR2_TARGET_ROOTFS_JFFS2_DATAFLASH_1056
59	default y if BR2_TARGET_ROOTFS_JFFS2_DATAFLASH_528
60	default y if BR2_TARGET_ROOTFS_JFFS2_NANDFLASH_16K
61	default y if BR2_TARGET_ROOTFS_JFFS2_NANDFLASH_128K
62	help
63	  Do not use cleanmarkers if using NAND flash or Dataflash where
64	  the pagesize is not a power of 2
65
66config BR2_TARGET_ROOTFS_JFFS2_PAD
67	bool "Pad output"
68
69config BR2_TARGET_ROOTFS_JFFS2_PADSIZE
70	hex "Pad output size (0x0 = to end of EB)"
71	default 0x0
72	depends on BR2_TARGET_ROOTFS_JFFS2_PAD
73	help
74	  Set to 0x0 to pad to end of erase block.
75
76choice
77	prompt "Endianess"
78	default BR2_TARGET_ROOTFS_JFFS2_BE if BR2_ENDIAN = "BIG"
79
80config BR2_TARGET_ROOTFS_JFFS2_LE
81	bool "little-endian"
82
83config BR2_TARGET_ROOTFS_JFFS2_BE
84	bool "big-endian"
85
86endchoice
87
88config BR2_TARGET_ROOTFS_JFFS2_SUMMARY
89	bool "Produce a summarized JFFS2 image"
90	help
91	  A summarised image can be mounted faster if support is
92	  enabled in the kernel (CONFIG_JFFS2_SUMMARY)
93
94config BR2_TARGET_ROOTFS_JFFS2_USE_CUSTOM_PAGESIZE
95	bool "Select custom virtual memory page size"
96	help
97	  Use a custom virtual memory page size. Note that this is not
98	  related to the flash memory page size. Using this option is
99	  only needed if Linux is configured to use a page size
100	  different than 4kB.
101
102config BR2_TARGET_ROOTFS_JFFS2_CUSTOM_PAGESIZE
103	hex "Virtual memory page size"
104	default 0x1000
105	depends on BR2_TARGET_ROOTFS_JFFS2_USE_CUSTOM_PAGESIZE
106	help
107	  Set to virtual memory page size of target system (in bytes).
108	  This value should match the virtual page size in Linux (i.e.
109	  this should have the same value as the value of the PAGE_SIZE
110	  macro in Linux). It is not related to the flash memory page
111	  size.
112
113endif
114