Yesterday, I tried to get an external WiFi radio to work in my Ubuntu 10.04 laptop (effort detailed here):
-
How do we tell Ubuntu 10.04 to use a DIFFERENT wireless radio card?
On my version of a ( 2.6.32-31-generic) pristine Ubuntu 10.04 laptop installation:
Code:
$uname -a
...
Linux library 2.6.32-31-generic #61-Ubuntu SMP Fri Apr 8 18:24:35 UTC 2011 i686 GNU/Linux
At first, Ubuntu would not recognize the
Amped UA600 USB WiFi radio adapter when it was plugged into the laptop USB port.
Code:
$ ifconfig | grep wlan
...
eth0 Link encap:Ethernet HWaddr 00:a0:c3:3a:93:38
wlan0 Link encap:Ethernet HWaddr 00:0a:8d:37:b3:ba
First, I determined the device identifier using 'list short USB":
Code:
$ lsusb
...
Bus 002 Device 002: ID 0bda:8172 Realtek Semiconductor Corp.
Then, in the /var/log/messages (dmesg | tail), I determined what driver Ubuntu was (mistakenly) looking for:
Code:
usb 2-1: new high speed USB device using ehci_hcd and address 2
usb 2-1: configuration #1 chosen from 1 choice
r8192s_usb: module is from the staging directory, the quality is unknown, you have been warned. <=== huh?
...
Linux kernel driver for RTL8192 based WLAN cards
Copyright (c) 2007-2008, Realsil Wlan
...
rtl8192_proc_init_one+0x25/0x460 [r8192s_usb]
rtl8192_usb_probe+0x148/0x191 [r8192s_usb] <==== NOTE: This will be useful for the modinfo command syntax!
...
usbcore: registered new interface driver rtl819xU <=== NOTICE the "U" (Ubuntu has only the "E")
usb 2-1: firmware: requesting RTL8192SU/rtl8192sfw.bin
...
usb 2-1: USB disconnect, address 3
...
Placing that keyword into "module information", I could see the desired driver:
Code:
$ modinfo r8192s_usb
...
filename: /lib/modules/2.6.32-31-generic/kernel/drivers/staging/rtl8192su/r8192s_usb.ko
description: Linux driver for Realtek RTL8192 USB WiFi cards
...
A quick look in the /lib/modules/2.6.32-31-generic/kernel/drivers/net/wireless directory shows an "rtl818x" directory with the following contents:
Code:
$ ls -alsF /lib/modules/2.6.32-31-generic/kernel/drivers/net/wireless/rtl818x/*
...
44 -rw-r--r-- 1 root root 43176 2011-04-08 16:36 rtl8180.ko
72 -rw-r--r-- 1 root root 73640 2011-04-08 16:36 rtl8187.ko
The problem appears to be that Ubuntu is looking for the following location (which doesn't exist):
Code:
$ ls /lib/firmware/RTL8192SU/rtl8192sfw_bin
...
ls: cannot access /lib/firmware/RTL8192SU/rtl8192sfw_bin: No such file or directory
The file exists (rtl8192sfw_bin); it's just in a different location on Ubuntu:
Code:
$ ls -alsF /lib/firmware/RTL8192SE
...
/lib/firmware/RTL8192SE:
total 244
-rw-r--r-- 1 root root 75984 2010-12-14 08:26 rtl8192sfw492.bin
-rw-r--r-- 1 root root 89616 2010-12-14 08:26 rtl8192sfw74.bin
-rw-r--r-- 1 root root 80976 2010-12-14 08:26 rtl8192sfw.bin
Post #35 and
post #36 of
this thread provided a (different sized, same-named file):
-
[STAGING] realtek rtl8192su chipset based USB wireless devices fail to work
Here's what I did to obtain that differently-sized file (I guess I should call it a "driver"):
Code:
http://launchpadlibrarian.net/37387612/rtl8192sfw.bin.gz
$ gunzip rtl8192sfw.bin.gz
$ sudo mkdir /lib/firmware/RTL8192SU
$ sudo mv rtl8192sfw.bin /lib/firmware/RTL8192SU/.
Finally, I was able to get Ubuntu to recognize the external WiFi radio when plugged in:
Code:
$ ifconfig | grep wlan
...
wlan0 Link encap:Ethernet HWaddr 00:0a:8d:37:b3:ba
wlan1 Link encap:Ethernet HWaddr f8:78:8c:a1:45:f4
Now that the driver is finally working, I can get back to the original question asked in that thread:
-
How do we tell Ubuntu 10.04 to use a DIFFERENT wireless radio card?
Bookmarks