You are not logged in.

#1 2018-01-08 19:06:47

catnap
Member
Registered: 2016-10-03
Posts: 131

[SOLVED] Kernel issues with Qualcomm Atheros QCA9377

I recently installed the Arch Linux system to my new Lenovo Thinkpad laptop computer. The wireless network adapter that the computer uses is Qualcomm Atheros QCA9377. It seems that the drivers of this network adapter are not supported by the default kernel of Arch Linux but that the support can be enabled with a suitable patch. I'm currently trying to create a package based on https://github.com/ajaybhatia/Qualcomm- … Wifi-Linux and to install it. However, when I try to create the package with makepkg -i, I encounter the following message

/-----------------
| Your kerne headers are incomplete/not installed.
| Please install kernel headers, including a .config
| file or use the KLIB/KLIB_BUILD make variables to
| set the kernel to build against, e.g.
|   make KLIB=/lib/modules/3.1.7
| to compile install for the installed kernel 3.1.7
| (that isn't currently running.)
\------------------

Running the script qca9377_hw1.1_for_linux_4.4-rc2.sh does not help because the script seems to only reboot my computer without taking any effect on the kernel. With the package comes the file qca9377_hw1.1_for_linux_4.4-rc2.patch which probably should be applied on the kernel directly if I only knew how to accomplish this. Could you please point me to a way to apply the patch succesfully?

Last edited by catnap (2018-01-08 23:37:32)

Offline

#2 2018-01-08 19:11:47

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,784
Website

Re: [SOLVED] Kernel issues with Qualcomm Atheros QCA9377

Have you installed the headers for your kernel?

Post the output of

uname -a
pacman -Qs headers

Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2018-01-08 19:32:27

catnap
Member
Registered: 2016-10-03
Posts: 131

Re: [SOLVED] Kernel issues with Qualcomm Atheros QCA9377

WorMzy wrote:

Have you installed the headers for your kernel?

I have not installed them explicitly. It could be that they have been installed as a side effect of something else that I have installed before.

The outputs of the two commands are as follows. It looks like some sanitized headers have been installed.

$ uname -a
Linux terimpil 4.14.11-1-ARCH #1 SMP PREEMPT Wed Jan 3 7:02:42 UTC 2018 x86_64 GNU/Linux
$ pacman -Qs headers
local/acl 2.2.52-4
     Access control list utilities, libraries and headers
local/libcups 2.2.6-1
     The CUPS Printing System - client libraries and headers
local/linux-api-headers 4.12.7-1
     Kernel headers sanitized for use in userspace
local/xproto 7.0.31-1
     X11 core wire protocol and auxiliary headers

Offline

#4 2018-01-08 19:43:06

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,784
Website

Re: [SOLVED] Kernel issues with Qualcomm Atheros QCA9377

It's not the api headers you need for this, install linux-headers.

https://wiki.archlinux.org/index.php/Co … nel_module

EDIT: Ignore that, it's more about compiling modules from the kernel source tree.

Last edited by WorMzy (2018-01-08 19:44:49)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2018-01-08 19:58:21

catnap
Member
Registered: 2016-10-03
Posts: 131

Re: [SOLVED] Kernel issues with Qualcomm Atheros QCA9377

Installing the suggested package made some headway because the error message posted above did not appear after the install and the build process started. However, I wonder if the kernel version is compatible with the package. The build process stops with several error messages.

Part of the output can be found in https://ptpb.pw/UXov but the contents do not include error messages because they seem to have gone to a separate error output stream.

EDIT: The complete output can be found at
https://ptpb.pw/sFkK

Last edited by catnap (2018-01-08 20:05:10)

Offline

#6 2018-01-08 20:03:32

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: [SOLVED] Kernel issues with Qualcomm Atheros QCA9377

Is the QCA9377 not supported by ath10k_pci?
edit:
ath10k_pci not ath10_pci

Last edited by loqs (2018-01-08 20:04:06)

Offline

#7 2018-01-08 20:16:21

catnap
Member
Registered: 2016-10-03
Posts: 131

Re: [SOLVED] Kernel issues with Qualcomm Atheros QCA9377

loqs wrote:

Is the QCA9377 not supported by ath10k_pci?

These drivers do not seem to be directly available from the Arch Linux repository. Therefore, I'm trying to
install the suitable drivers from the packages that are available on GitHub.

Offline

#8 2018-01-08 20:20:06

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: [SOLVED] Kernel issues with Qualcomm Atheros QCA9377

$ pacman -Fl linux | grep ath10k
linux usr/lib/modules/4.14.12-1-ARCH/kernel/drivers/net/wireless/ath/ath10k/
linux usr/lib/modules/4.14.12-1-ARCH/kernel/drivers/net/wireless/ath/ath10k/ath10k_core.ko.xz
linux usr/lib/modules/4.14.12-1-ARCH/kernel/drivers/net/wireless/ath/ath10k/ath10k_pci.ko.xz
linux usr/lib/modules/4.14.12-1-ARCH/kernel/drivers/net/wireless/ath/ath10k/ath10k_sdio.ko.xz
linux usr/lib/modules/4.14.12-1-ARCH/kernel/drivers/net/wireless/ath/ath10k/ath10k_usb.ko.xz

What is the output of `lspci -knn` on that system?
edit:
or `lsusb -v` if the network interface is usb based.

Last edited by loqs (2018-01-08 20:21:36)

Offline

#9 2018-01-08 20:38:35

catnap
Member
Registered: 2016-10-03
Posts: 131

Re: [SOLVED] Kernel issues with Qualcomm Atheros QCA9377

I get a different output from the first command that you posted.

warning: database file for 'core' does not exist
warning: database file for 'extra' does not exist
warning: database file for 'community' does not exist
error: package 'linux' was not found

EDIT: But the directory /usr/lib/modules/4.14.11-1-ARCH/kernel/drivers/net/wireless/ath/ath10k does exist.


loqs wrote:

What is the output of `lspci -knn` on that system?
edit:
or `lsusb -v` if the network interface is usb based.

The last two entries in the device list are

04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 10)
        Subsystem: Lenovo RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [17aa:505b]
        Kernel driver in use: r8169
        Kernel modules: r8169
05:00.0 Network controller [0280]: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter [168c:0042] (rev 31)
        Subsystem: Lenovo QCA9377 802.11ac Wireless Network Adapter [17aa:0901]
        Kernel driver in use: ath10k_pci
        Kernel modules: ath10k_pci

Last edited by catnap (2018-01-08 20:42:10)

Offline

#10 2018-01-08 20:46:05

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: [SOLVED] Kernel issues with Qualcomm Atheros QCA9377

The difference in the first command because you need to download the file databases before you can search them

# pacman -Fyy

The lspci output shows the ath10k_pci driver is already in use is there no interface for it?  If not check dmesg for messages from the ath10k_pci.

Offline

#11 2018-01-08 20:53:36

catnap
Member
Registered: 2016-10-03
Posts: 131

Re: [SOLVED] Kernel issues with Qualcomm Atheros QCA9377

loqs wrote:

The lspci output shows the ath10k_pci driver is already in use is there no interface for it?  If not check dmesg for messages from the ath10k_pci.

Here is the output of that query.

$ dmesg | grep ath10k
[    4.082456] ath10k_pci 0000:05:00.0: enabling device (0000 -> 0002)
[    4.083055] ath10k_pci 0000:05:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[    4.342778] ath10k_pci 0000:05:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:05:00.0.bin failed with error -2
[    4.342787] ath10k_pci 0000:05:00.0: Direct firmware load for ath10k/cal-pci-0000:05:00.0.bin failed with error -2
[    4.343490] ath10k_pci 0000:05:00.0: Direct firmware load for ath10k/QCA9377/hw1.0/firmware-6.bin failed with error -2
[    4.344523] ath10k_pci 0000:05:00.0: qca9377 hw1.1 target 0x05020001 chip_id 0x003821ff sub 17aa:0901
[    4.344524] ath10k_pci 0000:05:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 0 testmode 0
[    4.344874] ath10k_pci 0000:05:00.0: firmware ver WLAN.TF.1.0-00267-1 api 5 features ignore-otp crc32 79cea2c7
[    4.409151] ath10k_pci 0000:05:00.0: board_file api 2 bmi_id N/A crc32 8aedfa4a
[    4.898061] ath10k_pci 0000:05:00.0: htt-ver 3.1 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
[    4.908248] ath10k_pci 0000:05:00.0 wlp5s0: renamed from wlan0

Offline

#12 2018-01-08 20:58:04

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: [SOLVED] Kernel issues with Qualcomm Atheros QCA9377

So is the interface wlp5s0 not listed?  Wireless_network_configuration#Device_driver I am not seeing an issue,  please keep following that wiki page until you encounter an issue.
Edit:
I think the original issue has been solved with the installation of the kernel headers and recommend you open a separate topic for this if you can not get the adaptor working after reading the wiki page.

Last edited by loqs (2018-01-08 20:59:57)

Offline

#13 2018-01-08 20:59:51

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Kernel issues with Qualcomm Atheros QCA9377

It appears the device is correctly recognised. What's the output of...

ip a

No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#14 2018-01-08 21:43:29

catnap
Member
Registered: 2016-10-03
Posts: 131

Re: [SOLVED] Kernel issues with Qualcomm Atheros QCA9377

loqs wrote:

So is the interface wlp5s0 not listed?  Wireless_network_configuration#Device_driver I am not seeing an issue,  please keep following that wiki page until you encounter an issue.

The issue is the error messages after dmesg | grep ath10k. A more complete list of dmesg outputs related to the Atheros adapter is here

[    4.342778] ath10k_pci 0000:05:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:05:00.0.bin failed with error -2
[    4.342787] ath10k_pci 0000:05:00.0: Direct firmware load for ath10k/cal-pci-0000:05:00.0.bin failed with error -2
[    4.343490] ath10k_pci 0000:05:00.0: Direct firmware load for ath10k/QCA9377/hw1.0/firmware-6.bin failed with error -2
[    4.344523] ath10k_pci 0000:05:00.0: qca9377 hw1.1 target 0x05020001 chip_id 0x003821ff sub 17aa:0901
[    4.344524] ath10k_pci 0000:05:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 0 testmode 0
[    4.344874] ath10k_pci 0000:05:00.0: firmware ver WLAN.TF.1.0-00267-1 api 5 features ignore-otp crc32 79cea2c7
[    4.409151] ath10k_pci 0000:05:00.0: board_file api 2 bmi_id N/A crc32 8aedfa4a
slithery wrote:

What's the output of "ip a"

Here it is

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 54:e1:ad:90:50:6d brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.103/24 brd 192.168.1.255 scope global enp4s0
       valid_lft forever preferred_lft forever
    inet6 fe80::6a8c:b914:bd26:60ae/64 scope link 
       valid_lft forever preferred_lft forever
3: wlp5s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether d4:6a:6a:77:0f:75 brd ff:ff:ff:ff:ff:ff

The device is listed in the DOWN mode. It does not come to UP mode with the command ip link set wlp5s0 up.

Last edited by catnap (2018-01-08 21:51:28)

Offline

#15 2018-01-08 21:46:49

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: [SOLVED] Kernel issues with Qualcomm Atheros QCA9377

3: wlp5s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000

Note the UP in <NO-CARRIER,BROADCAST,MULTICAST,UP> so it is and you said there are error messages but have not posted them and how is this the same issue as failing to build a kernel module?

Offline

#16 2018-01-08 22:08:30

catnap
Member
Registered: 2016-10-03
Posts: 131

Re: [SOLVED] Kernel issues with Qualcomm Atheros QCA9377

loqs wrote:

Note the UP in <NO-CARRIER,BROADCAST,MULTICAST,UP> so it is and you said there are error messages but have not posted them and how is this the same issue as failing to build a kernel module?

The error message that I was referring to was the one after dmesg | grep ath10k. There are several lines with the error status but I repeat one of them that probably captures the essense. The rest can be found in the previous messages on this thread.

Direct firmware load for ath10k/pre-cal-pci-0000:05:00.0.bin failed with error -2

Also, apologies for deviating from the original topic of the thread but the problem that prevents me from connecting to wireless internet turned out to be different from the one that I first posted. I believe that it is still an issue with the Linux kernel that prevents me from installing the proper drivers for the wireless network adapter, even if the kernel update does not require me to manually use the .patch file. It seems that the .patch file is incompatible with my current kernel but this is only my best guess.

Offline

#17 2018-01-08 22:13:07

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: [SOLVED] Kernel issues with Qualcomm Atheros QCA9377

The firmware loading is not an issue as later in the dmesg you have

[    4.344874] ath10k_pci 0000:05:00.0: firmware ver WLAN.TF.1.0-00267-1 api 5 features ignore-otp crc32 79cea2c7
[    4.409151] ath10k_pci 0000:05:00.0: board_file api 2 bmi_id N/A crc32 8aedfa4a

Further proving this point the device is made available which if the module failed to find the firmware would not happen and you can set the device up as proven by the output of `ip a`

Offline

#18 2018-01-08 22:17:24

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Kernel issues with Qualcomm Atheros QCA9377

If your original issue is no longer relevant, or is solved, start a new thread; don't turn this into a multi-issue evolving trainwreck
https://wiki.archlinux.org/index.php/Co … ow_to_post


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#19 2018-01-08 22:51:53

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,419

Re: [SOLVED] Kernel issues with Qualcomm Atheros QCA9377

Something really important that should put the final nail in the coffin of this thread:

Github repo you linked to wrote:

This repo is depreciated and not under maintenance.

You are trying to install a completely outdated driver, most of the improvements will have been landed in the upstream kernel releases by now.

Online

#20 2018-01-08 23:36:38

catnap
Member
Registered: 2016-10-03
Posts: 131

Re: [SOLVED] Kernel issues with Qualcomm Atheros QCA9377

From the looks of it, I gather that it is better to close this thread. I trust loqs' last comment stating that the error messages that I was receiving were not really critical. To me they (probably mistakenly) seemed critical while the later messages, stating that the firmware works, seemed rather unintuitive and unclear. I hope that further talk on this subject will not be necessary. But, if it is, I will start a new thread like jasonwryan advised.

Last edited by catnap (2018-01-08 23:38:41)

Offline

#21 2018-01-08 23:42:44

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,419

Re: [SOLVED] Kernel issues with Qualcomm Atheros QCA9377

Those messages only look scary, kernel drivers often get loading support for newer firmware before said firmware is publicly released. The driver will then simply try to load  from the newest they know about printing an error message on failure, until they find a compatible firmware. This isn't the only wireless driver that "suffers" from this.

Online

#22 2018-01-09 00:24:09

catnap
Member
Registered: 2016-10-03
Posts: 131

Re: [SOLVED] Kernel issues with Qualcomm Atheros QCA9377

V1del wrote:

The driver will then simply try to load  from the newest they know about printing an error message on failure, until they find a compatible firmware.

That could well be the most important take-away from this thread. I will keep this in mind.

Offline

Board footer

Powered by FluxBB