From: David Blythe <blythe@broadon.com>
To: steve.cameron@hp.com
Cc: linuxppc-embedded <linuxppc-embedded@lists.linuxppc.org>
Subject: Re: cramfs for root filesystem?
Date: Mon, 24 Jun 2002 17:55:47 -0700 [thread overview]
Message-ID: <3D17BF93.3060207@broadon.com> (raw)
In-Reply-To: 20020624161952.A28796@zuul.cca.cpqcorp.net
It looks like you still have an initrd. Don't try running cramfs as an
initrd. I don't know if anything has changed in later versions of 2.4
but earlier ones used a 1k blocks size for the ramdisk and even if you
tried changing the rd blocksize to 4k to match cramfs it still didn't
work properly ...
There were patches floating around for building a big-endian cramfs,
rather than fixing the cramfs implemention to convert to little endian.
I don't know if newer versions of cramfs support explicit little
endian rather than native endian. I can send you a version of mkcramfs
with the swap endian flag if you want.
I'm in the process of getting ramfs to work with cramfs on my system as
we speak.
david
Stephen Cameron wrote:
> I noticed that here,
>
> http://penguinppc.org/embedded/howto/root-filesystem.html
>
> it says:
>
>
>>It turns out that cramfs is not supported for a root fs or initrd.
>>Basically, the kernel checks a hardcoded list of supported
>>filesystems and if the MAGIC number doesn't match it bails.
>>
>
> Then, a couple lines later it says this, which clearly implies
> a read-only cramfs root fs is possible::
>
>
>>ramfs from the 2.4 kernel is a simple filesystem ideal for use in a
>>ramdisk. It can be used in combination with a cramfs read-only root
>>filesystem, to mount writable filesystems on /tmp and /var, which
>>typically need to be writable. This combination is ideal for
>>systems which don't require persistent storage.
>>
>
> So, I figured I'd try cramfs as a root fs and see if I'm lucky
> and the first statement is just a mistake, and I get:
>
> RAMDISK: Compressed image found at block 0 Freeing initrd memory: 1270k freed cramfs: wrong magic Kernel panic: VFS: Unable to mount root fs on 01:00 <0>Rebooting in 180 seconds..
>
> Well, it appears maybe the first statement is correct.
>
> Then again, the message seems to be coming from the cramfs
> part of the system...
>
> So when I made my cramfs, I used mkcramfs which I got today (jun 24 2002)
> from sourceforge. I noticed older versions had some notes about endianness.
> This version seems to say that little-endian is the proper format for the
> filesystem data, and this is what kind of cramfs it makes and the kernel
> on a big endian machine like mine needs to do the necessary byte swapping
> to handle it. Also, I created the cramfs on an intel box (little endian)
> so in any case the fs is little endian.
>
> Does the linuxppc_2_4_devel kernel from bitkeeper
> handle little-endian cramfs filesystems? Or is there
> a patch for this? Or a patch to mkcramfs to make it
> create a big-endian cramfs (despite threads I read saying
> this is the wrong way to proceed.)
>
> Or am I on the wrong track completely in trying to use
> cramfs for a root filesystem?
>
> Thanks,
>
> -- steve
>
>
>
>
>
>
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2002-06-25 0:55 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-24 21:19 cramfs for root filesystem? Stephen Cameron
2002-06-25 0:55 ` David Blythe [this message]
2002-06-25 11:22 ` Steven Hein
2002-06-25 12:35 ` Wolfgang Denk
2002-06-25 13:43 ` pepe potamo
-- strict thread matches above, loose matches on Subject: below --
2002-06-25 13:46 Cameron, Steve
2002-06-25 14:08 ` Steven Hein
2002-06-25 16:04 Stephen Cameron
2002-06-25 22:40 ` David Blythe
2002-06-25 20:30 Cameron, Steve
2002-06-26 13:28 Cameron, Steve
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=3D17BF93.3060207@broadon.com \
--to=blythe@broadon.com \
--cc=linuxppc-embedded@lists.linuxppc.org \
--cc=steve.cameron@hp.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;
as well as URLs for NNTP newsgroup(s).