* 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
* Kgdb on Motorola 8451 ppc board
2004-06-29 15:12 ok ... which source trees are the "right" choices? Robert P. J. Day
@ 2004-06-29 17:56 ` Tameen Khan
0 siblings, 0 replies; 6+ messages in thread
From: Tameen Khan @ 2004-06-29 17:56 UTC (permalink / raw)
To: 'Embedded Linux PPC 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-embedded 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
* 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
* 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-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
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 18:21 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 17:54 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).