This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: E7t and ethernet
- From: Gary Thomas <gthomas at ecoscentric dot com>
- To: Chris Garry <cgarry at sweeneydesign dot co dot uk>
- Cc: eCos Discussion <ecos-discuss at sources dot redhat dot com>
- Date: 10 Oct 2002 08:45:26 -0600
- Subject: Re: [ECOS] E7t and ethernet
- References: <006001c2706b$19a3c510$5a0ba8c0@jasper>
On Thu, 2002-10-10 at 08:41, Chris Garry wrote:
> I'm using an e7t board (with an additional ethernet PHY) and eCos (net
> template plus
> the Samsung KS32C5000 ethernet driver).
>
> When I try the following:
>
> err = cyg_io_lookup( "eth0", &handle );
> if (ENOERR == err)
> {
> printf("Found eth0.\n");
> }
> else
> {
> printf("Did not find eth0.\n");
> }
>
> I find that cyg_io_lookup() has not found the ethernet device.
> Should this work (it works for the Serial devices) or am I missing
> something?
>
> Also, if I try an:
>
> fptr=fopen("eth0","r+")
>
> the board hangs because the name 'eth0' does not begin with a /.
No, don't try this. The network interface is purely through the
standard "socket()" paradigm. Look at any of the many sample/test
programs which use the network stacks.
--
------------------------------------------------------------
Gary Thomas |
eCosCentric, Ltd. |
+1 (970) 229-1963 | eCos & RedBoot experts
gthomas@ecoscentric.com |
http://www.ecoscentric.com/ |
------------------------------------------------------------
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss