QCA6164 in Fedora

Michal Kazior michal.kazior at tieto.com
Thu Sep 3 22:08:24 PDT 2015


On 4 September 2015 at 03:02, Susi Lehtola
<jussilehtola at fedoraproject.org> wrote:
> Hello people,
>
>
> I recently bought a Lenovo U31 laptop for work, and was surprised wireless
> didn't work out of the box.
>
> Fortunately thanks to you the card (supposedly) works in linux, but I have
> yet to get mine to work.
>
> I've patched the Fedora 4.1.6 kernel
>  https://bugzilla.redhat.com/attachment.cgi?id=1069561&action=diff
> to add support for the card, which I adapted from
>  https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1436940
>
> However, I'm having trouble loading the firmware. I took the firmware files
> from
>
> https://github.com/atondwal/ath10k-firmware/commit/88fca85ef59d708b9874e5b7885416b58aef9ee7
> and installed them into /lib/firmware/ath10k/QCA6174/hw2.1/, renaming
> firmare-5.bin to firmware-4.bin.

FYI This is asking for problems. You can't just go around renaming
firmware files like that. There's a reason why there are different
numbers in the filename.


>
> I also have added the necessary kernel option
>
> $ cat /etc/modprobe.d/ath10k.conf
> options ath10k_core skip_otp=y
>
> After these changes, the kernel does detect the card, but it fails to load
> the firmware.
>
> [10967.516277] ath10k_pci 0000:03:00.0: Direct firmware load for
> ath10k/cal-pci-0000:03:00.0.bin failed with error -2
> [10968.660851] ath10k_pci 0000:03:00.0: firmware crashed! (uuid
> 47cbe9a4-5fcd-41ae-b8ff-91e93702d083)
> [10968.660862] ath10k_pci 0000:03:00.0: qca6174 hw2.1 (0x05010000,
> 0x003405ff) fw atheros-12.0.0.102-fw api 4 htt 0.0 wmi 4 cal otp max_sta 32
> [10968.660865] ath10k_pci 0000:03:00.0: debug 0 debugfs 1 tracing 0 dfs 0
> testmode 0
> [10968.662882] ath10k_pci 0000:03:00.0: firmware register dump:
> [10968.662884] ath10k_pci 0000:03:00.0: [00]: 0x05010000 0x000015B3
> 0x000A012D 0x00955B31
> [10968.662886] ath10k_pci 0000:03:00.0: [04]: 0x000A012D 0x00060330
> 0x00000016 0x8C605006
> [10968.662888] ath10k_pci 0000:03:00.0: [08]: 0x00000000 0x00400000
> 0x00400600 0x00000001
> [10968.662890] ath10k_pci 0000:03:00.0: [12]: 0x00000009 0x00000000
> 0x00931C61 0x00931C7D
> [10968.662892] ath10k_pci 0000:03:00.0: [16]: 0x0096BDBC 0x0097F8C6
> 0x00000000 0x00000000
> [10968.662894] ath10k_pci 0000:03:00.0: [20]: 0x400A012D 0x0040E2B0
> 0x00955A00 0x00404590
> [10968.662896] ath10k_pci 0000:03:00.0: [24]: 0x809287D9 0x0040E310
> 0x7A508BF8 0xC00A012D
> [10968.662898] ath10k_pci 0000:03:00.0: [28]: 0x809288D7 0x0040E340
> 0x00000000 0xFFF08040
> [10968.662899] ath10k_pci 0000:03:00.0: [32]: 0x809290FE 0x0040E360
> 0x00400000 0x00400600
> [10968.662901] ath10k_pci 0000:03:00.0: [36]: 0x80929205 0x0040E380
> 0x00000000 0x00400600
> [10968.662903] ath10k_pci 0000:03:00.0: [40]: 0x40928024 0x0040E3B0
> 0x0040D3D0 0x0040D3D0
> [10968.662905] ath10k_pci 0000:03:00.0: [44]: 0x00000000 0x0040E3D0
> 0x009BB001 0x00040020
> [10968.662907] ath10k_pci 0000:03:00.0: [48]: 0x00401BF0 0x00000001
> 0x00404B9C 0x00400000
> [10968.662909] ath10k_pci 0000:03:00.0: [52]: 0x40928024 0x0040E3B0
> 0x0040D3D0 0x0040D3D0
> [10968.662910] ath10k_pci 0000:03:00.0: [56]: 0x51196000 0xEAB3E3DF
> 0x36E760CE 0xE34A47DC
> [10969.660666] ath10k_pci 0000:03:00.0: failed to receive control response
> completion, polling..
>
> The card in question is
> 03:00.0 Network controller [0280]: Qualcomm Atheros Device [168c:0041] (rev
> 20)
>
> What might be the problem?

You're surely using wrong board.bin. The qca6164 will not work with
the board.bin for qca6174.

The board.bin problem is currently being addressed. In the meantime
you need to get an adequate eeprom_* file from windows driver and put
it as hw2.1/board.bin. You'll need to look into .inf file from the
windows driver and output of `lspci -vvnn` to understand which eeprom
file suits your device.


Michał



More information about the ath10k mailing list