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: Re: cannot mount effs2 filesystem at boot


---------- Initial Header -----------

>From      : ecos-discuss-owner@ecos.sourceware.org
To          : "brix82@libero.it" brix82@libero.it
Cc          : "andrew" andrew@lunn.ch,"ecos-discuss" ecos-discuss@sources.redhat.com
Date      : Wed, 1 Sep 2004 12:31:20 +0200
Subject : Re: [ECOS] Re: cannot mount effs2 filesystem at boot

> > > > And here is the FIS directory listing:
> > > >
> > > > RedBoot> fis list
> > > > Name              FLASH addr  Mem addr    Length      Entry point
> > > > RedBoot           0x50000000  0x50000000  0x00040000  0x00000000
> > > > ...
> > > > jffs              0x50300000  0x50300000  0x00080000  0x00050000
> > > >
>
> > I built my filesystem image with mkfs.jffs2 1.39 for redhat with the following
> > command:
> >
> > $ mkfs.jffs2 -o jffs.img -d jffs_tree/ -p 0x00400000 -e 0x00040000
> > $ ls -l jffs2.img
> > -rw-r--r--    1 root     root       262144  1 set 11:19 jffs.img
> > 
> > It produces a file of 256Kbytes (the erase block size), although i tried to pad
> > it to 4Mbytes. Is this ok?
>
> Have you changed the fis entry and the other CDL configurations to
> 4Mbytes?
>
> Also mkfs.jffs2 should produce a filesystem of 4Mbytes. It looks like
> there is a bug in the parameter handling. Try:
>
> mkfs.jffs2 -d jffs_tree --pad=4194304 -e 262144 -o jffs.img
>
> -p does not seem to be working.
>
>         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
>

In fact mkfs.jffs2 is bugged, and with the long format option all goes right.
But now there's another problem: i can't create big files because of write
errors. Do you think it's due to buggy hardware?
This is the result of the 'create' command:

/system> create wre.jar 1478774 0x100000                           
                              |
<5>Write of %zd bytes at 0x00000057 failed. returned 3014580, retlen %z d
<5>Write of %zd bytes at 0x000000f0 failed. returned 3080104, retlen %z d
<5>Write of %zd bytes at 0x000000de failed. returned 3211136, retlen %z d
<5>Write of %zd bytes at 0x000000cf failed. returned 3276784, retlen %z d
<5>Write of %zd bytes at 0x00000057 failed. returned 3342336, retlen %z d
<5>Write of %zd bytes at 0x00000130 failed. returned 2686972, retlen %z d
<5>Write of %zd bytes at 0x000000cd failed. returned 2752332, retlen %z d
<5>Write of %zd bytes at 0x000000f7 failed. returned 2817824, retlen %z d
<5>Write of %zd bytes at 0x00000126 failed. returned 2424688, retlen %z d
<5>Write of %zd bytes at 0x00000130 failed. returned 2490308, retlen %z d
<5>Write of %zd bytes at 0x000000f2 failed. returned 2555804, retlen %z d

And then the shell freezes. It seems to freeze on the close() call. When i reset
the board, i have a bunch of CRC errors.

<5>jffs2_get_inode_nodes(): CRC failed on node at 0x0031fff0: Read 0xffffffff,
calculated 0x18c9dceb
<5>jffs2_get_inode_nodes(): Data CRC failed on node at 0x0030ff80: Read
0x96cc0ab3, calculated 0x3e2b0d6d
<5>jffs2_get_inode_nodes(): Data CRC failed on node at 0x002effa8: Read
0x6b180c1d, calculated 0xb3109ff2
<5>jffs2_get_inode_nodes(): Data CRC failed on node at 0x002dffb4: Read
0xf58f44e5, calculated 0xefd5c185
<5>jffs2_get_inode_nodes(): Data CRC failed on node at 0x002aff20: Read
0xc7ab4f34, calculated 0x13c766c1
<5>jffs2_get_inode_nodes(): Data CRC failed on node at 0x0029ff4c: Read
0xacba860d, calculated 0x67db399e
<5>jffs2_get_inode_nodes(): Data CRC failed on node at 0x0026ff9c: Read
0xb9e796c4, calculated 0x420547ff
<5>jffs2_get_inode_nodes(): CRC failed on node at 0x0025ffc4: Read 0x0000000c,
calculated 0x902f562d
<5>jffs2_get_inode_nodes(): Data CRC failed on node at 0x0024ff70: Read
0x781ca088, calculated 0xb9023153
wre.jar          -rwxrwxrwx 1357736     0       1       1478774

I think this flash memory is really buggy... :(


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