public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Lose GDB connection after net download
@ 2002-03-05  0:51 David Hsu
  2002-03-20  4:31 ` Jonathan Larmour
  0 siblings, 1 reply; 6+ messages in thread
From: David Hsu @ 2002-03-05  0:51 UTC (permalink / raw)
  To: ecos-discuss

Hello,

I build the redboot with net support (by using my own Ethernet driver) under PC platform. I could generate the binary image, and boot it successfully. Also I am able to ping the redboot or download any application program through Ethernet by GDB. However, after the downloading was finished, the debugger can't be stopped by any breakpoint. The GDB will lose the connection with target. 

I know the issue that the IP address of redboot and application should be set differently, but it will be the same even I download the application without the net support.

Any advice will be appreciated.

Thanks.

David

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

* Re: [ECOS] Lose GDB connection after net download
  2002-03-05  0:51 [ECOS] Lose GDB connection after net download David Hsu
@ 2002-03-20  4:31 ` Jonathan Larmour
  2002-03-20 19:35   ` David Hsu
  0 siblings, 1 reply; 6+ messages in thread
From: Jonathan Larmour @ 2002-03-20  4:31 UTC (permalink / raw)
  To: David Hsu; +Cc: ecos-discuss

David Hsu wrote:
> 
> Hello,
> 
> I build the redboot with net support (by using my own Ethernet driver) under PC platform.

For what card OOI?

> I could generate the binary image, and boot it successfully. Also I am able to ping the redboot or download any application program through Ethernet by GDB. However, after the downloading was finished, the debugger can't be stopped by any breakpoint. The GDB will lose the connection with target.

There are various CDL options which, if changed from default, could cause
this. Have you changed any from the default in your application's eCos
configuration?
 
Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

* RE: [ECOS] Lose GDB connection after net download
  2002-03-20  4:31 ` Jonathan Larmour
@ 2002-03-20 19:35   ` David Hsu
  2002-03-21 12:50     ` Jonathan Larmour
  0 siblings, 1 reply; 6+ messages in thread
From: David Hsu @ 2002-03-20 19:35 UTC (permalink / raw)
  To: ecos-discuss

>> Hello,
>> 
>> I build the redboot with net support (by using my own Ethernet driver) under PC platform.

>For what card OOI?

My ethernet driver is for Realtek 8139C+.

>> I could generate the binary image, and boot it successfully. Also I am able to ping the redboot or download any application program through 
>>Ethernet by GDB. However, after the downloading was finished, the debugger can't be stopped by any breakpoint. The GDB will lose the 
>>connection with target.

>There are various CDL options which, if changed from default, could cause
>this. Have you changed any from the default in your application's eCos
>configuration?

Yes, I have enabled ROM_MONITOR and set startup type to "floppy". However, these changes are working via I82559 adapter. 

Could you tell me where might be the problem?

Thanks.

David 

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

* Re: [ECOS] Lose GDB connection after net download
  2002-03-20 19:35   ` David Hsu
@ 2002-03-21 12:50     ` Jonathan Larmour
  2002-03-22  0:54       ` David Hsu
  0 siblings, 1 reply; 6+ messages in thread
From: Jonathan Larmour @ 2002-03-21 12:50 UTC (permalink / raw)
  To: David Hsu; +Cc: ecos-discuss

David Hsu wrote:
> 
> >> Hello,
> >>
> >> I build the redboot with net support (by using my own Ethernet driver) under PC platform.
> 
> >For what card OOI?
> 
> My ethernet driver is for Realtek 8139C+.

NE2k clone at a guess? Do consider contributing back, if you wrote it
yourself :-).
 
> >> I could generate the binary image, and boot it successfully. Also I am able to ping the redboot or download any application program through
> >>Ethernet by GDB. However, after the downloading was finished, the debugger can't be stopped by any breakpoint. The GDB will lose the
> >>connection with target.
> 
> >There are various CDL options which, if changed from default, could cause
> >this. Have you changed any from the default in your application's eCos
> >configuration?
> 
> Yes, I have enabled ROM_MONITOR and set startup type to "floppy". However, these changes are working via I82559 adapter.

I'm talking about the downloaded application's eCos configuration here. If
you linked it with an eCos config with those options set I would be
surprised it got as far as it did!

For an eCos config to be used with a downloaded app, you shouldn't need to
set ROM_MONITOR, nor set the startup type - leave it as RAM as that's where
it is loading to.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

* RE: [ECOS] Lose GDB connection after net download
  2002-03-21 12:50     ` Jonathan Larmour
@ 2002-03-22  0:54       ` David Hsu
  2002-04-03 19:24         ` Jonathan Larmour
  0 siblings, 1 reply; 6+ messages in thread
From: David Hsu @ 2002-03-22  0:54 UTC (permalink / raw)
  To: ecos-discuss


>> My ethernet driver is for Realtek 8139C+.

>NE2k clone at a guess? Do consider contributing back, if you wrote it
>yourself :-).
 
No, it is not NE2K clone. It is 10/100M adapter, and use PCI DMA master mode in descriptor base. It is much like i82559.  I am like to contribute it back, but I have to take some time to clean it up.

>> >There are various CDL options which, if changed from default, could cause
>> >this. Have you changed any from the default in your application's eCos
>> >configuration?
>> 
>> Yes, I have enabled ROM_MONITOR and set startup type to "floppy". However, these changes are working via I82559 adapter.

>I'm talking about the downloaded application's eCos configuration here. If
>you linked it with an eCos config with those options set I would be
>surprised it got as far as it did!

>For an eCos config to be used with a downloaded app, you shouldn't need to
>set ROM_MONITOR, nor set the startup type - leave it as RAM as that's where
> it is loading to.

I misunderstood your question, I thought you are asking about the option of redboot. All the option are default in my downloaded application.


David
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

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

* Re: [ECOS] Lose GDB connection after net download
  2002-03-22  0:54       ` David Hsu
@ 2002-04-03 19:24         ` Jonathan Larmour
  0 siblings, 0 replies; 6+ messages in thread
From: Jonathan Larmour @ 2002-04-03 19:24 UTC (permalink / raw)
  To: David Hsu; +Cc: ecos-discuss

David Hsu wrote:
> 
> >I'm talking about the downloaded application's eCos configuration here. If
> >you linked it with an eCos config with those options set I would be
> >surprised it got as far as it did!
> 
> >For an eCos config to be used with a downloaded app, you shouldn't need to
> >set ROM_MONITOR, nor set the startup type - leave it as RAM as that's where
> > it is loading to.
> 
> I misunderstood your question, I thought you are asking about the option of redboot. All the option are default in my downloaded application.

I can only suggest you set breakpoints right at the very beginning of the
downloaded application's boot sequence, e.g. at cyg_hal_invoke_constructors
and step through to find out where it is going wrong. This does work
normally, so it surely must be something particular to your driver I'm
afraid.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

end of thread, other threads:[~2002-04-04  3:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-05  0:51 [ECOS] Lose GDB connection after net download David Hsu
2002-03-20  4:31 ` Jonathan Larmour
2002-03-20 19:35   ` David Hsu
2002-03-21 12:50     ` Jonathan Larmour
2002-03-22  0:54       ` David Hsu
2002-04-03 19:24         ` Jonathan Larmour

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