This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: How to debug a Ethernet Device Driver via network
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Tianjun-ZDK <Tianjun at zcom dot unimis dot com>
- Cc: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Sun, 07 Aug 2005 20:02:13 -0600
- Subject: Re: [ECOS] How to debug a Ethernet Device Driver via network
- References: <NETWEB06U0IGnAZCUlP00052478@netweb06.net.unimis>
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.
>
> 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