Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

eth0 modules and SIOCSIFFLAGS

Status
Not open for further replies.

bateman23

Programmer
Mar 2, 2001
145
DE
Hello,
i've got serious problems with my nic (Manrake 8.1)
everytime i want to start the network, I get the message
"SIOCSIFFLAGS: Resource Temporarily unavailable" when eth0 tries to come
up.

The driver appears to load correctly when the kernel boots; I boot into single user mode just fine, and again when I try to bring up eth0 I get the message. Any help would be appreciated.

Additional information:
I don't know if the driver is loaded correctly, because lsmod says: 8139too used:0 (autoclean) and
ifconfig only lists lo.

How can i activate the module ? What does the SIOCSIFFLAGS-Message want's to say ?

Thanks in advance,
Daniel Purucker ---------------------------------------
Visit me @:
 
I've got new information....perhaps somebody can help me ;)

cat /proc/pci says:
Bus 0, device 18, function 0 Ethernet controller... RTL-8139

in dmesg there is:
8139too Fast Ethernet driver 0.9.18a
PCI: No IRQ known for interrupt pin A of device 00:12.0.
Please try again using pci=biosirq
eht0: Realtek RTL8139 Fast Ethernet at
0xc182f000,00:C1:26:05:2e:CC IRQ 0
eth0: Identified 8139 chip type 'RTL 8139C'

lsmod says:
8139too Used:0 (autoclean) (unused)

in cat /proc/ioports | more there is no eth0. Gotta be there one?

cat /proc/net/dev shows an eth0

the command ifup eth0 shows the following message:
Bringing up interface eth0: Determining IP information for eth0... failed
./ifup: /sbin/pump: No such file or directory


I realized pump is a dhcp client - do i need this anyway, how can i uninstall it..?
I think the problem is with the pump-stuff or with some IRQ-problems. Any ideas, suggestions. Is there somebody out there who can help me? :)




---------------------------------------
Visit me @:
 
you don't have to uninstall it
it's because during installation you didn't set up network infos like IP addr, GateWay, DNS, so you linux thinks, it should get it from dhcp server.
it also the reason, why you can see UNUSED in lsmod.
I don't know if there is some configuration for ethernet in mandrake. or beeter, there is 100%some, but I don't know it, because I don't use mandrake.
But this should work:
start console
and run
ifconfig eth0 192.168.1.1 netmask 255.255.255.0 up
(use you ip and netmask)
edit /etc/resolv.conf
use man ifconfig, man route
check out directories /etc/sysconfig/net* (mdk and redhat uses this I think)

if you get some more problems... ask ;-)

bubak
 
Thanks - but i already set up IP, Gateway, and so on......
waht i don't understand is, why is the module "unused" when i use a dhcp?
- i thought this indicates the driver isn't installed correctly ?? ---------------------------------------
Visit me @:
 
because dhcp is not active. when it would be, during init it(dhcp) will get infos from dhcp server , setup eth0, in ifconfig you will see it and it will be no more unused in lsmod
 
This most likely has nothing to do with DHCP. If you look at your second post, you will notice that dmesg tells you there's no IRQ assigned for this device. The card cannot function unless it's assigned an IRQ, which is why the module is unused.

Realtek cards don't work and play well with others. It's probably looking for a specific IRQ which is already being used by something else. I had this same problem a while back, and it was caused by my sound card using IRQ that the Realtek card wanted. If that's the problem, you need to figure out what IRQ it wants, what's using it, and change it.
 
Ok , thanks
i also thought perhaps it would be the IRQ. I changed the Slot, but nothing helped... and i think i don't use too many irq's - i even dont't have a sound card.. so i uninstalled Mandrake again and installed Suse Linux 7.0 ;-)
But again there are error messages - but less ;)

in dmesg:
Setting up betwork device eth0
SIOCSFFLAGS: Resource temporary unavailable

What does this mean ?

BUT also
rtl8139.c: v1.08 .... donald Becker .....
eth0: Realtek RTL8139 Fast Ethernet at 0x6000, IRQ 0, 00:c1:26:05:2e:cc

... so i think the card is recognized correctly !?
or is the IRQ 0 bad ?
Anyway lsmod still says the driver is unused.

Still to many questions....

---------------------------------------
Visit me @:
 
Well, I'm about out of ideas.

I don't think the PCI slot necessarily has anything to do with the IRQ a card uses, so changing slots probably wouldn't help. Don't quote me on that, though, as I'm not really certain. If you're gonna move cards around, your best bet would be to pull out everything but the network card and see if you can get it to work at all.

From what I can tell, an IRQ of zero is valid, but it looks more than a little fishy. A network card should probably not be getting that interrupt. I would guess it should be somewhere in the 5 to 13 range (mine are at 5 and 10). You can get a list of what's using what IRQ from the command 'cat /proc/interrupts'. You could use that information to try to change the IRQs of some other devices and see what happens. Unless you can find some more specific error info in the system logs, it's pretty much trial and error.

Sorry I couldn't be more help.
 
Hey, i got it ! :)
It was really an IRQ problem, which coudn't be solved within Linux.- It was a wrong setting in the bios, which assigned IRQs automatically. Changing this options to manually and setting the irq with the tool that is coming with the ethernet-card worked.

The card is now recognized - there are no errors in dmesg.
losmod lists the driver rtl8139 as used=1
cat /proc/interrupts shows eth0 with IRQ3 (like assigned wth the tool), ifconfig lists eth0 and i'm able to ping the network and the internet.

Thanks a lot for your help.
I'll post further questions in this forum, because now i'm going to set up samba and ftp ;-) ---------------------------------------
Visit me @:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top