Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot get online / Gentoo does not see my ethernet card
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
DanielC
n00b
n00b


Joined: 07 Sep 2015
Posts: 25
Location: Sweden

PostPosted: Tue Sep 08, 2015 7:22 pm    Post subject: Cannot get online / Gentoo does not see my ethernet card Reply with quote

Hello,

Last night I installed Gentoo on a VM. Instead of making a custom kernel I chose the "genkernel", hoping that it would save me some hassle (I really don't care about optimizing a kernel in a VM):

https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel


Unfortunately, when I rebooted into my virtual disk, Gentoo could no longer see my ethernet card:

Code:

# ifconfig

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
         inet 127.0.0.1  netmask 255.0.0.0
         loop  txqueuelen 0  (Local Loopback)
         RX packets 0  bytes 0 (0.0 B)
         RX errors 0  dropped 0  overruns 0  frame 0
         TX packets 0  bytes 0 (0.0 B)
         TX errors 0  dropped 0  overruns 0  carrier 0  collisions

# lspci | grep Ethernet
00:03.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)


So, my VM is emulating an Intel Gibabit ethernet card which my kernel seems unable to detect. Unfortunately, I am very ignorant of kernel modules. I have no idea how to figure out which module corresponds to my card (or whether a module is what I'm looking for). I went to /lib/modules/<kernel version>/ but to me all the file names look like gibberish.

I went to /usr/src/linux and ran make menuconfig. I made my way to the section on ethernet drives for Intel devices and I cannot find anything that exactly matches the "82540EM" controller. The closest matches are:

Code:

<M>    Intel(R) PRO/1000 Gigabit Ethernet support
<M>    Intel(R) PRO/1000 PCI-Express Gigabit Ethernet support
< >    Intel(R) 82575/82576 PCI-Express Gigabit Ethernet support
< >    Intel(R) 82576 Virtual Function Ethernet support
...


So, there are two candidates that are compiled as modules, and two that are not compiled at all. Keeping in mind that I don't know what I'm doing, my impulse would be to pick one of the two modules that I apparently have and see if either one of them work. Since they don't have specific model numbers maybe they are generic enough to work.

And... this is where I'm stuck.

I really don't know how to find those modules. I simply have no idea.

Help?

Also, am I on the right track? Or have I completely mis-diagnosed my problem?

Cheers,
Daniel.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Sep 08, 2015 7:45 pm    Post subject: Reply with quote

DanielCarrera,

Googling 82540EM Gigabit Ethernet linux kernel module gives http://cateee.net/lkddb/web-lkddb/E1000.html as the first hit.

That says you need
Code:
Intel(R) PRO/1000 Gigabit Ethernet support
in your kernel, which you have as a loadable module.
It corresponds to the e1000 module

Try
Code:
modprobe e1000
ifconfig -a


The hard bit of the above is knowing what to google

If your interface shows up, add e1000 to /etc/config.d/modules so that the boot process loads it for you.
_________________
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
DanielC
n00b
n00b


Joined: 07 Sep 2015
Posts: 25
Location: Sweden

PostPosted: Tue Sep 08, 2015 10:47 pm    Post subject: Reply with quote

THANKS!

Yes, e1000 works. I edited /etc/conf.d/modules and re-did the relevant steps in the manual and now when I reboot I have full internet access. And now I learned how to find kernel modules.
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