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]

JFFS2 CRC problem


Hi:

I am having a problem with JFFS2 that just won't go away.
The system is a PowerPC with Intel Strata flash (2 chips x 16).

I have create the image of the file system using mkfs.jffs2.1.39
and the command line for the 6MB image looks like this:

./mkfs.jffs2.1.39 -d jffs2_files --pad=6291456 -b -e 262144 -o jffs2.img

Once the image is flashed on the target board I can mount and ls the disk 
from RedBoot, and I can even 'mount()' and 'listdir()' from my application, 
but as soon as I try to 'read()' a file into a buffer in memory I have all 
sorts of errors of the type:

<4>Node CRC b313f355 != calculated CRC c33a8deb for node at 0000113c

I am at the end of my wits, and while I have seen many postings with
the same kind of error message popping up, I have not found a real 
solution. Is there anybody out there that found the same problem?

On another issue (maybe related) I noticed that after I 'read()' the contents
of a file out and then try to read it again, I get a message like this:

<INFO>: entry      xilinx.xsvf<4>jffs2_do_read_inode() on nonexistent ino 14
jffs2_read_inode() failed
<FAIL>: stat() returned -1 No such entity

which sounds like a file system corruption. Since I opened the file for
reading only, I should not incur any fs corruption.

Is there a way to fsck a JFFS2 file system?

Thanks
Tony

-- 
_______________________________________________
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10


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