This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Including a Ethernet driver and PCMCIA driver
- To: "'Tim Michals'" <Tim dot Michals at Cygnetinc dot com>,<ecos-discuss at sourceware dot cygnus dot com>
- Subject: RE: [ECOS] Including a Ethernet driver and PCMCIA driver
- From: "Trenton D. Adams" <tadams at theone dot dnsalias dot com>
- Date: Tue, 28 Aug 2001 11:37:30 -0600
Yep, you got it. Make sure you change the source if need be too. The
device name may not change with a changed to your CDL file. eg. "eth0"
or "eth1" strings in the ethernet driver source. The occur at the top
of the file in. example below.
ETH_DRV_SC(edb7xxx_sc,
&_cs8900_priv_data, // Driver specific data
CYGDAT_ETHDRV_NAME, // Name for this interface
used to be "eth0" it's now dynamic
cs8900_start,
cs8900_stop,
cs8900_control,
cs8900_can_send,
cs8900_send,
cs8900_recv,
cs8900_deliver, // "pseudoDSR" called from fast net
thread
cs8900_int, // poll function, encapsulates ISR and
DSR
cs8900_int_vector);
For more information on making your driver CDL files allow you to select
the eth device through the config tool see the following subject of
messages "[ECOS] ethernet driver package idea"
-----Original Message-----
From: ecos-discuss-owner@sources.redhat.com
[mailto:ecos-discuss-owner@sources.redhat.com] On Behalf Of Tim Michals
Sent: Tuesday, August 28, 2001 11:13 AM
To: ecos-discuss@sourceware.cygnus.com
Subject: RE: [ECOS] Including a Ethernet driver and PCMCIA driver
I'm creating the cld files, the issue is in the CLD files for the
devices,
for example
packages/dev/eth/arm/nano/current/cld
in the cld file the file CYGPKG_DEVS_ETH_ARM_NANO_ETH0
and
implements CYGHWR_NET_DRIVERS
implements CYGHWR_NET_DRIVER_ETH0
implements CYGINT_DEVS_ETH_INTEL_I82559_REQUIRED
So if your including multiple devices make sure they DONT use the same
eth0
because they overlap
Tim
-----Original Message-----
From: Trenton D. Adams [mailto:tadams@theone.dnsalias.com]
Sent: Tuesday, August 28, 2001 12:16 PM
To: 'Tim Michals'; ecos-discuss@sourceware.cygnus.com
Subject: RE: [ECOS] Including a Ethernet driver and PCMCIA driver
Oh, forgot your last statement. What sort of trouble with the eht0
networking section? Are eth0 and eth1 initialization options grayed
out? If so, there's probably no platform specific ethernet drivers
installed properly.
If you click on your platform specific ethernet driver it should say
"implements CYGHWR_NET_DRIVER_ETH0" and "implements CYGHWR_NET_DRIVERS".
If the first one is missing, the options under networking will be grayed
out for ETH0.
-----Original Message-----
From: ecos-discuss-owner@sources.redhat.com
[mailto:ecos-discuss-owner@sources.redhat.com] On Behalf Of Tim Michals
Sent: Tuesday, August 28, 2001 10:59 AM
To: ecos-discuss@sourceware.cygnus.com
Subject: RE: [ECOS] Including a Ethernet driver and PCMCIA driver
Thanks for the help, but when I add the packages the driver entries
disappear, should this happen? Also, I'm having an issue on configuring
eth0 in the networking section, now I cannot select it anymore.
Thanks
Tim
-----Original Message-----
From: Trenton D. Adams [mailto:tadams@theone.dnsalias.com]
Sent: Tuesday, August 28, 2001 11:58 AM
To: 'Tim Michals'; ecos-discuss@sourceware.cygnus.com
Subject: RE: [ECOS] Including a Ethernet driver and PCMCIA driver
You must add Generic PCMCIA support CYGPKG_IO_PCMCIA
and
Common ethernet support CYGPKG_IO_ETH_DRIVERS
If they aren't added, then the other two platform specific drivers will
be grayed out.
-----Original Message-----
From: ecos-discuss-owner@sources.redhat.com
[mailto:ecos-discuss-owner@sources.redhat.com] On Behalf Of Tim Michals
Sent: Tuesday, August 28, 2001 10:46 AM
To: 'ecos-discuss@sourceware.cygnus.com'
Subject: [ECOS] Including a Ethernet driver and PCMCIA driver
All,
I'm confused on how to include both a PCMCIA Ethernet driver, a USB
Ethernet
driver and a standard MAC based driver using the configuration tool.
Currently I have a Ethernet MAC working and in the process of adding a
PCMCIA Ethernet driver, but the configuration tool grays out both the
Ethernet driver and the PCMCIA driver.
Tim