Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12747 Discussions

jffs2 using part of flash memory

Altera_Forum
Honored Contributor II
1,167 Views

Please see attachment

0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
487 Views

First pb solved 

 

edit : nodelist.c 

change  

if (!valid_ref) 

by 

if (!valid_ref && (f->inocache->ino!=1))
0 Kudos
Altera_Forum
Honored Contributor II
487 Views

about pb2: jffs2 is a filesystem, so there are some "structs" and "data" to record, to maintain jffs2. So you should not "cover" or "delete" these files.  

 

If you won't to write something on it , follow: 

1. copy these files as parts of romfs 

2. copy them to jffs2 mtdblock from romfs after succefully mounte it 

3. of course, you can copy files to jffs2 block by ftp or nfs. 

 

Anyway, if you got a real image of jffs2 block like PC software "GHOST" dose, named jffs2.image, in my opinion , jffs2.image could be flash-programmed to a new flash , and we get the jffs2 mtdblock simply and directly.
0 Kudos
Altera_Forum
Honored Contributor II
487 Views

only a "manual" copy may work fine.  

Thanks, 

Marc
0 Kudos
Reply