Ubuntu 10.04下安装Atheros AR9271驱动

 1、前言
找到一个水星MW150U的无线网卡,在Ubuntu 11.10下可以自动识别,但换到10.04下就不认了,想想应该是驱动没安装好。
网上查了查,发现和TP-Link TL-WN721N,TL-WN722N、迅捷FW150U一样,都使用Atheros AR9271的芯片。
root@ubuntu:~# uname -a
Linux ubuntu 2.6.32-33-generic #70-Ubuntu SMP Thu Jul 7 21:09:46 UTC 2011 i686 GNU/Linux
root@ubuntu:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.3 LTS"
root@ubuntu:~# lsusb
Bus 001 Device 003: ID 0cf3:9271 Atheros Communications, Inc.

2、山穷水尽
下载 http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2.6.tar.bz2
root@ubuntu:~# tar -jxvf compat-wireless-2.6.tar.bz2
root@ubuntu:~# cd compat-wireless-2010-10-04/
root@ubuntu:~/compat-wireless-2011-10-22# ./scripts/driver-select ath9k_htc
root@ubuntu:~/compat-wireless-2011-10-22# make
root@ubuntu:~/compat-wireless-2011-10-22# make install
root@ubuntu:~/compat-wireless-2011-10-22# reboot
重启后发现还是没找到无线网卡wlan0,无奈只有继续Google。

3、柳暗花明
发现一句“This driver requires firmware.”,
并且没有把 ar9271.fw 拷贝到 /lib/firmware目录下。看到http://linuxwireless.org/en/users/Drivers/ath9k_htc上面的提示:
Older firmware map:AR9271 - ar9271.fw
Newer firmware map:AR9271 - htc_9271.fw
于是下载了新的htc_9271.fw并拷贝到 /lib/firmware下,重复第二步的操作,OK了。

4、后记
root@ubuntu:~# iwconfig
wlan0     IEEE 802.11bgn  ESSID:"OOXX" 
          Mode:Managed  Frequency:2.437 GHz  Access Point: OO:XX:OO:XX:OO:XX
          Bit Rate=150 Mb/s   Tx-Power=20 dBm  
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=70/70  Signal level=-37 dBm 
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:90   Missed beacon:0

参考资料:
http://linuxwireless.org/en/users/Drivers/ath9k_htc
http://www.rover12421.com/2010/10/06/tl-wn722n-driver-installed-on-the-bt4-r1.html

你可能感兴趣的:(ubuntu,日常应用)