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 12:52:52
Message-Id: fcd020db-4548-1e0a-48ad-f4574f3c8297@iinet.net.au
In Reply to: Re: [gentoo-user] Realtek r8169 realtek.ko not loaded. by Alexander Puchmayr
1 Here is one of mine: its part of openrc -  if you don't have it you
2 might be using systemd which should have something similar.
3
4 moriah ~ # cat /etc/conf.d/modules
5 # Linux users can define a list of modules for a specific kernel version,
6 # a released kernel version, a main kernel version or all kernel versions.
7 # The most specific versioned variable will take precedence.
8 # FreeBSD users can only use the modules="foo bar" setting.
9 #modules_2_6_23_gentoo_r5="ieee1394 ohci1394"
10 #modules_2_6_23="tun ieee1394"
11 #modules_2_6="tun"
12 #modules_2="ipv6"
13 #modules="ohci1394"
14
15 # Linux users can give modules a different name when they load - the new
16 name
17 # will also be used to pick arguments below.
18 # This is not supported on FreeBSD.
19 #modules="dummy:dummy1"
20
21 # Linux users can give the modules some arguments if needed, per version
22 # if necessary.
23 # Again, the most specific versioned variable will take precedence.
24 # This is not supported on FreeBSD.
25 #module_ieee1394_args="debug"
26 #module_ieee1394_args_2_6_23_gentoo_r5="debug2"
27 #module_ieee1394_args_2_6_23="debug3"
28 #module_ieee1394_args_2_6="debug4"
29 #module_ieee1394_args_2="debug5"
30
31 # You should consult your kernel documentation and configuration
32 # for a list of modules and their options.
33
34 modules="forcedeth nouveau"
35
36 On 17/5/20 7:29 pm, Alexander Puchmayr wrote:
37 > Am Sonntag, 17. Mai 2020, 10:24:00 CEST schrieb William Kenworthy:
38 >> Easiest would be to put it in /etc/conf.d/modules and rebuild the
39 >> initrd. Genkernel picks it up from there. You could also ask genkernel
40 >> to add all built modules to the initrd via its config file.
41 >>
42 > Whats the format of that file?
43 >
44 > Alex
45 >
46 >
47 >
48 >> BillK
49 >>
50 >> On 17/5/20 4:07 pm, Alexander Puchmayr wrote:
51 >>> Hi there
52 >>>
53 >>> I just upgraded an older notebook with r8169 network chip to new kernel
54 >>> 5.4
55 >>> (sys-kernel/gentoo-sources-5.4.28) with genkernel.
56 >>> After booting the new kernel the network adapter was not initialized, no
57 >>> network interface eth0.
58 >>> Dmesg says
59 >>> [ 6.390973] r8169 0000:08:00.0: realtek.ko not loaded, maybe it needs
60 >>> to be added to initramfs?
61 >>> [ 6.392864] r8169: probe of 0000:08:00.0 failed with error -2
62 >>>
63 >>> After searching with google I found a thread in the kernel mailing list
64 >>> https://bugzilla.kernel.org/show_bug.cgi?id=204343
65 >>> The cause is a soft depencency to module realtek.ko, which needs to be
66 >>> loaded first.
67 >>>
68 >>> Doing this manually, i.e. rmmod r8169 && modprobe realtek && modprobe
69 >>> r8169
70 >>> works fine; network interface eth0 gets configured and is operating.
71 >>>
72 >>> Since the kernel loads the network module before systemd is running, it
73 >>> has to be configured in initrd somehow.
74 >>> So, the final question is, how to get that into initrd with genkernel?
75 >>> I need to add something like this
76 >>>
77 >>> cat /etc/modprobe.d/realtek
78 >>> Softdep r8169 pre: realtek
79 >>>
80 >>> How do I get this into initrd with genkernel-next?
81 >>>
82 >>> Thanks in advance
83 >>>
84 >>> Alex
85 >>>
86 >>> PS
87 >>> Profile:
88 >>> default/linux/amd64/17.0/desktop/plasma/systemd
89 >>>
90 >>> Relevant packages:
91 >>> sys-apps/gentoo-systemd-integration-7
92 >>> sys-apps/kmod-26-r5
93 >>> sys-apps/systemd-244.3
94 >>> sys-kernel/genkernel-next-69
95 >>> sys-kernel/gentoo-sources-5.4.28
96 >>>
97 >>> Lspci
98 >>> 08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
99 >>> RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 03)
100 >

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>