qpwoei

qpwoei

0个粉丝

1

问答

0

专栏

0

资料

qpwoei  发布于  2025-10-23 14:23:14
采纳率 0%
1个问答
177

鸿鸥派hi3519dv500移植ws73-wifi so库初始化异常

ws73使用的sdk版本是ws73_sdk_linux_WS73_1.10.111_V1.1

目前移植到鸿蒙环境中编译出plat_soc.ko和wifi_soc.ko两个ko,plat_soc.ko已正常安装,但是wifi_soc.ko安装的过程中提示hcc init failed,具体安装日志如下:

insmod /ko/extdrv/plat_soc.ko
plat_soc:W]ini_file_name@/storage/data/etc/firmware/ws73_cfg.ini
plat_soc:EMERG]0:emerg log.
plat_soc:ALERT]1:alert log.
plat_soc:CRIT]2:crit log.
plat_soc:E]3:err log.
plat_soc:W]4:warning log.
plat_soc:E]custom ini[plat kern log level]: 7.
plat_soc:E]board_power_gpio_init::succ, power_gpio_idx=[76]!
plat_soc:E]board_wakeup_gpio_init::succ, wkup_gpio_idx=[70]!
[USB][I]OFF —> INIT
[usb_set_bus_state:87]
usbcore: registered new interface driver wireless_usb
plat_soc:E]hcc diag log service ini ok
plat_soc:W]plat_misc_init!
plat_soc:W]plat_init_etc::succ!

insmod /ko/extdrv/wifi_soc.ko
insmod wifi ko beginning!
[osal_kthread_set_priority_ws73:137]:task is invalid!
[FRW] frw_timer_init enter
frw_start_hcc_service type:6, ret=0
frw_start_hcc_service type:4, ret=0
[FRW] frw_main_init_etc end
hwifi_custom_host_read_cfg_init finish!
hwifi_cfg_host_global_init_param: rx_stbc[1] ret[0]
hwifi_cfg_tcp_ack_param_init: tcp_ack_filter_enable[1] ret[0]
hwifi_cfg_tcp_ack_param_init: tcp_ack_max_num_start_process[2] ret[0]
hwifi_cfg_host_global_init_param: user num[8] ret[0]
hwifi_cfg_scan_para_cfg_init probe send times, ret 0 priv_value 2
get scan time, ret 0 priv_value 30
get scan count, ret 0 priv_value 2
hwifi_cfg_scan_probe_ie_cfg_init ret 0 priv_value 1
hwifi_cfg_scan_probe_del_wps_ie_cfg_init ret 0 priv_value 1
g_scan_probe_req_del_wps_ie = 1
hwifi_cfg_random_mac_addr_scan_init ret 0 priv_value 1
hwifi_cfg_random_mac_addr_scan_oui_init ret 65535 priv_value 0
hwifi_cfg_pcap_file_len_max_cfg_init ret 0 priv_value 12
hwifi_cfg_data_sample_param_init: data_sample[0] ret[0]
hwifi_cfg_host_global_init_param: apf enable[1] ret[0]
hwifi_cfg_host_global_init_param: 11ax protocol enable[0] ret[0]
hwifi_cfg_host_global_init_param: wow_event[15] ret[0]
hwifi_cfg_host_global_init_param: wow_enable[1] ret[0]
hwifi_cfg_host_global_init_param: smooth_phase_en[1] ret[0]
hwifi_cfg_host_global_init_param: over_ds_en[1] ret[0]
{wal_set_wlan_name_config::g_wlan_name[0]=wlan0}
{wal_set_wlan_name_config::g_wlan_name[1]=wlan1}
{wal_set_wlan_name_config::g_wlan_name[2]=p2p0}
dfx_user_rd_init success!
hmac_register_pm_callback_etc:wlan_pm_get_wifi_srv_handler_etc is null
[USB][E]Waiting for boot timeout, usb state is [1][hcc_usb_reinit:1677]
plat_soc:E]hcc reinit failed!
plat_soc:E]wifi_power_on_fail, error=30801
plat_soc:E]pm_svc_open::first svc open, pm_svc_power_on fail, ret=30801
[FRW] frw_main_exit_etc end
host_main_init: host_module_init_etc return error code: 30801
do_init_module: ‘wifi_soc’->init suspiciously returned 30801, it should follow 0/-E convention
do_init_module: loading module anyway…
CPU: 0 PID: 1812 Comm: insmod Tainted: P O 5.10.221 #1
Hardware name: Vendor HI3519DV500 DEMO Board (DT)
Call trace:
dump_backtrace+0x0/0x1a0
show_stack+0x18/0x2c
dump_stack+0xd4/0x110
do_init_module+0x1cc/0x1d0
load_module+0x1e0c/0x2454
do_sys_finit_module+0xbc/0x104 arm64_sys_finit_module+0x20/0x30
do_el0_svc+0xec/0x210
el0_svc+0x14/0x20
el0_sync_handler+0xb0/0xd0
el0_sync+0x180/0x1c0

可以看到hcc init failed前提示usb状态异常,查看了一下快速开发手册,发现应该是USB模块功能异常的问题,于是将wing-usb的工作模式切换到了host,然后出现了如下日志

xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1
xhci-hcd xhci-hcd.1.auto: hcc params 0x0220fe6d hci version 0x110 quirks 0x0000000020010010
xhci-hcd xhci-hcd.1.auto: irq 75, io mem 0x10320000
xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2
xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
usb usb2: We don’t know the algorithms for LPM for this host, disabling LPM.
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected

此时lsusb可以发现只有两个hcd

lsusb
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0003

而烧录提供的demo固件切换usb模式的时候正常会打印如下日志

xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
xhci-hcd xhci-hcd.0.auto: hcc params 0x0220fe6d hci version 0x110 quirks 0x0000000020010010
xhci-hcd xhci-hcd.0.auto: irq 78, io mem 0x10320000
xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
usb usb2: We don’t know the algorithms for LPM for this host, disabling LPM.
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
usb 1-1: new high-speed USB device number 2 using xhci-hcd
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
usb 1-1.1: new full-speed USB device number 3 using xhci-hcd

此时lsusb可以看到会识别到四个usb设备

lsusb
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 003: ID ffff:3733
Bus 001 Device 002: ID 1a40:0101
Bus 002 Device 001: ID 1d6b:0003

想请问各位大佬们如何解决wifi启动的时候hcc init失败的问题,以及USB模块识别不到USB外设的问题?

我来回答
回答2个
时间排序
认可量排序

qpwoei

0个粉丝

1

问答

0

专栏

0

资料

qpwoei 2025-10-23 16:32:10
认可0

已解决

素质男孩最有素质
素质男孩最有素质   回复   qpwoei  2025-10-24 09:58:44
0

请问是什么原因呢?

或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

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

Markdown 语法

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

举报类型

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

详细说明

易百纳技术社区