5252
- 收藏
- 点赞
- 分享
- 举报
关于3518E平台移植rt5370WiFi的问题
本帖最后由 rui 于 2015-8-5 14:51 编辑
我在3518E上面移植RT5370WiFi 时出现了一些问题,过程和问题如下:
我们的移植工作先从配置kernel开始,
1.配置内核
Networking support==>Wireless 下80211相关配置选上
Device Drivers==>Network deivce support==>Wireless LAN==> <*> Ralink driver support --->全选
Device Drivers==>USB support下EHCI HCD support、OHCI HCD support 、USB Wireless Device Management support
2. 移植rt5370驱动
a.解压源码
2011_0719_RT3070_RT3370_RT5370_RT5372_RT2070_Linux_STA_V2.5.0.3_DPO.bz2
b.修改顶层Makefile
修改平台为Hi3518E: #PLATFORM = PC PLATFORM = HI3518E
添加平台内核路径及编译工具
ifeq ($(PLATFORM),HI_3518E)
LINUX_SRC = /opt/Hi3518_SDK_V1.0.8.1/osdrv/kernel/linux-3.0.y
CROSS_COMPILE = arm-hisiv100nptl-linux-
export ARCH=arm
endif
c.修改配置文件 修改os/linux/config.mk
使能wpa supplicant # Support Wpa_Supplicant HAS_WPA_SUPPLICANT=y
# Support Native WpaSupplicant for Network MagangeHAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
d.添加平台
ifeq ($(PLATFORM),HI_3518E)
#WFLAGS += -DRT_BIG_ENDIAN
Endif
将CFLAGS修改为EXTRA_CFLAGS
ifeq ($(PLATFORM),HI_3518E)
EXTRA_CFLAGS := -v -D__KERNEL__ -DMODULE -I$(LINUX_SRC)/include -I$(RT28xx_DIR)/include -mbig-endian -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -Uarm -fno-common -pipe -mapcs-32 -D__LINUX_ARM_ARCH__=5 -mcpu=xscale -mtune=xscale -malignment-traps -msoft-float $(WFLAGS)
EXTRA_CFLAGS := -v $(WFLAGS) -I$(RT28xx_DIR)/include
export CFLAGS
endif
e.编译 make clean;make –j 4 编译OK
f.部署到开发板
将os/linux/rt5370sta.ko放入开发板ko目录下 将RT2870STA.dat放入开发板/etc/Wireless/RT2870STA/目录下
f.加载5370驱动 #insmod rt5370sta.ko
rtusb init rt2870 --->
=== pAd = c4ea4000, size = 510192 ===
<-- RTMPAllocTxRxRingMemory, Status=0
<-- RTMPAllocAdapterBlock, Status=0
#
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=IN, Req=0x7, Idx=0x1000,pAd->Flags=0x0
#
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=IN, Req=0x7, Idx=0x1000,pAd->Flags=0x0
#
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=IN, Req=0x7, Idx=0x1000,pAd->Flags=0x0
#
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=IN, Req=0x7, Idx=0x580,pAd->Flags=0x0
usbcore: registered new interface driver rt2870
g.查看模块是否存在
#
# lsusb
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0001
Bus 001 Device 002: ID 148f:5370
#
# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:01:02:03:04:10
inet addr:192.168.0.85 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::201:2ff:fe03:410/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:43098 errors:0 dropped:3 overruns:0 frame:0
TX packets:14146 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3986865 (3.8 MiB) TX bytes:1023671 (999.6 KiB)
Interrupt:12
lo Link encap:Local Loopback
LOOPBACK 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 00:00:00:00:00:00
BROADCAST MULTICAST MTU:1500 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:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
有ra0 说明已经识别,我们启用该模块
Ifconfig – ra0 up
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=IN, Req=0x7, Idx=0x1000,pAd->Flags=0x0
#
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=IN, Req=0x9, Idx=0x34,pAd->Flags=0x0
(Efuse for 3062/3562/3572) Size=0x2d [2d0-2fc]
#
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=IN, Req=0x7, Idx=0x1000,pAd->Flags=0x0
#
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=OUT, Req=0x2, Idx=0x3000,pAd->Flags=0x0
Request Value=0xffff!
#
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=OUT, Req=0x2, Idx=0x3002,pAd->Flags=0x0
Request Value=0x02ff!
#
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=OUT, Req=0x2, Idx=0x3004,pAd->Flags=0x0
Request Value=0x2810!
#
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=OUT, Req=0x2, Idx=0x3006,pAd->Flags=0x0
Request Value=0x1002!
#
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=OUT, Req=0x2, Idx=0x3008,pAd->Flags=0x0
Request Value=0x023b!
#
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=OUT, Req=0x2, Idx=0x300a,pAd->Flags=0x0
Request Value=0x8610!
#
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=OUT, Req=0x2, Idx=0x300c,pAd->Flags=0x0
Request Value=0x1602!
#
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=OUT, Req=0x2, Idx=0x300e,pAd->Flags=0x0
Request Value=0x024e!
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=OUT, Req=0x2, Idx=0x3010,pAd->Flags=0x0
Request Value=0x4f16!
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=OUT, Req=0x2, Idx=0x3012,pAd->Flags=0x0
Request Value=0x1702!
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=OUT, Req=0x2, Idx=0x3014,pAd->Flags=0x0
Request Value=0x0233!
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=OUT, Req=0x2, Idx=0x3016,pAd->Flags=0x0
Request Value=0x3817!
就会持续打印以上信息,该问题困扰我好几天了,这个问题是不是我配置内核后者修改驱动源码时出问题导致的还是其他原因,请大牛协助定位下,谢谢!
我在3518E上面移植RT5370WiFi 时出现了一些问题,过程和问题如下:
我们的移植工作先从配置kernel开始,
1.配置内核
Networking support==>Wireless 下80211相关配置选上
Device Drivers==>Network deivce support==>Wireless LAN==> <*> Ralink driver support --->全选
Device Drivers==>USB support下EHCI HCD support、OHCI HCD support 、USB Wireless Device Management support
2. 移植rt5370驱动
a.解压源码
2011_0719_RT3070_RT3370_RT5370_RT5372_RT2070_Linux_STA_V2.5.0.3_DPO.bz2
b.修改顶层Makefile
修改平台为Hi3518E: #PLATFORM = PC PLATFORM = HI3518E
添加平台内核路径及编译工具
ifeq ($(PLATFORM),HI_3518E)
LINUX_SRC = /opt/Hi3518_SDK_V1.0.8.1/osdrv/kernel/linux-3.0.y
CROSS_COMPILE = arm-hisiv100nptl-linux-
export ARCH=arm
endif
c.修改配置文件 修改os/linux/config.mk
使能wpa supplicant # Support Wpa_Supplicant HAS_WPA_SUPPLICANT=y
# Support Native WpaSupplicant for Network MagangeHAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
d.添加平台
ifeq ($(PLATFORM),HI_3518E)
#WFLAGS += -DRT_BIG_ENDIAN
Endif
将CFLAGS修改为EXTRA_CFLAGS
ifeq ($(PLATFORM),HI_3518E)
EXTRA_CFLAGS := -v -D__KERNEL__ -DMODULE -I$(LINUX_SRC)/include -I$(RT28xx_DIR)/include -mbig-endian -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -Uarm -fno-common -pipe -mapcs-32 -D__LINUX_ARM_ARCH__=5 -mcpu=xscale -mtune=xscale -malignment-traps -msoft-float $(WFLAGS)
EXTRA_CFLAGS := -v $(WFLAGS) -I$(RT28xx_DIR)/include
export CFLAGS
endif
e.编译 make clean;make –j 4 编译OK
f.部署到开发板
将os/linux/rt5370sta.ko放入开发板ko目录下 将RT2870STA.dat放入开发板/etc/Wireless/RT2870STA/目录下
f.加载5370驱动 #insmod rt5370sta.ko
rtusb init rt2870 --->
=== pAd = c4ea4000, size = 510192 ===
<-- RTMPAllocTxRxRingMemory, Status=0
<-- RTMPAllocAdapterBlock, Status=0
#
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=IN, Req=0x7, Idx=0x1000,pAd->Flags=0x0
#
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=IN, Req=0x7, Idx=0x1000,pAd->Flags=0x0
#
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=IN, Req=0x7, Idx=0x1000,pAd->Flags=0x0
#
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=IN, Req=0x7, Idx=0x580,pAd->Flags=0x0
usbcore: registered new interface driver rt2870
g.查看模块是否存在
#
# lsusb
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0001
Bus 001 Device 002: ID 148f:5370
#
# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:01:02:03:04:10
inet addr:192.168.0.85 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::201:2ff:fe03:410/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:43098 errors:0 dropped:3 overruns:0 frame:0
TX packets:14146 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3986865 (3.8 MiB) TX bytes:1023671 (999.6 KiB)
Interrupt:12
lo Link encap:Local Loopback
LOOPBACK 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 00:00:00:00:00:00
BROADCAST MULTICAST MTU:1500 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:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
有ra0 说明已经识别,我们启用该模块
Ifconfig – ra0 up
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=IN, Req=0x7, Idx=0x1000,pAd->Flags=0x0
#
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=IN, Req=0x9, Idx=0x34,pAd->Flags=0x0
(Efuse for 3062/3562/3572) Size=0x2d [2d0-2fc]
#
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=IN, Req=0x7, Idx=0x1000,pAd->Flags=0x0
#
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=OUT, Req=0x2, Idx=0x3000,pAd->Flags=0x0
Request Value=0xffff!
#
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=OUT, Req=0x2, Idx=0x3002,pAd->Flags=0x0
Request Value=0x02ff!
#
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=OUT, Req=0x2, Idx=0x3004,pAd->Flags=0x0
Request Value=0x2810!
#
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=OUT, Req=0x2, Idx=0x3006,pAd->Flags=0x0
Request Value=0x1002!
#
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=OUT, Req=0x2, Idx=0x3008,pAd->Flags=0x0
Request Value=0x023b!
#
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=OUT, Req=0x2, Idx=0x300a,pAd->Flags=0x0
Request Value=0x8610!
#
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=OUT, Req=0x2, Idx=0x300c,pAd->Flags=0x0
Request Value=0x1602!
#
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=OUT, Req=0x2, Idx=0x300e,pAd->Flags=0x0
Request Value=0x024e!
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=OUT, Req=0x2, Idx=0x3010,pAd->Flags=0x0
Request Value=0x4f16!
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=OUT, Req=0x2, Idx=0x3012,pAd->Flags=0x0
Request Value=0x1702!
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=OUT, Req=0x2, Idx=0x3014,pAd->Flags=0x0
Request Value=0x0233!
#
RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=OUT, Req=0x2, Idx=0x3016,pAd->Flags=0x0
Request Value=0x3817!
就会持续打印以上信息,该问题困扰我好几天了,这个问题是不是我配置内核后者修改驱动源码时出问题导致的还是其他原因,请大牛协助定位下,谢谢!
我来回答
回答3个
时间排序
认可量排序
认可0
认可0
认可0
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片![alt](url)
相关问答
-
2014-08-08 11:12:05
-
2016-09-27 10:29:38
-
2015-04-03 15:47:22
-
2015-04-03 15:38:12
-
2015-04-03 16:14:23
-
2015-05-18 12:54:36
-
132016-04-11 15:03:47
-
2015-03-18 13:17:31
-
2016-04-26 13:34:33
-
2016-03-10 09:15:52
-
02016-05-02 22:45:25
-
2016-09-30 13:24:18
-
2014-12-10 10:01:52
-
2016-09-26 23:25:25
-
2018-01-02 11:53:42
-
02016-06-22 15:46:54
-
2016-09-22 15:45:54
-
2018-12-04 13:49:39
-
2016-10-17 14:45:48
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
50如何获取vpss chn的图像修改后发送至vo
-
5FPGA通过Bt1120传YUV422数据过来,vi接收不到数据——3516dv500
-
50SS928 运行PQtools 拼接 推到设备里有一半画面会异常
-
53536AV100的sample_vdec输出到CVBS显示
-
10海思板子mpp怎么在vi阶段改变视频数据尺寸
-
10HI3559AV100 多摄像头同步模式
-
9海思ss928单路摄像头vio中加入opencv处理并显示
-
10EB-RV1126-BC-191板子运行自己编码的程序
-
10求HI3519DV500_SDK_V2.0.1.1
-
5有偿求HI3516DV500 + OV5647驱动
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认