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.
Thank you.
Rgds,
Ramanathan G A
___________________________________________________
Impress your clients! Send mail from me @ mycompany.com .
Just Rs.1499/year.
Click http://www.rediffmailpro.com to know more.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
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 [off-list ref]
MLB Associates
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/