mkfs.jffs problem with big endian target

Peter Wippich pewi at gw-instruments.de
Wed Nov 28 08:46:33 EST 2007


Dear, 

I'm stuck with a problem generating a JFFS2 image for a big endian target 
(MPC5200), build machine is i386. 

Symptom: 
Looks like file names / inodes get somehow corrupted, e.g. 
source dir: 
ls powerpc-603e-linux-rootfs-stripped/etc/
fstab  group  httpd.conf  inittab  modules.conf  passwd  rc.d  rpc

on target machine (after mounting, root is on nfs for now):
ls /mnt/rootfs/etc/
ls: /mnt/rootfs/etc/http: No such file or directory
ls: /mnt/rootfs/etc/modu: No such file or directory
fstab    group    inittab  passwd   rc.d     rpc    

I've used the latests snapshot of mtdutils from git (think it was 1.1.0), 
mkfs.jffs -v says revision 1.60. 

Target Linux Version is 2.6.22.1. 

Command line to build jffs2 image:
mkfs.jffs2 -v -b --pad --root=$XROOTSTRIP --output=$XROOT/images/rootfs.jffs2 
--eraseblock=0x20000 --squash

I've also tried to build the image without the -b option and than used 
jffs2dump to convert. Same result. 

Any known issues, hints ??? 

Thank you and best regards, 

Peter 

|       Peter Wippich                   Voice: +49 30 46776411          |
|       G&W Instruments GmbH            fax:   +49 30 46776419          |
|       Gustav-Meyer-Allee 25, Geb. 12  Email: pewi at gw-instruments.de   |
|       D-13355 Berlin  / Germany                                       |




More information about the linux-mtd mailing list