How to support Wi-Fi module QCA9890?

cancel
Showing results for 
Search instead for 
Did you mean: 

How to support Wi-Fi module QCA9890?

Jump to solution
736 Views
mimi05633
Contributor III

Hi,

I want to support Qualcomm Atheros QCA9890 on our board, but some questions are confusing me.

My harware:
- imx8mq customize board (Software: LF_L5.4.3_1.0.0)
- QCA9890 card with MINI PCIe Interface

Modify steps:
1. Modify DTS to match PCIe layout.
2. Kernel config select driver "ath10k" to module not build in.
    CONFIG_ATH_COMMON=m
    CONFIG_ATH10K=m
    CONFIG_ATH10K_CE=y
    CONFIG_ATH10K_PCI=m
    CONFIG_ATH10K_AHB=y
    CONFIG_ATH10K_DEBUGFS=y

After plug Wi-Fi module by PCIe, boot will show "ath10k_pci" kernel log as below.
=====================================================================
[ OK ] Started /etc/rc.local Compatibility.
[ OK ] Started Permit User Sessions.
[ 5.299272] ath10k_pci 0000:01:00.0: enabling device (0000 -> 0002)
[ OK ] Started Avahi mDNS/DNS-SD Stack.
[ OK ] Started Login Service.
[ OK ] Started Getty on tty1.
[ 5.360379] ath10k_pci 0000:01:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[ OK ] Started Serial Getty on ttymxc0.
=====================================================================

After 250 seconds, wireless interface "wlan0" will be create.
=====================================================================
[ OK ] Started Load/Save Random Seed.

NXP i.MX Release Distro 5.4-zeus imx8mqevk ttymxc0

imx8mqevk login: [ 8.657331] fec 30be0000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 8.665136] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 189.501349] ath10k_pci 0000:01:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
[ 189.510771] ath10k_pci 0000:01:00.0: kconfig debug 0 debugfs 0 tracing 0 dfs 0 testmode 1
[ 189.519710] ath10k_pci 0000:01:00.0: firmware ver 10.2.4-1.0-00045 api 5 features no-p2p,raw-mode,mfp,allows-mesh-bcast crc32 ccbd5104

[ 250.938172] ath10k_pci 0000:01:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[ 252.062223] ath10k_pci 0000:01:00.0: unsupported HTC service id: 1536
[ 252.091897] ath10k_pci 0000:01:00.0: htt-ver 2.1 wmi-op 5 htt-op 2 cal otp max-sta 128 raw 0 hwcrypto 1
=====================================================================

There are some questions confusing me.
1. Who does automatically insert module "ath10k"?
    I do not add KERNEL_MODULE_AUTOLOAD += "ath10k" in local.conf. I have no idea who to do automatically load module "ath10k".
2. How to fast create wireless interface?
    250 seconds is too slow to get Wi-Fi interface.

Could any one tell me how can I do?

Thank you for any help.
Minying

Tags (2)
0 Kudos
1 Solution
680 Views
mimi05633
Contributor III

Hi,

After I disabled CONFIG_FW_LOADER_USER_HELPER_FALLBACK, kernel would not trigger the fallback mechanism to overcome failures to do a direct filesystem lookup on the root filesystem.
It could work well now.
Thank you.

Best regard,
MinYing

View solution in original post

0 Kudos
3 Replies
675 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi, mimi05633 ,

    It is recommended that you do not use the WIFI of the ath9k/ath10 series(pcie interface) in the 5.4 kernel, because the driver loading speed is very slow. Whether you load the module or compile the driver into the kernel, the creation of the WIFI interface is very slow. 

-- I also tested rtl8822ce(pcie interface), which is no any problem.

-- I tested QCA9880/9882 in 4.19.35 BSP, and the driver loads very fast without any problems. 

 

Hope this information is helpful to you.

B.R,

weidong

0 Kudos
685 Views
b45499
NXP TechSupport
NXP TechSupport

Does the wifi work well on your side? For i.MX 8M the CYW4356 and QCA6174 chips are supported on the reference
board

0 Kudos
681 Views
mimi05633
Contributor III

Hi,

After I disabled CONFIG_FW_LOADER_USER_HELPER_FALLBACK, kernel would not trigger the fallback mechanism to overcome failures to do a direct filesystem lookup on the root filesystem.
It could work well now.
Thank you.

Best regard,
MinYing

0 Kudos