xref: /openbmc/u-boot/doc/README.JFFS2_NAND (revision 998eaaecd46ee5f00550e30e606cb5556e0b9345)
1*998eaaecSwdenkJFFS2 NAND support:
2*998eaaecSwdenk
3*998eaaecSwdenkTo ebable, use the following #define in the board configuration file:
4*998eaaecSwdenk
5*998eaaecSwdenk#define CONFIG_JFFS2_NAND 1
6*998eaaecSwdenk
7*998eaaecSwdenkConfiguration of partitions is similar to how this is done in  U-Boot
8*998eaaecSwdenkfor  JFFS2  on top NOR flash. If a single parition is used, it can be
9*998eaaecSwdenkconfigured using the following #defines in the configuration file:
10*998eaaecSwdenk
11*998eaaecSwdenk#define CONFIG_JFFS2_NAND_DEV 0			/* nand device jffs2 lives on */
12*998eaaecSwdenk#define CONFIG_JFFS2_NAND_OFF 0			/* start of jffs2 partition */
13*998eaaecSwdenk#define CONFIG_JFFS2_NAND_SIZE 2*1024*1024	/* size of jffs2 partition */
14*998eaaecSwdenk
15*998eaaecSwdenkIf more than a single partition is desired, the user can define a
16*998eaaecSwdenkCFG_JFFS_CUSTOM_PART macro and implement a
17*998eaaecSwdenk
18*998eaaecSwdenk	struct part_info* jffs2_part_info(int part_num)
19*998eaaecSwdenk
20*998eaaecSwdenkfunction in a board-specific module. An example of such function is
21*998eaaecSwdenkavailable in common/cmd_jffs2.c
22*998eaaecSwdenk
23*998eaaecSwdenkThe default configuration for the DAVE board has a single JFFS2
24*998eaaecSwdenkpartition of 2 MB size.
25