Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Should I compile network drivers as modules or built in?
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
P1neapple
n00b
n00b


Joined: 18 Jul 2014
Posts: 35

PostPosted: Tue Jan 27, 2015 5:10 am    Post subject: Should I compile network drivers as modules or built in? Reply with quote

I have an ethernet device requiring e1000e

I also have a wifi card requiring iwlwifi (which requires firmware)

I heard that if I compile the wifi card driver built-in, it will try to load before the firmware is available, and it will fail. Is this true?

So should I compile my ethernet and wireless drivers built-in or as modules??

Thanks in advance
_________________
Gentoo currently running in Virtualbox, hoping to switch to real hardware soon...
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Tue Jan 27, 2015 5:51 am    Post subject: Re: Should I compile network drivers as modules or built in? Reply with quote

P1neapple wrote:
I heard that if I compile the wifi card driver built-in, it will try to load before the firmware is available, and it will fail. Is this true?
Generally. You could build the firmware into the kernel, but the module approach is much better since if the firmware is updated you don't have to rebuild your kernel. It is also much simpler, so I would say network devices should always be modules unless you have a strong reason not to.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
P1neapple
n00b
n00b


Joined: 18 Jul 2014
Posts: 35

PostPosted: Tue Jan 27, 2015 6:40 am    Post subject: Reply with quote

The firmware is external AFAIK as it is part of the linux-firmware package (if that makes any difference, because i don't think the kernel needs to be rebuilt)

Ok I'll just compile them as modules then, just like I did, thanks!!
_________________
Gentoo currently running in Virtualbox, hoping to switch to real hardware soon...
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Tue Jan 27, 2015 8:45 am    Post subject: Reply with quote

Personally I'd build-in the ethernet driver, unless it requires firmware, as that means it's always eth0. Wireless for sure is better as module.
Back to top
View user's profile Send private message
P1neapple
n00b
n00b


Joined: 18 Jul 2014
Posts: 35

PostPosted: Tue Jan 27, 2015 9:04 am    Post subject: Reply with quote

So if it's built in it's eth0?? That's interesting...

I don't believe that's true. At least in my virtualbox setup, my ethernet driver is built-in, and it's not eth0 (it's like ens0p3 or something like that)
_________________
Gentoo currently running in Virtualbox, hoping to switch to real hardware soon...
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Tue Jan 27, 2015 9:13 am    Post subject: Reply with quote

P1neapple wrote:
my ethernet driver is built-in, and it's not eth0 (it's like ens0p3 or something like that)
At the beginning it's eth0. You can check with
Quote:
$ dmesg | grep 'network interface'
[ 8.292260] systemd-udevd[268]: renamed network interface wlan0 to wlp8s0
[ 8.312213] systemd-udevd[263]: renamed network interface eth0 to enp2s14
Back to top
View user's profile Send private message
P1neapple
n00b
n00b


Joined: 18 Jul 2014
Posts: 35

PostPosted: Tue Jan 27, 2015 9:44 am    Post subject: Reply with quote

I don't use systemd, if that makes a difference. And still, it's a different name when you want to use it ;)
_________________
Gentoo currently running in Virtualbox, hoping to switch to real hardware soon...
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Tue Jan 27, 2015 9:49 am    Post subject: Reply with quote

P1neapple wrote:
I don't use systemd,
Nor do I. But having ens0p3 indicates it has been renamed.

BTW: eth0 or ens0p3 is not the driver. It is the interface name. You'll get the driver name running "lspci -k".
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Tue Jan 27, 2015 10:05 am    Post subject: Reply with quote

P1neapple wrote:
I don't use systemd, if that makes a difference. And still, it's a different name when you want to use it ;)

And I don't use udev unpredictable naming; so it's not for me, which is how I like it. ;-)
Back to top
View user's profile Send private message
P1neapple
n00b
n00b


Joined: 18 Jul 2014
Posts: 35

PostPosted: Tue Jan 27, 2015 10:15 am    Post subject: Reply with quote

charles17 wrote:
P1neapple wrote:
I don't use systemd,
Nor do I. But having ens0p3 indicates it has been renamed.

BTW: eth0 or ens0p3 is not the driver. It is the interface name. You'll get the driver name running "lspci -k".


I know it's not the driver, I mentioned the driver above (e1000e). Your output included "systemd-udevd" so i assumed you are using systemd.
_________________
Gentoo currently running in Virtualbox, hoping to switch to real hardware soon...
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21595

PostPosted: Wed Jan 28, 2015 2:24 am    Post subject: Reply with quote

P1neapple wrote:
I know it's not the driver, I mentioned the driver above (e1000e). Your output included "systemd-udevd" so i assumed you are using systemd.
After systemd consumed udev, later releases of udev switched to the name systemd-udevd, even if you use it on a systemd-free system. Naming seems to be a recurring problem for the systemd developers.
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