Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Configuring Iwlwifi on Kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
nolongeranumber
n00b
n00b


Joined: 14 Oct 2017
Posts: 5
Location: A second world country

PostPosted: Sat Oct 14, 2017 6:56 pm    Post subject: Configuring Iwlwifi on Kernel Reply with quote

Hello all,
I apologize if post do not belong in the "Installing Gentoo" section. I am not sure if it fall under the "Networking & Security" or "Kernel & Hardware".
I am confused by the instruction on the page for T440s, it say to enable these in the kernel. It also say to add iwlwifi-7260-16.ucode to your CONFIG_EXTRA_FIRMWARE config of kernel 4.3+.
But same time it says to enable this above:

Code:

<*> Wireless  --->
    <*> cfg80211 - wireless configuration API
    <*> Generic IEEE 802.11 Networking Stack (mac80211)
  [*] Wireless LAN  --->
      <*> Intel Wireless WiFi Next Gen AGN - Wireless-N/Advanced-N/Ultimate-N (iwlwifi)
      <*> Intel Wireless WiFi MVM Firmware support


I emerged iwlwifi and add it to CONFIG_EXTRA_HARDWARE. I also follow step above for enabling kernel feature. I can not find the wlp3s0 or any other device aside from lo and my Ethernet port enp0e25.
Is it related to this issue?
https://forums.gentoo.org/viewtopic-t-1026458-start-0.html
Or am I doing something wrong?

I am not very proficient at *nix systems. I used ubuntu for 2 year. When I ask how to improve my skill. My father (He is PHD in Computer Science) tell me to "Install gentoo".
Now here I am.

My syslog shows this:
Code:

Oct 14 11:28:31  kernel: [    0.789773] Intel(R) Wireless WiFi driver for Linux
Oct 14 11:28:31  kernel: [    0.789773] Copyright(c) 2003- 2015 Intel Corporation
Oct 14 11:28:31  kernel: [    0.791032] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-7260-17.ucode failed with error -2
Oct 14 11:28:31  kernel: [    0.791034] iwlwifi 0000:03:00.0: no suitable firmware found!
Oct 14 11:28:31  kernel: [    0.791035] iwlwifi 0000:03:00.0: iwlwifi-7260-17 is required
Oct 14 11:28:31  kernel: [    0.791036] iwlwifi 0000:03:00.0: check git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
[...]
Oct 14 11:28:31  /etc/init.d/wpa_supplicant[2524]: Could not find a wireless interface
Oct 14 11:28:31  /etc/init.d/wpa_supplicant[2500]: ERROR: wpa_supplicant failed to start
Oct 14 11:28:31  dhcpcd[2552]: dev: loaded udev
Oct 14 11:28:31  dhcpcd[2552]: no interfaces have a carrier
Oct 14 11:28:31  dhcpcd[2552]: forked to background, child pid 2564
Oct 14 11:28:31  dhcpcd[2564]: enp0s25: waiting for carrier
Oct 14 11:28:31  kernel: [    5.081468] IPv6: ADDRCONF(NETDEV_UP): enp0s25: link is not ready
Oct 14 11:28:31  dhcpcd[2735]: sending commands to master dhcpcd process
Oct 14 11:28:31  dhcpcd[2564]: control command: dhcpcd -m 2 enp0s25
Oct 14 11:28:32  /etc/init.d/net.wlp3s0[2901]: ERROR: interface wlp3s0 does not exist
Oct 14 11:28:32  /etc/init.d/net.wlp3s0[2902]: Ensure that you have loaded the correct kernel module for your hardware
Oct 14 11:28:32  /etc/init.d/net.wlp3s0[2792]: ERROR: net.wlp3s0 failed to start
Oct 14 11:28:32  /etc/init.d/netmount[2904]: ERROR: cannot start netmount as net.wlp3s0 would not start

_________________
...only a fraction of book learning will seep into practical life anyhow; and the more foolish the theory, the less of it.


Last edited by nolongeranumber on Sat Oct 14, 2017 7:10 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hieronymus Bosch
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2015
Posts: 76
Location: 31°45′33.14″N 106°29′24.63″W

PostPosted: Sat Oct 14, 2017 7:03 pm    Post subject: Reply with quote

Could you post the result of the following command ?

As root

Code:

lspci -k

_________________
Details fueled any investigation ...
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43559
Location: 56N 3W

PostPosted: Sat Oct 14, 2017 7:11 pm    Post subject: Reply with quote

nolongeranumber,

Welcome to Gentoo

The iwlwifi driver is in two parts. The kernel module and the firmware that the chipset needs to be able to operate at all.
The firmware must be available when the kernel module initialises.
That means that if the module is configured as <*>, the firmware must be built in too.

The firmware is provided by linux-firmware. That needs to be installed at kernel build time or the firmware will not be included in the kernel.

Check dmesg for firmware loading errors.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
nolongeranumber
n00b
n00b


Joined: 14 Oct 2017
Posts: 5
Location: A second world country

PostPosted: Sat Oct 14, 2017 7:31 pm    Post subject: Reply with quote

Hieronymus Bosch wrote:
Could you post the result of the following command ?

As root

Code:

lspci -k

Here is output:
Code:
00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 0b)
   Subsystem: Lenovo Haswell-ULT DRAM Controller
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
   Subsystem: Lenovo Haswell-ULT Integrated Graphics Controller
00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 0b)
   Subsystem: Lenovo Haswell-ULT HD Audio Controller
00:14.0 USB controller: Intel Corporation 8 Series USB xHCI HC (rev 04)
   Subsystem: Lenovo 8 Series USB xHCI HC
00:16.0 Communication controller: Intel Corporation 8 Series HECI #0 (rev 04)
   Subsystem: Lenovo 8 Series HECI
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I218-LM (rev 04)
   Subsystem: Lenovo ThinkPad X240
00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04)
   Subsystem: Lenovo 8 Series HD Audio Controller
00:1c.0 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 6 (rev e4)
00:1c.1 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 3 (rev e4)
00:1d.0 USB controller: Intel Corporation 8 Series USB EHCI #1 (rev 04)
   Subsystem: Lenovo T440s
00:1f.0 ISA bridge: Intel Corporation 8 Series LPC Controller (rev 04)
   Subsystem: Lenovo 8 Series LPC Controller
00:1f.2 SATA controller: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] (rev 04)
   Subsystem: Lenovo 8 Series SATA Controller 1 [AHCI mode]
00:1f.3 SMBus: Intel Corporation 8 Series SMBus Controller (rev 04)
   Subsystem: Lenovo 8 Series SMBus Controller
03:00.0 Network controller: Intel Corporation Wireless 7260 (rev 83)
   Subsystem: Intel Corporation Dual Band Wireless-AC 7260

_________________
...only a fraction of book learning will seep into practical life anyhow; and the more foolish the theory, the less of it.
Back to top
View user's profile Send private message
nolongeranumber
n00b
n00b


Joined: 14 Oct 2017
Posts: 5
Location: A second world country

PostPosted: Sat Oct 14, 2017 7:44 pm    Post subject: Reply with quote

NeddySeagoon wrote:
nolongeranumber,

Welcome to Gentoo

The iwlwifi driver is in two parts. The kernel module and the firmware that the chipset needs to be able to operate at all.
The firmware must be available when the kernel module initialises.
That means that if the module is configured as <*>, the firmware must be built in too.

The firmware is provided by linux-firmware. That needs to be installed at kernel build time or the firmware will not be included in the kernel.

Check dmesg for firmware loading errors.

I have install both. Iwlwifi firmare and kernel module are built in.
I have this in my dmesg:
Code:

[ 0.885835] Intel(R) Wireless WiFi driver for Linux
[ 0.885836] Copyright(c) 2003- 2015 Intel Corporation
[ 0.887452] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-7260-17.ucode failed with error -2
[ 0.887456] iwlwifi 0000:03:00.0: no suitable firmware found!
[ 0.887458] iwlwifi 0000:03:00.0: iwlwifi-7260-17 is required

_________________
...only a fraction of book learning will seep into practical life anyhow; and the more foolish the theory, the less of it.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43559
Location: 56N 3W

PostPosted: Sat Oct 14, 2017 8:53 pm    Post subject: Reply with quote

nolongeranumber,

The firmware should be in /lib/firmware.
Does the file iwlwifi-7260-17.ucode exist there?

If that's missing,
Code:
emerge linux-firmware


What do you have in your kernel for
Code:
  Symbol: EXTRA_FIRMWARE [=]                                                  │ 
  │ Type  : string                                                              │ 
  │ Prompt: External firmware blobs to build into the kernel binary

  │ Symbol: EXTRA_FIRMWARE_DIR [=]                                              │ 
  │ Type  : string                                                              │ 
  │ Prompt: Firmware blobs root directory


Code:
grep EXTRA_FIR /usr/src/linux/.config
should show it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
nolongeranumber
n00b
n00b


Joined: 14 Oct 2017
Posts: 5
Location: A second world country

PostPosted: Sat Oct 14, 2017 11:32 pm    Post subject: Reply with quote

NeddySeagoon wrote:
nolongeranumber,

The firmware should be in /lib/firmware.
Does the file iwlwifi-7260-17.ucode exist there?

If that's missing,
Code:
emerge linux-firmware


What do you have in your kernel for
Code:
  Symbol: EXTRA_FIRMWARE [=]                                                  │ 
  │ Type  : string                                                              │ 
  │ Prompt: External firmware blobs to build into the kernel binary

  │ Symbol: EXTRA_FIRMWARE_DIR [=]                                              │ 
  │ Type  : string                                                              │ 
  │ Prompt: Firmware blobs root directory


Code:
grep EXTRA_FIR /usr/src/linux/.config
should show it.


iwlwifi-7260-17.ucode exists.

Removed stupid question... Oops.

CONFIG_EXTRA_FIRMWARE="iwlwifi-7260-16.ucode"
CONFIG_EXTRA_FIRMWARE_DIR="firmware"
_________________
...only a fraction of book learning will seep into practical life anyhow; and the more foolish the theory, the less of it.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2657

PostPosted: Sun Oct 15, 2017 7:41 am    Post subject: Reply with quote

nolongeranumber wrote:
iwlwifi-7260-17.ucode exists.

Removed stupid question... Oops.

Gentoo has a wiki article especially for iwlwifi. Everything you need should be mentioned there — If not, please let us know.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43559
Location: 56N 3W

PostPosted: Sun Oct 15, 2017 9:34 am    Post subject: Reply with quote

nolongeranumber,

Your
Code:
CONFIG_EXTRA_FIRMWARE="iwlwifi-7260-16.ucode"
CONFIG_EXTRA_FIRMWARE_DIR="firmware"
are both incorrect.

Your error message says
Code:
[ 0.887452] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-7260-17.ucode failed with error -2
but you are trying to provide iwlwifi-7260-16.ucode
(16<>17)

CONFIG_EXTRA_FIRMWARE_DIR="firmware" means /usr/src/linux/firmware.
You need /lib/firmware/ here to point to the directory where linux-firmware leaves the firmware.

Be aware of the leading / convention. A leading / is always with respect to the kernels root directory.
No leading / ... like firmware, is relative to the $PWD, or present working directory. Hence /usr/src/linux/ when you build the kernel.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5866

PostPosted: Sun Oct 15, 2017 3:08 pm    Post subject: Reply with quote

Some versions of iwlwifi try to load firmware that doesn't exist...

Code:
[    7.159071] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-3168-26.ucode failed with error -2
[    7.159088] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-3168-25.ucode failed with error -2
[    7.159102] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-3168-24.ucode failed with error -2
[    7.159116] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-3168-23.ucode failed with error -2
[    7.159627] iwlwifi 0000:03:00.0: loaded firmware version 22.391740.0 op_mode iwlmvm


linux-firmware provides 29, 27, 22, and 21 for the 3168 chipset. 7260 does have a 16, but you might want to try loading them all (17, 16, 13, 12, 10, 9, 8, 7) to see if it likes one of them.
Back to top
View user's profile Send private message
nolongeranumber
n00b
n00b


Joined: 14 Oct 2017
Posts: 5
Location: A second world country

PostPosted: Sun Oct 15, 2017 8:43 pm    Post subject: Reply with quote

Okay. Fixed it. Thanks for pointing out the / and trying out different versions of the driver.
_________________
...only a fraction of book learning will seep into practical life anyhow; and the more foolish the theory, the less of it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum