This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
SIOCIFADDR: Device not configred - Have I solved ??
- From: "mohanlal jangir" <mohanlaljangir at hotmail dot com>
- To: "mailing-list ecos" <ecos-discuss at sources dot redhat dot com>
- Date: Fri, 25 Jul 2003 18:59:31 +0530
- Subject: [ECOS] SIOCIFADDR: Device not configred - Have I solved ??
While running eCos on ARM Integrator board, I was getting problme
"SIOCIFADDR: Device not configred". While looking into problem I inserted
one printf message in function wait_for_cmd_done as shown below
if ( wait <= 0 ) {
// Then we timed out; reset the device and try again...
printf("device timed out\n");
OUTL(I82559_SELECTIVE_RESET, scb_ioaddr + SCBPort);
and commented out following code in function cyg_pci_get_device_info as
shown below
/*
// No reason to scan beyond first inactive BAR.
if (bar == 0) {
dev_info->num_bars = i;
break;
} */
The code I commented out because while running test pci1 I observed that
BAR[0] is 0 but BAR[1] and BAR[2] are non-zero and this loop breaks if
BAR[0] is zero without checking BAR[1] and BAR[2] and leaves
dev_info.base_map[] uninitialised. When I compiled with above changes I did
not get the error "SIOCIFADDR: Device not configred" and I was able to see
interface "eth0". But I don't think, it is proper solution since I am still
not able to reach network and I receive message "device timed out" (which I
have inserted in function wait_for_cmd_done) continuously. Can somebody
explain what is wrong?
PS: test pci1 and pci2 run quite well and pci1 is able to detect NIC located
on PCI expansion slots.
Regards
Mohanlal
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss