On Wed, Jul 15, 2009 at 10:37:15AM +0200, Stanislav Meduna wrote:
> Hi,
> 
> I am trying to use a JFFS2 filesystem in a serial dataflash
> device. I encountered the jffs2_open hanging mysteriously,
> so I started to investigate.
> 
> 1) Reinitializing the filesystem resolved the hang.
>    Is it possible that a corrupted filesystem (never
>    unmounted in these tests, just powered down)
>    causes the jffs to mount, but not open a file? From
>    what I have read the unclean unmount should not cause
>    this.
> 
> 2) What is the stack usage of jffs2? Is it upper-bounded,
>    or could it depend on the filesystem data? Is there
>    an upper limit?
> 
> 3) If I understand this correctly, jffs2 does not like
>    small writes. I need to write a logfile into a flash -
>    not too often (life of the flash is not an issue),
>    but in small chunks. I thought I should use
>    CONFIG_JFFS2_FS_WRITEBUFFER defined by CYGOPT_FS_JFFS2_NAND;
>    however, the CDL states
>      requires        0
>    and I can not enable this. Huh?
> 
> 4) CDL for CYGOPT_FS_JFFS2_GSTHREAD states
>      Leave this off till it's been implemented. And don't
>      implement it till icache locking has been made thread-safe.
> 
>    
> http://www.ecoscentric.com/ecospro/doc.cgi/html/ecospro-ref/fs-jffs2-usage.html
>    just explains what it is and how it can be used. Does this
>    mean that the eCosCentric version has other code than
>    is in the CVS, or is just the CDL documentation obsolete?
> 

Yes, jffs2 in eCosPro has a number of enhancements, including additions
to satisfy US/DoD Homeland Security mandated requirements.

 Daniel


%<----------------------------------------------------------------------
  Daniel Morris - Sales & Marketing Director
  eCosCentric - The eCos and RedBoot experts
  Tel: +44 1223 245 571 - [email protected]
  DDI: +44 1269 591 171 - [email protected]


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

Reply via email to