Total Pageviews

Tuesday, 18 December 2018

Installing TL-WDN5200 Drivers in Rasperry Pi

搞定在Raspberry Pi 2上使用TP-Link 的TL-WDN5200 无线网卡,以下内容全部是命令行su 下实现,如果你使用Gui 界面可以忽略最后配置连接的部分。
安装Linux-header

wget http://www.niksula.hut.fi/~mhiienka/Rpi/linux-headers-rpi/linux-headers-3.18.9-v7%2b_3.18.9-v7%2b-2_armhf.deb

or

wget http://www.niksula.hut.fi/~mhiienka/Rpi/linux-headers-rpi/linux-headers-`uname -r_uname -r-2_armhf.deb sudo dpkg -i linux-headers-uname -r_uname -r`-2_armhf.deb

dpkg -i linux-headers-3.18.9-v7+_3.18.9-v7+-2_armhf.deb

apt-get install -f
下载驱动源代码,编译安装

git clone https://github.com/chenhaiq/mt7610u_wifi_sta_v3002_dpo_20130916.git

cd mt7610u_wifi_sta_v3002_dpo_20130916

make

make install

mkdir /etc/Wireless/RT2870STA

cp RT2870STA.dat  /etc/Wireless/RT2870STA/RT2870STA.dat

reboot
安装wpa支持套件

aptitude install wpasupplicant
搜索Wifi SSID,获取SSID 名字和加密方式

iwlist scan
生成WPA 用的PSK

wpa_passphrase SSID "WifiPassword"

network={
 ssid="SSID"
 #psk="WifiPassword"
 psk=a7ab17a799f1d0837b29c8776d7164f323e5537af62cad05bd023ce021840bea
}
编辑网络配置

vim /etc/network/interfaces
auto ra0
iface ra0 inet dhcp
        wpa-ssid SSID
        wpa-psk a7ab17a799f1d0837b29c8776d7164f323e5537af62cad05bd023ce021840bea
启动无线网卡

ifup ra0

No comments:

Post a Comment