Hi3518ev200 mt7601wifi驱动笔记

rt2860v2源码分析三 在rt2860_probe函数中调用了RtmpPhyNetDevInit为无线网络设备进行初始化,实质是分配建立了pNetDevHook结构体:PNET_DEV RtmpPhyNetDevInit( IN VOID *pAd, IN RTMP_OS_NETDEV_OP_HOOK *pNetDevHook) { struct net_ 阅读详情

Hi3518EV100 切HI3518EV200后,wifi在ap模式下报如下错误.
V100的内核版本linux3.0.y ,V200为linux3.4.5.
一是版本不对,而是缺少接口支持

ERROR!!! MT7601 E2PROM: WRONG VERSION 0xc, should be 9
nl80211: Failed to set channel (freq=2437): -95 (Operation not supported)
Could not set channel for kernel driver

~ # insmod /ko/hi3518ev200_platform.ko
hi3516cv200_platform() Jun 22 2017 09:42:02 init OK!
~ #
~ # usb 1-1: new high-speed USB device number 2 using hiusb-ehci
~ # insmod /ko/hi3518ev200_platform.ko usbdev11 -> /dev/usbdev1.2
~ # insmod mt7601Usta.ko

rtusb init rt2870 —>

=== pAd = c3294000, size = 1581168 ===

<– RTMPAllocTxRxRingMemory, Status=0
<– RTMPAllocAdapterBlock, Status=0
RTMP_COM_IoctlHandle():pAd->BulkOutEpAddr=0x8
RTMP_COM_IoctlHandle():pAd->BulkOutEpAddr=0x4
RTMP_COM_IoctlHandle():pAd->BulkOutEpAddr=0x5
RTMP_COM_IoctlHandle():pAd->BulkOutEpAddr=0x6
RTMP_COM_IoctlHandle():pAd->BulkOutEpAddr=0x7
RTMP_COM_IoctlHandle():pAd->BulkOutEpAddr=0x9
STA Driver version-JEDI.MP1.mt7601u.v1.5
Compile time-Jun 22 2017,17:29:19
==>WaitForAsicReady MAC_CSR0=0x76010500
==>WaitForAsicReady MAC_CSR0=0x76010500
NVM is EFUSE
Endpoint(8) is for In-band Command
Endpoint(4) is for WMM0 AC0
Endpoint(5) is for WMM0 AC1
Endpoint(6) is for WMM0 AC2
Endpoint(7) is for WMM0 AC3
Endpoint(9) is for WMM1 AC0
Endpoint(84) is for Data-In
Endpoint(85) is for Command Rsp
80211> RFICType = 3
NumOfChan ===> 58
80211> Number of channel = 0x44
80211> Number of rate = 12
80211> CurTxPower = 0 dBm
80211> TxStream = 0
crda> requlation requestion by core: 00
80211> CFG80211_Register
usbcore: registered new interface driver rt2870
~ #
~ # ./hostapd hostap.conf -d
random: Trying to read entropy from /dev/random
Configuration file: hostap.conf
nl80211: Could not add multicast membership for vendor events: -2 (No such file or directory)
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: S================> UP : RTMP_SEM_EVENT_WAIT(STA)
upported cipher 00-0f-ac:2
nl80211: Supported c1. LDO_CTR0(6c) = a64799, PMU_OCLEVEL c
ipher 00-0f-ac:4
nl80211: Disable use_m2. LDO_CTR0(6c) = a6478d, PMU_OCLEVEL 6
onitor with device_ap_sme since no monit==>WaitForAsicReady MAC_CSR0=0x76010500
or mode support detected
nl80211: interface wlan0 in phy phy0
nl80211: Set mode ifindex 3 iftype 3 (APFW Version:0.1.00 )
nl80211: Setup AP(wlan0) - device_ap_Build:7640
sme=1 use_monitor=0
nl80211: Subscribe Build Time:to mgmt frames with AP handle 0xe17250 (2device SME)
nl80211: Register frame typ0e=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=10xe17250 match=
nl80211: Enable Probe R3equest reporting nl_preq=0xe17548
nl802011: Register frame type=0x40 (WLAN_FC_ST1YPE_PROBE_REQ) nl_handle=0xe17548 match=0
40941____
ILM Length = 44276(bytes)
DLM Length = 0(bytes)
Loading FW….
RTMP_TimerListAdd: add timer obj c33bc764!
RTMP_TimerListAdd: add timer obj c33bc794!
RTMP_TimerListAdd: add timer obj c33bc7c4!
RTMP_TimerListAdd: add timer obj c33bc734!
RTMP_TimerListAdd: add timer obj c33bc6a4!
RTMP_TimerListAdd: add timer obj c33bc6d4!
RTMP_TimerListAdd: add timer obj c3350cdc!
RTMP_TimerListAdd: add timer obj c333d5d0!
RTMP_TimerListAdd: add timer obj c333d604!
RTMP_TimerListAdd: add timer obj c3350d7c!
RTMP_TimerListAdd: add timer obj c333ff80!
RTMP_TimerListAdd: add timer obj c333f7c0!
RTMP_TimerListAdd: add timer obj c333ff4c!
RTMP_TimerListAdd: add timer obj c334029c!
RTMP_TimerListAdd: add timer obj c333ffb4!
RTMP_TimerListAdd: add timer obj c333ffe8!
RTMP_TimerListAdd: add timer obj c334001c!
RTMP_TimerListAdd: add timer obj c329840c!
RTMP_TimerListAdd: add timer obj c3297c4c!
RTMP_TimerListAdd: add timer obj c32983d8!
RTMP_TimerListAdd: add timer obj c3298728!
RTMP_TimerListAdd: add timer obj c329865c!
RTMP_TimerListAdd: add timer obj c32cf684!
RTMP_TimerListAdd: add timer obj c32ceec4!
RTMP_TimerListAdd: add timer obj c32cf650!
RTMP_TimerListAdd: add timer obj c32cf9a0!
RTMP_TimerListAdd: add timer obj c32cf6b8!
RTMP_TimerListAdd: add timer obj c32cf6ec!
RTMP_TimerListAdd: add timer obj c32cf720!
RTMP_TimerListAdd: add timer obj c3350c7c!
RTMP_TimerListAdd: add timer obj c3350d4c!
RTMP_TimerListAdd: add timer obj c3413d20!
RTMP_TimerListAdd: add timer obj c3413d50!
RTMP_TimerListAdd: add timer obj c3413d80!
RTMP_TimerListAdd: add timer obj c3413db0!
RTMP_TimerListAdd: add timer obj c3413de0!
RTMP_TimerListAdd: add timer obj c3413e14!
RTMP_TimerListAdd: add timer obj c33bc704!
RTMP_TimerListAdd: add timer obj c333c5ec!
RTMP_TimerListAdd: add timer obj c333c5bc!
RTMP_TimerListAdd: add timer obj c333c58c!
RTMP_TimerListAdd: add timer obj c3350cac!
P2pGroupTabInit .
P2pScanChannelDefault <=== count = 3, Channels are 1, 6,11 separately
P2pCfgInit::
==>WaitForAsicReady MAC_CSR0=0x76010500
cfg_mode=9
cfg_mode=9
wmode_band_equal(): Band Equal!
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)

Force at HT20 (BW_20) mode !!!
1. Phy Mode = 14 2. Phy Mode = 14 NVM is Efuse and its size =1d[1e0-1fc] ERROR!!! MT7601 E2PROM: WRONG VERSION 0xc, should be 9 3. Phy Mode = 14 AntCfgInit: primary/secondary ant 0/1 —> InitFrequencyCalibration InitFrequencyCalibrationMode:Unknow mode = 3 InitFrequencyCalibration: frequency offset in the EEPROM = 113(0x71)

wme_enabled=1

ieee80211n=1

ht_capab=[SHORT-GI-20][SHORT-GI-40][HT40+]

ignore_broadcast_ssid=0

wpa=3

wpa_pairwise=TKIP CCMP

wpa_passphrase=123456789

~ #

— ./old1/cfg80211.c
+++ ./new1/cfg80211.c
@@ -275,7 +275,7 @@
========================================================================
*/
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 32))
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0))
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,6,0))
static int CFG80211_OpsChannelSet(
IN struct wiphy *pWiphy,
IN struct net_device *pDev,
@@ -3005,6 +3005,9 @@
.start_ap = CFG80211_OpsStartAp,
.change_beacon = CFG80211_OpsChangeBeacon,
.stop_ap = CFG80211_OpsStopAp,
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,6,0))
+ .set_channel = CFG80211_OpsChannelSet,
+#endif
#endif /* LINUX_VERSION_CODE */

/* set channel for a given wireless interface */
海思3518ev200-WIFI驱动移植 使用的硬件是联发科的MTK7601无线网卡。 GitHub上的开源MT7601u型号wifi驱动地址: https://github.com/muratdemirtas/MT7601u 下载下来之后解压,解压出来MT7601u-master目录,里面的src目录就是wifi源码根目录。 注意:要将MT7601u-master/etc/Wireless/RT2870AP/RT2870AP.dat,复制到开发板的文件系统中的/etc/Wireless/RT2870AP目录,没有目录就创建。打开RT2870AP. 阅读详情

相关推荐

电动转向系统 TAS 传感器

靠扭杆变形测力气,用霍尔效应算角度,借 ECU 给电机发指令。它就像 EPS 系统的 "神经末梢",把驾驶员的操作意图转化成电信号,再通过电机变成实实在在的助力,让我们开车既省力又安全。下次转动方向盘时,不妨想想这个藏在转向柱里的 "小传感器"—— 正是它的精准感知,才有了每一次顺畅的转向体验。

weixin_59825476的博客 4351

linux下通过wpa_supplicant实现wifi方式上网

wpa_supplicant -iwlan1 -Dnl80211 -c/etc/wpa_supplicant.conf Successfully initialized wpa_supplicant nl80211: Could not re-add multicast membership for vendor events: -2 (No such file or directory) wla...

camel_in_sand的专栏 2697

CPRI原理及应用--基本原理

本文主要介绍CPRI的基本原理,包括CPRI的发展历程、CPRI基本协议、速率、帧结构、时延模型等

u014035968的博客 2万+

开发板buildroot dbus各种报错

S10mdev: Starting mdev... modprobe: can't change directory to '/lib/modules': No such file or directory 先创建各种文件夹 modprobe: can't open 'modules.dep': No such file or directory 然后再busybox里面添加depmod /etc/init.d/S30dbus start Starting system message bu

c2h5oh2012的博客 1505

Python连接高斯数据库踩坑实录:从SASL报错到SSL安全连接的完整指南

本文详细记录了Python连接高斯数据库时遇到的SASL authentication报错及其解决方法。通过剖析SASL认证机制,对比了修改数据库配置、使用官方驱动等方案的利弊,并重点提供了通过自动化脚本生成SSL证书,实现安全、免密连接的完整指南,帮助开发者彻底解决连接难题。

weixin_28340315的博客 455

深入解析Panfrost驱动:Mali-GPU开源驱动的架构与实现

本文深入解析了Panfrost驱动作为Mali-GPU开源驱动的架构与实现。从诞生背景到硬件架构演进,详细介绍了Panfrost如何突破ARM闭源策略,实现全栈支持。文章还探讨了驱动设计中的关键技术挑战与性能优化策略,为开发者提供了实用的编译部署指南和性能调优方法。

weixin_30790841的博客 557

MT7601U-STA驱动程序编译步骤

说明 在学习Hi3518EV200平台时,DEMO开发板上板载了MT7601U的WIFI模块。并且提供了编译好的驱动程序,在编译好的ko模块文件夹中,针对STA方式有脚本“load_sta.sh”,该脚本内容如下: 这些驱动模块编译过程如下文所示。 本文内容测试时的编译环境 开发平台:Ubuntu 18.04 目标平台:Hi3518EV200 目标Linux版本:linux-3.4.35 交叉编...

Turix附属空间[已停用] 1804

如何用DETR(detection transformer)训练自己的数据集

DETR(detection transformer)简介 DETR是Facebook AI的研究者提出的Transformer的视觉版本,是CNN和transformer的融合,实现了端到端的预测,主要用于目标检测和全景分割。 DETR的Github地址:link

weixin_50233398的博客 3万+

第五季2:STA模式USB-WIFI网卡移植与测试

以下内容源于朱有鹏课程,如有侵权,请告知删除。 1、本课程实现内容 HI2518E+USB-WIFI做STA,PC做STA,外部路由器做AP,实现局域网内ortp视频传输。 一、STA模式USB-WIFI的驱动移植与部署 本部分参考之前工作,没什么难度。 1、源码修改 (1)用sta版本的driver,可以简单看一下区别 (2)修改makefile,参考AP模式下的修改点修改 (3)config.mk中修改,参考AP模式下的修改点修改 (4)修改网卡名称为wlan (5)make

主要记录嵌入式学习与开发过程。 2056

手把手教学:用国产GLM-4.6替代Claude4.0,实现AI自动化编程全流程

本文提供了一份详细的教程,指导开发者使用国产GLM-4.6模型替代Claude 4.0,实现AI自动化编程。内容涵盖从获取API密钥、搭建本地环境、改造Claude Code工具到实战开发与VSCode集成的全流程,旨在帮助用户低成本、高效率地体验AI自主编程。

weixin_29070861的博客 561

深入解析 Multi-Agent 协同决策机制与架构设计

让我们从一些基础定义开始,为后续的讨论建立共同的语言。在计算机科学和人工智能领域,智能体(Agent)是指一个能够感知环境、做出决策并执行动作的实体。智能体是任何可以通过传感器感知环境,并通过执行器作用于该环境的事物。atπstat​πst​sts_tst​是时刻ttt的环境状态(或智能体的观测)π\piπ是智能体的策略(Policy),即从状态到动作的映射ata_tat​是智能体在时刻ttt选择执行的动作多智能体系统(MAS)

AI天才研究院 545

7、无线wifi传输视频开发

7 无线wifi传输视频开发 MT7601的驱动源码提供了两种:AP模式和STA模式源码。此时我使用USB作为AP热点,电脑作为STA模式,并使用ORTP实现无线传输视频 7.1、AP模式下USB WIFI驱动移植 (1)准备wifi源码并将源码复制到ubuntu服务器下解压 源码在主机的:E:\winshare\HI3518EV200\MT7601_driver\下,此后打开Ubuntu终端,并...

weixin_30845171的博客 741

AI时代有手就能实现前端零代码(Figma Make + Figma MCP)

Figma Make是Figma官方推出的AI原生设计功能,深度集成于Figma编辑器中,无需额外安装插件或切换平台,即可实现“Prompt→UI界面/Code”的即时生成。

人不风流枉少年 2771

linux多播技术

CU首页 >> 读书频道 >> 分类浏览 >> Linux网络编程 >> 阅读内容 Linux网络编程 11.3 多 播 单播用于两个主机之间的端对端通信,广播用于一个主机对整个局域网上所有主机上的数据通信。单播和广播是两个极端,要么对一个主机进行通信,要么对整个局域网上的主机进行通信。实际情况下,经常需要对一组特定的主机进行通

L_yangliu的专栏 1万+

汉书HE8,好用的汇编代码编写工具

汉书HE8,好用的汇编代码编写工具早期编写汇编代码所用功能强大

温度PID控制PLC程序

温度PID稳定控制程序,适用于欧姆龙PLC,对其他PLC也具有很大参考价值

wifi .fw文件linux,linux下通过wpa_supplicant实现wifi方式上网

wpa_supplicant -iwlan1 -Dnl80211 -c/etc/wpa_supplicant.confSuccessfully initialized wpa_supplicantnl80211: Could not re-add multicast membership for vendor events: -2 (No such file or directory)wlan1:...

weixin_29792607的博客 589

最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版

Part-E1-SDIO-Specification-Ver4.00-Final-120220.pdf:最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版,包括SDIO 接口的外设,SDIO 接口官方协议等。

wlanconfig

~ # wlanconfig usage: wlanconfig athX create wlandev wifiX             wlanmode [sta|adhoc|ap|monitor|p2pgo|p2pcli|p2pdev] [bssid | -bssid] [nosbeacon] usage: wlanconfig athX destroy usage: wlanc

奔跑的路 6696

IMSL CNL 7.0.0 (x86-64)Crack

IMSL CNL 7.0.0 (x86-64)Crack intel的算法库破解文件,这是C++版本的破解文件

wifi binding on imx6sl evk based board

We are having problem with board that is based on imx6sl evk and rtl8192cu (chip on wifi module is RTL8188CTV). The wifi module is on USB interface. We integrated rtl8192cu driver from another pack

jack_a8的专栏 8250

linux系统之 组播实例代码(多播 、IP_ADD_MEMBERSHIP 、IP_MULTICAST_IF)

11.3 多播 单播用于两个主机之间的端对端通信,广播用于一个主机对整个局域网上所有主机上的数据通信。单播和广播是两个极端,要么对一个主机进行通信,要么对整个局域网上的主机进行通信。实际情况下,经常需要对一组特定的主机进行通信,而不是整个局域网上的所有主机,这就是多播的用途。 11.3.1 多播的概念 多播,也称为"组播",将网络中同一业务类型主机进行了逻辑上的分组,进行数据收发的时候其数据仅仅在同一分组中进行,其他的主机没有加入此分组不能收发对应的 数据。 在广域网上广播的时候,...

随意的风的专栏 4624

【EmbeddedDev】BBB&RTL8188CUS搭建wifi AP 问题整理

BeagleBoneBlack 无线网卡RTL8188CUS wifi hotspot AP模式 路由模式

moxiaomomo的专栏 8918

嵌入式linux 无线网卡,求助,ARM Linux移植无线网卡的连不上自己的无线网络啊...

该楼层疑似违规已被系统折叠隐藏此楼查看此楼ARM的版本是2.6.28.7开发板是S3C2440移植了wpa_supplicant和wireless_tool执行wpa_supplicant -irausb0 -c /etc/wpa_supplicant.conf来连接的时候出现以下错误ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Operation not supporte...

weixin_39964833的博客 791

RTL8188EUS交叉编译(linux4.9 arm 32)

下载链接: RTL8188EUSlinux-v4.9相关资源资源-CSDN文库 rtl8188EUS_linux_v4.9-gb1925f81a.20210615.tar.gz libnl-1.1.4.tar.gz openssl-1.0.2n.tar.gz wpa_supplicant_8_N_7.x_rtw_r24577.20171025-ram.tar.gz增加上述配置后重新编译内核 1:解压rtl8188EUS_linux_v4.9

somnus.清澈的博客 2557

linux启动热点服务,linux下启动AP热点时出错

1.启动hostapd,在终端下输入sudo ./hostapd hostapd.conf (注意:使用到的hostapd和hostapd.conf都处在当前工作目录下)1.2.在执行1之后会出现以下错误:Configuration file: hostapd.confnl80211: Could not configure driver modenl80211: deinit ifname=wl...

weixin_29558841的博客 3548

linux下启动AP热点时出错

1.启动hostapd,在终端下输入sudo ./hostapd hostapd.conf (注意:使用到的hostapd和hostapd.conf都处在当前工作目录下) 1.2.在执行1之后会出现以下错误: Configuration file: hostapd.confnl80211: Could not configure driver modenl80211: deinit ifnam...

weixin_30703911的博客 2543
上一篇: ATSH204A睡眠后唤醒
下一篇: Hi3520DV300挂载根文件系统
辧聪
博客等级 码龄15年 58粉丝 54原创
评论 4
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值