From: Abraham van der Merwe <abz@frogfoot.net>
To: Linux PowerPC Developers <linuxppc-dev@lists.linuxppc.org>
Subject: how to hardcode ramdisk parameters in kernel
Date: Fri, 17 Jan 2003 13:27:33 +0200 [thread overview]
Message-ID: <20030117112733.GA16093@oasis.frogfoot.net> (raw)
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/
next reply other threads:[~2003-01-17 11:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-17 11:27 Abraham van der Merwe [this message]
2003-01-17 17:43 ` how to hardcode ramdisk parameters in kernel Wolfgang Denk
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=20030117112733.GA16093@oasis.frogfoot.net \
--to=abz@frogfoot.net \
--cc=linuxppc-dev@lists.linuxppc.org \
/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).