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