1998eaaecSwdenkJFFS2 NAND support: 2998eaaecSwdenk 3*0ff5d146SOtavio SalvadorTo enable, use the following #define in the board configuration file: 4998eaaecSwdenk 5998eaaecSwdenk#define CONFIG_JFFS2_NAND 1 6998eaaecSwdenk 7998eaaecSwdenkConfiguration of partitions is similar to how this is done in U-Boot 8445093d1SWolfgang Denkfor JFFS2 on top NOR flash. If a single partition is used, it can be 9998eaaecSwdenkconfigured using the following #defines in the configuration file: 10998eaaecSwdenk 11998eaaecSwdenk#define CONFIG_JFFS2_NAND_DEV 0 /* nand device jffs2 lives on */ 12998eaaecSwdenk#define CONFIG_JFFS2_NAND_OFF 0 /* start of jffs2 partition */ 13998eaaecSwdenk#define CONFIG_JFFS2_NAND_SIZE 2*1024*1024 /* size of jffs2 partition */ 14998eaaecSwdenk 15998eaaecSwdenkIf more than a single partition is desired, the user can define a 166d0f6bcfSJean-Christophe PLAGNIOL-VILLARDCONFIG_SYS_JFFS_CUSTOM_PART macro and implement a 17998eaaecSwdenk 18998eaaecSwdenk struct part_info* jffs2_part_info(int part_num) 19998eaaecSwdenk 20998eaaecSwdenkfunction in a board-specific module. An example of such function is 21998eaaecSwdenkavailable in common/cmd_jffs2.c 22998eaaecSwdenk 23998eaaecSwdenkThe default configuration for the DAVE board has a single JFFS2 24998eaaecSwdenkpartition of 2 MB size. 25