linux-mips
[Top] [All Lists]

Re: howto pass ramdisk loaddress to kernel

To: Florian Lohoff <flo@rfc822.org>
Subject: Re: howto pass ramdisk loaddress to kernel
From: Guido Guenther <agx@sigxcpu.org>
Date: Fri, 10 May 2002 20:37:37 +0200
Cc: linux-mips@oss.sgi.com
In-reply-to: <20020507104538.GB795@paradigm.rfc822.org>; from flo@rfc822.org on Tue, May 07, 2002 at 12:45:38PM +0200
Mail-followup-to: Florian Lohoff <flo@rfc822.org>, linux-mips@oss.sgi.com
References: <20020507123249.A9827@gandalf.physik.uni-konstanz.de> <20020507104538.GB795@paradigm.rfc822.org>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.2.5i
Hi,
On Tue, May 07, 2002 at 12:45:38PM +0200, Florian Lohoff wrote:
> On Tue, May 07, 2002 at 12:32:49PM +0200, Guido Guenther wrote:
> > My question is now: how do i properly pass the initrd's memory address
> > to the kernel? Choices are:
> > 1) on the commandline: rd_start=0x...
> > 2) a bootparameter block like on i386 or sparc in head.S
> > 3) rely on the kernel to identify if a radisk has
> >   been loaded by a magic number
> > 
> > I'd prefer (1) but it seems none of the other arches does this. Is there
> > a reason for that? If not could we just introduce a new kernel
> > commandline parameter rd_start which has a memory address as a
> > parameter. Ralf, would you let this into the kernel?
> 
> I would do 1+3 - Give the address on the command line and let the ramdisk
> have a magic + length in the first 2 __u32.
I implemented (1) only since the kernel checks for a proper fs/gzip
magic anyway. I added this to the kernels at:
 http://honk.physik.uni-konstanz.de/linux-mips/kernels/
Patch is at:
 
http://honk.physik.uni-konstanz.de/linux-mips/kernel-patches/ramdisk-cmdline-2002-05-09.diff
Regards,
 -- Guido

<Prev in Thread] Current Thread [Next in Thread>