[ECOS] jffs2 problem: mount and read

liu hua rongye_liu@hotmail.com
Tue Oct 5 09:00:00 GMT 2004


hi,

Thank Andrew give me some help in these days for my jffs2 port."mkdir" 
problem have solved,it is the flash_init problem.Now it can work normally.

In my ecos jffs2 filesystem,I have met two problem. I use mkfs.jffs2(v1.39) 
build jffs2 image in linux:
  ./mkfs.jffs2 -d jffs2 -e 0x80000 -o jffs2.img -p
In RedBoot,I download this image file into target and write it to flash:
  RedBoot> load jffs2.img -r -b 0x40000
  RedBoot> fis create -b 0x40000 -l 0x80000 -f 0x1020000 jffs2
I can run the ecos jffs2 test program file1.c and fseek1.c.The problems are 
follow:

1) When wrote the image to flash in RedBoot,the first time "mount" operate 
is normal.But,when I restart the application and the "mount" output follow 
message:

<5>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050004: 
0x000c
 instead
<5>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050008: 
0xdc6d
 instead
<5>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060000: 
0x2003
 instead
<5>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060004: 
0x000c
 instead
<5>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060008: 
0xdc6d
 instead
<5>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070000: 
0x2003
 instead
<5>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070004: 
0x000c
 instead
<5>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070008: 
0xdc6d
 instead
......

Althought have these message,the mount operate can finish normally.Except 
the first "mount" after write new image to flash in RedBoot,other "mount" 
is same as those messages.If I use the "umount",after "umount",the next 
"mount" is same as this messages.

2) When I run the test program romfileio1.c,when read a file that is built 
in image by mkfs.jffs2 in linux("/etc/passwd"),the output message is 
follow:

<4>JFFS2 compression type 0x06 not avaiable.
<4>Error: jffs2_decompress returned -5
......

I check jffs2.h,the 0x06 type is ZLIB.But,in my ecos configure,I have 
installed the Zlib package.If I read a file that created by application , I 
can read this file normally.

I try mkfs.jffs2.1.39 and mkfs.jffs2.1.26,those problems is same.

I wish I can get help from you.

Thanks!

_________________________________________________________________
ÏíÓÃÊÀ½çÉÏ×î´óµÄµç×ÓÓʼþϵͳ¡ª MSN Hotmail¡£  http://www.hotmail.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



More information about the Ecos-discuss mailing list