* Trouble building mkfs.jffs2
@ 2002-09-27 18:18 John Messenger
2002-09-30 6:10 ` David Woodhouse
0 siblings, 1 reply; 2+ messages in thread
From: John Messenger @ 2002-09-27 18:18 UTC (permalink / raw)
To: 'linux-mtd@lists.infradead.org'
Hi,
Building mkfs.jffs2 after copying the content of the mtd distribution into
my kernel build tree, I get:
cd util
make
...
compr_zlib.c:15:2: #error "The userspace support got too messy and was
removed. Update your mkfs.jffs2".
Has this been fixed? Any suggestions?
Related question: how do you build your initial JFFS2 images? I am also
trying to loopback mount a JFFS2 for a PPC machine on an i386 Red Hat 7.3
after loading JFFS2 modules, but no luck so far.
Help greatfully received.
-- John
--
John Messenger, R&D Software Manager, ADVA Optical Networking Ltd.
Tel: +44-(1904) 699309
Fax: +44-(1904) 699378
Email: JMessenger@advaoptical.com
www.advaoptical.com
"Mind like parachute - only works when open." -- Charlie Chan
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Trouble building mkfs.jffs2
2002-09-27 18:18 Trouble building mkfs.jffs2 John Messenger
@ 2002-09-30 6:10 ` David Woodhouse
0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2002-09-30 6:10 UTC (permalink / raw)
To: John Messenger; +Cc: 'linux-mtd@lists.infradead.org'
JMessenger@advaoptical.com said:
> cd util
> make
> ...
> compr_zlib.c:15:2: #error "The userspace support got too messy and was removed. Update your mkfs.jffs2".
> Has this been fixed? Any suggestions?
rm compr_zlib. ; cvs up compr_zlib.c ; make
> Related question: how do you build your initial JFFS2 images? I am
> also trying to loopback mount a JFFS2 for a PPC machine on an i386 Red
> Hat 7.3 after loading JFFS2 modules, but no luck so far.
mkfs.jffs2 will build a _populated_ image for you, containing all the files
in the directory you specify. It's more like mkisofs/mkcramfs than
mkfs.ext2, and should probably be renamed accordingly.
If you really want to mount the image on your PC, you need to be using the
latest code which can handle byteswapping (see the #define in jffs2.h) and
load an 'mtdram' module on the PC with size and erasesize matching your
hardware. Then see http://www.handhelds.org/z/wiki/LoopBack
Don't forget the '-b' option to mkfs.jffs2.
--
dwmw2
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-09-30 6:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-27 18:18 Trouble building mkfs.jffs2 John Messenger
2002-09-30 6:10 ` David Woodhouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox