Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Laptop Ethernet Not Working [SOLVED]
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
Illiander
Apprentice
Apprentice


Joined: 22 Feb 2011
Posts: 205

PostPosted: Tue Apr 17, 2018 4:09 pm    Post subject: Laptop Ethernet Not Working [SOLVED] Reply with quote

[Moderator note: changed title from Kernel options help please in the hope that this title more accurately reflects the thread. OP, if you disagree, please change it back. -Hu]

Sorry for the short title, the character limit wasn't being helpful.

Still building this laptop. My self-built kernel isn't seeing the network device, but Genkernel is.

Is there a way to look at which modules Genkernel is using, so that I can get all the bits needed to make it work, without just turning on everything that looks like a possibility as a module?

lsmod isn't being very helpful.


Last edited by Illiander on Thu Apr 19, 2018 4:04 pm; edited 2 times in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


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

PostPosted: Tue Apr 17, 2018 4:18 pm    Post subject: Reply with quote

Code:
lspci -k
Also check dmesg.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Illiander
Apprentice
Apprentice


Joined: 22 Feb 2011
Posts: 205

PostPosted: Tue Apr 17, 2018 4:27 pm    Post subject: Reply with quote

Code:
03:00.1 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 12)
   Subsystem: CLEVO/KAPOK Computer RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
   Kernel driver in use: r8169


So I've gone and turned on the realtek network drivers, and run "make modules" and now I'm getting an error:

Code:
(chroot) livecd /usr/src/linux # make modules
scripts/kconfig/conf  --silentoldconfig Kconfig
#
# configuration written to .config
#
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CHK     include/generated/bounds.h
  CHK     include/generated/timeconst.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  Building modules, stage 2.
  MODPOST 13 modules
ERROR: "swphy_read_reg" [drivers/net/phy/fixed_phy.ko] undefined!
ERROR: "swphy_validate_state" [drivers/net/phy/fixed_phy.ko] undefined!
make[1]: *** [scripts/Makefile.modpost:91: __modpost] Error 1
make: *** [Makefile:1205: modules] Error 2
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Apr 17, 2018 4:28 pm    Post subject: Reply with quote

Illiander,

Lots of things in the kernel are put together from software layers, just like a cake.
You will hear about the SCSI stack, network stack and so on.

Code:
lspci -k
will tell you about the lowest level of the stack. The module that actually controls the hardware.

That's a must have but its not enough, You need the rest of the stack too and that's much harder.

-- edit --

You need the r8169 module. You can't always add modules like you are trying to do.
You need a full kernel build an reinstall.
_________________
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: 5838

PostPosted: Tue Apr 17, 2018 6:03 pm    Post subject: Reply with quote

Illiander wrote:
Code:
03:00.1 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 12)
   Subsystem: CLEVO/KAPOK Computer RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
   Kernel driver in use: r8169


Don't forget the firmware. :wink:

Code:
/lib/firmware/rtl_nic/rtl8411-2.fw
/lib/firmware/rtl_nic/rtl8411-1.fw

_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
Illiander
Apprentice
Apprentice


Joined: 22 Feb 2011
Posts: 205

PostPosted: Wed Apr 18, 2018 9:34 am    Post subject: Reply with quote

How do I find which bits to turn on in menuconfig?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Apr 18, 2018 5:31 pm    Post subject: Reply with quote

Illiander,

You ask the kernel search. Press / and enter r8169.
If its hidden because the Depends on: evaluates to false, press 'z' to show all hidden options.

Rerun the search and look at the Depends On:
Apply this process recursively until the Depends On: is true.

Now you can choose r8169.

To go to an option, press the digit to the left of the option.

'z' is a toggle. There are a lot of hidden options.
_________________
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
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Wed Apr 18, 2018 7:45 pm    Post subject: Reply with quote

Illiander wrote:
How do I find which bits to turn on in menuconfig?

Have you looked at sys-kernel/kergen? I would also refer to the modules loaded by SystemRescueCD for reference. And this page: http://wiki.gentoo.org/wiki/kernel.
_________________
"Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey
Back to top
View user's profile Send private message
Illiander
Apprentice
Apprentice


Joined: 22 Feb 2011
Posts: 205

PostPosted: Thu Apr 19, 2018 10:11 am    Post subject: Reply with quote

r8169 is now being built into the kernel, and I installed sys-kernel/linux-firmware as well, just in case it was needed (it complained about possible file collisions, but couldn't find what else was using them)

I still only have loopback showing on ifconfig, and trying to restart net.eth0 says it doesn't exist.

What's my next step for figuring out what's not set up right?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Thu Apr 19, 2018 11:16 am    Post subject: Reply with quote

Illiander wrote:
I still only have loopback showing on ifconfig, and trying to restart net.eth0 says it doesn't exist.

Illiander ... you should use 'ifconfig -a' as 'ifconfig' only shows interfaces that are 'up'. I suspect that your interface is not called 'eth0', but has been renamed by udev to 'en0*' (or what-have-you).

HTH & best ... khay
Back to top
View user's profile Send private message
Illiander
Apprentice
Apprentice


Joined: 22 Feb 2011
Posts: 205

PostPosted: Thu Apr 19, 2018 12:10 pm    Post subject: Reply with quote

Yup, that's the issue. But I don't get the net.en*mess* in /etc/init.d/

How do I turn this crap off and get it to go back to the good old ethX naming scheme?

Or link ethX over the top of this?

I tried the steps here: https://unix.stackexchange.com/questions/396382/how-can-i-show-the-old-eth0-names-and-also-rename-network-interfaces-in-debian-9 And it didn't work.

Edit:

Steps here: https://wiki.gentoo.org/wiki/Eudev worked

Code:
touch /etc/udev/rules.d/80-net-name-slot.rules


Has systemd even stabilised what they want to do yet?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Thu Apr 19, 2018 12:26 pm    Post subject: Reply with quote

Illiander wrote:
Yup, that's the issue. But I don't get the net.en*mess* in /etc/init.d/ How do I turn this crap off and get it to go back to the good old ethX naming scheme?

Illiander ... there are vaious methods, see here.

... oh, I see your edit, you found it.

best ... khay
Back to top
View user's profile Send private message
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2549

PostPosted: Thu Apr 19, 2018 2:19 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Illiander,

You ask the kernel search. Press / and enter r8169.
If its hidden because the Depends on: evaluates to false, press 'z' to show all hidden options.

Rerun the search and look at the Depends On:
Apply this process recursively until the Depends On: is true.

Now you can choose r8169.

To go to an option, press the digit to the left of the option.

'z' is a toggle. There are a lot of hidden options.


Been using Linux since 1996. Been compiling my own kernels almost that long. I did not know about the 'z'.

I don't know whether to be happy that I learned something or disgusted because it took me 20-something years to learn it.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


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

PostPosted: Thu Apr 19, 2018 3:15 pm    Post subject: Reply with quote

Do 'make nconfig'. Hit F4.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Tyrus
Tux's lil' helper
Tux's lil' helper


Joined: 03 Feb 2018
Posts: 141

PostPosted: Thu Apr 19, 2018 3:43 pm    Post subject: Reply with quote

Illiander wrote:
Code:
03:00.1 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 12)
   Subsystem: CLEVO/KAPOK Computer RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
   Kernel driver in use: r8169



You are using the wrong driver. This is the correct one: net-misc/r8168.
Back to top
View user's profile Send private message
Illiander
Apprentice
Apprentice


Joined: 22 Feb 2011
Posts: 205

PostPosted: Thu Apr 19, 2018 4:06 pm    Post subject: Reply with quote

Tyrus wrote:
Illiander wrote:
Code:
03:00.1 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 12)
   Subsystem: CLEVO/KAPOK Computer RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
   Kernel driver in use: r8169



You are using the wrong driver. This is the correct one: net-misc/r8168.


Actually, all I had to do was disable the systemd nonsense about "reliable interface names" and it all worked fine.

No bullshit random garbage, just a nice happy net.eth0
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Apr 19, 2018 5:12 pm    Post subject: Reply with quote

1clue,

'z' is a newish option to menuconfig. I came across the patch that introduced it by accident, when I was searching for something entirely unrelated.
_________________
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 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