public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: John Messenger <JMessenger@advaoptical.com>
Cc: "'linux-mtd@lists.infradead.org'" <linux-mtd@lists.infradead.org>
Subject: Re: Trouble building mkfs.jffs2
Date: Mon, 30 Sep 2002 07:10:59 +0100	[thread overview]
Message-ID: <27336.1033366259@redhat.com> (raw)
In-Reply-To: <33BB463469A3D411B08F00508BDD1626E1872C@ntsyork.adva_york>

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

      reply	other threads:[~2002-09-30  6:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-27 18:18 Trouble building mkfs.jffs2 John Messenger
2002-09-30  6:10 ` David Woodhouse [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=27336.1033366259@redhat.com \
    --to=dwmw2@infradead.org \
    --cc=JMessenger@advaoptical.com \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox