From: Gary Thomas <gary@mlbassoc.com>
To: ramanathan G A <ramanathan_ga@rediffmail.com>
Cc: linuxppc embedded <linuxppc-embedded@lists.linuxppc.org>
Subject: Re: linux ppc boot parameters R3, R5
Date: 14 May 2003 08:51:42 -0600 [thread overview]
Message-ID: <1052923901.18521.7699.camel@hermes> (raw)
In-Reply-To: <20030514143624.358.qmail@webmail31.rediffmail.com>
On Wed, 2003-05-14 at 08:36, ramanathan G A wrote:
> Hi All,
>
> I am trying to boot an MPC8260 board with Linux 2.4.4. I cross
> compiled the kernel for PPC using GCC 3.2 and prepared a
> 'zImage.initrd'. Since the board has a working bootloader for
> pSOS, I decide to use the same with minimum modifications to suite
> for loading the linux image.
>
> Going through the literature, I could understand that the linux
> image is expecting TWO arguments; in registers R3 and R5.
> R3 - Pointer to board information structure
> R5 - Open Firmware Data. (??)
>
> Now, I have to modify my boot loader in order to boot linux
> image.
> The boot loader is supposed to do the basic initialization of the
> processor, load the image on to the RAM from flash and give
> control to the image entry point.
>
> Could some one help me giving pointers to what is meant by this R5
> parameter (Open Firmware Data)? What is the significance? Can I
> avoid this parameter and proceed?
> (I am stuck at this point.)
>
> Any suggestions to improve the situation is welcome.
>
That pointer is only important for systems which utilize Open Firmware
booting (like the Apple boxes). It's not used [AFAIK] on embedded
devices like an 8260.
Also, the bootstrap on many platforms does not provide the board data.
In this case, you can just "hardwire" the parameters. Look at the
code in "arch/ppc/boot/simple/embed_config.c" to see how it's done.
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2003-05-14 14:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-14 14:36 linux ppc boot parameters R3, R5 ramanathan G A
2003-05-14 14:51 ` Gary Thomas [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-05-14 14:48 Claus Gindhart
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=1052923901.18521.7699.camel@hermes \
--to=gary@mlbassoc.com \
--cc=linuxppc-embedded@lists.linuxppc.org \
--cc=ramanathan_ga@rediffmail.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 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).