標籤:des style blog http color os strong io
Ralink RT3290無線網卡驅動安裝
(linux, 筆記備忘)
1. 裝置資訊
查看無線網卡裝置資訊
1 # lspci 2 02:00.0 Network controller: Ralink corp. Device 3290
2. 驅動下載
http://pan.baidu.com/s/1sjsHNgp
3. 解壓,修改,編譯,安裝
(1) 編輯解壓後的 DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/目錄中的 config.mk
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n
修改為
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
(2) make
(3) make install
4. 配置模組別名
添加 /etc/modprobe.d/wireless.conf 檔案,內容如下:
alias ra0 rt3290sta
5. /etc/sysconfig/wpa_supplicant
# Use the flag "-i" before each of your interfaces, like so:# INTERFACES="-ieth1 -iwlan0"INTERFACES="-ira0"# Use the flag "-D" before each driver, like so:DRIVERS="-Dwext"# DRIVERS=""# Other arguments# -u Enable the D-Bus interface (required for use with NetworkManager)# -f Log to /var/log/wpa_supplicant.log# -P Write pid file to /var/run/wpa_supplicant.pid # required to return proper codes by init scripts (e.g. double "start" action)# -B to daemonize that has to be used together with -P is already in wpa_supplicant.init.dOTHER_ARGS="-u -f /var/log/wpa_supplicant.log -P /var/run/wpa_supplicant.pid"
6. /etc/wpa_supplicant/wpa_supplicant.conf (WPA-PSK)
ctrl_interface=/var/run/wpa_supplicantctrl_interface_group=0ap_scan=1# WPA-PSKnetwork={ ssid="TPLink1" #bssid=74:EA:3A:19:D9:3A key_mgmt=WPA-PSK pairwise=CCMP group=CCMP psk="123456" priority=2}
7. 啟動指令碼
#!/bin/bash# This script is used for config the wireless to# connect CHX_DORM#ifconfig ra0 upiwconfig ra0 essid "CHX_DORM"iwconfig ra0 mode Managed#wpa_supplicant -B -ira0 -c /etc/wpa_supplicant/wpa_supplicant.conf service wpa_supplicant start > /dev/nulldhclient ra0ping www.baidu.com -c 1 > /dev/nullif [ $? == 0 ]; then echo "success."else echo "failed."fi
8. 參考
(1) http://askubuntu.com/questions/253632/how-do-i-get-a-ralink-rt3290-wireless-card-working