1 |
Hi Alexander, |
2 |
|
3 |
A while back I had the exact same issue with a remote machine that I am |
4 |
managing. It has an Asus B45-M mobo with an r8169 chipset. Ever since |
5 |
the 5.2.x kernel family - where it last used to work - it has been a pain. |
6 |
|
7 |
Initially I added a manual "soft" dependency in "/etc/conf.d/modules" as |
8 |
William has suggested to you with "realtek" appearing first in the list. |
9 |
But this stopped working following an update to 5.4.x and is still the |
10 |
case today with the 5.6.x family (I keep testing it once in a while). |
11 |
|
12 |
I then decided to build both realtek and r8169 modules into the kernel: |
13 |
|
14 |
REALTEK_PHY=y |
15 |
CONFIG_R8169=y |
16 |
|
17 |
It did require a bit of faff as the whole chain of dependencies from |
18 |
REALTEK_PHY had to be built in as well, but I think that was about 5-6 |
19 |
kernel options in total. |
20 |
|
21 |
Adding it to the ramdisk as William suggests might work too. In my case |
22 |
I didn't bother trying this due to the fact that every failed attempted |
23 |
required manual intervention by someone to get the machine booted with |
24 |
working kernel. |
25 |
|
26 |
I have a gut feeling that tells me adding it to the initrd probably |
27 |
won't work. But if you're planning on trying it, please keep us posted. |
28 |
I would be very interested in hearing your solution. |
29 |
|
30 |
Regards, |
31 |
V |
32 |
|
33 |
On 17/05/2020 09:07, Alexander Puchmayr wrote: |
34 |
> Hi there |
35 |
> |
36 |
> I just upgraded an older notebook with r8169 network chip to new kernel 5.4 |
37 |
> (sys-kernel/gentoo-sources-5.4.28) with genkernel. |
38 |
> After booting the new kernel the network adapter was not initialized, no |
39 |
> network interface eth0. |
40 |
> Dmesg says |
41 |
> [ 6.390973] r8169 0000:08:00.0: realtek.ko not loaded, maybe it needs to be |
42 |
> added to initramfs? |
43 |
> [ 6.392864] r8169: probe of 0000:08:00.0 failed with error -2 |
44 |
> |
45 |
> After searching with google I found a thread in the kernel mailing list |
46 |
> https://bugzilla.kernel.org/show_bug.cgi?id=204343 |
47 |
> The cause is a soft depencency to module realtek.ko, which needs to be loaded |
48 |
> first. |
49 |
> |
50 |
> Doing this manually, i.e. rmmod r8169 && modprobe realtek && modprobe r8169 |
51 |
> works fine; network interface eth0 gets configured and is operating. |
52 |
> |
53 |
> Since the kernel loads the network module before systemd is running, it has to |
54 |
> be configured in initrd somehow. |
55 |
> So, the final question is, how to get that into initrd with genkernel? |
56 |
> I need to add something like this |
57 |
> |
58 |
> cat /etc/modprobe.d/realtek |
59 |
> Softdep r8169 pre: realtek |
60 |
> |
61 |
> How do I get this into initrd with genkernel-next? |
62 |
> |
63 |
> Thanks in advance |
64 |
> Alex |
65 |
> |
66 |
> PS |
67 |
> Profile: |
68 |
> default/linux/amd64/17.0/desktop/plasma/systemd |
69 |
> |
70 |
> Relevant packages: |
71 |
> sys-apps/gentoo-systemd-integration-7 |
72 |
> sys-apps/kmod-26-r5 |
73 |
> sys-apps/systemd-244.3 |
74 |
> sys-kernel/genkernel-next-69 |
75 |
> sys-kernel/gentoo-sources-5.4.28 |
76 |
> |
77 |
> Lspci |
78 |
> 08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 |
79 |
> PCI Express Gigabit Ethernet Controller (rev 03) |
80 |
> |
81 |
> |
82 |
> |
83 |
> |