This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

which CDL is correct ?


Hello,

I am running socket-based application on target i386 PC.
I guess ethernet driver "i82559" gets added to final library.

However I see two different CDL scripts ( different names and directory)
1. ./packages/devs/eth/intel/i82559/current/cdl/intel_i82559_eth_drivers.cdl
2. ./packages/devs/eth/i386/pc/i82559/current/cdl/i386_pc_i82559_eth_drivers.cdl

The contents of these two files are different.
1. I get error from do_dhcp() function in dhcp_prot.c as "BOOTP/DHCP failed on
eth0"
    when intel_i82559_eth_drivers.cdl is used.
   The do_dhcp function keeps looping and prints  "---------DHCPSTATE_INIT
sending".

   There is one ioctl call ===> if (ioctl(s, SIOCGIFHWADDR, &ifr) < 0) { /* get
MAC address */

2. I get error from do_dhcp() function in dhcp_prot.c as "SIOCSIFADDR: Device
not configured"
also. This is when I tried putting contents (i.e. eth0) of
i386_pc_i82559_eth_drivers.cdl in original cdl file
intel_i82559*.cdl script.

Questions :

1. Which CDL file is correct ?
2. Do these errors indicate that ethernet driver is not configured properly ?
 so ioctl fails..!)

Please send your valuable inputs on this.
Thanks & regards
Sunil Savanur




-----------------------------------------------------------------------------------------------------------------------------
Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers
and is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:mailadmin@wipro.com and delete this mail
from your records.
------------------------------------------------------------------------------------------------------------------------------

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]