[ECOS] which CDL is correct ?

Sunil Mohan Savanur sunil.savanur@wipro.com
Wed Oct 17 21:05:00 GMT 2001


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






More information about the Ecos-discuss mailing list