Установка драйвера Qualcomm Atheros QCA9565/ AR9565 для Ubuntu 12.04 (DELL Inspiron 3521)
Недавно приобрел DELL Inspiron 3521. Ноут поставляется с предустановленной Ubuntu 12.04 LTS.
При обновлении с 12.04 до 12.04.3 возникает ошибка во время установки пакета wifi драйвера oem-wireless-ath9k-3.9-rc4-2-dkms. После перезагрузки само собой перестаёт работать wifi адаптер.
Проверял следующи образом, в терминале (CTRL+ALT+T):
Получите сообщение о сетевых адаптерах присутствующих в ноуте, и если там присутствует следующая запись, то скорее всегоу вас схожая проблема:
*-network UNCLAIMED
description: Network controller
product: QCA9565 / AR9565 Wireless Network Adapter
vendor: Qualcomm Atheros
Победить это можно следующим образом:
по следующей ссылке https://www.kernel.org/pub/linux/ker. kports/stable/ скачиваете и распаковываете compat-drivers-3.9-rc4-2-s.tar.bz2
в терминале переходите в распакованную папку и выполняете:
sudo make clean
sudo ./scripts/driver-select ath9k
sudo make
Скорее всего получите ошибку переопределения функции
error: redefinition of ‘kref_get_unless_zero’
include/linux/kref.h:47:32: note: previous definition of ‘kref_get_unless_zero’ was here
В этом случае находите файлик compat-3.8.h в распакованной папке (лучше при помощи поиска 🙂 ), открываете его любимым редактором, находите и комментите следующие строки:
static inline int __must_check kref_get_unless_zero(struct kref *kref)
return atomic_add_unless(&kref->refcount, 1, 0);
>
далее опять запускаем компиляцию, устанавливаем и закрываем терминал:
sudo make
sudo make install
exit
после перезагрузки Qualcomm Atheros QCA9565/ AR9565 должна заработать.
P.S. в случае если компилятор ругнётся на какую либо более другую функцию, то закомментите её определение в соответствующем *.h файле.
P.P.S. также прекрасно пашет драйвер из пакета compat-wireless-3.6.6-1-snpc.tar.bz2, только действия с заголовочным файлом придётся повторить. Кстати именно этот пакет советуют юзать на ubuntu ask в случае 12.04 LTS
How can I get my qualcom wifi adapater working on Ubuntu 20.10?
Laptop is DELL XPS 17, this does not appear to be the Atheros controller frequently mentioned on this site. I do have a RJ45 dongle that works, so I can download what is necessary. Bleeding edge hardware and linux. 🙁
sudo lshw -C network *-network UNCLAIMED description: Network controller product: Qualcomm vendor: Qualcomm physical id: 0 bus info: pci@0000:04:00.0 version: 01 width: 64 bits clock: 33MHz capabilities: pm msi pciexpress cap_list configuration: latency=0 resources: memory:d2100000-d21fffff
04:00.0 Network controller [0280]: Qualcomm Device [17cb:1101] (rev 01) Subsystem: Bigfoot Networks, Inc. Device [1a56:a501] 05:00.0 PCI bridge [0604]: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] [8086:15ea] (rev 06) Kernel driver in use: pcieport
No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.10 Release: 20.10 Codename: groovy
jjs@atx$ sudo apt upgrade Reading package lists. Done Building dependency tree
Reading state information. Done Calculating upgrade. Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. jjs@atx$ uname -r 5.8.0-50-generic It just stalls. Just sitting here. Htop shows no CPU activity. jjs@atx$ sudo ubuntu-mainline-kernel.sh -i Finding latest version available on kernel.ubuntu.com Latest version is: v5.11.15, continue? (y/N)
Will download 6 files from kernel.ubuntu.com: Downloading amd64/linux-headers-5.11.15-051115 generic_5.11.15-051115.202104161034_amd64.deb: 100% Downloading amd64/linux-headers-5.11.15-051115_5.11.15-051115.202104161034_all.deb: 100% Downloading amd64/linux-image-unsigned-5.11.15-051115-generic_5.11.15-051115.202104161034_amd64.deb: 100% Downloading amd64/linux-modules-5.11.15-051115-generic_5.11.15-051115.202104161034_amd64.deb: 100% Downloading amd64/CHECKSUMS: 100% Downloading amd64/CHECKSUMS.gpg: 100% Importing kernel-ppa gpg key ok Signature of checksum file has been successfully verified Checksums of deb files have been successfully verified with sha256sum Installing 4 packages
Now it is just stalled, it sits there, htop shows no CPU for process. Laptop is DELL XPS 17, this does not appear to be the Atheros controller frequently mentioned on this site. I do have a RJ45 dongle that works, so I can download what is necessary. Bleeding edge hardware and linux. 🙁
sudo lshw -C network *-network UNCLAIMED description: Network controller product: Qualcomm vendor: Qualcomm physical id: 0 bus info: pci@0000:04:00.0 version: 01 width: 64 bits clock: 33MHz capabilities: pm msi pciexpress cap_list configuration: latency=0 resources: memory:d2100000-d21fffff
04:00.0 Network controller [0280]: Qualcomm Device [17cb:1101] (rev 01) Subsystem: Bigfoot Networks, Inc. Device [1a56:a501] 05:00.0 PCI bridge [0604]: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] [8086:15ea] (rev 06) Kernel driver in use: pcieport
No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.10 Release: 20.10 Codename: groovy
jjs@atx$ sudo apt upgrade Reading package lists. Done Building dependency tree
Reading state information. Done Calculating upgrade. Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. jjs@atx$ uname -r 5.8.0-50-generic per https://www.how2shout.com/linux/how-to-install-linux-kernel-5-10-on-ubuntu-20-04-lts/ jjs@atx$ sudo ubuntu-mainline-kernel.sh -i Finding latest version available on kernel.ubuntu.com Latest version is: v5.11.15, continue? (y/N)
Will download 6 files from kernel.ubuntu.com: Downloading amd64/linux-headers-5.11.15-051115 generic_5.11.15-051115.202104161034_amd64.deb: 100% Downloading amd64/linux-headers-5.11.15-051115_5.11.15-051115.202104161034_all.deb: 100% Downloading amd64/linux-image-unsigned-5.11.15-051115-generic_5.11.15-051115.202104161034_amd64.deb: 100% Downloading amd64/linux-modules-5.11.15-051115-generic_5.11.15-051115.202104161034_amd64.deb: 100% Downloading amd64/CHECKSUMS: 100% Downloading amd64/CHECKSUMS.gpg: 100% Importing kernel-ppa gpg key ok Signature of checksum file has been successfully verified Checksums of deb files have been successfully verified with sha256sum Installing 4 packages
Now it is just stalled, it sits there, htop shows no CPU for process. Ran again and it completed. Rebooted and got:
error: /vmlinuz-5.11.15-051115-generic has invalid signature. error: you need to load the kernel first.
description: Network controller product: Qualcomm vendor: Qualcomm physical id: 0 bus info: pci@0000:04:00.0 version: 01 width: 64 bits clock: 33MHz capabilities: pm msi pciexpress bus_master cap_list configuration: driver=ath11k_pci latency=0 resources: irq:196 memory:d2100000-d21fffff
04:00.0 Network controller: Qualcomm Device [17cb:1101] (rev 01) Subsystem: Bigfoot Networks, Inc. Device [1a56:a501] Kernel driver in use: ath11k_pci Kernel modules: ath11k_pci
No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.10 Release: 20.10 Codename: groovy
How to install Qualcomm Atheros AR9565 wireless drivers?
I purchased an HP laptop with the Qualcomm Atheros AR9565 (QCWB335) wireless adapter. I understand that this adapter is currently not supported on Ubuntu 12.04 and there is no way to get wireless access. I installed compat-wireless-3.6.6-1 ath9k driver and it didn’t work, lshw -C network still showed *-network UNCLAIMED after reset. How can I figure out when Ubuntu will have driver for AR9565? Is there a workaround to get wireless working somehow?
6 Answers 6
The files with extra letters, in this case snpc, are pre-patched to add newer devices and, sometimes, features. Yours is a good example.
This worked. After installing the updated Ubuntu driver, my wireless adapter appeared, but was hardware disabled. I had to install Windows 7 in a side partition and get the Wireless working there first. Then, after I booted into Ubuntu, wireless was working.
Very glad it’s working. Don’t forget to re-compile after a later kernel version is installed by Update Manager.
Here’s one way to solve this. I myself had the same problem as mentioned here. I followed two posts on ubuntuforum by anoop-n2 and chili555, and kind of did a mix of things, which can be outlined as follows:
You need to have linux-headers-generic and build-essential installed, try
sudo apt-get install linux-headers-generic build-essential
which will turn out to be of the newest version if those are already there.
The following should be done in a terminal as root:
sudo -i wget https://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.9-rc4/compat-drivers-3.9-rc4-2-s.tar.bz2 tar xvf compat-drivers-3.9-rc4-2-s.tar.bz2 cd compat-drivers-3.9-rc4-2-s/ ./scripts/driver-select ath9k make
Now this will probably give the following error:
error: redefinition of ‘kref_get_unless_zero’ include/linux/kref.h:47:32: note: previous definition of ‘kref_get_unless_zero’ was here
In this case, open the header file, and find the entire block of the function:
static inline int __must_check kref_get_unless_zero(struct kref *kref) < return atomic_add_unless(&kref->refcount, 1, 0); >
Next comment out the entire block of the function using line comment (put // in front of each line) or block comment in c as,
/*static inline int __must_check kref_get_unless_zero(struct kref *kref) < return atomic_add_unless(&kref->refcount, 1, 0); >*/
then type the following commands one by one:
Then load the driver using
or reboot the system. Afterwards the wifi should be working.
This really worked! I had the same problem when installing Ubuntu 15.10 on my Dell Inspiron 20. It wouldn’t connect to the WiFi because it held the old broken packages which were the residue of the Ubuntu 14.10 i had. Therefore, it failed. But this fixed it well!! +1 from me!
I’m trying this approach with my Asus R510Z, and this error shows up during make: «ERROR: compat-drivers by default supports kernels >= 2.6.24, try enabling only one driver though» Wondering what’s the solution?
The compat-wireless package will probably require adding your pci.id to the pci.c file as well as some other changes, similar to this: http://ubuntuforums.org/showpost.php?p=12201881&postcount=35
Did you do that? Learn your pc.id with:
There may be a version of compat-wireless that includes your device. If you’ll post the details, we’ll be happy to assist you.
I did not make any custom modifications to the code yet. I’m guessing the pci.id for my device is 36 from 0a:00.0 Network controller [0280]: Atheros Communications Inc. Device [168c:0036] (rev 01) . It is currently not in the ath_pci_id_table. I’ll try to add it and see what happens.
After adding 36, the wireless is still not working as before. It is still UNCLAIMED . The only change I see is that the wireless light is always red on my laptop (off). I cannot make it white by pressing Fn-F12. However, doing sudo rfkill list all shows that nothing is blocked.
I was able to fix this issue by running the following commands.
sudo apt-get autoclean sudo apt-get update sudo apt-get dist-upgrade
What I found that this upgrades the kernel from 3.2.0.56-generic to 3.2.0.57-generic.
I would try to use Linux Mint, as I was having problems with this chip-set also in my Debian dist. One of the people suggested Mint and it came up working on the first install, not just wifi, but all the communication stuff. Maybe time to switch distro’s!
I did resolve my problems with a backport and now that it’s installed I have no problems with the AR9565 set. Might look at available backports to see if there is a hint about support there.
It is cheap to download and burn a DVD with Mint live on it to just boot and see if it’s supported, instead of banging your head. I’m confident that it will support yours, because it supports mine! Also, anyone you speak with will understand that the chip-set is supported somewhere in the Linux world and not spend half of your time debating if it’s supported or not. Plus it’s nice warm willies to have it come up and work after all the work you put into it!