Forum Discussion
Altera_Forum
Honored Contributor
20 years agojffs2 init
I have included and compiled JFFS2 but I am having a problem opening files. Processor:NIOSII, CYCLONE II Version : Quartus/eCos 5.1 I have used mkfs.jffs2 and created my image then I...
Altera_Forum
Honored Contributor
20 years ago> Does anyone know how the system knows the base address of the jffs patition
> and the length of the partition? I believe it's set by FLASH_BLOCK_OFFSET/_LENGTH. From my ecc file:# ># Start offset from flash base# This gives the offset from the base of flash which this# block device corresponds to.#
cdl_option CYGNUM_IO_FLASH_BLOCK_OFFSET_1 {
# Flavor: data
user_value 0x00000000
# value_source user
# Default value: 0x00100000
};
# Length# This gives the length of the region of flash given over# to this block device.#
cdl_option CYGNUM_IO_FLASH_BLOCK_LENGTH_1 {
# Flavor: data
user_value 0x00200000
# value_source user
# Default value: 0x00100000
}; > Do you call a jffs init function or a flash init function? Do you add a table entry? No, I just do the same as you:#ifdef CYGPKG_IO_FILEIO
if (mount ("/dev/flash1", "/", "jffs2") == 0)
chdir ("/");# endif Regards, --Scott