Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Ethernet interface not working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Kawagen
n00b
n00b


Joined: 31 May 2020
Posts: 8

PostPosted: Sun May 31, 2020 8:11 pm    Post subject: [SOLVED] Ethernet interface not working Reply with quote

hello, I just finished gentoo installation today but cant seem to connect to the internet now. I followed the handbook very closely. I tried to ping gnu.org, gentoo.org, 8.8.8.8 but got "Temporary failure in name resolution". I added DNS to /etc/resolv.conf, no change. ifconfig doesnt show the enp5s0 I listed when installing from liveCD.

I've been up and down the internet looking for an answer (mostly results on this forum) and found problems almost identical to mine. but haven't found an explanation/solution.

I'll try and list the steps I've gone through already, along with the info.

#1
ifconfig -a just shows lo: and sit)

#2
dmesg | grep enp5s0 gives nothing

#3
rc-service net.enp5s0 start
*caching service dependencies ...
*Bringing up interface enp5s0
* ERROR: interface enp5s0 does not exist
* Ensure that you have loaded the correct kernel module for your hardware
*ERROR: net.enp5s0 failed to start[/list]

#4
lspci -k | grep -A5 Ether
05:00:0 Ethernet Controller: Broadcom Inc. and subsidiaries NetLink BCM57780 Gigabit Ethernet PCIe (rev 01)
sub system: Dell NetLink BCM57780 Gigabit Ethernet PCIe
Kernel modules: tg3
(I've seen on other posts that "Kernel driver in use: tg3" is also listed but not for me?)

#5
/etc/conf.d/net and /etc/init.d/net.enp5s0 are as they should be

I've tried more than those listed, cant seem to think of all of them. tg3 appears to be loaded just fine, so im confused what the problem is.
I'm very new to Gentoo and excited to start but its been a headache just getting there.
I would GREATLY appreciate any help, thank you.


Last edited by Kawagen on Wed Jun 03, 2020 12:28 am; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7711
Location: Saint Amant, Acadiana

PostPosted: Sun May 31, 2020 8:34 pm    Post subject: Reply with quote

Welcome to Gentoo, Kawagen

Your #1 is the key to your problem. For some reason kernel driver does not load properly. You could pipe your dmesg to less and inspect it closely, the hint why your NIC is not initialized is there. Perhaps it requires firmware?
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3446

PostPosted: Sun May 31, 2020 8:41 pm    Post subject: Reply with quote

Let's check one basic, I agree that failing to list anything other than lo and sit is key. What does "lsmod" say, and in particular does it list "tg3". Next I would look in dmesg or /var/log/messages for anything about tg3 or BCM57780. (case-insensitive, of course). Finally I would also make sure that you've selected the tg3 in your kernel config, either built-in or as a module.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
Kawagen
n00b
n00b


Joined: 31 May 2020
Posts: 8

PostPosted: Sun May 31, 2020 9:03 pm    Post subject: Reply with quote

lsmod lists nothing. I remember using some other command today to try and load the module and it said it was already loaded.
and yes tg3 is selected in the kernel it was by default. i switched it module and rebuilt, rebooted. no luck

using nano and "Where is" in /var/log/messages

tg3.c:v3.137 (May 11, 2014)
libphy: tg3 mdio bus: probed
tg3 0000:05:00.0: No PHY devices

BCM57780 not found

not sure if that really says anything, maybe theres a better way to navigate than nano :P
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun May 31, 2020 10:15 pm    Post subject: Reply with quote

Kawagen,

What does
Code:
grep -i CONFIG_BROADCOM_PHY /usr/src/linux/.config
tell?

The driver for your ethernet interface is in two pieces.
The tg3 kernel driver takes care of the PCIe end of the device.
The other end, close to the wires has its own driver. Its probably BROADCOM_PHY.

The hint here is your
Code:
No PHY devices


Code:
$ grep -i CONFIG_BROADCOM_PHY /usr/src/linux/.config
# CONFIG_BROADCOM_PHY is not set
That's the wrong answer 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
Kawagen
n00b
n00b


Joined: 31 May 2020
Posts: 8

PostPosted: Mon Jun 01, 2020 6:15 am    Post subject: Reply with quote

fell asleep...

but as you said "CONFIG_BROADCOM_PHY is not set"

what should i do now? change it?
should i figure out what motherboard i have?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Jun 01, 2020 8:49 am    Post subject: Reply with quote

Kawagen,

You need to rebuild and reinstall your kernel with that option enabled.
Then reboot to use the new kernel.

The exact steps depend on how your build your kernels.

Knowing the motherboard doesn't help a great deal. Electrical component suppliers design and manufacture 'interchangable' parts that all have the same electrical connections (hence 'interchangable') but need different software drivers.
lspci helps a lot. As these parts are 'interchangable' motherboard manufactures haggle with component suppliers and fit whatever is the lowest cost at the time.
That means nobody knows exactly what parts you have on your individual motherboard.

Sound cards are like this too. They have a PCIe driver and a CODEC driver. Users are quite picky about their CODECS, so its less oy a problem.
_________________
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
Kawagen
n00b
n00b


Joined: 31 May 2020
Posts: 8

PostPosted: Wed Jun 03, 2020 12:27 am    Post subject: Reply with quote

I got it working thanks for all your help :)

it appeared to be a BCM specific driver in the kernel
Back to top
View user's profile Send private message
gonzaleznelson
n00b
n00b


Joined: 08 Jun 2020
Posts: 1
Location: USA

PostPosted: Mon Jun 08, 2020 7:16 pm    Post subject: Reply with quote

I never thought this problem would be related to the kernel. I write this aside, thank you very much.
_________________
gonzaleznelson
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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