View previous topic :: View next topic |
Author |
Message |
Chagatai n00b
Joined: 10 Jul 2021 Posts: 14
|
Posted: Thu Dec 16, 2021 9:22 pm Post subject: No wireless device after install |
|
|
I'm posting on behalf of a friend I'm helping to troubleshoot this issue.
We have installed Gentoo on a Lenovo Ideapad 120S-14IAP. It boots just fine and networking works with an Ethernet cable via an Ethernet to USB adapter. We are having a lot of trouble getting wireless working on the machine though. We've added the ath10k driver in the kernel config and after booting up lspci -vv says that kernel driver ath10_pci is in use, which is the same driver in use on the installation medium where we do find the wireless device and we use it for networking during the install. We've installed sys-kernel/linux-firmware as that's possibly necessary as well. But when we do 'ip link' no wireless device shows up at all. Has anyone had a similar issue? |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1678
|
Posted: Thu Dec 16, 2021 9:29 pm Post subject: Re: No wireless device after install |
|
|
Chagatai wrote: | I'm posting on behalf of a friend I'm helping to troubleshoot this issue.
We have installed Gentoo on a Lenovo Ideapad 120S-14IAP. It boots just fine and networking works with an Ethernet cable via an Ethernet to USB adapter. We are having a lot of trouble getting wireless working on the machine though. We've added the ath10k driver in the kernel config and after booting up lspci -vv says that kernel driver ath10_pci is in use, which is the same driver in use on the installation medium where we do find the wireless device and we use it for networking during the install. We've installed sys-kernel/linux-firmware as that's possibly necessary as well. But when we do 'ip link' no wireless device shows up at all. Has anyone had a similar issue? |
Did you make ath10k_pci a module (aka M) and not built-in (aka *) in the kernel config?
This is often required on most wireless cards to pull the firmware at the correct time by the driver.
I mean you could also build in the firmware file as well, but then the maintenance is on you if the file name ever changes (Intel Wifi, for example, does this every kernel minor release or so). |
|
Back to top |
|
|
Chagatai n00b
Joined: 10 Jul 2021 Posts: 14
|
Posted: Thu Dec 16, 2021 10:54 pm Post subject: Re: No wireless device after install |
|
|
grknight wrote: | Chagatai wrote: | I'm posting on behalf of a friend I'm helping to troubleshoot this issue.
We have installed Gentoo on a Lenovo Ideapad 120S-14IAP. It boots just fine and networking works with an Ethernet cable via an Ethernet to USB adapter. We are having a lot of trouble getting wireless working on the machine though. We've added the ath10k driver in the kernel config and after booting up lspci -vv says that kernel driver ath10_pci is in use, which is the same driver in use on the installation medium where we do find the wireless device and we use it for networking during the install. We've installed sys-kernel/linux-firmware as that's possibly necessary as well. But when we do 'ip link' no wireless device shows up at all. Has anyone had a similar issue? |
Did you make ath10k_pci a module (aka M) and not built-in (aka *) in the kernel config?
This is often required on most wireless cards to pull the firmware at the correct time by the driver.
I mean you could also build in the firmware file as well, but then the maintenance is on you if the file name ever changes (Intel Wifi, for example, does this every kernel minor release or so). |
Yes it is a built-in. Thanks for the tip! We will definitely try that and get back to you.
In the meantime this is the error we get in dmesg.
Code: |
[ 2.217840] ath10k_pci 0000:02:00.0: enabling device (0000 -> 0002)
[ 2.218727] ath10k_pci 0000:02:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[ 2.418996] Loading firmware: ath10k/pre-cal-pci-0000:02:00.0.bin
[ 2.423189] Loading firmware: ath10k/cal-pci-0000:02:00.0.bin
[ 2.428245] Loading firmware: ath10k/QCA9377/hw1.0/firmware-6.bin
[ 2.433329] Loading firmware: ath10k/QCA9377/hw1.0/firmware-5.bin
[ 2.438361] Loading firmware: ath10k/QCA9377/hw1.0/firmware-4.bin
[ 2.440840] Loading firmware: ath10k/QCA9377/hw1.0/firmware-3.bin
[ 2.445852] Loading firmware: ath10k/QCA9377/hw1.0/firmware-2.bin
[ 2.448332] ath10k_pci 0000:02:00.0: Failed to find firmware-N.bin (N between 2 and 6) from ath10k/QCA9377/hw1.0: -2
[ 2.450881] ath10k_pci 0000:02:00.0: could not fetch firmware files (-2)
[ 2.453395] ath10k_pci 0000:02:00.0: could not probe fw (-2)
|
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54281 Location: 56N 3W
|
Posted: Thu Dec 16, 2021 11:06 pm Post subject: |
|
|
Chagatai,
The firmware must be available when the driver initialises.
If the driver is <*> (built in) the firmware must be included in the kernel too as its needed before root is mounted.
If the driver is <M> (a loadable module) it can read its firmware from /lib/firmware after root is mounted.
This applies to any kernel driver that requires firmware.
sys-kernel/linux-firmware will proved the firmware, as you say. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Chagatai n00b
Joined: 10 Jul 2021 Posts: 14
|
Posted: Thu Dec 16, 2021 11:20 pm Post subject: |
|
|
Thank you grknight and NeddySeagoon!
I see now what the problem was. If I were to use the driver as a built-in then I would have to specify firmware to be built in here:
Device Drivers --->
Generic Driver Options --->
Firmware loader --->
-*- Firmware loading facility
() Build named firmware blobs into the kernel binary
(/lib/firmware) Firmware blobs root directory |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54281 Location: 56N 3W
|
Posted: Thu Dec 16, 2021 11:50 pm Post subject: |
|
|
Chagatai,
That's right.
It becomes your problem then to spot version changes when you build a new kernel, or rebuild it when the wifi firmware fails to load next time. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|