Access JFFS2 partition from U-Boot
Dear all,
I am new with U-Boot, and I am trying to access the content of a JFFS2 partition from u-boot.
I am working with an at91sam9263 board, with nand flash.
In u-boot, I added the #define CONFIG_CMD_JFFS2, as well as CONFIG_JFFS2_NAND_OFF, CONFIG_JFFS2_NAND_SIZE and CONFIG_JFFS2_NAND_DEV.
I then have a crash during the compilation of u-boot in the file jffs2_1pass.c, in the function get_fl_mem_nor:
jffs2_1pass.c:389: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'flash_info'
| jffs2_1pass.c:389: error: 'flash_info' undeclared (first use in this function)
| jffs2_1pass.c:389: error: (Each undeclared identifier is reported only once
| jffs2_1pass.c:389: error: for each function it appears in.) | jffs2_1pass.c:389: error: expected expression before ']' token | jffs2_1pass.c:390: error: 'flash_info_t' undeclared (first use in this
function)
| jffs2_1pass.c:390: error: 'flash' undeclared (first use in this function) | make[1]: *** [jffs2_1pass.o] Error 1
If I remove the #define related to JFFS2, u-boot is compiling correctly.
Does anyone already had this problem ?
Thanks in advance,
Guillaume Spalla
Quoted 20 lines · Guillaume Spalla
Dear all,
I am new with U-Boot, and I am trying to access the content of a JFFS2 partition from u-boot.
I am working with an at91sam9263 board, with nand flash.In u-boot, I added the #define
CONFIG_CMD_JFFS2, as well asCONFIG_JFFS2_NAND_OFF,CONFIG_JFFS2_NAND_SIZEandCONFIG_JFFS2_NAND_DEV.I then have a crash during the compilation of u-boot in the file
jffs2_1pass.c, in the functionget_fl_mem_nor:
jffs2_1pass.c:389: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'flash_info'
| jffs2_1pass.c:389: error: 'flash_info' undeclared (first use in this function)
| jffs2_1pass.c:389: error: (Each undeclared identifier is reported only once| jffs2_1pass.c:389: error: for each function it appears in.) | jffs2_1pass.c:389: error: expected expression before ']' token | jffs2_1pass.c:390: error: 'flash_info_t' undeclared (first use in this
Quoted 7 lines
function)
| jffs2_1pass.c:390: error: 'flash' undeclared (first use in this function) | make[1]: *** [jffs2_1pass.o] Error 1If I remove the #define related to JFFS2, u-boot is compiling correctly.
Does anyone already had this problem ?
Does adding #include <flash.h> to that file help?
-Scott