Ubuntu 10.04下安装Atheros AR9271驱动

        入手一台从朋友那里拿来缅怀IBM的古董R31,没有无线网卡,上完要拉根网线很麻烦,于是网上购买了一个usb接口的使用Atheros AR9271的芯片的二手netgear wna1100的网卡,于是开始了驱动安装之旅

 1、下载驱动:http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2.6.tar.bz2

root@R31:/# tar -jxvf compat-wireless-2.6.tar.bz2
root@R31:/# cd compat-wireless-2010-10-04/
root@R31:/home/nfsboot/compat-wireless-2011-10-22# ./scripts/driver-select ath9k_htc
root@R31:/home/nfsboot/compat-wireless-2011-10-22# make
root@R31:/home/nfsboot/compat-wireless-2011-10-22# make install

从网上下载了新的htc_9271.fw并拷贝到 /lib/firmware下

root@R31:/home/nfsboot/compat-wireless-2011-10-22# cp ./htc_9271.fw /lib/firmware
root@ubuntu:~/compat-wireless-2011-10-22# reboot

 重启后,在图形界面下,lsusb

root@R31:/# lsusb
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 004: ID 0846:9030 NetGear, Inc. 
Bus 002 Device 003: ID 046d:c016 Logitech, Inc. M-UV69a/HP M-UV96 Optical Wheel Mouse
Bus 002 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

听过图形化的网络连接配置直接选中自己的无线网,输入密码,可正常上网,这时,问题来了,因为这台机器跑图形太吃力了,文本才是王道的情况下,连接无线网成了大问题了,先后折腾了许多天才在此时终于联网,下面记录下联网log

1、生成连接wpa加密的路由的配置文件

wpa_passphrase ESSID PWD > xxx.conf (ESSID为无线网名字  PWD为无线网密码   如 wpa_passphrase  TP-LINK 12345678 > /home/tplink.conf

 xxx.conf参考文件:

network={
        ssid="MCU2012"
        proto=RSN
        key_mgmt=WPA-PSK
        pairwise=CCMP TKIP
        group=CCMP TKIP

#psk=“xxxxxxxxxx”
        psk=xxxx13d30d77b29c442847426ede5844abeb5989d9bc4c8ae4e1fd30ea5c8dad
}

2、激活无线网卡 

ifconfig wlan0 up

3、连接路由

wpa_supplicant -B -i wlan0 -Dwext -c /home/tplink.conf

4、查看联网情况 iwconfig wlan0

[aniu@R31 ~]$ iwconfig  wlan0
wlan0     IEEE 802.11bgn  ESSID:"MCU2012"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: 00:1F:33:BB:3C:74   
          Bit Rate=54 Mb/s   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=70/70  Signal level=-16 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0

5、自动获取IP

dhclient wlan0

        成功用自动获取IP上网,迟点再试 静态IP上网

你可能感兴趣的:(Ubuntu 10.04下安装Atheros AR9271驱动)