IPQ40xx ath10k board-2.bin problem

I have an IPQ40xx board which is based on dk04.1-c1.
I try to build an OpenWrt firmware, but can't get wireless working.

I've tried:
Using board-2.bin from ath10k-firmware directly;
Building a custom board-2.bin with ath10k-bdencoder and adding qcom,ath10k-calibration-variant = "model"; to dts wifi node;
Neither worked

fail log
[    6.842961] ath10k_ahb a000000.wifi: Direct firmware load for ath10k/fwcfg-ahb-a000000.wifi.txt failed with error -2
[    6.843011] ath10k_ahb a000000.wifi: Falling back to user helper
[    6.885119] firmware ath10k!fwcfg-ahb-a000000.wifi.txt: firmware_loading_store: map pages failed
[    6.885479] ath10k_ahb a000000.wifi: Direct firmware load for ath10k/pre-cal-ahb-a000000.wifi.bin failed with error -2
[    6.893043] ath10k_ahb a000000.wifi: Falling back to user helper
[    6.985919] firmware ath10k!pre-cal-ahb-a000000.wifi.bin: firmware_loading_store: map pages failed
[    6.986319] ath10k_ahb a000000.wifi: Direct firmware load for ath10k/cal-ahb-a000000.wifi.bin failed with error -2
[    6.993873] ath10k_ahb a000000.wifi: Falling back to user helper
[    7.058620] firmware ath10k!cal-ahb-a000000.wifi.bin: firmware_loading_store: map pages failed
[    7.059016] ath10k_ahb a000000.wifi: Direct firmware load for ath10k/QCA4019/hw1.0/ct-firmware-5.bin failed with error -2
[    7.066247] ath10k_ahb a000000.wifi: Falling back to user helper
[    7.130054] firmware ath10k!QCA4019!hw1.0!ct-firmware-5.bin: firmware_loading_store: map pages failed
[    7.130468] ath10k_ahb a000000.wifi: Direct firmware load for ath10k/QCA4019/hw1.0/ct-firmware-2.bin failed with error -2
[    7.138359] ath10k_ahb a000000.wifi: Falling back to user helper
[    7.199671] firmware ath10k!QCA4019!hw1.0!ct-firmware-2.bin: firmware_loading_store: map pages failed
[    7.199996] ath10k_ahb a000000.wifi: Direct firmware load for ath10k/QCA4019/hw1.0/firmware-6.bin failed with error -2
[    7.207986] ath10k_ahb a000000.wifi: Falling back to user helper
[    7.278651] firmware ath10k!QCA4019!hw1.0!firmware-6.bin: firmware_loading_store: map pages failed
[    7.280697] ath10k_ahb a000000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003900ff sub 0000:0000
[    7.286546] ath10k_ahb a000000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[    7.301009] ath10k_ahb a000000.wifi: firmware ver 10.4b-ct-4019-fW-012-bca55060 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT crc32 b0eed321
[    7.325288] ath10k_ahb a000000.wifi: failed to fetch board data for bus=ahb,vendor=0000,device=0000,subsystem-vendor=0000,subsystem-device=0000,variant=test-ipq40xx from ath10k/QCA4019/hw1.0/board-2.bin
[    7.329953] ath10k_ahb a000000.wifi: Direct firmware load for ath10k/QCA4019/hw1.0/board.bin failed with error -2
[    7.347433] ath10k_ahb a000000.wifi: Falling back to user helper
[    7.393220] firmware ath10k!QCA4019!hw1.0!board.bin: firmware_loading_store: map pages failed
[    7.393438] ath10k_ahb a000000.wifi: failed to fetch board-2.bin or board.bin from ath10k/QCA4019/hw1.0
[    7.400805] ath10k_ahb a000000.wifi: failed to fetch board file: -11
[    7.410055] ath10k_ahb a000000.wifi: could not probe fw (-11)
[    7.587095] ath10k_ahb a800000.wifi: Direct firmware load for ath10k/fwcfg-ahb-a800000.wifi.txt failed with error -2
[    7.587418] ath10k_ahb a800000.wifi: Falling back to user helper
[    7.643164] firmware ath10k!fwcfg-ahb-a800000.wifi.txt: firmware_loading_store: map pages failed
[    7.643654] ath10k_ahb a800000.wifi: Direct firmware load for ath10k/pre-cal-ahb-a800000.wifi.bin failed with error -2
[    7.651119] ath10k_ahb a800000.wifi: Falling back to user helper
[    7.721291] firmware ath10k!pre-cal-ahb-a800000.wifi.bin: firmware_loading_store: map pages failed
[    7.721765] ath10k_ahb a800000.wifi: Direct firmware load for ath10k/cal-ahb-a800000.wifi.bin failed with error -2
[    7.729179] ath10k_ahb a800000.wifi: Falling back to user helper
[    7.794889] firmware ath10k!cal-ahb-a800000.wifi.bin: firmware_loading_store: map pages failed
[    7.795245] ath10k_ahb a800000.wifi: Direct firmware load for ath10k/QCA4019/hw1.0/ct-firmware-5.bin failed with error -2
[    7.802518] ath10k_ahb a800000.wifi: Falling back to user helper
[    7.874134] firmware ath10k!QCA4019!hw1.0!ct-firmware-5.bin: firmware_loading_store: map pages failed
[    7.874514] ath10k_ahb a800000.wifi: Direct firmware load for ath10k/QCA4019/hw1.0/ct-firmware-2.bin failed with error -2
[    7.882414] ath10k_ahb a800000.wifi: Falling back to user helper
[    7.940265] firmware ath10k!QCA4019!hw1.0!ct-firmware-2.bin: firmware_loading_store: map pages failed
[    7.940562] ath10k_ahb a800000.wifi: Direct firmware load for ath10k/QCA4019/hw1.0/firmware-6.bin failed with error -2
[    7.948495] ath10k_ahb a800000.wifi: Falling back to user helper
[    8.014109] firmware ath10k!QCA4019!hw1.0!firmware-6.bin: firmware_loading_store: map pages failed
[    8.015963] ath10k_ahb a800000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003900ff sub 0000:0000
[    8.022098] ath10k_ahb a800000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[    8.036357] ath10k_ahb a800000.wifi: firmware ver 10.4b-ct-4019-fW-012-bca55060 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT crc32 b0eed321
[    8.060853] ath10k_ahb a800000.wifi: failed to fetch board data for bus=ahb,vendor=0000,device=0000,subsystem-vendor=0000,subsystem-device=0000,variant=test-ipq40xx from ath10k/QCA4019/hw1.0/board-2.bin
[    8.065444] ath10k_ahb a800000.wifi: Direct firmware load for ath10k/QCA4019/hw1.0/board.bin failed with error -2
[    8.082915] ath10k_ahb a800000.wifi: Falling back to user helper
[    8.122820] firmware ath10k!QCA4019!hw1.0!board.bin: firmware_loading_store: map pages failed
[    8.123044] ath10k_ahb a800000.wifi: failed to fetch board-2.bin or board.bin from ath10k/QCA4019/hw1.0
[    8.130393] ath10k_ahb a800000.wifi: failed to fetch board file: -11
[    8.139659] ath10k_ahb a800000.wifi: could not probe fw (-11)

But the QxWlan E2600AC-C1 firmware works

bootlog
[    7.032958] ath10k_ahb a000000.wifi: Direct firmware load for ath10k/fwcfg-ahb-a000000.wifi.txt failed with error -2
[    7.033008] ath10k_ahb a000000.wifi: Falling back to user helper
[    7.075055] firmware ath10k!fwcfg-ahb-a000000.wifi.txt: firmware_loading_store: map pages failed
[    7.075404] ath10k_ahb a000000.wifi: Direct firmware load for ath10k/pre-cal-ahb-a000000.wifi.bin failed with error -2
[    7.082979] ath10k_ahb a000000.wifi: Falling back to user helper
[    7.197051] ath10k_ahb a000000.wifi: Direct firmware load for ath10k/QCA4019/hw1.0/ct-firmware-5.bin failed with error -2
[    7.197102] ath10k_ahb a000000.wifi: Falling back to user helper
[    7.262182] firmware ath10k!QCA4019!hw1.0!ct-firmware-5.bin: firmware_loading_store: map pages failed
[    7.262627] ath10k_ahb a000000.wifi: Direct firmware load for ath10k/QCA4019/hw1.0/ct-firmware-2.bin failed with error -2
[    7.270466] ath10k_ahb a000000.wifi: Falling back to user helper
[    7.347002] firmware ath10k!QCA4019!hw1.0!ct-firmware-2.bin: firmware_loading_store: map pages failed
[    7.347380] ath10k_ahb a000000.wifi: Direct firmware load for ath10k/QCA4019/hw1.0/firmware-6.bin failed with error -2
[    7.355306] ath10k_ahb a000000.wifi: Falling back to user helper
[    7.418118] firmware ath10k!QCA4019!hw1.0!firmware-6.bin: firmware_loading_store: map pages failed
[    7.420092] ath10k_ahb a000000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003900ff sub 0000:0000
[    7.426088] ath10k_ahb a000000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[    7.438944] ath10k_ahb a000000.wifi: firmware ver 10.4b-ct-4019-fW-012-bca55060 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT crc32 b0eed321
[    7.491846] ath10k_ahb a000000.wifi: board_file api 2 bmi_id 0:20 crc32 bcebe54c
[    8.806830] ath10k_ahb a000000.wifi: 10.4 wmi init: vdevs: 16  peers: 48  tid: 96
[    8.806878] ath10k_ahb a000000.wifi: msdu-desc: 2500  skid: 32
[    8.855428] ath10k_ahb a000000.wifi: wmi print 'P 48/48 V 16 K 144 PH 176 T 186  msdu-desc: 2500  sw-crypt: 0 ct-sta: 0'
[    8.856508] ath10k_ahb a000000.wifi: wmi print 'free: 56680 iram: 22280 sram: 35968'
[    9.025960] ath10k_ahb a000000.wifi: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 32 raw 0 hwcrypto 1
[    9.284299] ath10k_ahb a800000.wifi: Direct firmware load for ath10k/fwcfg-ahb-a800000.wifi.txt failed with error -2
[    9.284370] ath10k_ahb a800000.wifi: Falling back to user helper
[    9.439020] firmware ath10k!fwcfg-ahb-a800000.wifi.txt: firmware_loading_store: map pages failed
[    9.439335] ath10k_ahb a800000.wifi: Direct firmware load for ath10k/pre-cal-ahb-a800000.wifi.bin failed with error -2
[    9.446985] ath10k_ahb a800000.wifi: Falling back to user helper
[    9.527460] ath10k_ahb a800000.wifi: Direct firmware load for ath10k/QCA4019/hw1.0/ct-firmware-5.bin failed with error -2
[    9.527504] ath10k_ahb a800000.wifi: Falling back to user helper
[    9.581485] firmware ath10k!QCA4019!hw1.0!ct-firmware-5.bin: firmware_loading_store: map pages failed
[    9.581858] ath10k_ahb a800000.wifi: Direct firmware load for ath10k/QCA4019/hw1.0/ct-firmware-2.bin failed with error -2
[    9.589722] ath10k_ahb a800000.wifi: Falling back to user helper
[    9.653423] firmware ath10k!QCA4019!hw1.0!ct-firmware-2.bin: firmware_loading_store: map pages failed
[    9.653881] ath10k_ahb a800000.wifi: Direct firmware load for ath10k/QCA4019/hw1.0/firmware-6.bin failed with error -2
[    9.661705] ath10k_ahb a800000.wifi: Falling back to user helper
[    9.733238] firmware ath10k!QCA4019!hw1.0!firmware-6.bin: firmware_loading_store: map pages failed
[    9.733495] ath10k_ahb a800000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003900ff sub 0000:0000
[    9.741160] ath10k_ahb a800000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[    9.755107] ath10k_ahb a800000.wifi: firmware ver 10.4b-ct-4019-fW-012-bca55060 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT crc32 b0eed321
[    9.806244] ath10k_ahb a800000.wifi: board_file api 2 bmi_id 0:21 crc32 bcebe54c
[   11.120344] ath10k_ahb a800000.wifi: 10.4 wmi init: vdevs: 16  peers: 48  tid: 96
[   11.120396] ath10k_ahb a800000.wifi: msdu-desc: 2500  skid: 32
[   11.169480] ath10k_ahb a800000.wifi: wmi print 'P 48/48 V 16 K 144 PH 176 T 186  msdu-desc: 2500  sw-crypt: 0 ct-sta: 0'
[   11.170908] ath10k_ahb a800000.wifi: wmi print 'free: 56680 iram: 22280 sram: 35968'
[   11.336659] ath10k_ahb a800000.wifi: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 32 raw 0 hwcrypto 1

I Googled it and found that it might be a driver bug
https://patchwork.ozlabs.org/patch/839338/
https://lists.infradead.org/pipermail/ath10k/2016-November/008761.html
But these were posted years ago and should be fixed already.

Any idea what's happening?
@chunkeey

From my brief experience with ipq40xx wireless, it needs the precal from ART and the board file both.

1 Like

Thanks for the reply, let me have a try

Problem solved. It was actually a typo in the ART extract script.
Thanks!

2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.