设为首页 加入收藏

TOP

嵌入式 RT3070_STA驱动移植到hi3518c平台小结(二)
2014-11-24 01:09:19 来源: 作者: 【 】 浏览:13
Tags:嵌入式 RT3070_STA 驱动 移植 hi3518c 平台 小结
: No such file or directory


原因未加载USB驱动



5.1 加载usbcore.ko
insmod /lib/modules/2.6.14-hi3511v100dmeb-release/kernel/drivers/usb/core/usbcore.ko


显示
usbcore: registered new driver usbfs
usbcore: registered new driver hub

加载成功



5.2.1 如果为USB1.1 加载hi3511_usb_1-1.ko


insmod /lib/modules/2.6.14-hi3511v100dmeb-release/misc/hi3511_usb_1-1.ko


显示
USB1_1-M0001C030002 @Hi3511v110_OSDrv_1_0_0_1 2008-11-03 18:35:15
Clock to USB host has been enabled
hisilicon-ohci hisilicon-ohci.0: hisilicon OHCI
hisilicon-ohci hisilicon-ohci.0: new USB bus registered, assigned bus number 1
hisilicon-ohci hisilicon-ohci.0: irq 20, io mem 0xa0000000
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usb 1-1: new full speed USB device using hisilicon-ohci and address 2

加载成功



5.2.2 如果为USB2.0 加载hiusb.ko


insmod /lib/modules/2.6.14-hi3511v100dmeb-release/misc/hiusb.ko


显示
<6>hiusb-hcd hiusb-hcd.0: Hisilicon USB host controller
hiusb-hcd hiusb-hcd.0: new USB bus registered, assigned bus number 1
hiusb-hcd hiusb-hcd.0: irq 23, io base 0x80090000
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected


加载成功



5.3 然后再加载rt3070sta.ko
insmod /xxx/rt3070sta.ko
显示
rtusb init rt2870 --->


=== pAd = d1af4000, size = 514424 ===


<-- RTMPAllocTxRxRingMemory, Status=0
<-- RTMPAllocAdapterBlock, Status=0
usbcore: registered new driver rt2870

加载成功


#ifconfig -a 可以查看到ra0设备的存在


若无密码或密码为WEP加密,则此时可以启动无线, 若密码为WPA加密,则需移植wpa_supplicant,往后再说移植



6.无密码或密码为WEP加密:
6.1 启动无线
#ifconfig ra0 up
(Efuse for 3062/3562/3572) Size=0x2d [2d0-2fc]
RTMP_TimerListAdd: add timer obj d1b3c620!
RTMP_TimerListAdd: add timer obj d1b3c650!
RTMP_TimerListAdd: add timer obj d1b3c680!
RTMP_TimerListAdd: add timer obj d1b3c5f0!
RTMP_TimerListAdd: add timer obj d1b3c560!
RTMP_TimerListAdd: add timer obj d1b3c590!
RTMP_TimerListAdd: add timer obj d1b06b94!
RTMP_TimerListAdd: add timer obj d1af5f54!
RTMP_TimerListAdd: add timer obj d1af5f8c!
RTMP_TimerListAdd: add timer obj d1b06c38!
RTMP_TimerListAdd: add timer obj d1b06b34!
RTMP_TimerListAdd: add timer obj d1b06c04!
-->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
phy mode> Error! The chip does not support 5G band 5!
RTMPSetPhyMode: channel is out of range, use first channel=1
(Efuse for 3062/3562/3572) Size=0x2d [2d0-2fc]
3. Phy Mode = 9
MCS Set = ff 00 00 00 01
<==== rt28xx_init, Status=0
0x1300 = 00064300

启动成功



6.2 设置ip
#ifconfig ra0 192.168.1.230 netmask 255.255.255.0



6.3 扫描无线网络
#iwlist ra0 scan
===>rt_ioctl_giwscan. 9(9) BSS returned, data->length = 1476
ra0 Scan completed :
Cell 01 - Address: F0:7D:68:96:A6:C2
Protocol:802.11b/g/n
ESSID:"dlinktf"
Mode:Managed
Frequency:2.412 GHz (Channel 1)
Quality=18/100 Signal level=-83 dBm Noise level=-92 dBm
Encryption key:on
Bit Rates:54 Mb/s
Cell 02 - Address: F4:EC:38:55:AF:BC
Protocol:802.11b/g/n
ESSID:"visview"
Mode:Managed
Frequency:2.427 GHz (Channel 4)
Quality=18/100 Signal level=-83 dBm Noise level=-91 dBm
Encryption key:off
Bit Rates:54 Mb/s


显示以上信息说明模块已经正常工作



6.4 设置SSID和WEP加密算法
可以参考里面的iwpriv_usage.txt进行配置,



6.4.1 无密码
Config STA to link with AP which is OPEN/NONE(Authentication/Encryption)
1. iwpriv ra0 set NetworkType=Infra
2. iwpriv ra0 set AuthMode=OPEN
3. iwpriv ra0 set EncrypType=NONE
4. iwpriv ra0 set SSID="AP's SSID"



6.4.2 WEP加密算法
iwpriv ra0 set NetworkType=Infra
iwpriv ra0 set AuthMode=SHARED
iwpriv ra0 set EncrypType=WEP
iwpriv ra0 set DefaultKeyID=1
iwpriv ra0 set Key1="AP's wep

首页 上一页 1 2 3 下一页 尾页 2/3/3
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇OpenGL实例(1)-创建窗体 下一篇嵌入式 Linux C如何打印64bit的lo..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: