LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 12-21-2003, 07:51 AM   #1
greubeuld
LQ Newbie
 
Registered: Dec 2003
Distribution: Mandrake 9.2
Posts: 5

Rep: Reputation: 0
Question 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 :
Code:
cs: cb_alloc(bus 3): vendor 0x1186, device 0x3300
PCI: Enabling device 03:00.0 (0000 -> 0003)
And the output of ifconfig :
Code:
# ifconfig
eth0      Lien encap:Ethernet  HWaddr 00:08:02:64:95:E5
          inet adr:192.168.0.189  Bcast:192.168.0.255  Masque:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1019 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1079 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:100
          RX bytes:493426 (481.8 Kb)  TX bytes:146675 (143.2 Kb)
          Interruption:10 Adresse de base:0x2000 Mémoire:80180000-80180038

lo        Lien encap:Boucle locale
          inet adr:127.0.0.1  Masque:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:124 errors:0 dropped:0 overruns:0 frame:0
          TX packets:124 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:0
          RX bytes:8138 (7.9 Kb)  TX bytes:8138 (7.9 Kb)
Thanks for your help.

(Sorry for all the output in french. I can give you translation of the messages if needed)

:scratch: :study:
 
Old 12-21-2003, 01:38 PM   #2
greubeuld
LQ Newbie
 
Registered: Dec 2003
Distribution: Mandrake 9.2
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
Old 12-21-2003, 10:03 PM   #3
berglua
LQ Newbie
 
Registered: Dec 2003
Distribution: Redhat 9
Posts: 12

Rep: Reputation: 0
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.
 
Old 12-23-2003, 03:27 AM   #4
greubeuld
LQ Newbie
 
Registered: Dec 2003
Distribution: Mandrake 9.2
Posts: 5

Original Poster
Rep: Reputation: 0
Berglua.

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):

DEVICE=wlan0
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
BOOTPROTO=dhcp
PEERDNS=yes
ONBOOT=no
But that didn't do it.
 
Old 12-26-2003, 06:13 AM   #5
greubeuld
LQ Newbie
 
Registered: Dec 2003
Distribution: Mandrake 9.2
Posts: 5

Original Poster
Rep: Reputation: 0
ok guys, little update :

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 ....) ?
 
Old 02-12-2004, 08:24 PM   #6
ajwans
LQ Newbie
 
Registered: Nov 2003
Posts: 6

Rep: Reputation: 0
Hi greubeuld, I had to edit the file r8180_pci_init.c to get the module to load
against my Belkin F5D6020z (rtl8180).

On line 59 you should have:

{ 0x10EC, 0x8180 /*0x8139*/, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },

I suggest that you change this to match your vendor and device identifiers:

{ 0x1186, 0x3300, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },

On my system I changed it to:

{ 0x1799, 0x6020, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },

Because that is what my card identifies itself as. Now "make" & "make install" and
you should be go next time you insert the card.

I'm sure there's a way to have the system detect that these cards are equivalent
but I didn't have time to work out how it's done.

Hope this helps

andy
 
Old 02-13-2004, 10:49 AM   #7
Astro
Member
 
Registered: Jan 2003
Location: Albany, NY
Distribution: Slackware
Posts: 654

Rep: Reputation: 30
IF you're using the 8180 chip check out the thread entitled WPC11 Version 4!... you can't miss it as it's bigger than an elephant..
 
Old 02-14-2004, 04:04 AM   #8
greubeuld
LQ Newbie
 
Registered: Dec 2003
Distribution: Mandrake 9.2
Posts: 5

Original Poster
Rep: Reputation: 0
Many thanks guys, I'll try that.

I already read the WPC11 entirely but I guess there were newer posts.

(my god I hate this chip...)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
wlan0: device not found anarchyprevails Linux - Wireless Networking 1 09-13-2005 03:48 PM
Cannot bring up wlan0 device JayBox Linux - Wireless Networking 6 05-31-2005 03:59 PM
how do I create the wlan0 device? veritas Linux - Wireless Networking 6 08-09-2004 04:09 PM
wlan0 problem with D-Link (DWL-650) card hemantrath Linux - Wireless Networking 4 04-30-2004 04:38 AM
Start wlan0 device at startup in mandrake 10 N1mrod Linux - Newbie 1 04-26-2004 08:53 PM


All times are GMT -5. The time now is 07:47 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration