Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel not loading network driver(?)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Jan-Gentoo
n00b
n00b


Joined: 26 Oct 2015
Posts: 3

PostPosted: Mon Oct 26, 2015 10:21 am    Post subject: Kernel not loading network driver(?) Reply with quote

Hi there!

I'm pretty new to the Gentoo party, so please be warned (and patient). I hope I used the correct forum, please move if not.

Here's the situation: I followed the handbook and set up an AMD64 Kernel via Live USB on my laptop. (UEFI) Everything boots fine after some initial trouble. However: It seems that my network controller for WLAN (which is "Intel Corporation Wireless 7260 rev 6b) is not being handed the driver it needs. lspci -k does not list a used driver kernel.

While booting into the Live USB, driver "iwlwifi" is being used (kernel driver and kernel modules) and I set the kernel up to load iwlwifi instantly (not as module). As described, this does not seem to work.

Now: Being very unexperienced with Gentoo, I am out of ideas and would like to ask if somebody here has a clue about my mistakes so far. Any needed information will be provided asap, of course. :)

Thanks for reading!
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2799

PostPosted: Mon Oct 26, 2015 11:03 am    Post subject: Re: Kernel not loading network driver(?) Reply with quote

Jan-Gentoo wrote:
Hi there!

I'm pretty new to the Gentoo party, so please be warned (and patient). I hope I used the correct forum, please move if not.

Here's the situation: I followed the handbook and set up an AMD64 Kernel via Live USB on my laptop. (UEFI) Everything boots fine after some initial trouble. However: It seems that my network controller for WLAN (which is "Intel Corporation Wireless 7260 rev 6b) is not being handed the driver it needs. lspci -k does not list a used driver kernel.

Question ahead: Did you read the Wifi article?

There are some common pitfalls you should know for setting up a wifi driver:
  • You need driver and firmware
  • Driver and firmware should be both as modules or both in-kernel
  • For iwlwifi, each device has its own firmware
  • After changing kernel configuration, the kernel has to be installed in /boot
  • /boot needs to be mounted for installing the kernel
  • You should be in the correct /usr/src/ subdirectory. That one of the kernel you want to change.
  • dmesg | grep 08:00.0 - Replace 08:00.0 with pci bus of your device from lspci -nnkv - wil give more information
  • dmesg | grep 'network interface' - After rebooting will show you the name of that network interface
Back to top
View user's profile Send private message
Jan-Gentoo
n00b
n00b


Joined: 26 Oct 2015
Posts: 3

PostPosted: Mon Oct 26, 2015 1:07 pm    Post subject: Re: Kernel not loading network driver(?) Reply with quote

Thanks for your reply!

charles17 wrote:
Question ahead: Did you read the Wifi article?


Afraid not. I thought everything would be fine with only the handbook. I had a quick look into it now.

charles17 wrote:
There are some common pitfalls you should know for setting up a wifi driver:
  • You need driver and firmware
  • Driver and firmware should be both as modules or both in-kernel
  • For iwlwifi, each device has its own firmware
  • After changing kernel configuration, the kernel has to be installed in /boot
  • /boot needs to be mounted for installing the kernel
  • You should be in the correct /usr/src/ subdirectory. That one of the kernel you want to change.
  • dmesg | grep 08:00.0 - Replace 08:00.0 with pci bus of your device from lspci -nnkv - wil give more information
  • dmesg | grep 'network interface' - After rebooting will show you the name of that network interface


Alright, I tried to ensure that there _is_ firmware available and downloaded as well a installed some from here. (I think i was using the right folders...)

Back into my system, grep 01:00.0 gave me following messages:
"enabling device (000 -> 0002)
Direct firmware load for iwlwifi-7260-12.ucode failed with error -2
going on like this for a few more times, counting down the 12
and finally not suitable firmware found!"

Hm. Makes me wonder, because on /dev4 -which is my root with the kernel- I can cleary find i.e. iwlwifi-7260-12.ucode in /lib/firmware as well as /lib64/firmware. Did go somewhere wrong while configuring the kernel? Where can I tell it to load the firmware directly?
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Mon Oct 26, 2015 2:04 pm    Post subject: Reply with quote

Quote:
Driver and firmware should be both as modules or both in-kernel

Did you pay attention to this?
Back to top
View user's profile Send private message
Jan-Gentoo
n00b
n00b


Joined: 26 Oct 2015
Posts: 3

PostPosted: Mon Oct 26, 2015 2:54 pm    Post subject: Reply with quote

Buffoon wrote:
Quote:
Driver and firmware should be both as modules or both in-kernel

Did you pay attention to this?

Driver: I'm quite sure. Divce Drivers -> Network Drivers -> WLAN. I activated what should be activated as built in.

However, with the firmware I am not sure where to look at...
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2799

PostPosted: Mon Oct 26, 2015 2:57 pm    Post subject: Reply with quote

Jan-Gentoo wrote:
However, with the firmware I am not sure where to look at...
The Intel Wireless 7260 line in https://wiki.gentoo.org/wiki/Wifi will tell you.
Have a look at https://wiki.gentoo.org/wiki/Intel_Corporation_PRO/Wireless_3945ABG how it works for one of the older devices.

Edit:
Also, according to https://forums.gentoo.org/viewtopic-t-1026458-start-9.html the kernel version seems important
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Oct 26, 2015 7:19 pm    Post subject: Reply with quote

Jan-Gentoo,

charles17 said "Driver and firmware should be both as modules or both in-kernel"
That should is a must.

The firmware is loaded when the module is initialised.
When the module is build into the kernel, the firmware must be built into the kernel too as the firmware is needed before root is mounted.
That means it can't be read from the hard drive at all.

When the module is made as a module, it gets loaded after root is mounted, so /lib/firmware is available too.

The other two combinations don't work as the kernel driver can never read its firmware.

To check that you are running the kernel you think you are, look at
Code:
uname -a
The date/time shown is the build date/time of the running 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
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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