ath10k + OpenWRT + ath10k firmware 10.2.2.60.14 - Crash

Kevin Dious Kevin.Dious at ubiqomm.com
Wed Jan 25 15:39:09 PST 2017


To whomever may can help,

I'm writing because I am having an issue with ath10k + OpenWRT + ath10k firmware 10.2.2.60.14.

Currently my company has a license to the AR9888 firmware.  We have version 10.2.2.60.14.  I know this is a rather old version but this is what we have access to for now.  We are able to build the firmware and we are working on making some custom firmware  changes.  I am working with OpenWRT 15.05 and a Compex WPJ344 board and a AR9888 802.11ac chip.

After building the firmware, I am left with several binaries including athwlan.bin and otp.bin.  I run the following command to use the firmware encoder to create the firmware binary:

qca-swiss-army-knife/tools/scripts/ath10k$ python ath10k-fwencoder -c --otp otp.bin --firmware athwlan.bin --set-fw-api 3 --set-wmi-op-version 10.2 --set-htt-op-version unset


I am using the ath10k-fwencoder script found here:
https://github.com/qca/qca-swiss-army-knife/blob/master/tools/scripts/ath10k/ath10k-fwencoder

I then copy the firmware to the correct location so that it is created when I build my OpenWRT image.  After I copy the device image to memory, I boot the device.  During bootup I see the following logs:




[   11.940000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[   11.950000] ath10k_pci 0000:00:00.0: pci irq legacy interrupts 0 irq_mode 0 reset_mode 0
[   12.170000] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/cal-pci-0000:00:00.0.bin failed with error -2
[   12.180000] ath10k_pci 0000:00:00.0: Falling back to user helper
[   12.270000] firmware ath10k!cal-pci-0000:00:00.0.bin: firmware_loading_store: map pages failed
[   12.280000] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/firmware-5.bin failed with error -2
[   12.290000] ath10k_pci 0000:00:00.0: Falling back to user helper
[   12.390000] firmware ath10k!QCA988X!hw2.0!firmware-5.bin: firmware_loading_store: map pages failed
[   12.400000] ath10k_pci 0000:00:00.0: could not fetch firmware file 'ath10k/QCA988X/hw2.0/firmware-5.bin': -11
[   12.410000] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/firmware-4.bin failed with error -2
[   12.420000] ath10k_pci 0000:00:00.0: Falling back to user helper
[   12.520000] firmware ath10k!QCA988X!hw2.0!firmware-4.bin: firmware_loading_store: map pages failed
[   12.530000] ath10k_pci 0000:00:00.0: could not fetch firmware file 'ath10k/QCA988X/hw2.0/firmware-4.bin': -11
[   12.540000] ath10k_pci 0000:00:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043222ff sub 0000:0000
[   12.550000] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[   12.570000] ath10k_pci 0000:00:00.0: firmware ver  api 3 features  crc32 167fdc70
[   12.600000] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
[   12.610000] ath10k_pci 0000:00:00.0: Falling back to user helper
[   12.700000] firmware ath10k!QCA988X!hw2.0!board-2.bin: firmware_loading_store: map pages failed
[   12.710000] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[   13.730000] ath10k_pci 0000:00:00.0: htt-ver 2.1 wmi-op 3 htt-op 2 cal otp max-sta 128 raw 0 hwcrypto 1

 And when I review the /etc/config/wireless once the bootup process is complete file I see that AR9888 shows up as a PCI card (radio0):
 

config wifi-device  radio0
        option type     mac80211
        option channel  36
        option hwmode   11a
        option path     'pci0000:00/0000:00:00.0'
        option htmode   VHT80
        # REMOVE THIS LINE TO ENABLE WIFI:
        option disabled 1


config wifi-iface
        option device   radio0
        option network  lan
        option mode     ap
        option ssid     OpenWrt
        option encryption none


config wifi-device  radio1
        option type     mac80211
        option channel  11
        option hwmode   11g
        option path     'platform/ar934x_wmac'
        option htmode   HT20
        # REMOVE THIS LINE TO ENABLE WIFI:
        option disabled 1


config wifi-iface
        option device   radio1
        option network  lan
        option mode     ap
        option ssid     OpenWrt
        option encryption none


However, when I try to enable the AR9888 card and boot it up (calling "eifi" at the command line) I get the following error.  The firmware crashes and the device tries to restart it again, and this continues forever.


I am not sure how to make sense of the firware crash dump there.  Has anyone seen anything like this before?  Or have any tips about how to interpret this firmware dump that ath10k gives?  I am happy to provide any additional requested details.  Thank you.



root at OpenWrt:/# [  114.440000] ath10k_pci 0000:00:00.0: failed to receive initialized event from target: 00000000
[  115.560000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  115.570000] device wlan0 entered promiscuous mode
[  115.730000] ath10k_pci 0000:00:00.0: no channel configured; ignoring frame(s)!
[  115.890000] br-lan: port 2(wlan0) entered forwarding state
[  115.900000] br-lan: port 2(wlan0) entered forwarding state
[  115.910000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  117.260000] ath10k_pci 0000:00:00.0: firmware crashed! (uuid a55a5b20-c144-4a53-be4e-916bbeb09686)
[  117.270000] ath10k_pci 0000:00:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043222ff sub 0000:0000
[  117.280000] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[  117.290000] ath10k_pci 0000:00:00.0: firmware ver 65.14.0.0 api 3 features  crc32 167fdc70
[  117.300000] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[  117.310000] ath10k_pci 0000:00:00.0: htt-ver 2.1 wmi-op 3 htt-op 2 cal otp max-sta 128 raw 0 hwcrypto 1
[  117.320000] ath10k_pci 0000:00:00.0: firmware register dump:
[  117.330000] ath10k_pci 0000:00:00.0: [00]: 0x4100016C 0x00000000 0x00414C64 0x00414C64
[  117.330000] ath10k_pci 0000:00:00.0: [04]: 0x00414C64 0x00060530 0x0000001F 0x00000001
[  117.340000] ath10k_pci 0000:00:00.0: [08]: 0x0040AE04 0x00400000 0x00000007 0x00000000
[  117.350000] ath10k_pci 0000:00:00.0: [12]: 0x00000002 0xFFFFFFFF 0x00958360 0x0095836B
[  117.360000] ath10k_pci 0000:00:00.0: [16]: 0x809B02B0 0x0040AD94 0x0040AE04 0x00400000
[  117.370000] ath10k_pci 0000:00:00.0: [20]: 0x00000000 0x00000000 0x00000000 0x0040F6A0
[  117.380000] ath10k_pci 0000:00:00.0: [24]: 0x809AF9C0 0x0040ADC4 0x00000001 0x0040AE04
[  117.380000] ath10k_pci 0000:00:00.0: [28]: 0x0041397C 0x00000001 0x0040AE08 0x00000002
[  117.390000] ath10k_pci 0000:00:00.0: [32]: 0x00000007 0x00000000 0x00000000 0x00413964
[  117.400000] ath10k_pci 0000:00:00.0: [36]: 0x809BD4EF 0x0040ADE4 0x00411B0C 0x00411B30
[  117.410000] ath10k_pci 0000:00:00.0: [40]: 0x00000001 0x00000000 0x00955A00 0x0040F6B0
[  117.420000] ath10k_pci 0000:00:00.0: [44]: 0x809BCD0C 0x0040AE04 0x00000001 0x00000000
[  117.420000] ath10k_pci 0000:00:00.0: [48]: 0x0040AE04 0x00000001 0x00413964 0x00411D50
[  117.430000] ath10k_pci 0000:00:00.0: [52]: 0x809BCA78 0x0040AEA4 0x0041F294 0x0041216C
[  117.440000] ath10k_pci 0000:00:00.0: [56]: 0x00413964 0x0040AE34 0x004124AC 0x004124AC
[  117.550000] ieee80211 phy0: Hardware restart was requested
[  117.900000] br-lan: port 2(wlan0) entered forwarding state
[  118.820000] ath10k_pci 0000:00:00.0: device successfully recovered
[  126.050000] device wlan0 left promiscuous mode
[  126.050000] br-lan: port 2(wlan0) entered disabled state
[  126.120000] ath10k_pci 0000:00:00.0: firmware crashed! (uuid f91615b9-9daa-4e2d-9295-7fa34a773157)
[  126.130000] ath10k_pci 0000:00:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043222ff sub 0000:0000
[  126.140000] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[  126.150000] ath10k_pci 0000:00:00.0: firmware ver 65.14.0.0 api 3 features  crc32 167fdc70
[  126.160000] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[  126.170000] ath10k_pci 0000:00:00.0: htt-ver 2.1 wmi-op 3 htt-op 2 cal otp max-sta 128 raw 0 hwcrypto 1
[  126.180000] ath10k_pci 0000:00:00.0: firmware register dump:
[  126.190000] ath10k_pci 0000:00:00.0: [00]: 0x4100016C 0x00000000 0x00414C64 0x00414C64
[  126.200000] ath10k_pci 0000:00:00.0: [04]: 0x00414C64 0x00060530 0x0000001F 0x00000001
[  126.200000] ath10k_pci 0000:00:00.0: [08]: 0x0040AE04 0x00400000 0x00000007 0x00000000
[  126.210000] ath10k_pci 0000:00:00.0: [12]: 0x00000002 0x00000000 0x00957F04 0x00957F12
[  126.220000] ath10k_pci 0000:00:00.0: [16]: 0x809B02B0 0x0040AD94 0x0040AE04 0x00400000
[  126.230000] ath10k_pci 0000:00:00.0: [20]: 0x00000000 0x00000000 0x00000000 0x0040F6A0
[  126.240000] ath10k_pci 0000:00:00.0: [24]: 0x809AF9C0 0x0040ADC4 0x00000001 0x0040AE04
[  126.240000] ath10k_pci 0000:00:00.0: [28]: 0x0041397C 0x00000001 0x0040AE08 0x00000002
[  126.250000] ath10k_pci 0000:00:00.0: [32]: 0x00000007 0x00000000 0x00000000 0x00413964
[  126.260000] ath10k_pci 0000:00:00.0: [36]: 0x809BD4EF 0x0040ADE4 0x00411B0C 0x00411B30
[  126.270000] ath10k_pci 0000:00:00.0: [40]: 0x00000001 0x00000000 0x00955A00 0x0040F6B0
[  126.280000] ath10k_pci 0000:00:00.0: [44]: 0x809BCD0C 0x0040AE04 0x00000001 0x00000000
[  126.280000] ath10k_pci 0000:00:00.0: [48]: 0x0040AE04 0x00000001 0x00413964 0x00411D50
[  126.290000] ath10k_pci 0000:00:00.0: [52]: 0x809BCA78 0x0040AEA4 0x0041F294 0x0041216C
[  126.300000] ath10k_pci 0000:00:00.0: [56]: 0x00413964 0x0040AE34 0x004124AC 0x004124AC
[  126.310000] ath10k_pci 0000:00:00.0: failed to flush transmit queue (skip 1 ar-state 1): 500
[  126.420000] ieee80211 phy0: Hardware restart was requested
[  126.420000] ath10k_pci 0000:00:00.0: failed to submit AP/IBSS self-peer removal on vdev 0: -143
[  126.430000] ath10k_pci 0000:00:00.0: failed to delete WMI vdev 0: -143
[  126.440000] ath10k_pci 0000:00:00.0: removing stale peer 04:f0:21:1a:7b:3d from vdev_id 0
[  128.080000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  128.090000] device wlan0 entered promiscuous mode
[  128.250000] ath10k_pci 0000:00:00.0: no channel configured; ignoring frame(s)!
[  128.410000] br-lan: port 2(wlan0) entered forwarding state
[  128.420000] br-lan: port 2(wlan0) entered forwarding state
[  128.420000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  130.420000] br-lan: port 2(wlan0) entered forwarding state
[  154.520000] ath10k_pci 0000:00:00.0: firmware crashed! (uuid a33b7858-5887-4ba9-9210-4ac3295bf196)
[  154.530000] ath10k_pci 0000:00:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043222ff sub 0000:0000
[  154.540000] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[  154.550000] ath10k_pci 0000:00:00.0: firmware ver 65.14.0.0 api 3 features  crc32 167fdc70
[  154.560000] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[  154.570000] ath10k_pci 0000:00:00.0: htt-ver 2.1 wmi-op 3 htt-op 2 cal otp max-sta 128 raw 0 hwcrypto 1
[  154.580000] ath10k_pci 0000:00:00.0: firmware register dump:
[  154.590000] ath10k_pci 0000:00:00.0: [00]: 0x4100016C 0x00000000 0x00414C64 0x00414C64
[  154.590000] ath10k_pci 0000:00:00.0: [04]: 0x00414C64 0x00060530 0x0000001F 0x00000001
[  154.600000] ath10k_pci 0000:00:00.0: [08]: 0x0040AE04 0x00400000 0x00000007 0x00000000
[  154.610000] ath10k_pci 0000:00:00.0: [12]: 0x00000002 0xFFFFFFFF 0x00958360 0x0095836B
[  154.620000] ath10k_pci 0000:00:00.0: [16]: 0x809B02B0 0x0040AD94 0x0040AE04 0x00400000
[  154.630000] ath10k_pci 0000:00:00.0: [20]: 0x00000000 0x00000000 0x00000000 0x0040F6A0
[  154.630000] ath10k_pci 0000:00:00.0: [24]: 0x809AF9C0 0x0040ADC4 0x00000001 0x0040AE04
[  154.640000] ath10k_pci 0000:00:00.0: [28]: 0x0041397C 0x00000001 0x0040AE08 0x00000002
[  154.650000] ath10k_pci 0000:00:00.0: [32]: 0x00000007 0x00000000 0x00000000 0x00413964
[  154.660000] ath10k_pci 0000:00:00.0: [36]: 0x809BD4EF 0x0040ADE4 0x00411B0C 0x00411B30
[  154.670000] ath10k_pci 0000:00:00.0: [40]: 0x00000001 0x00000000 0x00955A00 0x0040F6B0
[  154.670000] ath10k_pci 0000:00:00.0: [44]: 0x809BCD0C 0x0040AE04 0x00000001 0x00000000
[  154.680000] ath10k_pci 0000:00:00.0: [48]: 0x0040AE04 0x00000001 0x00413964 0x00411D50
[  154.690000] ath10k_pci 0000:00:00.0: [52]: 0x809BCA78 0x0040AEA4 0x0041F294 0x0041216C
[  154.700000] ath10k_pci 0000:00:00.0: [56]: 0x00413964 0x0040AE34 0x004124AC 0x004124AC
[  154.810000] ieee80211 phy0: Hardware restart was requested
[  156.070000] ath10k_pci 0000:00:00.0: device successfully recovered
[  157.710000] ath10k_pci 0000:00:00.0: firmware crashed! (uuid 2a52de2f-f701-4a1e-86c5-30ff75995af5)
[  157.720000] ath10k_pci 0000:00:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043222ff sub 0000:0000
[  157.730000] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[  157.740000] ath10k_pci 0000:00:00.0: firmware ver 65.14.0.0 api 3 features  crc32 167fdc70
[  157.750000] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[  157.760000] ath10k_pci 0000:00:00.0: htt-ver 2.1 wmi-op 3 htt-op 2 cal otp max-sta 128 raw 0 hwcrypto 1
[  157.770000] ath10k_pci 0000:00:00.0: firmware register dump:
[  157.780000] ath10k_pci 0000:00:00.0: [00]: 0x4100016C 0x00000000 0x00414C64 0x00414C64
[  157.780000] ath10k_pci 0000:00:00.0: [04]: 0x00414C64 0x00060530 0x0000001F 0x00000001
[  157.790000] ath10k_pci 0000:00:00.0: [08]: 0x0040AE04 0x00400000 0x00000007 0x00000000
[  157.800000] ath10k_pci 0000:00:00.0: [12]: 0x00000002 0x00000000 0x00957F04 0x00957F12
[  157.810000] ath10k_pci 0000:00:00.0: [16]: 0x809B02B0 0x0040AD94 0x0040AE04 0x00400000
[  157.820000] ath10k_pci 0000:00:00.0: [20]: 0x00000000 0x00000000 0x00000000 0x0040F6A0
[  157.820000] ath10k_pci 0000:00:00.0: [24]: 0x809AF9C0 0x0040ADC4 0x00000001 0x0040AE04
[  157.830000] ath10k_pci 0000:00:00.0: [28]: 0x0041397C 0x00000001 0x0040AE08 0x00000002
[  157.840000] ath10k_pci 0000:00:00.0: [32]: 0x00000007 0x00000000 0x00000000 0x00413964
[  157.850000] ath10k_pci 0000:00:00.0: [36]: 0x809BD4EF 0x0040ADE4 0x00411B0C 0x00411B30
[  157.860000] ath10k_pci 0000:00:00.0: [40]: 0x00000001 0x00000000 0x00955A00 0x0040F6B0
[  157.860000] ath10k_pci 0000:00:00.0: [44]: 0x809BCD0C 0x0040AE04 0x00000001 0x00000000
[  157.870000] ath10k_pci 0000:00:00.0: [48]: 0x0040AE04 0x00000001 0x00413964 0x00411D50
[  157.880000] ath10k_pci 0000:00:00.0: [52]: 0x809BCA78 0x0040AEA4 0x0041F294 0x0041216C
[  157.890000] ath10k_pci 0000:00:00.0: [56]: 0x00413964 0x0040AE34 0x004124AC 0x004124AC
[  158.000000] ieee80211 phy0: Hardware restart was requested
[  159.260000] ath10k_pci 0000:00:00.0: device successfully recovered





      


More information about the ath10k mailing list