This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: JFFS2 (Again!!)


> Hi All,
> 
> The battle with JFFS2 continues...
> 
> We are trying to stream a file over a serial connection in JFFS. We have
> encountered a number of problems whilst doing this, and this is the
> latest.
> 
> Occasionally we get the following error messages reported:
> 
> <4>jffs2_do_read_inode() on nonexistent ino 3
> jffs2_read_inode() failed
> 
> os_to_jffs2_mode() cannot convert 0x0
> BUG() at /home/ecos/ecos/packages/fs/jffs2/current/src/fs-ecos.c 2053
> 
> Once we have encountered the cause of these errors, we can no longer
> download a file of the same name to JFFS. Even a re-mount of the file
> system does not rectify the situation. At present we have to manually
> erase the JFFS2 flash image and start over again.
> 
> Can anyone shed any light on these errors, why they occur and what, if
> anything, can be done to fix the problem(s)?
> 
> On a slightly wider point, is JFFS2 sufficiently robust at this point in
> its life. We have encountered several 'issues' regarding its deployment
> in our product. Any comments welcome.
> 
> Cheers All
> 
> Andy
> 
> --
> =================================
> Andy Atkinson
> Software Engineer
> Hydrix Pty Ltd.
> 1044A Dandenong Rd,
> Carnegie, VIC, 3146,
> Melbourne,
> Australia
> 
> Phone   : +61 3 9572 0686, Ext. 114
> Fax     : +61 3 9572 2686
> Email   : andya@hydrix.com
> 
> --
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
> 
> 

It sounds as if your Flash is being written to.  Do you have a way to
write-protect the Flash on the board that you can enable before you
start streaming the file out?

Also, depending on what hardware you are using, you can probably
enable a hardware watchpoint on writes to flash.

-john

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]