首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 嵌入开发 > 驱动开发 >

R3070驱动移栽

2013-12-16 
R3070驱动移植[root@FriendlyARM /root]# insmodrt3070sta.ko rtusb init rt2870 --- pAd c48ee000,

R3070驱动移植
[root@FriendlyARM /root]# insmod  rt3070sta.ko 
rtusb init rt2870 --->


=== pAd = c48ee000, size = 510936 ===

<-- RTMPAllocAdapterBlock, Status=0
NVM is EFUSE
usbcore: registered new interface driver rt2870
[root@FriendlyARM /root]# ifconfig ra0 up
NICLoadFirmware: We need to load firmware
<-- RTMPAllocTxRxRingMemory, Status=0
RTMP_TimerListAdd: add timer obj c4936080!
RTMP_TimerListAdd: add timer obj c49360ac!
RTMP_TimerListAdd: add timer obj c49360d8!
RTMP_TimerListAdd: add timer obj c4936054!
RTMP_TimerListAdd: add timer obj c4935fd0!
RTMP_TimerListAdd: add timer obj c4935ffc!
RTMP_TimerListAdd: add timer obj c4900814!
RTMP_TimerListAdd: add timer obj c48efd0c!
RTMP_TimerListAdd: add timer obj c48efd3c!
RTMP_TimerListAdd: add timer obj c49008ac!
RTMP_TimerListAdd: add timer obj c49007bc!
RTMP_TimerListAdd: add timer obj c490087c!
-->RTUSBVenderReset
<--RTUSBVenderReset
Key1Str is Invalid key length(0) or Type(0)
Key2Str is Invalid key length(0) or Type(0)
Key3Str is Invalid key length(0) or Type(0)
Key4Str is Invalid key length(0) or Type(0)
1. Phy Mode = 5
2. Phy Mode = 5
NVM is Efuse and its size =2d[2d0-2fc] 
phy mode> Error! The chip does not support 5G band 5!
RTMPSetPhyMode: channel is out of range, use first channel=1 
3. Phy Mode = 9
AntCfgInit: primary/secondary ant 0/1
MCS Set = ff 00 00 00 01
<==== rt28xx_init, Status=0
0x1300 = 00064300
[root@FriendlyARM /root]# ifconfig eth0 down
[root@FriendlyARM /root]# ifconfig ra0 192.168.1.104
[root@FriendlyARM /root]# route add default gw 192.168.1.1

[root@FriendlyARM /root]# wpa_supplicant -Dwext -i ra0 -c /etc/wpa_supplicant.co
nf -dd  &
[root@FriendlyARM /root]# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
^C
--- 192.168.1.1 ping statistics ---
9 packets transmitted, 0 packets received, 100% packet loss
[root@FriendlyARM /root]# 

[root@FriendlyARM /root]# ifconfig
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:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1008 (1008.0 B)  TX bytes:1008 (1008.0 B)

ra0       Link encap:Ethernet  HWaddr 48:02:2A:57:E6:84  
          inet addr:192.168.1.104  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10769 errors:0 dropped:0 overruns:0 frame:0
          TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2044797 (1.9 MiB)  TX bytes:3416 (3.3 KiB)

真心不知道问题出哪了,就是ping不通折磨死了,希望大哥大姐帮下小妹,谢谢了
 

------解决方案--------------------


你确定已经连接上了AP?
建议关掉debug信息。让wpa_supplicant后台运行。
我的做法,运行wpa_supplicant后,再让其dhcp来获取IP地址。然后进行网络测试。

热点排行