Gentoo Archives: gentoo-user

From: Alexander Puchmayr <alexander.puchmayr@×××××××.at>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Realtek r8169 realtek.ko not loaded.
Date: Sun, 17 May 2020 08:08:02
Message-Id: 3887877.iIbC2pHGDl@zeus
1 Hi there
2
3 I just upgraded an older notebook with r8169 network chip to new kernel 5.4
4 (sys-kernel/gentoo-sources-5.4.28) with genkernel.
5 After booting the new kernel the network adapter was not initialized, no
6 network interface eth0.
7 Dmesg says
8 [ 6.390973] r8169 0000:08:00.0: realtek.ko not loaded, maybe it needs to be
9 added to initramfs?
10 [ 6.392864] r8169: probe of 0000:08:00.0 failed with error -2
11
12 After searching with google I found a thread in the kernel mailing list
13 https://bugzilla.kernel.org/show_bug.cgi?id=204343
14 The cause is a soft depencency to module realtek.ko, which needs to be loaded
15 first.
16
17 Doing this manually, i.e. rmmod r8169 && modprobe realtek && modprobe r8169
18 works fine; network interface eth0 gets configured and is operating.
19
20 Since the kernel loads the network module before systemd is running, it has to
21 be configured in initrd somehow.
22 So, the final question is, how to get that into initrd with genkernel?
23 I need to add something like this
24
25 cat /etc/modprobe.d/realtek
26 Softdep r8169 pre: realtek
27
28 How do I get this into initrd with genkernel-next?
29
30 Thanks in advance
31 Alex
32
33 PS
34 Profile:
35 default/linux/amd64/17.0/desktop/plasma/systemd
36
37 Relevant packages:
38 sys-apps/gentoo-systemd-integration-7
39 sys-apps/kmod-26-r5
40 sys-apps/systemd-244.3
41 sys-kernel/genkernel-next-69
42 sys-kernel/gentoo-sources-5.4.28
43
44 Lspci
45 08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411
46 PCI Express Gigabit Ethernet Controller (rev 03)

Replies

Subject Author
Re: [gentoo-user] Realtek r8169 realtek.ko not loaded. William Kenworthy <billk@×××××××××.au>
Re: [gentoo-user] Realtek r8169 realtek.ko not loaded. Victor Ivanov <vic.m.ivanov@×××××.com>