New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loading additional ath10k firmware #6
Comments
Currently, injection of any kind of extension over the prepackaged contents is a bit laborious but not impossible effort. Please study the # mount -o remount,rw /
# apk update
fetch http://dl-cdn.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz
v3.15.0-161-g8cb73c5080 [http://dl-cdn.alpinelinux.org/alpine/v3.15/main]
OK: 4809 distinct packages available
# apk add linux-firmware-ath10k
(1/1) Installing linux-firmware-ath10k (20211027-r0)
1 error; 323 MiB in 72 packages
# ls -lh /lib/firmware/ath10k/
total 36K
drwxr-xr-x 3 root root 4.0K Dec 31 10:24 QCA4019
drwxr-xr-x 4 root root 4.0K Dec 31 10:24 QCA6174
drwxr-xr-x 3 root root 4.0K Dec 31 10:24 QCA9377
drwxr-xr-x 3 root root 4.0K Dec 31 10:24 QCA9887
drwxr-xr-x 3 root root 4.0K Dec 31 10:24 QCA9888
drwxr-xr-x 3 root root 4.0K Dec 31 10:24 QCA988X
drwxr-xr-x 3 root root 4.0K Dec 31 10:24 QCA9984
drwxr-xr-x 3 root root 4.0K Dec 31 10:24 QCA99X0
drwxr-xr-x 3 root root 4.0K Dec 31 10:24 WCN3990
wifibox:~# ls -lh /lib/firmware/ath10k/QCA6174/
total 8K
drwxr-xr-x 2 root root 4.0K Dec 31 10:24 hw2.1
drwxr-xr-x 2 root root 4.0K Dec 31 10:24 hw3.0
wifibox:~# ls -lh /lib/firmware/ath10k/QCA6174/hw3.0/
total 3M
-rw-r--r-- 1 root root 618.5K Oct 29 08:09 board-2.bin
-rw-r--r-- 1 root root 7.9K Oct 29 08:09 board.bin
-rw-r--r-- 1 root root 716.6K Oct 29 08:09 firmware-4.bin
-rw-r--r-- 1 root root 686.4K Oct 29 08:09 firmware-6.bin
-rw-r--r-- 1 root root 590.3K Oct 29 08:09 firmware-sdio-6.bin And then restart the guest. Please let me know if that solved the problem for you, so I could include this package in the next virtual machine image. |
Yeah, it'd be fun if I could get the image to get any sort of connection to a WiFi AP, but that's the problem. I need the additional / updated firmware in order to connect to a WiFi AP to begin with...... |
Aw, yes, you are absolutely right! :-D Sorry that I completely forgot to consider this possibility. But I was also under the assumption that you were still able to connect the wifibox guest to the Internet. But fear not, let me try to help you out with a workaround. The guest shares its # cd /var/run/wifibox/appliance/cache/apk/
# curl -O https://dl-cdn.alpinelinux.org/alpine/v3.15/main/x86_64/linux-firmware-ath10k-20211027-r0.apk
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7558k 100 7558k 0 0 2703k 0 0:00:02 0:00:02 --:--:-- 2704k Then, on the guest: # mount -o remount,rw /
# apk add --no-network /var/cache/apk/linux-firmware-ath10k-20211027-r0.apk
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.15/main: No such file or directory
1 error; 323 MiB in 72 packages |
It is indeed a chicken-vs-egg-vs-chicken situation. |
You sir, are a genius. You have my many thanks! |
Thank you too for testing. I am glad that my hints worked. Could you please give me the model of your notebook so I could include it in the compatibility table? Is this a notebook? Regarding I did not see a reason to set a default password for the |
Dell XPS 9380 --- WiFi NIC = QCA6174, and printed onto the actual device is "Killer 1435-S" & "QCNFA324". As for the password-less A bit of advice for the man page I can offer, is to include the following instructions particularly for laptop users:
This drastically reduces boot times, so you aren't sitting around for 30+ seconds waiting for a positive link & issuing of an IP. Obviously this only makes sense for those who launch |
Thanks for the all resourceful comments and the information for the compatibility table! I created a separate issue for the advice about the man page, as well as another issue for adding the missing firmware package. That said, would you mind if I closed this issue? |
Go right ahead! I consider this issue fully remedied & very useful to add to the knowledge base. I do have a new issue, potentially, still doing some extra tests to see what the cause could be... But I'll start a new issue for it because it is totally unrelated to adding additional essential firmware to the Alpine Linux VM image. |
Okay, great. |
Does this approach still work? On guest:
In other words: firmware is required;
|
Problem between chair and keyboard, never mind. |
I am having trouble with a requirement for additional firmware.
The Alpine Linux image that you provide with this deployment apparently requires additional Ath10K firmware in order to get the onboard wireless NIC correctly initialized. From the handy included console, the Linux kernel complains about missing firmware. How does one go about 'injecting' additional Atheros firmware into the provided
freebsd-wifibox-appliance.snapshot-<n>.img
?In case it helps:
The WiFi chip in question is a QCA6174, as reported by both FreeBSD & Linux, although printed on the actual hardware itself it says it is a QCNFA-324 device.
The firmware that gets loaded by Arch Linux for this chip appears to be:
https://github.com/kvalo/ath10k-firmware/blob/master/QCA6174/hw3.0/4.4.1/firmware-6.bin_WLAN.RM.4.4.1-00157-QCARMSWPZ-1
Any pointers on how to get this done would be greatly appreciated.
The text was updated successfully, but these errors were encountered: