linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* using bdi2000 to debug ppcboot on mpc7455
@ 2003-09-25  0:56 Q-ha Park
  2003-09-25  2:33 ` Mark A. Greer
  0 siblings, 1 reply; 11+ messages in thread
From: Q-ha Park @ 2003-09-25  0:56 UTC (permalink / raw)
  To: linuxppc-embedded


[I apologize this question is off topic in this mailing
list:ppc-embedded. But I coundn't find a better place to ask,
ppcboot-users is inactive..]

I'm new to BDI2000, and after reading a manual that came with the tool,
I tried to debug ppcboot using bdi2000 and gdb. The problem is I just
can't set the breakpoint whether be it software or hardware breakpoint;
For example, when I set the break point at "boot_cold" and type
"continue", the program just runs without ever stopping at the
breakpoint where it's supposed to stop!

Here's what I did:
a. turn on bdi2000.
b. connect to bdi2000 in gdb session.
c. set the breakpoint
d. type "continue"

==========
90              li      r21, BOOTFLAG_COLD      /* Normal Power-On: Boot
from FLASH */
(gdb) l
85              .ascii  CONFIG_IDENT_STRING, "\0"
86
87              . = EXC_OFF_SYS_RESET
88              .globl  _start
89      _start:
90              li      r21, BOOTFLAG_COLD      /* Normal Power-On: Boot
from FLASH */
91              b       boot_cold
92              sync
93
94              . = EXC_OFF_SYS_RESET + 0x10
(gdb) b boot_cold
Breakpoint 1 at 0xfff02000: file
/home/users/qpark/hobby/ppcboot-1.1.6/cpu/74xx_7xx/start.S, line 253.
(gdb) cont
Continuing.
(continues for good...)
==========

What am I probably doing wrong? FYI, I tried to remove H/W breakpoint
before I entered "go"

Any help would be greatly appreciated!!

:::::::::::::::::::::::::::::::::::::::::::::::::
Q-ha Park


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

^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: using bdi2000 to debug ppcboot on mpc7455
@ 2003-09-30 22:39 Rod Boyce
  2003-09-30 23:38 ` Wolfgang Denk
  0 siblings, 1 reply; 11+ messages in thread
From: Rod Boyce @ 2003-09-30 22:39 UTC (permalink / raw)
  To: linuxppc-embedded


Ok so with a bit of tongue and cheek.... To Quote Wolfgang from the 24th of
May 2001...

"Everybody listen: I _will_ mention this trick a 9th  time  for  free. The
10th person asking the same question will owe me a beer."

Does this mean that Q-ha Park owes Wolfgang a beer? ;-)

Rod

> -----Original Message-----
> From: Wolfgang Denk [mailto:wd@denx.de]
> Sent: Wednesday, 1 October 2003 9:35 a.m.
> To: Q-ha Park
> Cc: linuxppc-embedded@lists.linuxppc.org
> Subject: Re: using bdi2000 to debug ppcboot on mpc7455
>
>
> In message <005e01c383f2$65430080$2a21a8c0@qha> you wrote:
> >
> > Thanks a lot for your very informative reply; it helped me greatly and I
> > can finally play with breakpoints. Although I failed to set the
> > breakpoint at after_reloc but the point right before boart_init_r.
>
> For debugging U-Boot / PPCBoot after relocation see
> http://www.denx.de/twiki/bin/view/DULG/DebuggingUBoot#Section_9.1.2.
>
> 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
> Heavier than air flying machines are impossible.
>                     -- Lord Kelvin, President, Royal Society, c. 1895
>

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

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

end of thread, other threads:[~2003-10-01 10:29 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-25  0:56 using bdi2000 to debug ppcboot on mpc7455 Q-ha Park
2003-09-25  2:33 ` Mark A. Greer
2003-09-25 14:25   ` bradbosch
2003-09-25 18:27     ` Mark A. Greer
2003-09-26  5:52     ` Q-ha Park
2003-09-30 21:35       ` Wolfgang Denk
2003-09-30 21:32     ` Wolfgang Denk
2003-10-01  6:57     ` Q-ha Park
2003-10-01 10:29       ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2003-09-30 22:39 Rod Boyce
2003-09-30 23:38 ` Wolfgang Denk

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