linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* r3 and bd_t
@ 2001-12-11 18:24 Andrew Dixon
  2001-12-11 18:34 ` Tom Rini
  0 siblings, 1 reply; 8+ messages in thread
From: Andrew Dixon @ 2001-12-11 18:24 UTC (permalink / raw)
  To: ppclist


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/

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

* Re: r3 and bd_t
  2001-12-11 18:24 Andrew Dixon
@ 2001-12-11 18:34 ` Tom Rini
  2001-12-12 17:14   ` jtm
  0 siblings, 1 reply; 8+ messages in thread
From: Tom Rini @ 2001-12-11 18:34 UTC (permalink / raw)
  To: Andrew Dixon; +Cc: ppclist


On Tue, Dec 11, 2001 at 01:24:11PM -0500, Andrew Dixon wrote:
>
> 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.

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/

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

* Re: r3 and bd_t
  2001-12-12 17:14   ` jtm
@ 2001-12-12 14:08     ` Matt Porter
  2001-12-12 17:14     ` Tom Rini
  1 sibling, 0 replies; 8+ messages in thread
From: Matt Porter @ 2001-12-12 14:08 UTC (permalink / raw)
  To: Tom Rini, ppclist


On Wed, Dec 12, 2001 at 11:14:57AM -0600, jtm@smoothsmoothie.com wrote:
>
> On Tue, Dec 11, 2001 at 11:34:30AM -0700, Tom Rini wrote:
> >
>
> > 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.
>
> I think the 8260 uses arch/ppc/kernel/head.S instead of head_8xx.S.

It has to, it's a 603 core.

--
Matt Porter
MontaVista Software, Inc.
mporter@mvista.com

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

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

* Re: r3 and bd_t
  2001-12-12 17:14   ` jtm
  2001-12-12 14:08     ` Matt Porter
@ 2001-12-12 17:14     ` Tom Rini
  1 sibling, 0 replies; 8+ messages in thread
From: Tom Rini @ 2001-12-12 17:14 UTC (permalink / raw)
  To: Andrew Dixon, ppclist


On Wed, Dec 12, 2001 at 11:14:57AM -0600, jtm@smoothsmoothie.com wrote:
> On Tue, Dec 11, 2001 at 11:34:30AM -0700, Tom Rini wrote:
> >
>
> > 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.
>
> I think the 8260 uses arch/ppc/kernel/head.S instead of head_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/

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

* Re: r3 and bd_t
  2001-12-11 18:34 ` Tom Rini
@ 2001-12-12 17:14   ` jtm
  2001-12-12 14:08     ` Matt Porter
  2001-12-12 17:14     ` Tom Rini
  0 siblings, 2 replies; 8+ messages in thread
From: jtm @ 2001-12-12 17:14 UTC (permalink / raw)
  To: Tom Rini; +Cc: Andrew Dixon, ppclist


On Tue, Dec 11, 2001 at 11:34:30AM -0700, Tom Rini wrote:
>

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

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
monkman@jump.net    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/

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

* Re: r3 and bd_t
  2001-12-12 22:57 r3 and bd_t Jim Thompson
@ 2001-12-12 20:56 ` Matt Porter
  2001-12-12 23:23 ` Tom Rini
  1 sibling, 0 replies; 8+ messages in thread
From: Matt Porter @ 2001-12-12 20:56 UTC (permalink / raw)
  To: Jim Thompson; +Cc: jtm, trini, andrew.dixon, linuxppc-embedded


On Wed, Dec 12, 2001 at 04:57:11PM -0600, Jim Thompson wrote:
>
> >> 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.
> >
> > I think the 8260 uses arch/ppc/kernel/head.S instead of head_8xx.S.
>
> And the 8245?

head.S handles classic PPC cores (6xx/7xx/74xx/82xx).
head_4xx.S and head_8xx.S are obvious then.

--
Matt Porter
MontaVista Software, Inc.
mporter@mvista.com

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

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

* Re: r3 and bd_t
@ 2001-12-12 22:57 Jim Thompson
  2001-12-12 20:56 ` Matt Porter
  2001-12-12 23:23 ` Tom Rini
  0 siblings, 2 replies; 8+ messages in thread
From: Jim Thompson @ 2001-12-12 22:57 UTC (permalink / raw)
  To: jtm, trini; +Cc: andrew.dixon, linuxppc-embedded


>> 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.
>
> I think the 8260 uses arch/ppc/kernel/head.S instead of head_8xx.S.

And the 8245?


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

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

* Re: r3 and bd_t
  2001-12-12 22:57 r3 and bd_t Jim Thompson
  2001-12-12 20:56 ` Matt Porter
@ 2001-12-12 23:23 ` Tom Rini
  1 sibling, 0 replies; 8+ messages in thread
From: Tom Rini @ 2001-12-12 23:23 UTC (permalink / raw)
  To: Jim Thompson; +Cc: jtm, andrew.dixon, linuxppc-embedded


On Wed, Dec 12, 2001 at 04:57:11PM -0600, Jim Thompson wrote:
> >> 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.
> >
> > I think the 8260 uses arch/ppc/kernel/head.S instead of head_8xx.S.
>
> And the 8245?

arch/ppc/kernel/head.S as well.

--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

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

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

end of thread, other threads:[~2001-12-12 23:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-12 22:57 r3 and bd_t Jim Thompson
2001-12-12 20:56 ` Matt Porter
2001-12-12 23:23 ` Tom Rini
  -- strict thread matches above, loose matches on Subject: below --
2001-12-11 18:24 Andrew Dixon
2001-12-11 18:34 ` Tom Rini
2001-12-12 17:14   ` jtm
2001-12-12 14:08     ` Matt Porter
2001-12-12 17:14     ` Tom Rini

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