Forum Discussion
Altera_Forum
Honored Contributor
21 years agobasics on jffs2
I would like to use jffs2 with ecos on the cycloneII NIOSII development board. I have included jffs2 into the ecos lib. Now I don't know what to do next - I have looked for some documentati...
Altera_Forum
Honored Contributor
21 years agoHi pxs,
> I placed it high in the user region but I am not sure where ecos is placed - do you > know where I can find this information? ecos is normally stored at the reset address ... so it will start at power-on or cpu reset. You can check your elf file with objdump: $ nios2-elf-objdump -h your-ecos-elf-file > I then tried to download jffs2.flash to the board with the following command without succuss. <div class='quotetop'>QUOTE </div> --- Quote Start --- $> nios2-flash-programmer --base=0x0000 0000 --input=jffs2.flash --location=0x0060 0000 --verbose --sof=/cygdrive/c/altera/kits/nios2/examples/verilog/niosii_cycloneii_2c35/standard/standard.sof[/b] --- Quote End --- You need to specify the _programmer_ sof for the board ... not the example configuration. Use the sof in: $SOPC_KIT_NIOS2/components/altera_nios_dev_board_cyclone_2c35/system/altera_nios_dev_board_cyclone_2c35.sof > Can you explain further about how to make the jffs2 partition you spoke of previously (see below). > Is this the jffs2.img (jffs2.flash) or do I have to do something to make the partition? You can divide your flash into several "blocks" or "areas" that can be independently managed by jffs2 ... all in the same spirit as partitions on a hard disk drive. So from a software point-of-view, it appears as though you have multiple flash "drives". Since I'm primarily a linux person, I've never used more than a single partition with ecos ... but I'm assuming there's an easy way to create more than one with the config tool. Maybe monkeyboy can help with this. Regardless, you can configure your default partition in the "Flash device drivers" configuration under "instantiate in I/O block device API" -> "static configuration". Regards, --Scott