linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Anyone using an IBM RISCWatch ICE?
@ 2001-08-15 15:12 Wright, David
  2001-08-15 17:58 ` Frank Rowand
  2001-08-16  0:18 ` David Gibson
  0 siblings, 2 replies; 5+ messages in thread
From: Wright, David @ 2001-08-15 15:12 UTC (permalink / raw)
  To: linuxppc-embedded


Hi,

I've been attempting to use an IBM RISCWatch ICE on a Walnut system
and I'm having problems.  (Spare me any lectures about how I should
be using a BDI.  I'm just trying to find out how usable the IBM is,
since it's already here.)

The specific problem I'm trying to solve is this:  how do I set a
breakpoint early in kernel startup, say at start_kernel (just as
the MMU is enabled)?  I've tried booting the Walnut so that it
comes up into its ROM monitor, then stopping it with the ICE, and
setting a hardware breakpoint at the start_kernel virtual address.
Problem is, when I start the CPU running again, the Walnut is no
longer responding to the keyboard (serial line).  Can't do anything
except reset it at that point.  Using the ICE reveals that the CPU
is still running, but I have no real idea what it's doing.  It sure
isn't responding to the serial port.

As an alternative, I tried setting a hardware breakpoint at the
physical address of "start_here".  That doesn't hang, but the
breakpoint is never hit, either.

Any ideas gratefully accepted.  I've tried this kind of thing with
a BDI and had no problems.

  -- David Wright, InfiniSwitch Corp.


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

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: Anyone using an IBM RISCWatch ICE?
@ 2001-08-15 17:15 John F Davis
  0 siblings, 0 replies; 5+ messages in thread
From: John F Davis @ 2001-08-15 17:15 UTC (permalink / raw)
  To: Wright, David; +Cc: linuxppc-embedded


Hello

I am not a riscwatch expert, but its the only thing I've ever used.  Maybe
I can help.


I don't know how you could use the virtual address.  But, here is a simple
thing you can do.  Insert a tight loop in the code where you want to break,
like:

jump:
     if (foo) {
          goto jump;
     }

Then run your code and stop it. When things are to your liking, clear
foo and restart it.

Also, when you stop the code, examine the IAR.  Maybe the physical address
you were using wasn't the same one
the IAR shows.

Lastly, when you are stopped, be careful about examining memory.  By
default the memory window will try to examine memory
at location 0.  On the 405 system I use, this causes a page fault and thus
oops my kernel when I restart it.  I don't if this is happening to
you when you reach your breakpoint or not.  I fixed this problem my using a
TLB entry to map memory address zero to a non used
location.  That way I can use the memory window.  If you know how to bring
up the memory window at an address other than
zero I would like to know.

I am sure that when Chip gets off vacation, he can help you more.

Good luck,

John



"Wright, David" <dwright@infiniswitch.com>@lists.linuxppc.org on 08/15/2001
11:12:17 AM

Sent by:  owner-linuxppc-embedded@lists.linuxppc.org


To:   <linuxppc-embedded@lists.linuxppc.org>
cc:
Subject:  Anyone using an IBM RISCWatch ICE?




Hi,

I've been attempting to use an IBM RISCWatch ICE on a Walnut system
and I'm having problems.  (Spare me any lectures about how I should
be using a BDI.  I'm just trying to find out how usable the IBM is,
since it's already here.)

The specific problem I'm trying to solve is this:  how do I set a
breakpoint early in kernel startup, say at start_kernel (just as
the MMU is enabled)?  I've tried booting the Walnut so that it
comes up into its ROM monitor, then stopping it with the ICE, and
setting a hardware breakpoint at the start_kernel virtual address.
Problem is, when I start the CPU running again, the Walnut is no
longer responding to the keyboard (serial line).  Can't do anything
except reset it at that point.  Using the ICE reveals that the CPU
is still running, but I have no real idea what it's doing.  It sure
isn't responding to the serial port.

As an alternative, I tried setting a hardware breakpoint at the
physical address of "start_here".  That doesn't hang, but the
breakpoint is never hit, either.

Any ideas gratefully accepted.  I've tried this kind of thing with
a BDI and had no problems.

  -- David Wright, InfiniSwitch Corp.


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

^ permalink raw reply	[flat|nested] 5+ messages in thread
* RE: Anyone using an IBM RISCWatch ICE?
@ 2001-08-15 19:44 Wright, David
  0 siblings, 0 replies; 5+ messages in thread
From: Wright, David @ 2001-08-15 19:44 UTC (permalink / raw)
  To: frowand; +Cc: linuxppc-embedded


Sigh.  As is all too often the case, it was an example of user error
(mine).  I thought I was setting a hardware breakpoint, but I
misunderstood the RISCWatch interface and was actually trying to set
a software breakpoint.  Once I followed Frank's directions, things
worked great.  (I figured I must be doing SOMETHING wrong; this one
was too severe not to have been seen already if it were a real bug.)

Thanks,

  -- David Wright


> > Hi,
> >
> > I've been attempting to use an IBM RISCWatch ICE on a Walnut system
> > and I'm having problems.  (Spare me any lectures about how I should
> > be using a BDI.  I'm just trying to find out how usable the IBM is,
> > since it's already here.)
> >
> > The specific problem I'm trying to solve is this:  how do I set a
> > breakpoint early in kernel startup, say at start_kernel (just as
> > the MMU is enabled)?  I've tried booting the Walnut so that it
> > comes up into its ROM monitor, then stopping it with the ICE, and
> > setting a hardware breakpoint at the start_kernel virtual address.
>
> The disk in the PC that hosts my RISCWatch crashed yesterday so I'm
> doing this from memory.
>
> I've done that sort of thing quite often.  OpenBios is sitting
> at the menu prompt,
>
>   RW> stop
>   RW> bp set ihw 0xc015a644
>   RW> run
>
> (0xc015a644 is start_kernel)
>
> Then tell OpenBios to boot the kernel.

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

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

end of thread, other threads:[~2001-08-16  0:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-15 15:12 Anyone using an IBM RISCWatch ICE? Wright, David
2001-08-15 17:58 ` Frank Rowand
2001-08-16  0:18 ` David Gibson
  -- strict thread matches above, loose matches on Subject: below --
2001-08-15 17:15 John F Davis
2001-08-15 19:44 Wright, David

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