linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* booting HardHat on IBM 405GP
@ 2001-03-26 16:12 Zehetbauer Thomas
  2001-03-27 12:50 ` Ralph Blach
  0 siblings, 1 reply; 6+ messages in thread
From: Zehetbauer Thomas @ 2001-03-26 16:12 UTC (permalink / raw)
  To: 'linuxppc-embedded@lists.linuxppc.org'


Hi!

My company is going to develop an embedded solution based on a IBM 406GP
processor.
We are in early development right now and I am trying to boot linux on a
> IBM 25 EB 405 P4 WIN WAL 00
evaluation kit (this is the information on the bill of delivery).

Attempting to debug I've found linux/arch/ppc/boot/tree/main.c:start to
be the first function executed.
At the very last step this function calls
>    (*(void (*)())sa)(&board_info,
>                      initrd_start,
>                      initrd_start + initrd_size,
>                      cmdline,
>                      cmdline + strlen(cmdline));
and I can't find where execution goes on.

Any help is greatly appreciated.

TIA
Tom

PS: Does someone know how to determine the board's revision number?

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

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

* Re: booting HardHat on IBM 405GP
  2001-03-26 16:12 Zehetbauer Thomas
@ 2001-03-27 12:50 ` Ralph Blach
  0 siblings, 0 replies; 6+ messages in thread
From: Ralph Blach @ 2001-03-27 12:50 UTC (permalink / raw)
  To: Zehetbauer Thomas; +Cc: 'linuxppc-embedded@lists.linuxppc.org'

[-- Attachment #1: Type: text/plain, Size: 1151 bytes --]

Zehetbauer,

Hi,  This is a function call to sa, and if you look at the address of sa
(the starting address) I'll bet it absoulte 0.  So, what happens is you
get a jump to zero.

Heres the boot process.
1)move the ramdisk to upper memory.
2)uncompress the kernel image starting a real 0.
3)Jump to 0.

Chip Blach

Zehetbauer Thomas wrote:
>
> Hi!
>
> My company is going to develop an embedded solution based on a IBM 406GP
> processor.
> We are in early development right now and I am trying to boot linux on a
> > IBM 25 EB 405 P4 WIN WAL 00
> evaluation kit (this is the information on the bill of delivery).
>
> Attempting to debug I've found linux/arch/ppc/boot/tree/main.c:start to
> be the first function executed.
> At the very last step this function calls
> >    (*(void (*)())sa)(&board_info,
> >                      initrd_start,
> >                      initrd_start + initrd_size,
> >                      cmdline,
> >                      cmdline + strlen(cmdline));
> and I can't find where execution goes on.
>
> Any help is greatly appreciated.
>
> TIA
> Tom
>
> PS: Does someone know how to determine the board's revision number?
>

[-- Attachment #2: Card for Ralph Blach --]
[-- Type: text/x-vcard, Size: 247 bytes --]

begin:vcard
n:Blach;Ralph
tel;work:919-543-1207
x-mozilla-html:TRUE
url:www.ibm.com
org:IBM MicroElectronics
adr:;;3039 Cornwallis		;RTP;NC;27709;USA
version:2.1
email;internet:rcblach@raleigh.ibm.com
x-mozilla-cpt:;15936
fn:Ralph Blach
end:vcard

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

* RE: booting HardHat on IBM 405GP
@ 2001-03-27 20:51 Zehetbauer Thomas
  2001-03-27 21:16 ` Frank Rowand
  2001-03-28  8:05 ` Stefano Coluccini
  0 siblings, 2 replies; 6+ messages in thread
From: Zehetbauer Thomas @ 2001-03-27 20:51 UTC (permalink / raw)
  To: linuxppc-embedded


It seems that execution stops when calling rfi in
arch/ppc/kernel/head_4xx.S. I have put the sample code provided to
output a single character on the serial port immediately before the rfi
call and after the after the start_here label. Only the first is beeing
executed. Any ideas?

Tom

> -----Original Message-----
> From: Ralph Blach [mailto:rcblach@raleigh.ibm.com]
>
> Hi,  This is a function call to sa, and if you look at the
> address of sa
> (the starting address) I'll bet it absoulte 0.  So, what
> happens is you
> get a jump to zero.
>
> Heres the boot process.
> 1)move the ramdisk to upper memory.
> 2)uncompress the kernel image starting a real 0.
> 3)Jump to 0.
>
> Chip Blach
>
> Zehetbauer Thomas wrote:
> >
> > My company is going to develop an embedded solution based
> on a IBM 406GP
> > processor.
> > We are in early development right now and I am trying to
> boot linux on a
> > > IBM 25 EB 405 P4 WIN WAL 00
> > evaluation kit (this is the information on the bill of delivery).
> >
> > Attempting to debug I've found
> linux/arch/ppc/boot/tree/main.c:start to
> > be the first function executed.
> > At the very last step this function calls
> > >    (*(void (*)())sa)(&board_info,
> > >                      initrd_start,
> > >                      initrd_start + initrd_size,
> > >                      cmdline,
> > >                      cmdline + strlen(cmdline));
> > and I can't find where execution goes on.
> >
> > PS: Does someone know how to determine the board's revision number?

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

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

* Re: booting HardHat on IBM 405GP
  2001-03-27 20:51 booting HardHat on IBM 405GP Zehetbauer Thomas
@ 2001-03-27 21:16 ` Frank Rowand
  2001-03-28  8:05 ` Stefano Coluccini
  1 sibling, 0 replies; 6+ messages in thread
From: Frank Rowand @ 2001-03-27 21:16 UTC (permalink / raw)
  To: Zehetbauer Thomas; +Cc: linuxppc-embedded


Zehetbauer Thomas wrote:
>
> It seems that execution stops when calling rfi in
> arch/ppc/kernel/head_4xx.S. I have put the sample code provided to
> output a single character on the serial port immediately before the rfi
> call and after the after the start_here label. Only the first is beeing
> executed. Any ideas?
>
> Tom

What kernel version are you using?  Where did you get the kernel?
What is the console output, from power on to the point where it hangs?


> > Zehetbauer Thomas wrote:
> > >
> > > My company is going to develop an embedded solution based
> > on a IBM 406GP
> > > processor.
> > > We are in early development right now and I am trying to
> > boot linux on a
> > > > IBM 25 EB 405 P4 WIN WAL 00
> > > evaluation kit (this is the information on the bill of delivery).
> > >
> > > Attempting to debug I've found
> > linux/arch/ppc/boot/tree/main.c:start to
> > > be the first function executed.
> > > At the very last step this function calls
> > > >    (*(void (*)())sa)(&board_info,
> > > >                      initrd_start,
> > > >                      initrd_start + initrd_size,
> > > >                      cmdline,
> > > >                      cmdline + strlen(cmdline));
> > > and I can't find where execution goes on.
> > >
> > > PS: Does someone know how to determine the board's revision number?

Check the PVR reported by the bootrom when you power on or reset the Walnut.

405GP rev B    PVR: 40110040
405GP rev C    PVR: 40110082
405GP rev D    PVR: 401100c4


>


-Frank
--
Frank Rowand <frank_rowand@mvista.com>
MontaVista Software, Inc

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

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

* RE: booting HardHat on IBM 405GP
  2001-03-27 20:51 booting HardHat on IBM 405GP Zehetbauer Thomas
  2001-03-27 21:16 ` Frank Rowand
@ 2001-03-28  8:05 ` Stefano Coluccini
  1 sibling, 0 replies; 6+ messages in thread
From: Stefano Coluccini @ 2001-03-28  8:05 UTC (permalink / raw)
  To: Zehetbauer Thomas; +Cc: linuxppc-embedded


> It seems that execution stops when calling rfi in
> arch/ppc/kernel/head_4xx.S. I have put the sample code provided to
> output a single character on the serial port immediately before the rfi
> call and after the after the start_here label. Only the first is beeing
> executed. Any ideas?

Are you sure that the code that print a char on the serial port works also
with MMU enabled ?


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

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

* RE: booting HardHat on IBM 405GP
@ 2001-03-28 11:17 Zehetbauer Thomas
  0 siblings, 0 replies; 6+ messages in thread
From: Zehetbauer Thomas @ 2001-03-28 11:17 UTC (permalink / raw)
  To: linuxppc-embedded


I am not certain but I have tried to enable MSR_DR and was still able to
print to the serial console.

Tom

> -----Original Message-----
> From: Stefano Coluccini [mailto:s.coluccini@caen.it]
> Sent: Wednesday, March 28, 2001 10:05 AM
> To: Zehetbauer Thomas
> Cc: linuxppc-embedded@lists.linuxppc.org
> Subject: RE: booting HardHat on IBM 405GP
>
>
>
> > It seems that execution stops when calling rfi in
> > arch/ppc/kernel/head_4xx.S. I have put the sample code provided to
> > output a single character on the serial port immediately
> before the rfi
> > call and after the after the start_here label. Only the
> first is beeing
> > executed. Any ideas?
>
> Are you sure that the code that print a char on the serial
> port works also
> with MMU enabled ?
>

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

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

end of thread, other threads:[~2001-03-28 11:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-27 20:51 booting HardHat on IBM 405GP Zehetbauer Thomas
2001-03-27 21:16 ` Frank Rowand
2001-03-28  8:05 ` Stefano Coluccini
  -- strict thread matches above, loose matches on Subject: below --
2001-03-28 11:17 Zehetbauer Thomas
2001-03-26 16:12 Zehetbauer Thomas
2001-03-27 12:50 ` Ralph Blach

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