* Debugging with BDI
@ 2003-07-18 9:26 Juergen Beisert
2003-07-18 10:07 ` Wolfgang Denk
0 siblings, 1 reply; 3+ messages in thread
From: Juergen Beisert @ 2003-07-18 9:26 UTC (permalink / raw)
To: linuxppc-embedded
Hi all,
I'm trying to debug my u-boot with BDI. It's a 405GP system.
In the telnet sessoin I can insert "reset run" and the u-boot starts. When I
enter "reset halt" and then "go" it won't do anything. I have tried with ddd
and I see a few instructions work up to the mtmsr instruction (with "restart
halt", "bi 0xfffc0100"and "go" at the BDI telent and then start the ddd)
See file cpu/ppc4xx/start.S:
#if defined(CONFIG_405GP) || defined(CONFIG_405CR) || defined(CONFIG_405)
/*----------------------------------------------------------------------- */
/* Clear and set up some registers. */
/*----------------------------------------------------------------------- */
addi r4,r0,0x0000
mtspr sgr,r4
mtspr dcwr,r4
mtesr r4 /* clear Exception Syndrome Reg */
mttcr r4 /* clear Timer Control Reg */
mtxer r4 /* clear Fixed-Point Exception Reg */
mtevpr r4 /* clear Exception Vector Prefix Reg */
addi r4,r0,0x1000 /* set ME bit (Machine Exceptions) */
oris r4,r4,0x0002 /* set CE bit (Critical Exceptions) */
mtmsr r4 /* change MSR */
When I step the mtmsr instruction ddd shows address 0x700, and the esr
register has 0x8800'0000 (illegal instruction occured?????).
Same when I place a breakpoint behind the mtmsr instruction und use "cont"
instead of "stepi".
What is the difference between "reset run" and "reset halt", "go"?
Thanks in advance for any suggestion.
-- JB
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Debugging with BDI
2003-07-18 9:26 Debugging with BDI Juergen Beisert
@ 2003-07-18 10:07 ` Wolfgang Denk
2003-07-18 10:31 ` Juergen Beisert
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Denk @ 2003-07-18 10:07 UTC (permalink / raw)
To: jbeisert; +Cc: linuxppc-embedded
Dear Jürgen,
in message <200307181126.35714.jbeisert@eurodsn.de> you wrote:
>
> I'm trying to debug my u-boot with BDI. It's a 405GP system.
This has nothing to do with Linux and is thus off topic on the
linuxppc-embedded mailing list. Please post such questions to the
u-boot-users mailing list.
> In the telnet sessoin I can insert "reset run" and the u-boot starts. When I
> enter "reset halt" and then "go" it won't do anything. I have tried with ddd
What do you mean with "it won't do anything"? Who won't do anything?
The BDI2000? The CPU? What makes you think the CPU does not do
anything?
Are you sure your BDI2000 config file is OK for your board? How did
you configure "RESET type" and "STARTUP mode"? Is your "START
address" ok?
> When I step the mtmsr instruction ddd shows address 0x700, and the esr
> register has 0x8800'0000 (illegal instruction occured?????).
> Same when I place a breakpoint behind the mtmsr instruction und use "cont"
> instead of "stepi".
You are aware that you cannot single step through certain
instructions, aren't you?
> What is the difference between "reset run" and "reset halt", "go"?
"reset run" and "reset halt" change the startup mode to "run" and
"halt", respectively. "go" sets the PC and starts the target system.
Ummm.. is there any specific part where the BDI2000 manual is unclear
about this?
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
The computer can't tell you the emotional story. It can give you the
exact mathematical design, but what's missing is the eyebrows.
- Frank Zappa
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Debugging with BDI
2003-07-18 10:07 ` Wolfgang Denk
@ 2003-07-18 10:31 ` Juergen Beisert
0 siblings, 0 replies; 3+ messages in thread
From: Juergen Beisert @ 2003-07-18 10:31 UTC (permalink / raw)
To: linuxppc-embedded
Am Freitag, 18. Juli 2003 12:07 schrieb Wolfgang Denk:
> Dear Jürgen,
>
> in message <200307181126.35714.jbeisert@eurodsn.de> you wrote:
> > I'm trying to debug my u-boot with BDI. It's a 405GP system.
>
> This has nothing to do with Linux and is thus off topic on the
> linuxppc-embedded mailing list. Please post such questions to the
> u-boot-users mailing list.
Uuups. You are right. Sorry for my traffic here.
-- JB
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-07-18 10:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-18 9:26 Debugging with BDI Juergen Beisert
2003-07-18 10:07 ` Wolfgang Denk
2003-07-18 10:31 ` Juergen Beisert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox