min_123

min_123

0个粉丝

3

问答

0

专栏

0

资料

min_123  发布于  2020-04-08 16:56:27
采纳率 0%
3个问答
4906

SDIO2.0 接WIFI, 加载wlan.ko时不能正确读取配置文件

 
环境:Hi3559AV100 3.0;  QCA9377a的驱动  version:qca9377a-3-lea3.0-4.0.11.213V-4.9;
根据驱动里的readme及 《wifi使用指南》配置内核,交叉编译wlan.ko; 然后 /proc/mci/mci_info可以看到设备;如下
[code]MCI2: pluged_connected
        Type: SDIO card Mode: HS
        Speed Class: Class 0
        Uhs Speed Grade: Less than 10MB/sec(0h)
        Host work clock: 49MHz
        Card support clock: 49MHz
        Card work clock: 49MHz
        Card error count: 0[/code]
但是insmod wlan.ko之后 ,可以看到wlan0, 会有问题:
[code]~ # insmod /komod/ko/extdrv/wlan.ko
wlan: loading out-of-tree module taints kernel.
wlan: loading driver v4.0.11.213V
hifDeviceInserted: Dumping clocks (50000000,49500000)
HIFDumpCCCR 0(43)
1(3) 2(0)
3(0) 4(0)
5(0) 6(0)
7(6) 8(17)
9(0) A(10)
B(0) C(0)
D(0) E(0)
F(0) 10(0)
11(0) 12(1)
13(3) 14(7)
15(37) 16(1)

AR6000: Set async interrupt delay clock as 2.
------------[ cut here ]------------
WARNING: CPU: 1 PID: 1362 at arch/arm64/mm/ioremap.c:58 __ioremap_caller+0xd0/0xe0
Modules linked in: wlan(O+) mac80211 cfg80211

CPU: 1 PID: 1362 Comm: insmod Tainted: G           O    4.9.37 #0
Hardware name: Hisilicon HI3559AV100 DEMO Board (DT)
task: ffffffc0fe34a400 task.stack: ffffffc0fdb60000
PC is at __ioremap_caller+0xd0/0xe0
LR is at __ioremap_caller+0x54/0xe0
pc : [] lr : [] pstate: 80000005
sp : ffffffc0fdb637a0
x29: ffffffc0fdb637a0 x28: 0000000002f34f60
x27: 0000000000bebc20 x26: ffffff8000a26a70
x25: ffffff800892b0a0 x24: ffffff80088c7108
x23: 00e8000000000f07 x22: ffffff80009d3b28
x21: 0000000000000000 x20: 000000008f000000
x19: 0000000000700000 x18: ffffff8008924578
x17: 0000007f91144608 x16: 0000000000000000
x15: 0000000000008000 x14: 0000000000000006
x13: 00000000000700b1 x12: ffffffc0fe34a480
x11: ffffff80088a8000 x10: 00000000000007e0
x9 : 0000000000000000 x8 : 0000000100000000
x7 : 0000000000000018 x6 : ffffff800892b200
x5 : 0000000000000001 x4 : 0000000000000001
x3 : 0000000144000000 x2 : ffffff800892b200
x1 : 0000000000000000 x0 : 0000000000000001

---[ end trace 04cc5e88f277c5a0 ]---
Call trace:
Exception stack(0xffffffc0fdb635a0 to 0xffffffc0fdb636d0)
35a0: 0000000000700000 0000007fffffffff ffffffc0fdb637a0 ffffff8008093ff8
35c0: 0000000080000005 000000000000003d ffffff800892b0a0 ffffffc0fe078c00
35e0: ffffffc0fdb63620 ffffff80080be220 0000000000000000 0000000000000000
3600: ffffffc0fdb636d8 ffffff8000b0ac48 00000000ffffffff 00000000ffffffff
3620: ffffffc0fdb636b0 ffffff80080bec04 ffffff80088c7108 ffffffc0fbe2bc00
3640: ffffff80088c7000 ffffff8000b0ac48 ffffffc0fdb637e0 ffffff800891e000
3660: ffffffc0fdb636a0 0000000000040925 0000000000000001 0000000000000000
3680: ffffff800892b200 0000000144000000 0000000000000001 0000000000000001
36a0: ffffff800892b200 0000000000000018 0000000100000000 0000000000000000
36c0: 00000000000007e0 ffffff80088a8000
[] __ioremap_caller+0xd0/0xe0
[] __ioremap+0x10/0x18
[] hif_deinit_adf_ctx+0x310/0x588 [wlan]
[] HIFSetMboxSleep+0x57c/0x8d0 [wlan]
[] HIFDumpCCCR+0x37c/0xa38 [wlan]
[] sdio_bus_probe+0x150/0x190
[] driver_probe_device+0x1fc/0x2a8
[] __driver_attach+0xac/0xb0
[] bus_for_each_dev+0x70/0xc8
[] driver_attach+0x20/0x28
[] bus_add_driver+0x1a8/0x230
[] driver_register+0x60/0xf8
[] sdio_register_driver+0x24/0x30
[] HIFInit+0x88/0x168 [wlan]
[] hif_register_driver+0x9c/0x180 [wlan]
[] hdd_hif_register_driver+0x30/0x118 [wlan]
[] init_module+0x110/0x258 [wlan]
[] do_one_initcall+0x50/0x168
[] do_init_module+0x5c/0x1a4
[] load_module+0x1abc/0x1f80
[] SyS_finit_module+0xd8/0xf0
[] el0_svc_naked+0x34/0x38
R0: wlan: [1362:E :HIF] ath_hif_sdio_probe: Failed to get RAM dump memory address or size!

R0: wlan: [1362:E :HDD] hdd_apply_cfg_ini: Reg Parameter 5g_rssi_boost_threshold < allowed Minimum [4294967236 < 18446744073709551546]. Enforcing Default= 18446744073709551556
R0: wlan: [1362:E :HDD] hdd_apply_cfg_ini: Reg Parameter 5g_rssi_penalize_threshold < allowed Minimum [4294967226 < 18446744073709551536]. Enforcing Default= 18446744073709551546
R0: wlan: [1362:E :HDD] Name = [gEnableHostapdEdcaLocal] Value = [0]
R0: wlan: [1362:E :HDD] Name = [g_sta_change_cc_via_beacon] Value = [0]
AR6000: configuration opcode 3 is not used for Linux SDIO stack
NUM_DEV=1 FWMODE=0x2 FWSUBMODE=0x0 FWBR_BUF 0
ol_download_firmware: Using 0x1234 for the remainder of init
ol_download_firmware: chip_id:0x5020001 board_id:0x0
ar6k_wlan mmc2:0001:1: Direct firmware load for bdwlan30.b00 failed with error -2
__ol_transfer_bin_file: Failed to get bdwlan30.b00:-2
__ol_transfer_bin_file: Trying to load default bdwlan30.bin
Board extended Data download address: 0x0
__ol_transfer_bin_file: Loading setup file qsetup30.bin
ar6k_wlan mmc2:0001:1: Direct firmware load for qsetup30.bin failed with error -2
__ol_transfer_bin_file: Failed to get qsetup30.bin:-2
random: crng init done
+HTCCreate ..  HIF :ffffffc0fc794000
HIF Interrupt processing is SYNC ONLY
AR6000: configuration opcode 7 is only used for RTOS systems, not Linux systems
AR6000: configuration opcode 5 is not used for Linux SDIO stack
-HTCCreate (0xffffffc0fc873000)
ol_if_dfs_attach: called; ptr=ffffffc0fc255fa8, radar_info=ffffffc0fdb633d0
R0: wlan: [1362:E :SAP] dfs_init_radar_filters[217]: Unknown dfs domain 0
+HWT
Target Ready! : transmit resources : 3 size:1792, MaxMsgsPerHTCBundle = 32
HTC Service Index : 1 TX : 0x100 : alloc:3
HTC Service:0x0001, ULpipe:1 DLpipe:0 id:0 Ready
-HWT
MAILBOX SWAP Service is enabled!
Reduced Tx Complete service is enabled!
is_full_reorder_offloaded? 0
HTC Service TX : 0x300 : allocation is zero!
HTCConnectService, host indicate support b2b bundle
HTCConnectService, firmware decide to disabled b2b bundle
HTC Service:0x0300, ULpipe:1 DLpipe:0 id:1 Ready
HTC Service:0x0300 ep:1 TX flow control disabled
TXRX: page_divider 0x4, offset_filter 0xf num elem 4800, ol desc num page 300, ol desc per page 16HTCConnectService, host indicate support b2b bundle
HTCConnectService, firmware decide to disabled b2b bundle
HTC Service:0x0100, ULpipe:3 DLpipe:2 id:2 Ready
HTC using TX credit flow control
__wmi_control_rx: WMI UNIFIED SERVICE AVAILABLE event
__wmi_control_rx: WMI UNIFIED SERVICE READY event
__wmi_control_rx:  WMI UNIFIED READY event
ar6k_wlan mmc2:0001:1: Direct firmware load for wlan/wlan_mac.bin failed with error -2
__wmi_control_rx : event handler is not registered: event id 0x1d019
target uses HTT version 3.53; host uses 3.28
*** Warning: host/target HTT versions are different, though compatible!
Host SW:4.0.11.213V, FW:0.0.0.23, HW:QCA93x7_REV1_1
ol_pktlog_init: pktlogmod_init successfull
ath_hif_sdio: HIF (Atheros/multi-bss)
wlan: driver loaded in 1080000[/code]

从log里可以看到wlan的配置文件没有加载成功,一直在改device tree里的sdio 部分,但是没有用。路过的大神,求指教,非常感谢啦。
我来回答
回答1个
时间排序
认可量排序

qn1587302630

0个粉丝

0

问答

0

专栏

0

资料

qn1587302630 2020-04-19 21:27:07
认可0
编译好的wlan能分享一下吗? 我也有个qca9377的sdio卡。测试看看能不能用
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区