Closed Zer0- closed 6 years ago
Clearly, Ubuntu uses firmware 10.2.4.70.9
and it works, while NixOS uses firmware 10.2.4.70.63
and it crashes. Could you try reverting 8ba0b7bc3b7a0c359aced533295862e3b92ac9e8? (You can regain WiFi on NixOS with nixos-rebuild --rollback
.)
Commit 8ba0b7b is not on the branch release-17.09 so I could not revert it. I did however cherry pick it to that branch and now I have a wifi interface. My dmesg now:
[ 37.102096] ath10k_pci 0000:02:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[ 37.381527] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:02:00.0.bin failed with error -2
[ 37.381546] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/cal-pci-0000:02:00.0.bin failed with error -2
[ 37.449812] ath10k_pci 0000:02:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043222ff sub 0000:0000
[ 37.449814] ath10k_pci 0000:02:00.0: kconfig debug 0 debugfs 0 tracing 0 dfs 0 testmode 0
[ 37.449957] ath10k_pci 0000:02:00.0: firmware ver 10.2.4.70.54 api 5 features no-p2p,raw-mode,mfp crc32 9d340dd9
[ 37.490065] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
[ 37.502760] ath10k_pci 0000:02:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[ 38.637293] ath10k_pci 0000:02:00.0: htt-ver 2.1 wmi-op 5 htt-op 2 cal otp max-sta 128 raw 0 hwcrypto 1
[ 38.755061] ath10k_pci 0000:02:00.0 wlp2s0: renamed from wlan0
So that commit is actually a fix. Should I open a PR to cherry pick it to 17.09?
@bendlas @fpletz Let's cherry pick 8ba0b7bc3b7a0c359aced533295862e3b92ac9e8 into the release?
It's interesting that the firmware version 10.2.4.70.54
is now smaller than before, maybe the upstream has realized that the newer version crashes…
Let's cherry pick 8ba0b7b into the release?
Yeah keeping linux drivers up-to-date for stable makes sense, since they tend to break with kernel releases. Regarding the changed update process: I tried to mimic what had been in place so, for equal driver versions, there shouldn't be any difference in what we deliver. IMO we can backport it to stable, so that @wkennington and @fpletz are freed from the burden of maintaining that merged repository.
Backported. Thank you!
Mine stopped working (again, from november) with the same error.
I'm on 19.03pre168781.929cc78363e (Koi)
[ 557.853539] ath10k_pci 0000:02:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[ 558.064795] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:02:00.0.bin failed with error -2
[ 558.064804] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/cal-pci-0000:02:00.0.bin failed with error -2
[ 558.064983] ath10k_pci 0000:02:00.0: qca9377 hw1.0 target 0x05020000 chip_id 0x003820ff sub 17aa:4035
[ 558.064985] ath10k_pci 0000:02:00.0: kconfig debug 0 debugfs 0 tracing 0 dfs 0 testmode 0
[ 558.065518] ath10k_pci 0000:02:00.0: firmware ver WLAN.TF.2.1-00021-QCARMSWP-1 api 6 features wowlan,ignore-otp crc32 42e41877
Same error (wifi device disappeared) after switching on nixos-18.09.2337.5d972dd2c94 and Linux kernel 4.14.111
@srghma Can you reproduce this on 19.03? We have updated to the most recent firmware-unfree release there
@bendlas tnx, I confirm that updating to 19.03 and linux kernel to 4.19.34 helped
Issue description
I have a pci-e wireless aetheros card with a QCA9882 chipset. I used to use it to serve up a wireless AP with hostapd. It would only work in 2.4Ghz but suddenly it stopped working completely under NixOS. I don't know what changed.
ifconfig -a
andiwconfig
both don't list any wireless devices (see below).However when I booted up a Ubuntu liveusb I was able to use nmcli to connect to and access point and ping Google (with ethernet physically unplugged). So I'm pretty sure this is not a hardware issue.
ifconfig -a output (NixOS)
iwconfig output (NixOS)
dmesg | grep ath10k
output (NixOS)ifconfig output (Ubuntu)
iwconfig output (Ubuntu)
dmesg | grep ath10k
output (Ubuntu)My hardware-configuration.nix
I can provide more information, but do not know what to include. I'd like to mention that I have tried to boot a NixOS entry (from grub) from a date I know for sure my wifi worked and this did not work.
EDIT - Additional information
I booted up a live usb of
nixos-minimal-17.03.1463.81fceb2554-x86_64-linux.iso
which correctly showed my device as wlp2s0.I also booted up
nixos-minimal-17.09.2034.78eed74497-x86_64-linux.iso
which did not work.I remain hopeful that this is a regression and there could be a fix.
Steps to reproduce
If you have the same hardware try using wifi with NixOS and Ubunutu. That device will not be usable in NixOS.
Technical details
System: (NixOS:
nixos-version
, Ubuntu/Fedora:lsb_release -a
, ...)Nix version: (run
nix-env --version
)Nixpkgs version: (run
nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion
)Sandboxing enabled: (run
grep build-use-sandbox /etc/nix/nix.conf
)