linux-mips
[Top] [All Lists]

Re: howto pass ramdisk loaddress to kernel

To: ralf@gnu.org
Subject: Re: howto pass ramdisk loaddress to kernel
From: Guido Guenther <agx@sigxcpu.org>
Date: Thu, 16 May 2002 16:34:10 +0200
Cc: linux-mips@oss.sgi.com
In-reply-to: <20020507123249.A9827@gandalf.physik.uni-konstanz.de>; from agx@sigxcpu.org on Tue, May 07, 2002 at 12:32:49PM +0200
Mail-followup-to: ralf@gnu.org, linux-mips@oss.sgi.com
References: <20020507123249.A9827@gandalf.physik.uni-konstanz.de>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.2.5i
On Tue, May 07, 2002 at 12:32:49PM +0200, Guido Guenther wrote:
> Hi,
> in order to get rid of some ip22 specific hacks in setup.c as well as
> addinitrd/elf2ecoff I've written a small tool that links kernel+initrd
> as type "binary" into the data segment of the bootloader. This file can
> then be fetched by the prom via tftp(or from a CD or whatever). The
> bootloader copies the kernel to its loaddress and puts the initrd just
> after the kernel.
> 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
Attached is a patch that implements (1). Arguments used are rd_start &
rd_size. Ralf, please apply if suitable.
 -- Guido

Attachment: ramdisk-cmdline-2002-05-09.diff
Description: Text document

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