This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: E7t and ethernet
- From: "Chris Garry" <cgarry at sweeneydesign dot co dot uk>
- To: "eCos Discussion" <ecos-discuss at sources dot redhat dot com>,"Gary Thomas" <gthomas at ecoscentric dot com>
- Date: Thu, 10 Oct 2002 17:37:28 +0100
- Subject: Re: [ECOS] E7t and ethernet
- Organization: Sweeney Design
- References: <006001c2706b$19a3c510$5a0ba8c0@jasper> <1034261126.17948.178.camel@hermes.chez-thomas.org>
- Reply-to: "Chris Garry" <cgarry at sweeneydesign dot co dot uk>
> 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.
>
Thanks, that makes a lot more sense now.
Now, when I try to build the networking tests I seem to be missing some
headers.
For example, building ping_test.c I get:
In file included from /eCosBuild/Test_install/include/network.h:40,
from ping_test.c:34:
/eCosBuild/Test_install/include/sys/param.h:97: sys/simplelock.h: No such
file o
r directory
/eCosBuild/Test_install/include/sys/param.h:109: sys/syslimits.h: No such
file o
r directory
/eCosBuild/Test_install/include/sys/param.h:139: sys/signal.h: No such file
or d
irectory
In file included from /eCosBuild/Test_install/include/sys/param.h:344,
from /eCosBuild/Test_install/include/network.h:40,
from ping_test.c:34:
/eCosBuild/Test_install/include/machine/param.h:49: warning: `CLBYTES'
redefined
/eCosBuild/Test_install/include/sys/param.h:175: warning: this is the
location o
f the previous definition
In file included from /eCosBuild/Test_install/include/network.h:42,
from ping_test.c:34:
/eCosBuild/Test_install/include/sys/ioctl.h:80: sys/ttycom.h: No such file
or di
rectory
In file included from /eCosBuild/Test_install/include/network.h:42,
from ping_test.c:34:
/eCosBuild/Test_install/include/sys/ioctl.h:100: sys/dkio.h: No such file or
dir
ectory
/eCosBuild/Test_install/include/sys/ioctl.h:101: sys/filio.h: No such file
or di
rectory
In file included from /eCosBuild/Test_install/include/network.h:55,
from ping_test.c:34:
/eCosBuild/Test_install/include/bootp.h:62: bptypes.h: No such file or
directory
Any ideas where I can get them?
Thanks,
Chris
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss