From: Jun Sun <jsun@mvista.com>
To: Tibor Polgar <tpolgar@freehandsystems.com>
Cc: Mark Salter <msalter@redhat.com>,
krishnakumar@naturesoft.net, linux-mips@linux-mips.org,
jsun@mvista.com
Subject: Re: Ramdisk image on flash.
Date: Thu, 20 Feb 2003 12:37:32 -0800 [thread overview]
Message-ID: <20030220123732.F7466@mvista.com> (raw)
In-Reply-To: <3E55342D.6E1D36FF@freehandsystems.com>; from tpolgar@freehandsystems.com on Thu, Feb 20, 2003 at 12:01:49PM -0800
On Thu, Feb 20, 2003 at 12:01:49PM -0800, Tibor Polgar wrote:
> > >> On Wed, 2003-02-19 at 22:05, Krishnakumar. R wrote:
> > >> > Hi,
> > >> >
> > >> > Is there any way that I can keep
> > >> > a ramdisk image (containing the root filesystem)
> > >> > in a flash device and boot to it.
> > >>
> > >> Yes, and other architectures have support for passing arguments to the
> > >> kernel that tell it where the ramdisk is. I don't know that we've done
> > >> that for MIPS, yet. It wouldn't be too hard to do and maybe someone on
> > >> this list is already working on it (I think someone actually is working
> > >> on it and was preparing a patch for Ralf).
> >
> > > For having separate initrd and kernel load we also need an aware bootloader
> > > that knows where to find the ramdisk. RedBoot, from what i read, seems to be
> > > i386 specific.
> >
> > Not at all. RedBoot can be used to pass a command line to MIPS kernels. It
> > would be simple to add the passing of a ramdisk address. It already supports
> > ramdisks from ARM and SH kernels.
>
> The original poster wanted a setup where the initrd was NOT part of the
> kernel, which begs the question of how/where it would be put into flash so
> something could load/uncompress it. I'd love to have a way to decouple the
> two so i wouldn't have to recompile the kernel when i change the root image,
> but still not waste any space in flash. I guess they could be written one
> after the other and the loader is just given a "load map" of where each one
> resides. Would this satisfy Krishnakumar's requirements?
>
For the sanity of kernel, I also favor leaving ramfs root outside kernel.
It would be nice if we can do the following :
1) create kernel ELF as normal
2) outside the kernel, create .o file that is ramfs root
3) outside the kernel, we use a separate tool/program that combines
1) and 2) into a new ELF file. The entry point of the new ELF file
would append ramfs parameters (such as "initrd=xxxx") to the args
and then jump to kernel_entry.
There are some difficulties, but looks very possible.
Jun
next prev parent reply other threads:[~2003-02-20 20:37 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-20 6:05 Ramdisk image on flash Krishnakumar. R
2003-02-20 18:27 ` Pete Popov
2003-02-20 19:30 ` Tibor Polgar
2003-02-20 19:41 ` Mark Salter
2003-02-20 20:01 ` Tibor Polgar
2003-02-20 20:16 ` Mark Salter
2003-02-20 20:35 ` Dan Malek
2003-02-20 20:44 ` Jun Sun
2003-02-20 20:57 ` Pete Popov
2003-02-20 21:24 ` Dan Malek
2003-02-20 20:37 ` Jun Sun [this message]
2003-02-20 21:08 ` Guido Guenther
2003-02-20 21:12 ` Alan Cox
2003-02-20 19:41 ` Pete Popov
2003-02-20 19:42 ` Brian Murphy
2003-02-20 20:59 ` Guido Guenther
2003-02-20 21:27 ` Dan Malek
2003-02-21 2:24 ` Atsushi Nemoto
2003-02-21 20:25 ` fixup_bigphys_addr and DBAu1500 dev board Jeff Baitis
2003-02-21 20:40 ` Dan Malek
2003-02-21 22:10 ` Pete Popov
2003-02-22 3:50 ` Jeff Baitis
2003-02-23 9:19 ` Geert Uytterhoeven
2003-02-24 17:46 ` Pete Popov
2003-02-25 21:54 ` Jeff Baitis
2003-02-25 22:05 ` Pete Popov
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=20030220123732.F7466@mvista.com \
--to=jsun@mvista.com \
--cc=krishnakumar@naturesoft.net \
--cc=linux-mips@linux-mips.org \
--cc=msalter@redhat.com \
--cc=tpolgar@freehandsystems.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 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.