From: Sascha Hauer <s.hauer@pengutronix.de>
To: Jakob Malm <jakob.malm@gmail.com>
Cc: barebox@lists.infradead.org
Subject: Re: Boot linux from cramfs on USB
Date: Mon, 2 Apr 2012 16:29:29 +0200 [thread overview]
Message-ID: <20120402142929.GY3852@pengutronix.de> (raw)
In-Reply-To: <CAFEF1dF7M15xAgvYLdkVowavpXnvThkzXwtXe0fe4TEEYMFokQ@mail.gmail.com>
On Mon, Apr 02, 2012 at 03:58:49PM +0200, Jakob Malm wrote:
> Hi,
>
> How would I boot a linux system in a cramfs image on USB? I don't seem
> to be able to mount such an image:
>
> barebox:/ usb
> USB: scanning bus for devices...
> Bus 001 Device 002: ID 0dd8:1728 Flash Drive
> Using index 1 for the new disk
> Bus 001 Device 001: ID 0000:0000 EHCI Host Controller
> 2 USB Device(s) found
> barebox:/ mkdir /usb
> barebox:/ mount /dev/disk1.0 fat /usb
> barebox:/ mkdir /cramfs
> barebox:/ mount /usb/rootfs.cramfs cramfs /cramfs
> mount: Invalid argument
>
> Is it not possible to mount a cramfs image file?
cramfs currently has the limitation that it can only mount
files which are memory mappable (that is for example nor flash).
I never fixed this due to the lack of interest for cramfs.
That said, your setup seems a bit crazy. What is inside your cramfs? The
kernel? You should rather put your kernel into a plain partition on the
USB disk. Or do you only have your rootfs inside the cramfs? I rather
recommend ext2 or ext3 for this.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2012-04-02 14:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-02 13:58 Jakob Malm
2012-04-02 14:29 ` Sascha Hauer [this message]
2012-04-02 15:33 ` Jakob Malm
2012-04-02 17:47 ` Sascha Hauer
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=20120402142929.GY3852@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=jakob.malm@gmail.com \
/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