r3 and bd_t
Hi All -
I'm trying to boot linux on an sbc8260 using PPCBoot. (Linux 2.4.16 and PPCBoot 1.1.2) PPCBoot passes a data structure (bd_t) with a lot of board information in it. The way that this is supposed to work (I think, please correct me if I'm wrong) is that PPCBoot leaves the address of the data structure in r3 and one of the first things that linux should do is to copy or obtain this information somehow. So, my question is this: does anyone know where this happens in the code? I've been looking in arch/ppc/kernel/setup.c and this looks like where it should happen but I don't see it.
Any help would be greatly appreciated.
Thanks,
Andy
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 12 lines · Andrew Dixon
Hi All -
I'm trying to boot linux on an sbc8260 using PPCBoot. (Linux 2.4.16 and PPCBoot 1.1.2) PPCBoot passes a data structure (
bd_t) with a lot of board information in it. The way that this is supposed to work (I think, please correct me if I'm wrong) is that PPCBoot leaves the address of the data structure in r3 and one of the first things that linux should do is to copy or obtain this information somehow. So, my question is this: does anyone know where this happens in the code? I've been looking inarch/ppc/kernel/setup.cand this looks like where it should happen but I don't see it.
arch/ppc/kernel/head_8xx.S saves this and passes it onto early_init() iirc, which will pass it along to platform_init(), which copies it for safe keeping.
--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 9 lines · On Wed, Dec 12, 2001 at 11:14:57AM -0600, [email protected] wrote:
Quoted 5 lines · Tom Rini
arch/ppc/kernel/head_8xx.Ssaves this and passes it ontoearly_init()iirc, which will pass it along toplatform_init(), which copies it for safe keeping.I think the 8260 uses
arch/ppc/kernel/head.Sinstead ofhead_8xx.S.
It has to, it's a 603 core.
--
Matt Porter
MontaVista Software, Inc.
[email protected]
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 8 lines · On Wed, Dec 12, 2001 at 11:14:57AM -0600, [email protected] wrote:
Quoted 5 lines · Tom Rini
arch/ppc/kernel/head_8xx.Ssaves this and passes it ontoearly_init()iirc, which will pass it along toplatform_init(), which copies it for safe keeping.I think the 8260 uses
arch/ppc/kernel/head.Sinstead ofhead_8xx.S.
Er, yes. Sorry, i thought the question was about 8xx not 8260.
--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 5 lines · Tom Rini
arch/ppc/kernel/head_8xx.Ssaves this and passes it ontoearly_init()iirc, which will pass it along toplatform_init(), which copies it for safe keeping.
I think the 8260 uses arch/ppc/kernel/head.S instead of head_8xx.S.
--
Jay Monkman The truth knocks on the door and you say "Go away, I'm
[email protected] looking for the truth," and so it goes away. Puzzling.
- from _Zen_and_the_Art_of_Motorcycle_Maintenance_
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/