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: Mon, 18 May 2020 06:47:45
Message-Id: 2310284.atdPhlSkOF@zeus
In Reply to: Re: [gentoo-user] Realtek r8169 realtek.ko not loaded. by William Kenworthy
1 Am Sonntag, 17. Mai 2020, 14:52:32 CEST schrieb William Kenworthy:
2
3 Thanks for the example, but it does not work.
4 I added
5
6 Modules="realtek"
7
8 The called genkernel initramfs, and rebooted.
9
10 The module realtek gets loaded, but obviously too late, I get the same error
11 message in dmesg and not eth0.
12
13 However, I extracted the produced initrd to tmp and made a "grep -r realtek"
14 on this directory. After removing the audio-realtek related lines, this has
15 has been found:
16 ...
17 /lib/modules/5.4.28-gentoo/modules.dep:kernel/drivers/net/ethernet/realtek/
18 r8169.ko: kernel/drivers/net/phy/libphy.ko
19 ...
20 ./lib/modules/5.4.28-gentoo/modules.softdep:softdep r8169 pre: realtek
21 ./lib/modules/5.4.28-gentoo/modules.order:kernel/drivers/net/phy/realtek.ko
22 ...
23
24 There's a softdep-line for r8169 in
25 ./lib/modules/5.4.28-gentoo/modules.softdep inside the initrd, but it seems to
26 be ignored.
27
28 This lead me to initrd:/sbin/modprobe, which is a link to busybox. And the
29 busybox binary embedded here is v1.20, released in 2012 (!). However,
30 consulting google yielded that busybox's modprobe implementation does not
31 support softdeps, even newer versions:
32
33 https://www.element14.com/community/message/234094
34 https://forums.slimdevices.com/showthread.php?107329-Cirrus-Logic-Audio-Card-and-Wolfson-support-in-PCP-3-20
35
36 It seems as if I get stuck here, pre-loading required modules won't work as
37 long this is not supported by busybox, which is a topic that the devs of
38 busybox and genkernel have to solve.
39
40 I will have to switch to Victor's method of building the driver directly into
41 the kernel and not as module.
42
43 Thanks
44 Alex
45
46
47
48 > Linux users can define a list of modules for a specific kernel version,
49 > # a released kernel version, a main kernel version or all kernel versions.
50 > # The most specific versioned variable will take precedence.
51 > # FreeBSD users can only use the modules="foo bar" setting.
52 > #modules_2_6_23_gentoo_r5="ieee1394 ohci1394"
53 > #modules_2_6_23="tun ieee1394"
54 > #modules_2_6="tun"
55 > #modules_2="ipv6"
56 > #modules="ohci1394"
57 >
58 > # Linux users can give modules a different name when they load - the new
59 > name
60 > # will also be used to pick arguments below.
61 > # This is not supported on FreeBSD.
62 > #modules="dummy:dummy1"
63 >
64 > # Linux users can give the modules some arguments if needed, per version
65 > # if necessary.
66 > # Again, the most specific versioned variable will take precedence.
67 > # This is not supported on FreeBSD.
68 > #module_ieee1394_args="debug"
69 > #module_ieee1394_args_2_6_23_gentoo_r5="debug2"
70 > #module_ieee1394_args_2_6_23="debug3"
71 > #module_ieee1394_args_2_6="debug4"
72 > #module_ieee1394_args_2="debug5"
73 >
74 > # You should consult your kernel documentation and configuration
75 > # for a list of modules and their options.
76 >
77 > modules="forcedeth nouveau"