public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* Re: Re: [ECOS] How to debug a Ethernet Device Driver via network
@ 2005-08-08  2:29 Tianjun-ZDK
  2005-08-08 11:52 ` Gary Thomas
  0 siblings, 1 reply; 2+ messages in thread
From: Tianjun-ZDK @ 2005-08-08  2:29 UTC (permalink / raw)
  To: Gary Thomas; +Cc: eCos Discussion

 >On Mon, 2005-08-08 at 09:42 +0800, Tianjun-ZDK wrote:
>> Hi, all
>> 
>> 	I'm in progress of developing a Ethernet Device Driver.
>> And I want to connect the target Via Ethernet,but it seems 
>> the network will down as long as my own NIC driver call 
>> 	
>> 	(sc->funs->eth_drv->init)( sc, unsigned char *enaddr );
>
>I don't understand what you are saying here.  This function needs
>to initialize your hardware and then tell the upper level driver
>that it's ready.  Look at the existing drivers to see how it's done.
of cource I know this. I mean after my driver initialized,i cannot 
debug via the ethernet(I use a intel i82559 NIC),it seems the network is down.

>
>> 
>> can somebody tell me that whetherr eCos can support more than 
>> one NIC or not.And if it supports,how to config the network. 
>
>eCos certainly can support more then one interface.  The builtin
>defaults easily handle a system with two and the simplified call
>"init_all_network_devices()" (called from a user application) will
>fully initialize and configure those devices.
>
>-- 
>------------------------------------------------------------
>Gary Thomas                 |  Consulting for the
>MLB Associates              |    Embedded world
>------------------------------------------------------------
>
>
>-- 
>Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
>and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>


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

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

* Re: Re: [ECOS] How to debug a Ethernet Device Driver via network
  2005-08-08  2:29 Re: [ECOS] How to debug a Ethernet Device Driver via network Tianjun-ZDK
@ 2005-08-08 11:52 ` Gary Thomas
  0 siblings, 0 replies; 2+ messages in thread
From: Gary Thomas @ 2005-08-08 11:52 UTC (permalink / raw)
  To: Tianjun-ZDK; +Cc: eCos Discussion

On Mon, 2005-08-08 at 10:29 +0800, Tianjun-ZDK wrote:
>  >On Mon, 2005-08-08 at 09:42 +0800, Tianjun-ZDK wrote:
> >> Hi, all
> >> 
> >> 	I'm in progress of developing a Ethernet Device Driver.
> >> And I want to connect the target Via Ethernet,but it seems 
> >> the network will down as long as my own NIC driver call 
> >> 	
> >> 	(sc->funs->eth_drv->init)( sc, unsigned char *enaddr );
> >
> >I don't understand what you are saying here.  This function needs
> >to initialize your hardware and then tell the upper level driver
> >that it's ready.  Look at the existing drivers to see how it's done.
> of cource I know this. I mean after my driver initialized,i cannot 
> debug via the ethernet(I use a intel i82559 NIC),it seems the network is down.
> 

Using a network debug connection to debug network drivers is quite
problematic (using networking debugging itself is pretty tricky and
has limitations).  I'd suggest that you use serial debugging until
you get your network driver [at least mostly] working.

Note: you can still use the network to download your code, then
switch to serial.  e.g.
  (gdb) tar rem target:9000
  (gdb) lo
  (gdb) det
  (gdb) tar rem /dev/ttyS0
  ...

> >
> >> 
> >> can somebody tell me that whetherr eCos can support more than 
> >> one NIC or not.And if it supports,how to config the network. 
> >
> >eCos certainly can support more then one interface.  The builtin
> >defaults easily handle a system with two and the simplified call
> >"init_all_network_devices()" (called from a user application) will
> >fully initialize and configure those devices.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


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

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

end of thread, other threads:[~2005-08-08 11:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-08  2:29 Re: [ECOS] How to debug a Ethernet Device Driver via network Tianjun-ZDK
2005-08-08 11:52 ` Gary Thomas

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