Hi all,
i'm trying to use the lede firmware on an Archer C59 V1/EU
On the product box i can see it should be compatible with protocol 802.11 a/n/ac (5GHz) and 802.11 b/g/n (2.4GHz).
The tp-link stock firmware allow to configure dual band wifi.
But i can only configure a bgn radio.
I tried to run " iw phy" and i can only see the 2.4GHz band.
Is there something i'm missing to do in order to activate the second band radio?
-- EDIT --
I found on logread following lines:
Thu Mar 9 06:16:46 2017 kern.warn kernel: [ 9.353834] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
Thu Mar 9 06:16:46 2017 kern.info kernel: [ 9.360025] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
Thu Mar 9 06:16:46 2017 kern.warn kernel: [ 9.519396] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:00:00.0.bin failed with error -2
Thu Mar 9 06:16:46 2017 kern.warn kernel: [ 9.530478] ath10k_pci 0000:00:00.0: Falling back to user helper
Thu Mar 9 06:16:46 2017 kern.err kernel: [ 9.627278] firmware ath10k!pre-cal-pci-0000:00:00.0.bin: firmware_loading_store: map pages failed
Thu Mar 9 06:16:46 2017 kern.warn kernel: [ 9.885390] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA9888/hw2.0/firmware-5.bin failed with error -2
Thu Mar 9 06:16:46 2017 kern.warn kernel: [ 9.896472] ath10k_pci 0000:00:00.0: Falling back to user helper
Thu Mar 9 06:16:46 2017 kern.err kernel: [ 9.983198] firmware ath10k!QCA9888!hw2.0!firmware-5.bin: firmware_loading_store: map pages failed
Thu Mar 9 06:16:46 2017 kern.err kernel: [ 9.992636] ath10k_pci 0000:00:00.0: could not fetch firmware file 'ath10k/QCA9888/hw2.0/firmware-5.bin': -11
Thu Mar 9 06:16:46 2017 kern.warn kernel: [ 10.002955] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA9888/hw2.0/firmware-4.bin failed with error -2
Thu Mar 9 06:16:46 2017 kern.warn kernel: [ 10.014007] ath10k_pci 0000:00:00.0: Falling back to user helper
Thu Mar 9 06:16:46 2017 kern.err kernel: [ 10.181242] firmware ath10k!QCA9888!hw2.0!firmware-4.bin: firmware_loading_store: map pages failed
Thu Mar 9 06:16:46 2017 kern.err kernel: [ 10.190681] ath10k_pci 0000:00:00.0: could not fetch firmware file 'ath10k/QCA9888/hw2.0/firmware-4.bin': -11
Thu Mar 9 06:16:46 2017 kern.warn kernel: [ 10.200999] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA9888/hw2.0/firmware-3.bin failed with error -2
Thu Mar 9 06:16:46 2017 kern.warn kernel: [ 10.212053] ath10k_pci 0000:00:00.0: Falling back to user helper
Thu Mar 9 06:16:46 2017 kern.err kernel: [ 10.378156] firmware ath10k!QCA9888!hw2.0!firmware-3.bin: firmware_loading_store: map pages failed
Thu Mar 9 06:16:46 2017 kern.err kernel: [ 10.387592] ath10k_pci 0000:00:00.0: could not fetch firmware file 'ath10k/QCA9888/hw2.0/firmware-3.bin': -11
Thu Mar 9 06:16:46 2017 kern.warn kernel: [ 10.397903] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA9888/hw2.0/firmware-2.bin failed with error -2
Thu Mar 9 06:16:46 2017 kern.warn kernel: [ 10.408955] ath10k_pci 0000:00:00.0: Falling back to user helper
Thu Mar 9 06:16:46 2017 kern.err kernel: [ 10.574737] firmware ath10k!QCA9888!hw2.0!firmware-2.bin: firmware_loading_store: map pages failed
Thu Mar 9 06:16:46 2017 kern.err kernel: [ 10.584178] ath10k_pci 0000:00:00.0: could not fetch firmware file 'ath10k/QCA9888/hw2.0/firmware-2.bin': -11
Thu Mar 9 06:16:46 2017 kern.err kernel: [ 10.594442] ath10k_pci 0000:00:00.0: could not fetch firmware files (-11)
Thu Mar 9 06:16:46 2017 kern.err kernel: [ 10.601456] ath10k_pci 0000:00:00.0: could not probe fw (-11)
Thx in advance for your precious help
Have a nice day
tmomas
March 9, 2017, 11:24am
2
Hi,
thx for help.
You are right, kernel is looking for QCA9888 which is currently missing.
I found this link:
https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/commit/?id=43a2e10a4a65184e2bd1948669362f389aee22d9
with a binary of the driver compiled for x86 architectures. No source code found.
I asked by email to the author for the source or at least the mips driver version.
Will keep you informed.
Thx again
Have a nice day
pepe2k
March 11, 2017, 1:07pm
4
@lorenzowi , could you please do below test and let me know if it makes ac card working after reboot?
opkg update
opkg install wget
mkdir -p /lib/firmware/ath10k/QCA9888/hw2.0/
cd /lib/firmware/ath10k/QCA9888/hw2.0/
wget https://github.com/kvalo/ath10k-firmware/raw/master/QCA9888/hw2.0/firmware-5.bin_10.4-3.2-00072 -O firmware-5.bin --no-check-certificate
wget https://github.com/kvalo/ath10k-firmware/raw/master/QCA9888/hw2.0/board-2.bin --no-check-certificate
sync && reboot
Hi pepe,
thx a lot for your help.
I tried your solution, the result is:
Mon Mar 13 07:55:21 2017 kern.info kernel: [ 554.224637] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
Mon Mar 13 07:55:22 2017 kern.warn kernel: [ 554.390061] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:00:00.0.bin failed with error -2
Mon Mar 13 07:55:22 2017 kern.warn kernel: [ 554.401143] ath10k_pci 0000:00:00.0: Falling back to user helper
Mon Mar 13 07:55:22 2017 daemon.err procd: Could not find firmware /lib/firmware/ath10k/pre-cal-pci-0000:00:00.0.bin
Mon Mar 13 07:55:22 2017 kern.err kernel: [ 554.494625] firmware ath10k!pre-cal-pci-0000:00:00.0.bin: firmware_loading_store: map pages failed
Mon Mar 13 07:55:22 2017 kern.info kernel: [ 554.509475] ath10k_pci 0000:00:00.0: qca9888 hw2.0 target 0x01000000 chip_id 0x00000000 sub 0000:0000
Mon Mar 13 07:55:22 2017 kern.info kernel: [ 554.519054] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
Mon Mar 13 07:55:22 2017 kern.info kernel: [ 554.537901] ath10k_pci 0000:00:00.0: firmware ver 10.4-3.2-00072 api 5 features no-p2p,mfp,peer-flow-ctrl crc32 b1da0716
Mon Mar 13 07:55:22 2017 daemon.err procd: failed to write to /sys//devices/pci0000:00/0000:00:00.0/firmware/ath10k!pre-cal-pci-0000:00:00.0.bin/loading
Mon Mar 13 07:55:22 2017 kern.err kernel: [ 554.598268] ath10k_pci 0000:00:00.0: failed to fetch board data for bus=pci,vendor=168c,device=0056,subsystem-vendor=0000,subsystem-device=0000�ŝ��Kd�Kp from ath10k/QCA9888/hw2.0/board-2.bin
Mon Mar 13 07:55:22 2017 kern.warn kernel: [ 554.616192] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA9888/hw2.0/board.bin failed with error -2
Mon Mar 13 07:55:22 2017 kern.warn kernel: [ 554.626818] ath10k_pci 0000:00:00.0: Falling back to user helper
Mon Mar 13 07:55:22 2017 daemon.err procd: Could not find firmware /lib/firmware/ath10k/QCA9888/hw2.0/board.bin
Mon Mar 13 07:55:22 2017 kern.err kernel: [ 554.757542] firmware ath10k!QCA9888!hw2.0!board.bin: firmware_loading_store: map pages failed
Mon Mar 13 07:55:22 2017 kern.err kernel: [ 554.766534] ath10k_pci 0000:00:00.0: failed to fetch board data
Mon Mar 13 07:55:22 2017 kern.err kernel: [ 554.772650] ath10k_pci 0000:00:00.0: failed to fetch board file: -11
Mon Mar 13 07:55:22 2017 kern.err kernel: [ 554.779420] ath10k_pci 0000:00:00.0: could not probe fw (-11)
Mon Mar 13 07:55:22 2017 daemon.err procd: failed to write to /sys//devices/pci0000:00/0000:00:00.0/firmware/ath10k!QCA9888!hw2.0!board.bin/loading
The interface is not working after reboot.
My firmware folder is now:
root@LEDE:/lib/firmware/ath10k/QCA9888/hw2.0# ll
drwxr-xr-x 2 root root 0 Mar 13 07:59 ./
drwxr-xr-x 3 root root 0 Mar 13 07:59 ../
-rw-r--r-- 1 root root 12148 Mar 13 07:59 board-2.bin
-rw-r--r-- 1 root root 565168 Mar 13 07:59 firmware-5.bin
root@LEDE:/lib/firmware/ath10k/QCA9888/hw2.0# md5sum *
1b466ac1857d7ef9ad22f41c8cdad1c7 board-2.bin
da0d0b130307f96b085ad886a649460c firmware-5.bin
Reading the log i feel there is an issue with the board file.
Thx you a lot for your help
Have a nice day
An update,
newer firmware and board file is available: https://github.com/kvalo/ath10k-firmware/tree/master/QCA9888/hw2.0
i tried but it crashes, there the report:
Tue Apr 18 14:44:28 2017 kern.info kernel: [ 357.224444] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
Tue Apr 18 14:44:28 2017 kern.warn kernel: [ 357.385692] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:00:00.0.bin failed with error -2
Tue Apr 18 14:44:28 2017 kern.warn kernel: [ 357.396787] ath10k_pci 0000:00:00.0: Falling back to user helper
Tue Apr 18 14:44:29 2017 daemon.err procd: Could not find firmware /lib/firmware/ath10k/pre-cal-pci-0000:00:00.0.bin
Tue Apr 18 14:44:29 2017 kern.err kernel: [ 357.491339] firmware ath10k!pre-cal-pci-0000:00:00.0.bin: firmware_loading_store: map pages failed
Tue Apr 18 14:44:29 2017 kern.info kernel: [ 357.507570] ath10k_pci 0000:00:00.0: qca9888 hw2.0 target 0x01000000 chip_id 0x00000000 sub 0000:0000
Tue Apr 18 14:44:29 2017 kern.info kernel: [ 357.517162] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
Tue Apr 18 14:44:29 2017 kern.info kernel: [ 357.536886] ath10k_pci 0000:00:00.0: firmware ver 10.4-3.4-00082 api 5 features no-p2p,mfp,peer-flow-ctrl,allows-mesh-bcast crc32 44e0dc44
Tue Apr 18 14:44:29 2017 daemon.err procd: failed to write to /sys//devices/pci0000:00/0000:00:00.0/firmware/ath10k!pre-cal-pci-0000:00:00.0.bin/loading
Tue Apr 18 14:44:29 2017 kern.warn kernel: [ 357.897719] ath10k_pci 0000:00:00.0: board id is not exist in otp, ignore it
Tue Apr 18 14:44:29 2017 kern.err kernel: [ 357.905878] ath10k_pci 0000:00:00.0: failed to fetch board data for bus=pci,vendor=168c,device=0056,subsystem-vendor=0000,subsystem-device=00009�� from ath10k/QCA9888/hw2.0/board-2.bin
Tue Apr 18 14:44:29 2017 kern.info kernel: [ 357.924486] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A crc32 74a04250
Tue Apr 18 14:44:31 2017 kern.err kernel: [ 359.425891] ath10k_pci 0000:00:00.0: firmware crashed! (uuid b257c73f-50e4-4e62-b56c-3fa182ee1a3d)
Tue Apr 18 14:44:31 2017 kern.info kernel: [ 359.435200] ath10k_pci 0000:00:00.0: qca9888 hw2.0 target 0x01000000 chip_id 0x00000000 sub 0000:0000
Tue Apr 18 14:44:31 2017 kern.info kernel: [ 359.444746] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
Tue Apr 18 14:44:31 2017 kern.info kernel: [ 359.464469] ath10k_pci 0000:00:00.0: firmware ver 10.4-3.4-00082 api 5 features no-p2p,mfp,peer-flow-ctrl,allows-mesh-bcast crc32 44e0dc44
Tue Apr 18 14:44:31 2017 kern.info kernel: [ 359.478652] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A crc32 74a04250
Tue Apr 18 14:44:31 2017 kern.info kernel: [ 359.486220] ath10k_pci 0000:00:00.0: htt-ver 0.0 wmi-op 6 htt-op 4 cal file max-sta 32 raw 0 hwcrypto 1
Tue Apr 18 14:44:31 2017 kern.err kernel: [ 359.497949] ath10k_pci 0000:00:00.0: firmware register dump:
Tue Apr 18 14:44:31 2017 kern.err kernel: [ 359.503810] ath10k_pci 0000:00:00.0: [00]: 0x01000000 0x000015B3 0x009CE603 0x00975B31
Tue Apr 18 14:44:31 2017 kern.err kernel: [ 359.511987] ath10k_pci 0000:00:00.0: [04]: 0x009CE603 0x00060530 0x00000011 0x00413E1C
Tue Apr 18 14:44:31 2017 kern.err kernel: [ 359.520166] ath10k_pci 0000:00:00.0: [08]: 0x0041626C 0x00400000 0x00406010 0x0041A3B8
Tue Apr 18 14:44:31 2017 kern.err kernel: [ 359.528346] ath10k_pci 0000:00:00.0: [12]: 0x00000009 0x00000000 0x000CADA4 0x000CADAF
Tue Apr 18 14:44:31 2017 kern.err kernel: [ 359.536526] ath10k_pci 0000:00:00.0: [16]: 0x009CE603 0x000CADA7 0x00000000 0x00000000
Tue Apr 18 14:44:31 2017 kern.err kernel: [ 359.544707] ath10k_pci 0000:00:00.0: [20]: 0x409CE603 0x00405F3C 0x00000001 0x00400000
Tue Apr 18 14:44:31 2017 kern.err kernel: [ 359.552887] ath10k_pci 0000:00:00.0: [24]: 0x8098142B 0x00405F9C 0x0000003D 0xC09CE603
Tue Apr 18 14:44:31 2017 kern.err kernel: [ 359.561061] ath10k_pci 0000:00:00.0: [28]: 0x800DC19E 0x0040600C 0x00000004 0x004139C0
Tue Apr 18 14:44:31 2017 kern.err kernel: [ 359.569239] ath10k_pci 0000:00:00.0: [32]: 0x800C383A 0x0040603C 0x00413830 0x00400000
Tue Apr 18 14:44:31 2017 kern.err kernel: [ 359.577421] ath10k_pci 0000:00:00.0: [36]: 0x809800A3 0x0040606C 0x00413840 0x009C3428
Tue Apr 18 14:44:31 2017 kern.err kernel: [ 359.585605] ath10k_pci 0000:00:00.0: [40]: 0x8098003A 0x004060BC 0x00400000 0x00400600
Tue Apr 18 14:44:31 2017 kern.err kernel: [ 359.593789] ath10k_pci 0000:00:00.0: [44]: 0x809607C1 0x004060EC 0xD8400100 0x004060FC
Tue Apr 18 14:44:31 2017 kern.err kernel: [ 359.601963] ath10k_pci 0000:00:00.0: [48]: 0x80960892 0x0040610C 0x00000000 0x00000008
Tue Apr 18 14:44:31 2017 kern.err kernel: [ 359.610142] ath10k_pci 0000:00:00.0: [52]: 0x80960E81 0x0040612C 0x00400000 0x00400600
Tue Apr 18 14:44:31 2017 kern.err kernel: [ 359.618322] ath10k_pci 0000:00:00.0: [56]: 0x80960EE5 0x0040614C 0x00000000 0x00400600
Tue Apr 18 14:44:31 2017 kern.err kernel: [ 359.626500] ath10k_pci 0000:00:00.0: Copy Engine register dump:
Tue Apr 18 14:44:31 2017 kern.err kernel: [ 359.632627] ath10k_pci 0000:00:00.0: [00]: 0x0004a000 3 3 4 3
Tue Apr 18 14:44:31 2017 kern.err kernel: [ 359.639286] ath10k_pci 0000:00:00.0: [01]: 0x0004a400 5 5 4 5
Tue Apr 18 14:44:31 2017 kern.err kernel: [ 359.645951] ath10k_pci 0000:00:00.0: [02]: 0x0004a800 0 0 63 0
Tue Apr 18 14:44:31 2017 kern.err kernel: [ 359.652617] ath10k_pci 0000:00:00.0: [03]: 0x0004ac00 0 0 0 0
Tue Apr 18 14:44:31 2017 kern.err kernel: [ 359.659275] ath10k_pci 0000:00:00.0: [04]: 0x0004b000 0 0 0 0
Tue Apr 18 14:44:31 2017 kern.err kernel: [ 359.665940] ath10k_pci 0000:00:00.0: [05]: 0x0004b400 0 0 0 0
Tue Apr 18 14:44:31 2017 kern.err kernel: [ 359.672606] ath10k_pci 0000:00:00.0: [06]: 0x0004b800 0 0 0 0
Tue Apr 18 14:44:31 2017 kern.err kernel: [ 359.679266] ath10k_pci 0000:00:00.0: [07]: 0x0004bc00 1 1 1 1
Tue Apr 18 14:44:31 2017 kern.err kernel: [ 359.685930] ath10k_pci 0000:00:00.0: [08]: 0x0004c000 0 0 127 0
Tue Apr 18 14:44:31 2017 kern.err kernel: [ 359.692596] ath10k_pci 0000:00:00.0: [09]: 0x0004c400 0 0 0 0
Tue Apr 18 14:44:31 2017 kern.err kernel: [ 359.699255] ath10k_pci 0000:00:00.0: [10]: 0x0004c800 0 0 0 0
Tue Apr 18 14:44:31 2017 kern.err kernel: [ 359.705920] ath10k_pci 0000:00:00.0: [11]: 0x0004cc00 0 0 0 0
Tue Apr 18 14:44:31 2017 kern.warn kernel: [ 360.422073] ath10k_pci 0000:00:00.0: failed to receive control response completion, polling..
Tue Apr 18 14:44:32 2017 kern.err kernel: [ 361.422063] ath10k_pci 0000:00:00.0: ctl_resp never came in (-145)
Tue Apr 18 14:44:32 2017 kern.err kernel: [ 361.428477] ath10k_pci 0000:00:00.0: failed to connect to HTC: -145
Tue Apr 18 14:44:33 2017 kern.err kernel: [ 361.503324] ath10k_pci 0000:00:00.0: could not init core (-145)
Tue Apr 18 14:44:33 2017 kern.err kernel: [ 361.509639] ath10k_pci 0000:00:00.0: could not probe fw (-145)
Tue Apr 18 14:44:33 2017 kern.warn kernel: [ 361.523619] ath10k_pci 0000:00:00.0: cannot restart a device that hasn't been started
And this is my firmware files:
root@LEDE:/lib/firmware/ath10k/QCA9888/hw2.0# ll
drwxr-xr-x 2 root root 0 Apr 18 14:45 ./
drwxr-xr-x 3 root root 0 Apr 18 13:04 ../
-rw-r--r-- 1 root root 72788 Apr 18 13:02 board-2.bin
lrwxrwxrwx 1 root root 29 Apr 18 14:44 firmware-5.bin -> firmware-5.bin_10.4-3.4-00082
-rw-r--r-- 1 root root 616584 Apr 18 13:03 firmware-5.bin_10.4-3.4-00074
-rw-r--r-- 1 root root 616984 Apr 18 14:43 firmware-5.bin_10.4-3.4-00082
Is there some update?
Thx a lot for your help
Have a nice day
Hi,
that's my situation:
# opkg list-installed | grep ath10k
ath10k-firmware-qca9888-ct - 2017-03-29-956e2609-1
kmod-ath10k-ct - 4.4.71+2017-05-16-c048ef0c-1
After boot i read on log:
# logread | grep ath10k
Mon Jun 19 22:14:07 2017 kern.info kernel: [ 9.721443] ath10k driver, optimized for CT firmware, probing pci device: 0x56.
Mon Jun 19 22:14:07 2017 kern.info kernel: [ 9.736659] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
Mon Jun 19 22:14:07 2017 kern.warn kernel: [ 9.888600] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:00:00.0.bin failed with error -2
Mon Jun 19 22:14:07 2017 kern.warn kernel: [ 9.899700] ath10k_pci 0000:00:00.0: Falling back to user helper
Mon Jun 19 22:14:07 2017 kern.err kernel: [ 9.988401] firmware ath10k!pre-cal-pci-0000:00:00.0.bin: firmware_loading_store: map pages failed
Mon Jun 19 22:14:07 2017 kern.warn kernel: [ 9.998596] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/fwcfg-pci-0000:00:00.0.txt failed with error -2
Mon Jun 19 22:14:07 2017 kern.warn kernel: [ 10.009503] ath10k_pci 0000:00:00.0: Falling back to user helper
Mon Jun 19 22:14:07 2017 kern.err kernel: [ 10.178300] firmware ath10k!fwcfg-pci-0000:00:00.0.txt: firmware_loading_store: map pages failed
Mon Jun 19 22:14:07 2017 kern.info kernel: [ 10.979988] ath10k_pci 0000:00:00.0: qca9888 hw2.0 target 0x01000000 chip_id 0x00000000 sub 0000:0000
Mon Jun 19 22:14:07 2017 kern.info kernel: [ 10.989559] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
Mon Jun 19 22:14:07 2017 kern.info kernel: [ 11.008878] ath10k_pci 0000:00:00.0: firmware ver 10.4-ct-9888-fW-009-cf18e19 api 5 features 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 crc32 35ea5db8
Mon Jun 19 22:14:07 2017 kern.err kernel: [ 11.044474] ath10k_pci 0000:00:00.0: failed to fetch board data for bus=pci,vendor=168c,device=0056,subsystem-vendor=0000,subsystem-device=0000 from ath10k/QCA9888/hw2.0/board-2.bin
Mon Jun 19 22:14:07 2017 kern.warn kernel: [ 11.061565] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA9888/hw2.0/board.bin failed with error -2
Mon Jun 19 22:14:07 2017 kern.warn kernel: [ 11.072196] ath10k_pci 0000:00:00.0: Falling back to user helper
Mon Jun 19 22:14:07 2017 kern.err kernel: [ 11.159744] firmware ath10k!QCA9888!hw2.0!board.bin: firmware_loading_store: map pages failed
Mon Jun 19 22:14:07 2017 kern.err kernel: [ 11.168732] ath10k_pci 0000:00:00.0: failed to fetch board data
Mon Jun 19 22:14:07 2017 kern.err kernel: [ 11.174846] ath10k_pci 0000:00:00.0: failed to fetch board file: -11
Mon Jun 19 22:14:07 2017 kern.err kernel: [ 11.181611] ath10k_pci 0000:00:00.0: could not probe fw (-11)
And my file status:
# ll /lib/firmware/ath10k/QCA9888/hw2.0/
drwxr-xr-x 2 root root 0 Jun 20 16:40 ./
drwxr-xr-x 3 root root 0 Jun 20 13:48 ../
-rw-r--r-- 1 root root 72788 Jun 20 13:48 board-2.bin
lrwxrwxrwx 1 root root 30 Jun 20 16:40 board.bin -> ../../cal-pci-0000:01:00.0.bin
-rw-r--r-- 1 root root 596104 Jun 20 13:48 firmware-5.bin
Is there something wrong?
EDIT: dunno why but the board.bin symlink is broken
Heinz
June 21, 2017, 7:42pm
9
Can we test 5GHz driver?
Type command:
mkdir -p /lib/firmware/ath10k/QCA9888/hw2.0/
dd if=/dev/mtd6 of=/lib/firmware/ath10k/QCA9888/hw2.0/board.bin bs=1 skip=20480 count=12048
dd if=/dev/mtd6 of=/lib/firmware/ath10k/cal-pci-0000:00:00.0.bin bs=1 skip=20480 count=2116
Download firmware-5.bin from https://github.com/kvalo/ath10k-firmware/tree/master/QCA9888/hw2.0/3.5.1
and copy to /lib/firmware/ath10k/QCA9888/hw2.0/
reboot device.
On my C59v1 wifi 5GHz run and broadcast SSID, but when i try connect to this network ath10k firmware crashed:
crashlog:
https://drive.google.com/open?id=0B9LBOwJy0I9lUHdwaUpOc1pzakE
Hi,
i successfully run the three commands you posted.
Router did the dd job, after reboot the firmware crash again (but never load at all).
# logread | grep kern
[...]
Mon Jun 19 22:14:42 2017 kern.info kernel: [ 9.612140] Loading modules backported from Linux version wt-2017-01-31-0-ge882dff19e7f
Mon Jun 19 22:14:42 2017 kern.info kernel: [ 9.620449] Backport generated by backports.git backports-20160324-13-g24da7d3c
Mon Jun 19 22:14:42 2017 kern.info kernel: [ 9.688893] ath10k driver, optimized for CT firmware, probing pci device: 0x56.
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 9.697915] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
Mon Jun 19 22:14:42 2017 kern.info kernel: [ 9.704074] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 9.858607] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:00:00.0.bin failed with error -2
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 9.869695] ath10k_pci 0000:00:00.0: Falling back to user helper
Mon Jun 19 22:14:42 2017 kern.err kernel: [ 10.020610] firmware ath10k!pre-cal-pci-0000:00:00.0.bin: firmware_loading_store: map pages failed
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 10.030844] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/fwcfg-pci-0000:00:00.0.txt failed with error -2
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 10.041758] ath10k_pci 0000:00:00.0: Falling back to user helper
Mon Jun 19 22:14:42 2017 kern.err kernel: [ 10.237206] firmware ath10k!fwcfg-pci-0000:00:00.0.txt: firmware_loading_store: map pages failed
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 11.162143] ------------[ cut here ]------------
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 11.167015] WARNING: CPU: 0 PID: 7 at build_dir/target-mips_24kc_musl/linux-ar71xx_generic/ath10k-ct-2017-05-16-c048ef0c/ath10k/core.c:334 ath10k_core_get_fw_features_str+0xc0/0x120 [ath10k_core]()
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 11.190167] Modules linked in: ath10k_pci(+) ath10k_core ath mac80211 cfg80211 compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables tun ohci_platform ohci_hcd ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 11.216681] CPU: 0 PID: 7 Comm: kworker/u2:1 Not tainted 4.4.71 #0
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 11.223070] Workqueue: ath10k_wq ath10k_core_stop [ath10k_core]
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 11.229191] Stack : 00000100 87439460 87640000 800a7640 87c2e0b4 80412d43 803ab5bc 00000007
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 11.229191] 803d5df0 87c79be4 80410000 800a55bc 87640000 800a7640 803b0cc0 80410000
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 11.229191] 00000003 87c79be4 80410000 800955d8 87640000 87c79c1c 00000000 801f8274
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 11.229191] 00000001 801f8200 87615d48 87f4ca00 87f4c900 61746831 306b5f77 71000000
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 11.229191] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 11.229191] ...
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 11.266205] Call Trace:
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 11.268752] [<80071e84>] show_stack+0x50/0x84
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 11.273258] [<80081c3c>] warn_slowpath_common+0xa0/0xd0
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 11.278669] [<80081cf4>] warn_slowpath_null+0x18/0x24
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 11.283899] [<87615778>] ath10k_core_get_fw_features_str+0xc0/0x120 [ath10k_core]
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 11.291651] [<87611630>] ath10k_debug_print_hwfw_info+0x4c/0x120 [ath10k_core]
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 11.299139] [<87616080>] ath10k_core_stop+0x3ac/0xa7c [ath10k_core]
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 11.305616]
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 11.307163] ---[ end trace 534d5c907b15b94b ]---
Mon Jun 19 22:14:42 2017 kern.info kernel: [ 11.311943] ath10k_pci 0000:00:00.0: qca9888 hw2.0 target 0x01000000 chip_id 0x00000000 sub 0000:0000
Mon Jun 19 22:14:42 2017 kern.info kernel: [ 11.321476] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
Mon Jun 19 22:14:42 2017 kern.info kernel: [ 11.341722] ath10k_pci 0000:00:00.0: firmware ver 10.4-3.5.1-00014 api 5 features no-p2p,mfp,peer-flow-ctrl,bit16 crc32 387b6980
Mon Jun 19 22:14:42 2017 kern.err kernel: [ 11.418599] ath10k_pci 0000:00:00.0: failed to fetch board data for bus=pci,vendor=168c,device=0056,subsystem-vendor=0000,subsystem-device=0000 from ath10k/QCA9888/hw2.0/board-2.bin
Mon Jun 19 22:14:42 2017 kern.info kernel: [ 11.438186] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A crc32 b3e0eab2
Mon Jun 19 22:14:42 2017 kern.err kernel: [ 12.970482] ath10k_pci 0000:00:00.0: firmware crashed! (uuid 6232ced9-2dd5-4336-a737-160d26909756)
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 12.979757] ------------[ cut here ]------------
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 12.984585] WARNING: CPU: 0 PID: 458 at build_dir/target-mips_24kc_musl/linux-ar71xx_generic/ath10k-ct-2017-05-16-c048ef0c/ath10k/core.c:334 ath10k_core_get_fw_features_str+0xc0/0x120 [ath10k_core]()
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 13.007907] Modules linked in: ath10k_pci(+) ath10k_core ath mac80211 cfg80211 compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables tun ohci_platform ohci_hcd ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 13.034416] CPU: 0 PID: 458 Comm: jffs2_gcd_mtd4 Tainted: G W 4.4.71 #0
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 13.042418] Stack : 803c9f84 00000000 00000001 80420000 87cb74d4 80412d43 803ab5bc 000001ca
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 13.042418] 8048378c 87c09d7c 00000100 87439460 87640000 800a7640 803b0cc0 80410000
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 13.042418] 00000003 87c09d7c 803af0cc 87c09c74 87640000 800a55bc 00000000 00000000
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 13.042418] 00000000 801f8200 00000000 00000000 00000000 00000000 00000000 00000000
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 13.042418] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 13.042418] ...
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 13.079440] Call Trace:
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 13.081977] [<80071e84>] show_stack+0x50/0x84
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 13.086497] [<80081c3c>] warn_slowpath_common+0xa0/0xd0
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 13.091892] [<80081cf4>] warn_slowpath_null+0x18/0x24
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 13.097130] [<87615778>] ath10k_core_get_fw_features_str+0xc0/0x120 [ath10k_core]
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 13.104874] [<87611630>] ath10k_debug_print_hwfw_info+0x4c/0x120 [ath10k_core]
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 13.112357] [<87611884>] ath10k_print_driver_info+0x14/0x30 [ath10k_core]
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 13.119421] [<87ffa7d8>] ath10k_pci_hif_exchange_bmi_msg+0x1068/0x14e4 [ath10k_pci]
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 13.127371] [<87ff8104>] ath10k_pci_read32+0xf4/0x188 [ath10k_pci]
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 13.133761]
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 13.135298] ---[ end trace 534d5c907b15b94c ]---
Mon Jun 19 22:14:42 2017 kern.info kernel: [ 13.140086] ath10k_pci 0000:00:00.0: qca9888 hw2.0 target 0x01000000 chip_id 0x00000000 sub 0000:0000
Mon Jun 19 22:14:42 2017 kern.info kernel: [ 13.149614] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
Mon Jun 19 22:14:42 2017 kern.info kernel: [ 13.169868] ath10k_pci 0000:00:00.0: firmware ver 10.4-3.5.1-00014 api 5 features no-p2p,mfp,peer-flow-ctrl,bit16 crc32 387b6980
Mon Jun 19 22:14:42 2017 kern.info kernel: [ 13.182046] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A crc32 b3e0eab2
Mon Jun 19 22:14:42 2017 kern.info kernel: [ 13.189603] ath10k_pci 0000:00:00.0: htt-ver 0.0 wmi-op 6 htt-op 4 cal file max-sta 32 raw 0 hwcrypto 1
Mon Jun 19 22:14:42 2017 kern.err kernel: [ 13.201332] ath10k_pci 0000:00:00.0: firmware register dump:
Mon Jun 19 22:14:42 2017 kern.err kernel: [ 13.207195] ath10k_pci 0000:00:00.0: [00]: 0x01000000 0x000015B3 0x009CB624 0x00975B31
Mon Jun 19 22:14:42 2017 kern.err kernel: [ 13.215371] ath10k_pci 0000:00:00.0: [04]: 0x009CB624 0x00060530 0x00000011 0x004144AC
Mon Jun 19 22:14:42 2017 kern.err kernel: [ 13.223552] ath10k_pci 0000:00:00.0: [08]: 0x00000001 0x00416B8C 0x00400000 0x0041ADF8
Mon Jun 19 22:14:42 2017 kern.err kernel: [ 13.231740] ath10k_pci 0000:00:00.0: [12]: 0x00000009 0x00000000 0x000D1E34 0x000D1E3F
Mon Jun 19 22:14:42 2017 kern.err kernel: [ 13.239918] ath10k_pci 0000:00:00.0: [16]: 0x009CB624 0x000D1E34 0x00000000 0x00000000
Mon Jun 19 22:14:42 2017 kern.err kernel: [ 13.248101] ath10k_pci 0000:00:00.0: [20]: 0x409CB624 0x00405F3C 0x00000001 0x00400000
Mon Jun 19 22:14:42 2017 kern.err kernel: [ 13.256282] ath10k_pci 0000:00:00.0: [24]: 0x809814B3 0x00405F9C 0x0000003E 0xC09CB624
Mon Jun 19 22:14:42 2017 kern.err kernel: [ 13.264454] ath10k_pci 0000:00:00.0: [28]: 0x800DD85A 0x0040600C 0x00000004 0x00414000
Mon Jun 19 22:14:42 2017 kern.err kernel: [ 13.272633] ath10k_pci 0000:00:00.0: [32]: 0x800C383A 0x0040603C 0x00413E60 0x00400000
Mon Jun 19 22:14:42 2017 kern.err kernel: [ 13.280811] ath10k_pci 0000:00:00.0: [36]: 0x809800A3 0x0040606C 0x00413E70 0x009C3BDC
Mon Jun 19 22:14:42 2017 kern.err kernel: [ 13.288996] ath10k_pci 0000:00:00.0: [40]: 0x8098003A 0x004060BC 0x00400000 0x00400600
Mon Jun 19 22:14:42 2017 kern.err kernel: [ 13.297184] ath10k_pci 0000:00:00.0: [44]: 0x809607C1 0x004060EC 0xD8400100 0x004060FC
Mon Jun 19 22:14:42 2017 kern.err kernel: [ 13.305355] ath10k_pci 0000:00:00.0: [48]: 0x80960892 0x0040610C 0x00000000 0x00000008
Mon Jun 19 22:14:42 2017 kern.err kernel: [ 13.313537] ath10k_pci 0000:00:00.0: [52]: 0x80960E81 0x0040612C 0x00400000 0x00400600
Mon Jun 19 22:14:42 2017 kern.err kernel: [ 13.321727] ath10k_pci 0000:00:00.0: [56]: 0x80960EE5 0x0040614C 0x00000000 0x00400600
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 13.331919] ath10k_pci 0000:00:00.0: debug log header, dbuf: 0x96068c dropped: 4197376
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 13.341202] ath10k_pci 0000:00:00.0: [0] next: 0x0 buf: 0x0 sz: 0 len: 0 count: 0 free: 0
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 13.956246] ath10k_pci 0000:00:00.0: failed to receive control response completion, polling..
Mon Jun 19 22:14:42 2017 kern.err kernel: [ 14.956247] ath10k_pci 0000:00:00.0: ctl_resp never came in (-145)
Mon Jun 19 22:14:42 2017 kern.err kernel: [ 14.962641] ath10k_pci 0000:00:00.0: failed to connect to HTC: -145
Mon Jun 19 22:14:42 2017 kern.err kernel: [ 15.038127] ath10k_pci 0000:00:00.0: could not init core (-145)
Mon Jun 19 22:14:42 2017 kern.err kernel: [ 15.044446] ath10k_pci 0000:00:00.0: could not probe fw (-145)
Mon Jun 19 22:14:42 2017 kern.warn kernel: [ 15.056769] ath10k_pci 0000:00:00.0: cannot restart a device that hasn't been started
[...]
My firmware files:
# md5sum /lib/firmware/ath10k/QCA9888/hw2.0/* /lib/firmware/ath10k/cal-pci-0000:00:00.0.bin
287048d39009c5f50b2b72945faca9b2 /lib/firmware/ath10k/QCA9888/hw2.0/board-2.bin
e3b257736210b337642991a767fce60b /lib/firmware/ath10k/QCA9888/hw2.0/board.bin
459b18837e648f60c72f2c8aba87c435 /lib/firmware/ath10k/QCA9888/hw2.0/firmware-5.bin
6e0c51ec0144ce3678173239561ec8eb /lib/firmware/ath10k/cal-pci-0000:00:00.0.bin
maybe because i compiled lede with ct modules?
Thanks
Heinz
June 22, 2017, 2:37pm
11
Yes.I also tried ath10k-ct with qca8888-ct and get crash. On ath10k with kvalo firmware driver run OK but crashed when i try to connect.
Heinz
June 22, 2017, 9:02pm
12
OK WiFi 5GHZ AC is working correctly:
type command:
mkdir -p /lib/firmware/ath10k/QCA9888/hw2.0/
dd if=/dev/mtd6 of=/lib/firmware/ath10k/QCA9888/hw2.0/board.bin bs=1 skip=20480 count=12048
dd if=/dev/mtd6 of=/lib/firmware/ath10k/pre-cal-pci-0000:00:00.0.bin bs=1 skip=20480 count=12048
add firmware-5.bin from kvalo repository
reboot router
currently MAC address is not correct in this interface.
From what I can tell, the eeprom is 12064 bytes long, not 12048. For anyone still having trouble with this, please see if extracting a board.bin file that long helps...
It is true for me,
the 5GHz adapter works only if is run:
mkdir -p /lib/firmware/ath10k/QCA9888/hw2.0/
dd if=/dev/mtd6 of=/lib/firmware/ath10k/QCA9888/hw2.0/board.bin bs=1 skip=20480 count=12064
dd if=/dev/mtd6 of=/lib/firmware/ath10k/pre-cal-pci-0000:00:00.0.bin bs=1 skip=20480 count=12048
add firmware-5.bin from kvalo repository
Unfortunally it crash after a while
diizzy
June 23, 2017, 12:18pm
15
Using the -ct driver and removing board-2.bin and board.bin, running the commands above works fine here. I've transferred over 15G just fine. No need to replace the firmware.
Many thanks for those involved!
Heinz
June 23, 2017, 12:49pm
16
My fault. You have right!
diizzy
June 23, 2017, 1:14pm
17
tboege
September 8, 2017, 8:40am
18
I have tried the above link - and after correcting a little typo (look below for full instrukctions), 5GHz has works fine - but only for a limited time. So I reboot my router every night.
opkg update
opkg remove kmod-ath10k
opkg install ath10k-firmware-qca9888-ct kmod-ath10k-ct
rm /lib/firmware/ath10k/QCA9888/hw2.0/board.bin
rm /lib/firmware/ath10k/QCA9888/hw2.0/board-2.bin
dd if=/dev/mtd6 of=/lib/firmware/ath10k/QCA9888/hw2.0/board.bin bs=1 skip=20480 count=12064
dd if=/dev/mtd6 of=/lib/firmware/ath10k/pre-cal-pci-0000:00:00.0.bin bs=1 skip=20480 count=12048
tboege
November 6, 2017, 8:53pm
19
This issue has been fixed, I have testet with snapshot 2017-11-06, but maybe already in 17.01.4