【ARM-Linux开发】Rico Board上编译USB WiFi RT3070驱动
2024-09-01 13:56:06
1.附件中提供了RT3070驱动源码包DPO_RT5572_LinuxSTA_2.6.1.3_20121022.tar.gz和编译好的驱动,这里选择使用taget_file.tar.gz中已经编译好的文件,其中还包括了与驱动相匹配的linux-3.12.10内核镜像。
2.将target_file目录下的RT2870STA.dat和rt3070sta.ko拷贝进Rico Board板子中
1
2
3
4
5
|
mkdir
/etc/Wireless/RT2870STA/ cp
/etc/Wireless/RT2870STA/ cp
/home |
3.加载驱动
1
2
3
4
5
6
7
|
root@RicoBoard # rtusb === <-- NVM usbcore: |
4.然后可以通过ifconfig -a 可以看到系统已经正确识别网卡,名称为ra0
5 启动网卡ifconfig -a
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
root@RicoBoard # NICLoadFirmware: <-- RTMP_TimerListAdd: RTMP_TimerListAdd: RTMP_TimerListAdd: RTMP_TimerListAdd: RTMP_TimerListAdd: RTMP_TimerListAdd: RTMP_TimerListAdd: RTMP_TimerListAdd: RTMP_TimerListAdd: RTMP_TimerListAdd: RTMP_TimerListAdd: RTMP_TimerListAdd: -->RTUSBVenderReset <--RTUSBVenderReset Key1Str Key2Str Key3Str Key4Str 1. 2. NVM phy RTMPSetPhyMode: 3. AntCfgInit: /secondary
/1 MCS <==== 0x1300 |
注:如果出现ERROR: 256 KiB atomic DMA coherent pool is too small!的错误,请将 coherent_pool=2M,添加在uboot的启动参数qspiargs后面。
6 .配置wpa_supplicant配置文件(wpa_supplicant相关工具已经移植好,包含在我们提供的文件系统中)
1
|
vi / etc / wpa_supplicant.conf |
编辑如下形式
1
2
3
4
5
6
7
8
9
|
ctrl_interface= /var/run/wpa_supplicant network={ ssid= "XXXXXXXX" scan_ssid=1 key_mgmt=WPA-EAP pairwise=TKIP group=CCMP psk= "XXXXXXXX" } |
注:ssid无线网名字,psk为无线网密码,请根据自己具体路由设置进行编辑配置文件
7.连接 wpa_supplicant -Dwext -ira0 -c/etc/wpa_supplicant.conf&
1
2
3
4
5
6
7
8
|
root@RicoBoard # Successfully ===>rt_ioctl_giwscan. ra0: (SSID= 'TP-LINK-1201'
ra0: ra0: ra0: id =0 |
8.ping通外网
01
02
03
04
05
06
07
08
09
10
11
12
|
root@RicoBoard # root@RicoBoard # root@RicoBoard # PING //www .baidu.com]www.baidu.com[ /url ] 64 seq =0 time =72.089 64 seq =1 time =73.024 64 seq =2 time =72.862 64 seq =3 time =73.278 64 seq =4 time =73.044 64 seq =5 time =72.439 64 seq =6 time =72.777 64 seq =7 time =73.292 |
9.附件
taget_file.rar (6.79
MB, 下载次数: 1160)
DPO_RT5572_LinuxSTA_2.6.1.3_20121022.rar (5.52
MB, 下载次数: 985)
最新文章
- ASP.NET MVC location.href不跳转
- jdk的设置及安装android studio提示does not point to a valid jvm问题
- hadoop 入门实例【转】
- apache 多站点搭建
- python - 类的字段
- windows下运行hadoop2.7.2
- 关于ClassLoader
- 在Oracle中数据库、表空间、表之间的关系
- CF908D Arbitrary Arrangement
- python—-模块与包1
- 使用JAVA反射技术实现代码零耦合与功能无限扩展!
- 洛谷P2569 股票交易
- day30 __hash__ 计算哈希值
- Django中的中间件(middleware)
- 160. Intersection of Two Linked Lists (List;Two-Pointers)
- css代码插入三种方式
- 59、synchronized同步代码块
- Django-自动HTML转义
- Delphi Firemonkey在主线程 异步调用函数(延迟调用)
- 关于C语言中内存的3个问题