This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: jffs2 / eCos
- From: David Woodhouse <dwmw2 at infradead dot org>
- To: Bob Koninckx <bob dot koninckx at mech dot kuleuven dot ac dot be>
- Cc: ecos-discuss at sources dot redhat dot com, linux-mtd at lists dot infradead dot org
- Date: 31 Mar 2003 08:17:59 +0100
- Subject: [ECOS] Re: jffs2 / eCos
- Organization:
- References: <1049057380.1180.36.camel@pc-002>
On Sun, 2003-03-30 at 21:49, Bob Koninckx wrote:
> First I tried mkfs.jffs2 version 1.32. Mounting the filesystem did not
> even succeed in this case. Apparently some magic number that needed to
> be 1985 was read as 8519. Some endianness problem I suppose.
We broke the endianness support in mkfs.jffs2...
> After upgrading to version 1.35, the filesystem can be mounted.
... then we fixed it :)
> Files
> and directories appear to be present (the same fileio1 test still runs
> sucessfull and lists what should be present). Opening a file on this
> system seems to succeed (fopen returns a FILE * anyway). However, when I
> try to _read_ from the file, I get EIO errors.
Compile with CONFIG_JFFS2_FS_DEBUG set to 1 (in os-ecos.h iirc). Show
the error messages you get before it gives you EIO.
> Has anybody successfully used mkfs.jffs2 for making a filesystem image
> for a powerpc target system running eCos ? Am I doing something obvious
> wrong ?
You're doing nothing obviously wrong. The endianness support in
mkfs.jffs2 was temporarily broken, but that led to the failure to mount
which you first saw -- it shouldn't be related to the latter problem.
--
dwmw2
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss