All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stian Skjelstad <stian@nixia.no>
To: Rob Landley <rob@landley.net>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] Loopback mounting jffs2 under UML?
Date: Tue, 18 Dec 2007 20:14:15 +0100	[thread overview]
Message-ID: <1198005255.7293.6.camel@localhost> (raw)
In-Reply-To: <200712181245.23753.rob@landley.net>

I did try UML + blkmtd and jffs statically compiled in a couple of years
ago and it then almost worked out of the box. It failed then for me due
to a very small issue: the initializers in the different drivers
initialized in the wrong order, so I got a panic due to a
null-dereference. (driver initialization does/didn't have depencies).

Just me five cents :-)

Stian

On Tue, 2007-12-18 at 12:45 -0600, Rob Landley wrote:
> I want to loopback mount a jffs2 filesystem, and this filesystem has 
> incestuous knowledge of flash devices for wear levelling and stuff, so it 
> will only mount an actual flash device and not a normal block device.
> 
> There's a way to make a loopback device look like a flash device, letting you 
> loopback mount jffs2, but it involves recompiling the kerenel to add support 
> for it, and of course I went "User Mode Linux"...  Except that UML disables 
> the flash menu entirely.
> 
> Basically, I need to be able to enable MTD_BLOCK so I can go:
> 
>   losetup /dev/loop0 /path/to/imagefile.jffs2
>   insmod blkmtd erasesz=256 device=/dev/loop0
>   mount -t jffs2 /dev/mtdblock0 /mnt
> 
> This shouldn't need any actual flash hardware.  It's just layering another 
> translation layer on top of loopback.
> 
> Suggestions?
> 
> Rob


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  reply	other threads:[~2007-12-18 20:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-18 18:45 [uml-devel] Loopback mounting jffs2 under UML? Rob Landley
2007-12-18 19:14 ` Stian Skjelstad [this message]
2007-12-18 19:29 ` Jeff Dike
2007-12-19  0:03   ` Rob Landley
2007-12-19  8:10     ` Geert Uytterhoeven

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=1198005255.7293.6.camel@localhost \
    --to=stian@nixia.no \
    --cc=rob@landley.net \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.