Skip to contentSkip to conversation

workstation mount of jffs2 and endianess

DISCUSSION Robin Gilks 2 participants 2 messages Feb 2, 2004 – Feb 20, 2004 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Greetings

Is it possible to mount a bigendian jffs2 filesystem image (via blkmtd or whatever) on a little endian host system (i.e. a PC workstation)?

If so, where do I tell the system what the endianess is? At present I get errors during mount (which if the endianess is not known I'd expect) of the form:
losetup /dev/loop3 /home/gilksr/jffs2.fs
insmod blkmtd erasesz=64 device=/dev/loop3
mount -t jffs2 /dev/mtdblock/0 /mnt/root_fs
mount: wrong fs type, bad option, bad superblock on /dev/loop3,
or too many mounted file systems

I've checked that I can create and loop mount a l-e filesystem but the target I'm working with is a powerpc that I want to keep as natively b-e.

Signature · 5 lines
Robin Gilks
Senior Design Engineer          Phone: (+64)(3) 357 1569
Tait Electronics                Fax  :  (+64)(3) 359 4632
PO Box 1645 Christchurch        Email : [email protected]
New Zealand
#1 lore raw
Quoted 2 lines · Robin Gilks

Is it possible to mount a bigendian jffs2 filesystem image (via blkmtd or whatever) on a little endian host system (i.e. a PC workstation)?

Yes. #define JFFS2_BIG_ENDIAN in include/linux/jffs2.h

Signature · 1 line
dwmw2