荣耀彩票代理

IT技术互动交流平台

USBWIFI腾达811M无线网卡RT5370移植

来源:IT165收集  发布日期:2016-07-21 21:36:48

ZIJIWADEKENG,KUZHEYEYAOTIANPING!!!

RUANJIANHUANJING:XUNIJIubuntu12.04

YINGJIANHUANJING:TENGDA811MWUXIANWANGKA

荣耀彩票代理OK6410: 512m sdram 2g nandflash YUNXINGGUANFANGTIGONGDE3.0.1NEIHElinux wpa_supplicantBANBEN0.7.3(GUANFANGNEIHEZIDAI)

RT5370QUDONGXIAZAI:http://download.csdn.net/detail/andylauren/9581594

荣耀彩票代理XIANSHUOYIXIAWEISHENMEWOYAOYIZHIRT5370,YINWEI4NIANQIANMAILEYIGETENGDA811MDEusbWANGKA,DANSHIZAIwindowsXIAMIANXUYAOANZHUANGYIGEGUANFANGDEQUDONG,ERQIEJUEDEQUDONGJIEMIANBUSHIHENYOUHAO,HOULAIZAIJIESHANGSAOMASONGLEGE360wifi,CONGCITENGDADEWANGKAJIUBEIGEZHILE。HOULAIXUEXILEQIANRUSHI,YIZHIJIUXIANGZUOYIGEBUYONGWANGXIANDEKAIFASHEBEI,YUSHIJIUXIANGZUOGEDAIwifiDE,MAILEGEERSHOUDEok6410KAIFABAN,HAIMAILEYIGEsdioDEWUXIANWANGKA,DANSHISHUOQILAIFEILINGJIADEMOKUAIZUODEZHENSHIBUTAIWANSHAN,KAIFABANSHANGYOUGEDAIQUEKOUDEZUO,DANSHIMOKUAISHANGDEMUZUOQUESHIMEIYOUFANZHENG,ZHIYIKAOYIGEXIAOXIAODE1JIAOBIAOJIQUFENZHENGFANMIAN,KENENGSHIWOZAIMOUCISHIYONGDESHIHOUCHAFANLE,DAOZHIZHEIGEsdioWUXIANMOKUAILIANJIEBUWENDING。YUSHIJIUXIANGQILETENGDAWANGKA,XIANGNENGBUNENGBATACHASHANGQUDANGZUOWANGKASHIYONG,DAANYIDINGSHIKENDINGDE,DANSHIWOZUOWEIYIGECHUXUEZHE,ZHEIGEWENTIJUEDUISHIJUDADETIAOZHAN。HOULAIJINGGUOBUXIEDENULIZHONGYUCHENGGONGLE!WODETENGDAZAIKAIFABANSHANGZHENGCHANGGONGZUO,NENGGOUSHANGWANG,NENGGOUGUAZAInfs,XIAMIANJIUANZHAOWOCONGKAISHIDAOZUIZHONGYIZHIDEGUOCHENGSHUOYIXIA,BINGBAWOZAIYIZHIDEGUOCHENGZHONGYUDAODEWENTIYESHUOMINGYIXIA,XIWANGNENGGOUDUIHOURENYOUBANGZHU。

荣耀彩票代理SHOUXIANWOMENLAIKANXIAWANGKADEWAIGUAN

JIUSHIZHEIYANGDE,ZAIZHEIGESHIHOUSHIBUZHIDAOTENGDA811MSHIYONGDESHISHENMEWANGKAXINPIAN,RANHOUWOBATACHAIKAILE,KANDAOLIMIANDEXINPIANXIEZHERT5370N

RANHOUWOJIUKAISHIZHESHOUZHAORT5370QUDONGDEYIZHIZILIAO,QIZHONGhttp://blog.csdn.net/lanyang123456/article/details/7370805 ZHEIPIANBOWENDUIWODEBANGZHUHENDA,YEJIANYIXIANKANYIXIAZHEIPIANBOWEN。

RANHOUWOMENXIAZAIRT5370QUDONGDEYUANMA,XIAZAIDIZHIZAIWOZHEIPIANBOKEKAISHIDEDIFANG。SHOUXIANBArarWENJIANZHONGDEWENJIANJIAJIEYADAOlinuxMULUZHONG,

修改驱动源码根目录下的Makefile

PLATFORM=SMDK

ifeq ($(PLATFORM),SMDK)
LINUX_SRC = /home/linux/sys/linux-3.0.1/(内核源码路径,内核需要被编译过)
CROSS_COMPILE = /home/linux/sys/arm-gcc-4.3.2/bin/arm-linux-(交叉编译工具链路径)
endif

ZHEIGESHIHOUJIUKEYIJINXINGmakeLE,BUHUIBAOCUO,DANSHISHIYONGDESHIHOUSHIWUFALIANJIEWUXIANLUYOUDE。

ZHEIGEDIFANGHUAFEILEWODALIANGDESHIJIAN,ERQIEZAIZHEIZHONGQINGKUANGXIAYUNXINGwpa_supplicantZHIHUITISHISHIBAI,BINGQIEBUTINGDECHANGSHIZHONGXINLIANJIE。

Trying to associate with a8:57:4e:0d:76:e6 (SSID='CMCC-PUB' freq=2412 MHz)
ioctl[SIOCSIWGENIE]: Operation not supported
Association request to the driver failed
荣耀彩票代理 Authentication with a8:57:4e:0d:76:e6 timed out.

XIAMIANWOLAISHUOYIXIARUHEJIEJUEZHEIGEWENTI,XUYAOGENGGAI./os/linux/config.mkWENJIANZHONGDEJIGEPEIZHIXUANXIANG,RUXIA

# Support AP-Client function
HAS_APCLI=y

# Support Wpa_Supplicant
HAS_WPA_SUPPLICANT=y

# Support Native WpaSupplicant for Network Maganger
荣耀彩票代理 HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y

XUYAOJIANGZHEISANXIANGXUANWEIy。

XIANZAIBIANYICHULAIDEQUDONGWENJIANRENGRANSHIWUFASHIYONGDE,ZAIKAIFABANSHANGYUNXINGDESHIHOUHUITISHIRUXIACUOWU

rt5370sta: module license 'unspecified' taints kernel.
Disabling lock debugging due to kernel taint
rt5370sta: Unknown symbol usb_alloc_urb (err 0)
rt5370sta: Unknown symbol usb_free_urb (err 0)
rt5370sta: Unknown symbol usb_alloc_coherent (err 0)
rt5370sta: Unknown symbol usb_register_driver (err 0)
rt5370sta: Unknown symbol usb_put_dev (err 0)
rt5370sta: Unknown symbol usb_get_dev (err 0)
rt5370sta: Unknown symbol usb_submit_urb (err 0)
rt5370sta: Unknown symbol usb_free_coherent (err 0)
rt5370sta: Unknown symbol usb_control_msg (err 0)
rt5370sta: Unknown symbol usb_deregister (err 0)
rt5370sta: Unknown symbol usb_kill_urb (err 0)
荣耀彩票代理 insmod: error inserting 'rt5370sta.ko': -1 Unknown symbol in module

DIYIJUHUAZHICHUZHEIGEMOKUAIDUINEIHESHIYOUWURANDE,QISHIJIUSHIMEIYOUSHENGMINGSHIYONGGPLXIEYI,XUYAOGENGGAIos/linuxXIADEusb_main_dev.cWENJIAN,ZAIKAITOUDEDIFANGXIESHANG

荣耀彩票代理MODULE_LICENSE("GPL");

RANHOUmake

LD [M] /home/linux/16021/RT5370_RT5372_Linux_STA_V2.5.0.1/2011_0225_RT5370_RT5372_Linux_STA_V2.5.0.1_DPO/os/linux/rt5370sta.ko

荣耀彩票代理CHUXIANZHEIJUHUASHUOMINGBIANYICHENGGONG。

JIANG/os/linux/MULUXIADErt5370sta.koKAOBEIDAOKAIFABANSHANG,BINGJIANGQUDONGGENMULUXIADERT2870STA.datKAOBEIDAOKAIFABANDE/etc/Wireless/RT2870STA/MULUXIA,QIANTISHIXUYAOZIJISHOUDONGCHUANGJIAN/etc/Wireless/RT2870STA/MULU

# mkdir /etc/Wireless/RT2870STA/ -p

荣耀彩票代理JIANGZHEILIANGGEWENJIANKAOBEIDAOKAIFABANSHANGZHIHOU,XUYAOXIUGAIwpa_supplicantDEwpa_supplicant.confWENJIAN,ZHEIGEWENJIANZAIKAIFABANDE/etc/wpa_supplicant.confLUJINGXIA。

荣耀彩票代理ZHEILISHUOYIXIAwpa_supplicant

荣耀彩票代理wpa_supplicantZHUYAOSHIYONGLAIZHICHIWEP,WPA/WPA2HEWAPIWUXIANXIEYIHEJIAMIRENZHENGDE,YOUYUlinuxBENSHENBINGBUZHICHIWPADEJIAMI,SUOYIXUYAOYIZHIwpa_supplicantLAISHIwifiNENGGOULIANJIEWPAJIAMIDEWUXIANLUYOUSHANG,JIANDANDESHUO,wpa_supplicantJIUSHIWiFiQUDONGHEYONGHUDEZHONGZHUANZHANWAIJIADUIXIEYIHEJIAMIRENZHENGDEZHICHI。YOUYUok6410DE3.0.1NEIHEYIJINGYIZHIHAOLEwpa_supplicantDE0.7.3BANBEN,SUOYIDUIYUwpa_supplicantDEYIZHIZHEILIJIUBUZUOJIANGJIE。

荣耀彩票代理JIEZHESHUOwpa_supplicant.confWENJIANDENEIRONG,ZHEILIDEWENTIWOYESHIJIEJUELEHENJIU。GUANFANGJIDELICHENGSHIZHEIYANGDE

ctrl_interface=/var/run/wpa_supplicant

network={
ssid="max" //填写无线网络的的用户名
key_mgmt=WPA-PSK
proto=WPA
pairwise=TKIP
group=TKIP
psk="1234567890" //填写密码
}

我使用这个模板出现了skip WPA IE - PTK cipher mismatch这个问题,在找到路由之后,提示密码错误,后来查看了路由器发现原来密码也有几种加密方式。TKIP和AES两种,上面的写法就是被固定为TKIP方式,TKIP方式的带宽很低,所以现在都采用的是AES方式加密,在wpa_supplicant中AES加密方式对应的是CCMP,也就是需要把TKIP改为CCMP,这个我没有验证过,我使用的是下面的方法,不声明使用的是哪种加密方式,让wpa_supplicant去自适应。

荣耀彩票代理ctrl_interface=/var/run/wpa_supplicant


update_config=1

network={
ssid="mingzi"
key_mgmt=WPA-PSK
psk="mimamimamima"
}

我使用这个配置成功的连接了AES加密方式 的路由器

荣耀彩票代理RANHOUWOMENJIANGQUDONGJIAZAIJINNEIHE

insmod rt5370sta.ko

RANHOUKEYISHIYONG

wpa_supplicant -ira0 -Dwext -c/etc/wpa_supplicant.conf -dd &
荣耀彩票代理 wpa_supplicant -ira0 -Dwext -c/etc/wpa_supplicant.conf &

ZHEILIANGTIAOZHILINGZHONGDERENYIYIGE,-ddDEHUISHUCHUGENGGUODEXINXI。

ZAICHUXIAN

Trying to associate with a8:57:4e:0d:76:e6 (SSID='CMCC-PUB' freq=2412 MHz)
ioctl[SIOCSIWGENIE]: Operation not supported
Association request to the driver failed
Associated with a8:57:4e:0d:76:e6
WPA: Key negotiation completed with a8:57:4e:0d:76:e6 [PTK=CCMP GTK=CCMP]
CTRL-EVENT-CONNECTED - Connection to a8:57:4e:0d:76:e6 completed (auth) [id=0 id_str=]

HOUBINGQIEWUXIANWANGKADEDENGYELIANGLEQILAISHUOMINGYIJINGKEYIZHENGCHANGSHIYONGLE,ZHEISHIHOUXUYAOJINYONGYOUXIANWANGKAeth0。RUGUOSHIYONGDESHInfsGUAZAIDEWENJIANXITONGJIANYIZUIHOUJINYONGYOUXIANWANGKA,YINWEIYIDANJINYONGJIUMEIYOUWENJIANXITONGLE,KAIFABANJIUMEIBANFACAOZUOLE。

ifconfig eth0 down

ZHEISHIHOUWUXIANWANGKAHAIMEIYOUip,KEYISHIYONGJINGTAIFENPEIDEFANGSHI

ifconfig ra0 192.168.1.20

RUGUOLUYOUQIZHICHIDONGTAIFENPEIYEKEYISHIYONGDONGTAIFENPEI

udhcpc -i ra0

ZHIHOUHUIFANHUI

udhcpc (v1.13.3) started
Sending discover...
Sending select for 192.168.1.104...
Lease of 192.168.1.104 obtained, lease time 7200
deleting routers
route: SIOCDELRT: No such process
adding dns 10.10.0.1
荣耀彩票代理 adding dns 124.207.160.106

荣耀彩票代理BIAOSHIFENPEIIPCHENGGONG,DAOZHEILIWOMENDETENGDAWUXIANWANGKAJIUYIJINGKEYIZHENGCHANGSHIYONGLE,XIANGZUOSHENMEDOUKEYI,WANQUANHEYOUXIANSHIYIYANGDE。

XIAMIANSHIWODEZHONGDUANXIANSHIDEXINXI

 

root@FORLINX6410:/# insmod rt5370sta.ko 
root@FORLINX6410:/# wpa_supplicant -ira0 -Dwext -c/etc/wpa_supplicant.conf &
root@FORLINX6410:/# 
root@FORLINX6410:/# 
root@FORLINX6410:/# 
root@FORLINX6410:/# Trying to associate with a8:57:4e:0d:76:e6 (SSID='CMCC-PUB' freq=2412 MHz)
ioctl[SIOCSIWGENIE]: Operation not supported
Association request to the driver failed
Associated with a8:57:4e:0d:76:e6
WPA: Key negotiation completed with a8:57:4e:0d:76:e6 [PTK=CCMP GTK=CCMP]
CTRL-EVENT-CONNECTED - Connection to a8:57:4e:0d:76:e6 completed (auth) [id=0 id_str=]

root@FORLINX6410:/# 
root@FORLINX6410:/# 
root@FORLINX6410:/# 
root@FORLINX6410:/# 
root@FORLINX6410:/# ifconfig
eth0      Link encap:Ethernet  HWaddr 08:90:00:A0:90:90  
          inet addr:192.168.1.232  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:21757 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9230 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:27797014 (26.5 MiB)  TX bytes:1513652 (1.4 MiB)
          Interrupt:108 Base address:0xc000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

ra0       Link encap:Ethernet  HWaddr C8:3A:35:CF:42:62  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:3 overruns:65015 frame:65015
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:164689 (160.8 KiB)  TX bytes:2226 (2.1 KiB)

root@FORLINX6410:/# udhcpc -i ra0
udhcpc (v1.13.3) started
Sending discover...
Sending select for 192.168.1.104...
Lease of 192.168.1.104 obtained, lease time 7200
deleting routers
route: SIOCDELRT: No such process
adding dns 10.10.0.1
adding dns 124.207.160.106
root@FORLINX6410:/# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
64 bytes from 192.168.1.1: seq=0 ttl=64 time=5.951 ms
64 bytes from 192.168.1.1: seq=1 ttl=64 time=0.505 ms
^C
--- 192.168.1.1 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0.505/3.228/5.951 ms
root@FORLINX6410:/# 
到这里就结束了,下载再提供一个开机自启动的脚本文件

 

 

#!/bin/sh 

insmod rt5370sta.ko&&wpa_supplicant -ira0 -Dwext -c/etc/wpa_supplicant.conf &
sleep 40&&udhcpc -i ra0&&ifconfig eth0 down

这个脚本是在最后才关闭有线网卡,所以即使使用nfs挂载根文件系统也可以。其中有一个sleep 40是等待无线驱动加载和无线网卡连接路由的时间,这个需要根据自己的实际情况去更改。

 

Tag标签:      
  • 专题推荐

About IT165 - 广告服务 - 隐私声明 - 版权申明 - 免责条款 - 网站地图 - 网友投稿 - 联系方式
本站内容来自于互联网,仅供用于网络技术学习,学习中请遵循相关法律法规