Gentoo Archives: gentoo-user

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

Replies

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