This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
jffs2 problem: mount and read
- From: "liu hua" <rongye_liu at hotmail dot com>
- To: ecos-discuss at sources dot redhat dot com
- Cc: andrew at lunn dot ch
- Date: Tue, 05 Oct 2004 16:54:07 +0800
- Subject: [ECOS] jffs2 problem: mount and read
- Bcc:
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