* how to debug app in redboot
@ 2008-06-17 2:27 seu ying
2008-06-17 8:02 ` Andrew Lunn
0 siblings, 1 reply; 9+ messages in thread
From: seu ying @ 2008-06-17 2:27 UTC (permalink / raw)
To: ecos-devel
hi,dear all:
I am porting ecos to windbond arm7 chipset,now the redboot can run on the board,
the ping and tftp app is ok.
but if i do remote debug with arm-elf-gdb in linux host, it't fail.
I capture package with ethereal, found that for any gdb request
command from host,
redboot return $#00 (it's mean system don't support this command), why?
my arm-elf-gdb version is 5.3, host linux version is redhat 9.0.
help...
George
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: how to debug app in redboot
2008-06-17 2:27 how to debug app in redboot seu ying
@ 2008-06-17 8:02 ` Andrew Lunn
2008-06-18 12:27 ` George Ying
0 siblings, 1 reply; 9+ messages in thread
From: Andrew Lunn @ 2008-06-17 8:02 UTC (permalink / raw)
To: seu ying; +Cc: ecos-devel
> I capture package with ethereal, found that for any gdb request
> command from host,
> redboot return $#00 (it's mean system don't support this command), why?
The gdb stub in eCos only supports a subset of the gdb commands. So i
would expect to see some commands rejected. However it should not
reject all commands. The gdn x command to show a region of memory
should work. What happens when you try that?
Andrew
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: how to debug app in redboot
2008-06-17 8:02 ` Andrew Lunn
@ 2008-06-18 12:27 ` George Ying
2008-06-19 6:34 ` George Ying
0 siblings, 1 reply; 9+ messages in thread
From: George Ying @ 2008-06-18 12:27 UTC (permalink / raw)
To: Andrew Lunn; +Cc: ecos-devel
hi,Andrew:
when i use arm-elf-gdb to connect target, it's fail,show below:
target address:192.168.0.173
(gdb) set debug remote 1
(gdb) target remote 192.168.0.173:9000
Remote debugging using 192.168.0.173:9000
Sending packet: $Hc-1#09...putpkt: Junk: RedBoot>
Ack
Packet received:
Sending packet: $qC#b4...Ack
Packet received:
Sending packet: $qOffsets#4b...Ack
Packet received:
Sending packet: $?#3f...Sending packet: $?#3f...Ack
Packet received: S05
Sending packet: $Hg0#df...Packet instead of Ack, ignoring it
Packet instead of Ack, ignoring it
Sending packet: $Hg0#df...Packet instead of Ack, ignoring it
Sending packet: $Hg0#df...Packet instead of Ack, ignoring it
Sending packet: $Hg0#df...Timed out.
Timed out.
Timed out.
2008/6/17, Andrew Lunn <andrew@lunn.ch>:
> > I capture package with ethereal, found that for any gdb request
> > command from host,
> > redboot return $#00 (it's mean system don't support this command), why?
>
> The gdb stub in eCos only supports a subset of the gdb commands. So i
> would expect to see some commands rejected. However it should not
> reject all commands. The gdn x command to show a region of memory
> should work. What happens when you try that?
>
> Andrew
>
--
George
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: how to debug app in redboot
2008-06-18 12:27 ` George Ying
@ 2008-06-19 6:34 ` George Ying
2008-06-19 7:59 ` Andrew Lunn
0 siblings, 1 reply; 9+ messages in thread
From: George Ying @ 2008-06-19 6:34 UTC (permalink / raw)
To: Andrew Lunn; +Cc: ecos-devel
there are any suggestion?
2008/6/18, George Ying <seu.ying@gmail.com>:
> hi,Andrew:
> when i use arm-elf-gdb to connect target, it's fail,show below:
> target address:192.168.0.173
>
> (gdb) set debug remote 1
> (gdb) target remote 192.168.0.173:9000
> Remote debugging using 192.168.0.173:9000
> Sending packet: $Hc-1#09...putpkt: Junk: RedBoot>
> Ack
> Packet received:
> Sending packet: $qC#b4...Ack
> Packet received:
> Sending packet: $qOffsets#4b...Ack
> Packet received:
> Sending packet: $?#3f...Sending packet: $?#3f...Ack
> Packet received: S05
> Sending packet: $Hg0#df...Packet instead of Ack, ignoring it
> Packet instead of Ack, ignoring it
> Sending packet: $Hg0#df...Packet instead of Ack, ignoring it
> Sending packet: $Hg0#df...Packet instead of Ack, ignoring it
> Sending packet: $Hg0#df...Timed out.
> Timed out.
> Timed out.
>
> 2008/6/17, Andrew Lunn <andrew@lunn.ch>:
> > > I capture package with ethereal, found that for any gdb request
> > > command from host,
> > > redboot return $#00 (it's mean system don't support this command), why?
> >
> > The gdb stub in eCos only supports a subset of the gdb commands. So i
> > would expect to see some commands rejected. However it should not
> > reject all commands. The gdn x command to show a region of memory
> > should work. What happens when you try that?
> >
> > Andrew
> >
>
>
> --
> George
>
--
George
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: how to debug app in redboot
2008-06-19 6:34 ` George Ying
@ 2008-06-19 7:59 ` Andrew Lunn
2008-06-19 9:22 ` George Ying
0 siblings, 1 reply; 9+ messages in thread
From: Andrew Lunn @ 2008-06-19 7:59 UTC (permalink / raw)
To: George Ying; +Cc: Andrew Lunn, ecos-devel
On Thu, Jun 19, 2008 at 02:34:19PM +0800, George Ying wrote:
> there are any suggestion?
What is your target hardware?
What version of gdb are you using?
What version of eCos.
Andrew
>
> 2008/6/18, George Ying <seu.ying@gmail.com>:
> > hi,Andrew:
> > when i use arm-elf-gdb to connect target, it's fail,show below:
> > target address:192.168.0.173
> >
> > (gdb) set debug remote 1
> > (gdb) target remote 192.168.0.173:9000
> > Remote debugging using 192.168.0.173:9000
> > Sending packet: $Hc-1#09...putpkt: Junk: RedBoot>
> > Ack
> > Packet received:
> > Sending packet: $qC#b4...Ack
> > Packet received:
> > Sending packet: $qOffsets#4b...Ack
> > Packet received:
> > Sending packet: $?#3f...Sending packet: $?#3f...Ack
> > Packet received: S05
> > Sending packet: $Hg0#df...Packet instead of Ack, ignoring it
> > Packet instead of Ack, ignoring it
> > Sending packet: $Hg0#df...Packet instead of Ack, ignoring it
> > Sending packet: $Hg0#df...Packet instead of Ack, ignoring it
> > Sending packet: $Hg0#df...Timed out.
> > Timed out.
> > Timed out.
> >
> > 2008/6/17, Andrew Lunn <andrew@lunn.ch>:
> > > > I capture package with ethereal, found that for any gdb request
> > > > command from host,
> > > > redboot return $#00 (it's mean system don't support this command), why?
> > >
> > > The gdb stub in eCos only supports a subset of the gdb commands. So i
> > > would expect to see some commands rejected. However it should not
> > > reject all commands. The gdn x command to show a region of memory
> > > should work. What happens when you try that?
> > >
> > > Andrew
> > >
> >
> >
> > --
> > George
> >
>
>
> --
> George
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: how to debug app in redboot
2008-06-19 7:59 ` Andrew Lunn
@ 2008-06-19 9:22 ` George Ying
2008-06-19 9:35 ` Andrew Lunn
2008-06-19 11:21 ` Andrew Lunn
0 siblings, 2 replies; 9+ messages in thread
From: George Ying @ 2008-06-19 9:22 UTC (permalink / raw)
To: Andrew Lunn; +Cc: ecos-devel
my target hardware is winbond w90n740 arm7 chip。
my host os is redhat 9linux, gdb is arm-elf-gdb,version 5.3
ecos version :the latest version
my redboot can run on board,the dhcp,ping app run ok
but cant connect to target with gdb。。。
thanks
2008/6/19, Andrew Lunn <andrew@lunn.ch>:
> On Thu, Jun 19, 2008 at 02:34:19PM +0800, George Ying wrote:
> > there are any suggestion?
>
> What is your target hardware?
> What version of gdb are you using?
> What version of eCos.
>
> Andrew
>
> >
> > 2008/6/18, George Ying <seu.ying@gmail.com>:
> > > hi,Andrew:
> > > when i use arm-elf-gdb to connect target, it's fail,show below:
> > > target address:192.168.0.173
> > >
> > > (gdb) set debug remote 1
> > > (gdb) target remote 192.168.0.173:9000
> > > Remote debugging using 192.168.0.173:9000
> > > Sending packet: $Hc-1#09...putpkt: Junk: RedBoot>
> > > Ack
> > > Packet received:
> > > Sending packet: $qC#b4...Ack
> > > Packet received:
> > > Sending packet: $qOffsets#4b...Ack
> > > Packet received:
> > > Sending packet: $?#3f...Sending packet: $?#3f...Ack
> > > Packet received: S05
> > > Sending packet: $Hg0#df...Packet instead of Ack, ignoring it
> > > Packet instead of Ack, ignoring it
> > > Sending packet: $Hg0#df...Packet instead of Ack, ignoring it
> > > Sending packet: $Hg0#df...Packet instead of Ack, ignoring it
> > > Sending packet: $Hg0#df...Timed out.
> > > Timed out.
> > > Timed out.
> > >
> > > 2008/6/17, Andrew Lunn <andrew@lunn.ch>:
> > > > > I capture package with ethereal, found that for any gdb request
> > > > > command from host,
> > > > > redboot return $#00 (it's mean system don't support this command), why?
> > > >
> > > > The gdb stub in eCos only supports a subset of the gdb commands. So i
> > > > would expect to see some commands rejected. However it should not
> > > > reject all commands. The gdn x command to show a region of memory
> > > > should work. What happens when you try that?
> > > >
> > > > Andrew
> > > >
> > >
> > >
> > > --
> > > George
> > >
> >
> >
> > --
> > George
>
--
George
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: how to debug app in redboot
2008-06-19 9:22 ` George Ying
@ 2008-06-19 9:35 ` Andrew Lunn
2008-06-19 10:04 ` George Ying
2008-06-19 11:21 ` Andrew Lunn
1 sibling, 1 reply; 9+ messages in thread
From: Andrew Lunn @ 2008-06-19 9:35 UTC (permalink / raw)
To: George Ying; +Cc: ecos-devel
On Thu, Jun 19, 2008 at 05:22:10PM +0800, George Ying wrote:
> my target hardware is winbond w90n740 arm7 chip???
> my host os is redhat 9linux??? gdb is arm-elf-gdb???version 5.3
> ecos version ???the latest version
You mean anonymous CVS?
Andrew
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: how to debug app in redboot
2008-06-19 9:35 ` Andrew Lunn
@ 2008-06-19 10:04 ` George Ying
0 siblings, 0 replies; 9+ messages in thread
From: George Ying @ 2008-06-19 10:04 UTC (permalink / raw)
To: Andrew Lunn; +Cc: ecos-devel
yes,i get the lastest source through cvs
2008/6/19, Andrew Lunn <andrew@lunn.ch>:
> On Thu, Jun 19, 2008 at 05:22:10PM +0800, George Ying wrote:
> > my target hardware is winbond w90n740 arm7 chip???
> > my host os is redhat 9linux??? gdb is arm-elf-gdb???version 5.3
> > ecos version ???the latest version
>
> You mean anonymous CVS?
>
> Andrew
>
--
George
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: how to debug app in redboot
2008-06-19 9:22 ` George Ying
2008-06-19 9:35 ` Andrew Lunn
@ 2008-06-19 11:21 ` Andrew Lunn
1 sibling, 0 replies; 9+ messages in thread
From: Andrew Lunn @ 2008-06-19 11:21 UTC (permalink / raw)
To: George Ying; +Cc: ecos-devel
> > > > (gdb) set debug remote 1
> > > > (gdb) target remote 192.168.0.173:9000
> > > > Remote debugging using 192.168.0.173:9000
> > > > Sending packet: $Hc-1#09...putpkt: Junk: RedBoot>
> > > > Ack
> > > > Packet received:
> > > > Sending packet: $qC#b4...Ack
> > > > Packet received:
> > > > Sending packet: $qOffsets#4b...Ack
> > > > Packet received:
> > > > Sending packet: $?#3f...Sending packet: $?#3f...Ack
> > > > Packet received: S05
> > > > Sending packet: $Hg0#df...Packet instead of Ack, ignoring it
> > > > Packet instead of Ack, ignoring it
> > > > Sending packet: $Hg0#df...Packet instead of Ack, ignoring it
> > > > Sending packet: $Hg0#df...Packet instead of Ack, ignoring it
> > > > Sending packet: $Hg0#df...Timed out.
So it looks like your devices gdb stub is sending out packets which
the server does not expect. You need to find out what these packets
are and where they are coming from. Is your device printing anything?
What do you see when you telnet to port 9000 instead of using gdb?
Andrew
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2008-06-19 11:21 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-17 2:27 how to debug app in redboot seu ying
2008-06-17 8:02 ` Andrew Lunn
2008-06-18 12:27 ` George Ying
2008-06-19 6:34 ` George Ying
2008-06-19 7:59 ` Andrew Lunn
2008-06-19 9:22 ` George Ying
2008-06-19 9:35 ` Andrew Lunn
2008-06-19 10:04 ` George Ying
2008-06-19 11:21 ` Andrew Lunn
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 read-only IMAP folder(s) and NNTP newsgroup(s).