linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* how to hardcode ramdisk parameters in kernel
@ 2003-01-17 11:27 Abraham van der Merwe
  2003-01-17 17:43 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Abraham van der Merwe @ 2003-01-17 11:27 UTC (permalink / raw)
  To: Linux PowerPC Developers


Hi!

Is there any way to hardcode the parameters in the kernel so that it loads
the ramdisk at runtime correctly. For example:

kernel -> zImage.bin
ramdisk -> ramdisk.gz

Now I want to do

cat zImage.bin ramdisk.gz > boot.bin

and then I want to write initrd_start (size of zImage.bin) and initrd_end
(initrd_start+size of ramdisk.gz) somewhere in the boot.bin binary and the
kernel should know where to find the ramdisk in memory at boot time.

I'm using the simple boot loader for my platform. From the sandpoint
platform code it seems that r4 and r5 is passed to the platform_init()
function and that can be used to setup initrd_start and initrd_end
correctly, but how do I set r4 and r5?

--

Regards
 Abraham

QOTD:
	"I ain't broke, but I'm badly bent."

___________________________________________________
 Abraham vd Merwe [ZR1BBQ] - Frogfoot Networks
 P.O. Box 3472, Matieland, Stellenbosch, 7602
 Cell: +27 82 565 4451 Http: http://www.frogfoot.net/
 Email: abz@frogfoot.net

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: how to hardcode ramdisk parameters in kernel
  2003-01-17 11:27 how to hardcode ramdisk parameters in kernel Abraham van der Merwe
@ 2003-01-17 17:43 ` Wolfgang Denk
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2003-01-17 17:43 UTC (permalink / raw)
  To: Abraham van der Merwe; +Cc: Linux PowerPC Developers


In message <20030117112733.GA16093@oasis.frogfoot.net> you wrote:
>
> cat zImage.bin ramdisk.gz > boot.bin
>
> and then I want to write initrd_start (size of zImage.bin) and initrd_end
> (initrd_start+size of ramdisk.gz) somewhere in the boot.bin binary and the
> kernel should know where to find the ramdisk in memory at boot time.

make zImage.initrd


Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
A man is not complete until he is married -- then he is finished.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-17 17:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-17 11:27 how to hardcode ramdisk parameters in kernel Abraham van der Merwe
2003-01-17 17:43 ` Wolfgang Denk

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).