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 problems


On Tue, Jun 07, 2005 at 05:25:50PM +0200, St?phane Royo wrote:
> Hi everybody,
> 
> I ported JFFS2 package on my board and i have two problems. The first
> concerns the last umount of jffs2_1 test (umount("/")), it always returns
> the following error :
> 
> Ino #1 has use count 2
> <FAIL>: umount() returned -1 Resource busy.
> 
> I didn't make any modification on jffs2_1.
> 
> I think the second problem is due to garbage collection. When i execute the
> jffs2_1 about ten times the following
> error appears :
> 
> <FAIL>: open() returned -1 No space left on device
> ASSERT FAIL: fd.cxx[280]cyg_file* cyg_fp_get() fd out of range
> ASSERT FAIL: fd.cxx              [ 280] cyg_file* cyg_fp_get()
> 
> and in same way, when i execute the jffs2_3 i have the error :
> 
> <5>jffs2_reserve_space(): Low on dirty space to GC, but it's a deletion.
> Allowin
> g...
> FAIL: creat() returned -0000001
> ASSERT FAIL: fd.cxx[280]cyg_file* cyg_fp_get() fd out of range
> ASSERT FAIL: fd.cxx              [ 280] cyg_file* cyg_fp_get()
>                                                              fd out of range
> 
> For information, i use the minimal configuration for JFFS2 (no kernel, no
> com driver, only lib, JFFS2 package and flash driver) and the
> CYGNUM_IO_FLASH_BLOCK_LENGTH_1 is equals to 256kb.

How did you manage to compile the tests without the kernel? The second
include statement for jffs2_1.c is <pkgconf/kernel.h>?

What size flash blocks does your target use?

        Andrew

-- 
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]