- 收藏
- 点赞
- 分享
- 举报
鸿鸥派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外设的问题?
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片
-
2025-05-27 14:10:00
-
2025-11-19 11:30:05
-
2025-10-30 11:22:33
-
2025-07-24 12:15:07
-
2025-11-29 12:55:14
-
2025-06-27 14:31:50
-
2025-09-19 17:53:17
-
2025-09-19 17:15:10
-
2025-08-23 15:51:41
-
2024-02-21 15:46:37
-
2025-09-24 09:28:21
-
2025-08-12 17:42:27
-
2020-06-12 13:52:19
-
2016-08-05 08:08:51
-
2025-04-21 13:44:41
-
2024-01-03 18:40:24
-
2025-07-03 18:33:34
-
2020-06-13 12:20:03
-
2018-06-23 16:33:42
-
5hisi3516cv610 + gc4336p 夜晚很模糊
-
5AIISP(功能演示,SC4336P为BGGR,强制转RGGB,会导致颜色异常)
-
5rv1106使用luckfox的SDK,设备树和驱动都写好了,结果设备文件没有生成
-
5海思3516cv610中如何进行SD卡升级,根据官方文档操作,烧录进板子时,走的默认uboot,没有执行uboot升级。
-
5G610Q-IPC-38E 夜晚很暗 有什么办法解决吗 已经补光了
-
10转换模型时,SoC版本里没显示hi3516cv610芯片
-
5hisi3516cv610 使用 yolov8n 模型训练 要如何提高 这里识别的是人
-
10有人在海思平台接过SC035HGS吗
-
5关于hi3519dv500,以SD卡虚拟 U 盘操作
-
5ss928 sample_venc代码移植到openEuler24.03上执行报错 [sample_comm_vi_start_dev]-1068: vi set dev attr failed wi
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明

微信扫码分享
QQ好友