linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Kgdb on Motorola 8451 ppc board
@ 2004-06-29 17:54 Tameen Khan
  0 siblings, 0 replies; 6+ messages in thread
From: Tameen Khan @ 2004-06-29 17:54 UTC (permalink / raw)
  To: 'linuxppc-dev list'


I'm trying to run kgdb on  Motorola 8451 ppc board.
I've compiled the kernel with the CONFIG_KGDB option.
The test machine is a linux host. I'm using gdb compiled for target ppc
architecture.
When I try to connect to the dev machine from the test machine, I get the
following error.

(gdb) set remotebaud 9600
(gdb) target remote /dev/ttyS1
Remote debugging using /dev/ttyS1
^^
^^^^Ignoring packet error, continuing...
^^^Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Couldn't establish connection to remote target
Malformed response to offset query, timeout
(gdb)

I've tried other baudrates, but get the same error with them.
Any pointers to where I can get info to get kgdb working for this cross arch
debugging will be helpful.. So far I've searched the web without much luck
on this topic.

Thanks
-Tameen


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

^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: Kgdb on Motorola 8451 ppc board
@ 2004-07-06  4:39 Swarthout Ed-RA8734
  0 siblings, 0 replies; 6+ messages in thread
From: Swarthout Ed-RA8734 @ 2004-07-06  4:39 UTC (permalink / raw)
  To: 'Tameen Khan', linuxppc-dev


Tameen asked:

> Any pointers to where I can get info to get kgdb working for this cross
> arch debugging will be helpful..

Three things to look at:

1. You can tell gdb to show everything going over the serial port with:

(gdb) set debug remote 1

but I get similar messages when nothing is even attached to the serial port.

2. Are you seeing "kgdb init" in the console logs?
That message should come from kgdb_map_scc() in gen550_kgdb.c
What serial port are you using for kgdb?

3. Is the gdb stub actually in a position to do a serial port read?  It will only be listening as a result of a trap or if "gdb" is passed on the kernel cmdline.  (See setup_arch() in setup.c)

Disclaimer: I haven't actually tried kgdb on this board and I'm on vacation for two weeks...

Ed dot Swarthout at Freescale dot com


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

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: Kgdb on Motorola 8451 ppc board
@ 2004-06-30  9:28 Yuri Frolov
  0 siblings, 0 replies; 6+ messages in thread
From: Yuri Frolov @ 2004-06-30  9:28 UTC (permalink / raw)
  To: linuxppc-dev


 > I'm trying to run kgdb on  Motorola 8451 ppc board.
 > I've compiled the kernel with the CONFIG_KGDB option.
 > The test machine is a linux host.

Which platform does your linux host runs on?

 > Ignoring packet error, continuing...
 > Ignoring packet error, continuing...

What sort of gdb are you using on your linux host? Is it a version which
compiled for correct target (ppc with correct endian in your case, see
Net for further explanation)? If you're using vanilla gdb from your's
x86 distribution package (which compiled with source = target = x86),
then you should move to correctly prepared gdb...


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

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: Kgdb on Motorola 8451 ppc board
@ 2004-06-30  9:25 Yuri Frolov
  0 siblings, 0 replies; 6+ messages in thread
From: Yuri Frolov @ 2004-06-30  9:25 UTC (permalink / raw)
  To: linuxppc-dev


 > I'm trying to run kgdb on  Motorola 8451 ppc board.
 > I've compiled the kernel with the CONFIG_KGDB option.
 > The test machine is a linux host.

Which platform does your linux host runs on?

 > Ignoring packet error, continuing...
 > Ignoring packet error, continuing...

What sort of gdb are you using on your linux host? Is it a version which
compiled for correct target (ppc with correct endian in your case, see
Net for further explanation)? If you're using vanilla gdb from your's
x86 distribution package (which compiled with source = target = x86),
then you should move to correctly prepared gdb...


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

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Kgdb on Motorola 8451 ppc board
@ 2004-06-29 18:21 Tameen Khan
  0 siblings, 0 replies; 6+ messages in thread
From: Tameen Khan @ 2004-06-29 18:21 UTC (permalink / raw)
  To: linuxppc-dev


I'm trying to run kgdb on  Motorola 8451 ppc board.
I've compiled the kernel with the CONFIG_KGDB option.
The test machine is a linux host. I'm using gdb compiled for target ppc
architecture. When I try to connect to the dev machine from the test
machine, I get the following error.

(gdb) set remotebaud 9600
(gdb) target remote /dev/ttyS1
Remote debugging using /dev/ttyS1
^^
^^^^Ignoring packet error, continuing...
^^^Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Couldn't establish connection to remote target
Malformed response to offset query, timeout
(gdb)

I've tried other baudrates, but get the same error with them.
Any pointers to where I can get info to get kgdb working for this cross arch
debugging will be helpful.. So far I've searched the web without much luck
on this topic.

Thanks
-Tameen


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

^ permalink raw reply	[flat|nested] 6+ messages in thread
* ok ... which source trees are the "right" choices?
@ 2004-06-29 15:12 Robert P. J. Day
  2004-06-29 17:56 ` Kgdb on Motorola 8451 ppc board Tameen Khan
  0 siblings, 1 reply; 6+ messages in thread
From: Robert P. J. Day @ 2004-06-29 15:12 UTC (permalink / raw)
  To: Embedded Linux PPC list


   based on wolfgang's recent reference to the linuxppc_2_4_devel
source tree at DENX, one has to ask -- how does one choose between the
various source trees to stay on top of things?

   so far, i've established that, for the 2.6 kernel, i just keep
pulling the latest stuff from ppc.bkbits.net/linuxppc-2.5.

   but what about the 2.4 kernel?  besides the denx source (which,
based on experience, would be at the top of my list in terms of
choice), there's a whack of 2.4-based trees at ppc.bkbits.net.

   and i've already confused myself this morning by looking at one
source tree while the discussion was referring to a different one.
dang.

   so ... what's the recommendation?  at the moment, it seems that i'd
want the denx 2.4 devel tree, and the bkbits 2.5 tree.  thoughts?

rday

** 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:[~2004-07-06  4:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-29 17:54 Kgdb on Motorola 8451 ppc board Tameen Khan
  -- strict thread matches above, loose matches on Subject: below --
2004-07-06  4:39 Swarthout Ed-RA8734
2004-06-30  9:28 Yuri Frolov
2004-06-30  9:25 Yuri Frolov
2004-06-29 18:21 Tameen Khan
2004-06-29 15:12 ok ... which source trees are the "right" choices? Robert P. J. Day
2004-06-29 17:56 ` Kgdb on Motorola 8451 ppc board Tameen Khan

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