public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Realtek r8169 realtek.ko not loaded.
@ 2020-05-17  8:07 Alexander Puchmayr
  2020-05-17  8:24 ` William Kenworthy
  2020-05-17 11:09 ` Victor Ivanov
  0 siblings, 2 replies; 7+ messages in thread
From: Alexander Puchmayr @ 2020-05-17  8:07 UTC (permalink / raw
  To: gentoo-user

Hi there

I just upgraded an older notebook with r8169 network chip to new kernel 5.4 
(sys-kernel/gentoo-sources-5.4.28) with genkernel. 
After booting the new kernel the network adapter was not initialized, no 
network interface eth0.
Dmesg says
[    6.390973] r8169 0000:08:00.0: realtek.ko not loaded, maybe it needs to be 
added to initramfs?
[    6.392864] r8169: probe of 0000:08:00.0 failed with error -2

After searching with google I found a thread in the kernel mailing list
https://bugzilla.kernel.org/show_bug.cgi?id=204343
The cause is a soft depencency to module realtek.ko, which needs to be loaded 
first.

Doing this manually, i.e. rmmod r8169 && modprobe realtek && modprobe r8169 
works fine; network interface eth0 gets configured and is operating.

Since the kernel loads the network module before systemd is running, it has to 
be configured in initrd somehow.
So, the final question is, how to get that into initrd with genkernel?
I need to add something like this

cat /etc/modprobe.d/realtek 
Softdep r8169 pre: realtek

How do I get this into initrd with genkernel-next?

Thanks in advance
	Alex

PS 
Profile:
default/linux/amd64/17.0/desktop/plasma/systemd

Relevant packages:
sys-apps/gentoo-systemd-integration-7
sys-apps/kmod-26-r5
sys-apps/systemd-244.3
sys-kernel/genkernel-next-69
sys-kernel/gentoo-sources-5.4.28

Lspci
08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 
PCI Express Gigabit Ethernet Controller (rev 03)





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-05-18  6:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-17  8:07 [gentoo-user] Realtek r8169 realtek.ko not loaded Alexander Puchmayr
2020-05-17  8:24 ` William Kenworthy
2020-05-17 11:29   ` Alexander Puchmayr
2020-05-17 12:52     ` William Kenworthy
2020-05-18  6:47       ` Alexander Puchmayr
2020-05-17 11:09 ` Victor Ivanov
2020-05-18  6:57   ` Alexander Puchmayr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox