Gentoo Archives: gentoo-user

From: William Kenworthy <billk@×××××××××.au>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Realtek r8169 realtek.ko not loaded.
Date: Sun, 17 May 2020 08:24:16
Message-Id: 7facb98a-4b6c-6af5-d5a5-83466a61da45@iinet.net.au
In Reply to: [gentoo-user] Realtek r8169 realtek.ko not loaded. by Alexander Puchmayr
1 Easiest would be to put it in /etc/conf.d/modules and rebuild the
2 initrd.  Genkernel picks it up from there.  You could also ask genkernel
3 to add all built modules to the initrd via its config file.
4
5 BillK
6
7
8 On 17/5/20 4:07 pm, Alexander Puchmayr wrote:
9 > Hi there
10 >
11 > I just upgraded an older notebook with r8169 network chip to new kernel 5.4
12 > (sys-kernel/gentoo-sources-5.4.28) with genkernel.
13 > After booting the new kernel the network adapter was not initialized, no
14 > network interface eth0.
15 > Dmesg says
16 > [ 6.390973] r8169 0000:08:00.0: realtek.ko not loaded, maybe it needs to be
17 > added to initramfs?
18 > [ 6.392864] r8169: probe of 0000:08:00.0 failed with error -2
19 >
20 > After searching with google I found a thread in the kernel mailing list
21 > https://bugzilla.kernel.org/show_bug.cgi?id=204343
22 > The cause is a soft depencency to module realtek.ko, which needs to be loaded
23 > first.
24 >
25 > Doing this manually, i.e. rmmod r8169 && modprobe realtek && modprobe r8169
26 > works fine; network interface eth0 gets configured and is operating.
27 >
28 > Since the kernel loads the network module before systemd is running, it has to
29 > be configured in initrd somehow.
30 > So, the final question is, how to get that into initrd with genkernel?
31 > I need to add something like this
32 >
33 > cat /etc/modprobe.d/realtek
34 > Softdep r8169 pre: realtek
35 >
36 > How do I get this into initrd with genkernel-next?
37 >
38 > Thanks in advance
39 > Alex
40 >
41 > PS
42 > Profile:
43 > default/linux/amd64/17.0/desktop/plasma/systemd
44 >
45 > Relevant packages:
46 > sys-apps/gentoo-systemd-integration-7
47 > sys-apps/kmod-26-r5
48 > sys-apps/systemd-244.3
49 > sys-kernel/genkernel-next-69
50 > sys-kernel/gentoo-sources-5.4.28
51 >
52 > Lspci
53 > 08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411
54 > PCI Express Gigabit Ethernet Controller (rev 03)
55 >
56 >
57 >
58 >

Attachments

File name MIME type
pEpkey.asc application/pgp-keys

Replies

Subject Author
Re: [gentoo-user] Realtek r8169 realtek.ko not loaded. Alexander Puchmayr <alexander.puchmayr@×××××××.at>