No wlan0 device in Mandrake 9.2 (rtl8180 from D-link again)
Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
No wlan0 device in Mandrake 9.2 (rtl8180 from D-link again)
Hi guys,
I'm completely new to linux although I have a good computer experience. I wanted to start my way with an easy distro so I chose Mdk.
BUT I also need my WiFi card to work with Linux. Soooooooo I read a lot of posts about the rtl8180 chip and I managed to compile a driver after a lot of work (+1 XP level). BUt the driver wont load saying no wlan0 interface was found.
I assume I have out-of-the-box pcmcia support with Mdk 9.2, but I upgraded my kernel to 2.24.22-21mdk and rebuilt the latest drivers.
When I build the drivers I get this output :
Code:
# make
gcc -O6 -Wall -DMODULE -D__KERNEL__ -DLINUX -I /usr/src/linux-2.4.22-21mdk/include/ -DRTL_IO_MAP -DRTL_BIG_ENDIAN -DRTL_ACT_AS_STA -c -o r8180_pci_init.o r8180_pci_init.c
In file included from /usr/src/linux-2.4.22-21mdk/include/asm/semaphore.h:39,
from /usr/src/linux-2.4.22-21mdk/include/linux/fs.h:204,
from /usr/src/linux-2.4.22-21mdk/include/linux/capability.h:17,
from /usr/src/linux-2.4.22-21mdk/include/linux/binfmts.h:5,
from /usr/src/linux-2.4.22-21mdk/include/linux/sched.h:9,
from r8180_pci_init.c:26:
/usr/src/linux-2.4.22-21mdk/include/asm/system.h: In function `__set_64bit_var':
/usr/src/linux-2.4.22-21mdk/include/asm/system.h:194: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/linux-2.4.22-21mdk/include/asm/system.h:194: warning: dereferencing type-punned pointer will break strict-aliasing rules
gcc -O6 -Wall -DMODULE -D__KERNEL__ -DLINUX -I /usr/src/linux-2.4.22-21mdk/include/ -DRTL_IO_MAP -DRTL_BIG_ENDIAN -DRTL_ACT_AS_STA -c -o r8180_if.o r8180_if.c
In file included from /usr/src/linux-2.4.22-21mdk/include/asm/semaphore.h:39,
from /usr/src/linux-2.4.22-21mdk/include/linux/fs.h:204,
from /usr/src/linux-2.4.22-21mdk/include/linux/capability.h:17,
from /usr/src/linux-2.4.22-21mdk/include/linux/binfmts.h:5,
from /usr/src/linux-2.4.22-21mdk/include/linux/sched.h:9,
from r8180_if.c:27:
/usr/src/linux-2.4.22-21mdk/include/asm/system.h: In function `__set_64bit_var':
/usr/src/linux-2.4.22-21mdk/include/asm/system.h:194: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/linux-2.4.22-21mdk/include/asm/system.h:194: warning: dereferencing type-punned pointer will break strict-aliasing rules
--- Generate open part open_part.o ---
--- Generate rtl8180 linux driver rtl8180_24x.o on 2.4.22-21mdk ---
When I try to run wlanup I get :
Code:
./wlanup infra
Warning: kernel-module version mismatch
rtl8180_24x.o was compiled for kernel version 2.4.22-21mdkcustom
while this kernel is version 2.4.22-21mdk
Warning: loading rtl8180_24x.o will taint the kernel: forced load
See (NOT ALLOWED TO POST URL : NOOB INSIDE) for information about tainted modules
rtl8180_24x.o: init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg
./wlanup: line 5: /sbin/iwpriv: No such file or directory
./wlanup: line 6: /sbin/iwpriv: No such file or directory
./wlanup: line 14: /sbin/iwpriv: No such file or directory
SIOCSIFADDR: No such device
wlan0: interface inconnue: No such device
wlan0: erreur lors de la recherche d'infos sur l'interface: Périphérique non trouvé
The last error message (in french) means "Device not found".
This is the output of dmseg when I'm inserting the card :
Small update : I learnd the command cardctl and there is NO info on the output. Is it something to look into ?
Code:
# cardctl ident
Socket 0:
no product info available
[root@localhost greg]# cardctl info
PRODID_1=""
PRODID_2=""
PRODID_3=""
PRODID_4=""
MANFID=0000,0000
FUNCID=255
First, in my experience rtl8180 cards don't normally show up in cardctl so don't worry about that.
My best guess (bear in mind I've only been playing with Linux for a few weeks now) is that the kernel source code you're building the driver from doesn't quite match the kernel in use. When I was making lots of errors getting my rtl8180-based Uniden card working, I got lots of "taint" errors when I didn't get the driver built properly. Force-loading the driver (insmod -f rtl8180_24x.o) never worked for me. I leave out the -f now and never get the taint message. You might look at my recent post "NOOB's guide to rtl8180 on RH9" for how I did it.
I took a look at your guide and used a correct kernel source to compile the driver so I wouldn't have to force the load. But I still get the same error message. (Can't post it because I'm at work at the moment).
I also looked at your guide and found a step I missed :
Quote:
Step 6 - Create a network config for DHCP. In RH9, you need a new file named ifcfg-wlan0 in /etc/sysconfig/network-scripts. (You can start by copying and renaming the ifcfg-eth0 file that probably already exists.) For most home wireless networks the script should contain the following (make changes as necessary):
I finaly found out (at last) that the driver doesn' support newer kernels. But I think my problem is not related to this issue, is it ? Anyway, I'll shitch back to an older kernel (if I manage to compile it)
I guess my problem is getting this freakin' card recognised by my kernel as it doesn't show up in ifconfig.
Any ideas ?
Where can I configure ressouces manually for the device (IRQ, I/O ....) ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.