You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

OpenWRT 21.02内核5.4移植ath11k时mhi.ko依赖找不到问题

OpenWRT 21.02(5.4内核)移植ath11k驱动依赖问题

背景

尝试在无法升级的OpenWRT 21.02系统中,为5.4内核移植ath11k驱动支持,目标是获取依赖于hwmon、qmi_helpers、mhi和qrtr的ath11k_pci模块。

已完成操作

  • 将mac80211包的回源版本从5.10.100-1改为5.15.74-1;
  • 打补丁修改5.4内核,移除qmi_helpers和qrtr模块的ARCH_QCOM依赖;
  • 在主menuconfig中注册回源模块条目:
    • 在ath.mk中添加kmod-ath11k并移除@TARGET_ipq807x依赖;
    • 在other.mk、netsupport.mk、netdevices.mk中添加kmod-qrtr、kmod-mhi-net、kmod-mhi(均来自5.15.74-1回源)。

编译流程与错误

选择menuconfig中的kmod选项后,调用kernel_menuconfig编译工具链,应用补丁启用CONFIG_QMI_HELPERS和CONFIG_QRTR子集并设为=y(注:回源内核模块未在kernel_menuconfig中显示)。执行make V=s后触发错误:

Package kmod-ath11k is missing dependencies for the following libraries:
mhi.ko

异常点

通过find命令确认mhi.ko已编译成功,路径为.../backports-5.15.74-1/drivers/bus/mhi/core/mhi.ko。已在kmod定义中明确声明相关依赖,但仍报错,无法确定还需在何处注册依赖。

涉及的模块定义文件

  • ath.mk中ath11k定义;
  • other.mk中mhi-bus定义;
  • netsupport.mk中qrtr系列定义;
  • netdevices.mk中mhi-net系列定义。

内容的提问来源于stack exchange,提问作者Diego Rodriguez

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.10 01:25:23