From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4F5051382C5 for ; Sun, 17 May 2020 12:52:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AAF2AE0916; Sun, 17 May 2020 12:52:45 +0000 (UTC) Received: from icp-osb-irony-out3.external.iinet.net.au (icp-osb-irony-out3.external.iinet.net.au [203.59.1.153]) by pigeon.gentoo.org (Postfix) with ESMTP id 86DD0E08FC for ; Sun, 17 May 2020 12:52:44 +0000 (UTC) X-SMTP-MATCH: 0 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2AVDgCLMsFe/3Ku0HZmHAEBAQEBAQc?= =?us-ascii?q?BARIBAQQEAQGCB4IsbwNRAQEBHhIshCSJAYZHAQEBAQEBBoESJYoJhRqMQQs?= =?us-ascii?q?BAQEBAQEBAQEDBSMMBAEBhEQCghgkOBMCEAEBAQUBAQEBAQUDAW2FCkwMhXI?= =?us-ascii?q?BBSNLGwsNCyoCAlcTCAEBgyIBglckEK1ygTIaAoU1hSQKBoE4gVOLCXmBB4E?= =?us-ascii?q?4DAOCWj6CZwQagTqDI4JgBI47ColdgRU7gQiYFoJahBmCUYE8kBsGHZAoFAO?= =?us-ascii?q?NF5ouj0yERIExOCI2gSBNHxk7gmpPGGOYcIVPNAEBATACNQIGAQcBAQMJjHe?= =?us-ascii?q?CQwEB?= X-IPAS-Result: =?us-ascii?q?A2AVDgCLMsFe/3Ku0HZmHAEBAQEBAQcBARIBAQQEAQGCB?= =?us-ascii?q?4IsbwNRAQEBHhIshCSJAYZHAQEBAQEBBoESJYoJhRqMQQsBAQEBAQEBAQEDB?= =?us-ascii?q?SMMBAEBhEQCghgkOBMCEAEBAQUBAQEBAQUDAW2FCkwMhXIBBSNLGwsNCyoCA?= =?us-ascii?q?lcTCAEBgyIBglckEK1ygTIaAoU1hSQKBoE4gVOLCXmBB4E4DAOCWj6CZwQag?= =?us-ascii?q?TqDI4JgBI47ColdgRU7gQiYFoJahBmCUYE8kBsGHZAoFAONF5ouj0yERIExO?= =?us-ascii?q?CI2gSBNHxk7gmpPGGOYcIVPNAEBATACNQIGAQcBAQMJjHeCQwEB?= X-IronPort-AV: E=Sophos;i="5.73,403,1583164800"; d="asc'?scan'208";a="261965119" Received: from unknown (HELO mail.infra.localdomain) ([118.208.174.114]) by icp-osb-irony-out3.iinet.net.au with ESMTP; 17 May 2020 20:52:42 +0800 Received: from localhost (mail.infra.localdomain [127.0.0.1]) by mail.infra.localdomain (Postfix) with ESMTP id 14C2A380AB7 for ; Sun, 17 May 2020 20:52:42 +0800 (AWST) X-Virus-Scanned: amavisd-new at localdomain Received: from mail.infra.localdomain ([127.0.0.1]) by localhost (mail.infra.localdomain [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cdt-b3Vb7vBz for ; Sun, 17 May 2020 20:52:32 +0800 (AWST) Subject: Re: [gentoo-user] Realtek r8169 realtek.ko not loaded. To: gentoo-user@lists.gentoo.org References: <3887877.iIbC2pHGDl@zeus> <7facb98a-4b6c-6af5-d5a5-83466a61da45@iinet.net.au> <3572318.5fSG56mABF@zeus> From: William Kenworthy X-Pep-Version: 2.0 Message-ID: Date: Sun, 17 May 2020 20:52:32 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 In-Reply-To: <3572318.5fSG56mABF@zeus> Content-Type: multipart/mixed; boundary="------------ADA78949D98F104AC05E9CBF" Content-Language: en-US X-Archives-Salt: ea648811-41c9-4cdb-a615-ec37ac5258e2 X-Archives-Hash: cbf7b04dfde86cd1dd2a3cf413a2bf67 This is a multi-part message in MIME format. --------------ADA78949D98F104AC05E9CBF Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Here is one of mine: its part of openrc -=C2=A0 if you don't have it you might be using systemd which should have something similar. moriah ~ # cat /etc/conf.d/modules # Linux users can define a list of modules for a specific kernel version,= # a released kernel version, a main kernel version or all kernel versions= =2E # The most specific versioned variable will take precedence. # FreeBSD users can only use the modules=3D"foo bar" setting. #modules_2_6_23_gentoo_r5=3D"ieee1394 ohci1394" #modules_2_6_23=3D"tun ieee1394" #modules_2_6=3D"tun" #modules_2=3D"ipv6" #modules=3D"ohci1394" # Linux users can give modules a different name when they load - the new name # will also be used to pick arguments below. # This is not supported on FreeBSD. #modules=3D"dummy:dummy1" # Linux users can give the modules some arguments if needed, per version # if necessary. # Again, the most specific versioned variable will take precedence. # This is not supported on FreeBSD. #module_ieee1394_args=3D"debug" #module_ieee1394_args_2_6_23_gentoo_r5=3D"debug2" #module_ieee1394_args_2_6_23=3D"debug3" #module_ieee1394_args_2_6=3D"debug4" #module_ieee1394_args_2=3D"debug5" # You should consult your kernel documentation and configuration # for a list of modules and their options. modules=3D"forcedeth nouveau" On 17/5/20 7:29 pm, Alexander Puchmayr wrote: > Am Sonntag, 17. Mai 2020, 10:24:00 CEST schrieb William Kenworthy: >> Easiest would be to put it in /etc/conf.d/modules and rebuild the >> initrd. Genkernel picks it up from there. You could also ask genkern= el >> to add all built modules to the initrd via its config file. >> > Whats the format of that file? > > Alex > > > >> BillK >> >> On 17/5/20 4:07 pm, Alexander Puchmayr wrote: >>> Hi there >>> >>> I just upgraded an older notebook with r8169 network chip to new kern= el >>> 5.4 >>> (sys-kernel/gentoo-sources-5.4.28) with genkernel. >>> After booting the new kernel the network adapter was not initialized,= no >>> network interface eth0. >>> Dmesg says >>> [ 6.390973] r8169 0000:08:00.0: realtek.ko not loaded, maybe it ne= eds >>> to be added to initramfs? >>> [ 6.392864] r8169: probe of 0000:08:00.0 failed with error -2 >>> >>> After searching with google I found a thread in the kernel mailing li= st >>> https://bugzilla.kernel.org/show_bug.cgi?id=3D204343 >>> The cause is a soft depencency to module realtek.ko, which needs to b= e >>> loaded first. >>> >>> Doing this manually, i.e. rmmod r8169 && modprobe realtek && modprobe= >>> r8169 >>> works fine; network interface eth0 gets configured and is operating. >>> >>> Since the kernel loads the network module before systemd is running, = it >>> has to be configured in initrd somehow. >>> So, the final question is, how to get that into initrd with genkernel= ? >>> I need to add something like this >>> >>> cat /etc/modprobe.d/realtek >>> Softdep r8169 pre: realtek >>> >>> How do I get this into initrd with genkernel-next? >>> >>> Thanks in advance >>> >>> Alex >>> >>> PS >>> Profile: >>> default/linux/amd64/17.0/desktop/plasma/systemd >>> >>> Relevant packages: >>> sys-apps/gentoo-systemd-integration-7 >>> sys-apps/kmod-26-r5 >>> sys-apps/systemd-244.3 >>> sys-kernel/genkernel-next-69 >>> sys-kernel/gentoo-sources-5.4.28 >>> >>> Lspci >>> 08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. >>> RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 03) > --------------ADA78949D98F104AC05E9CBF Content-Type: application/pgp-keys; name="pEpkey.asc" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="pEpkey.asc" -----BEGIN PGP PUBLIC KEY BLOCK----- mQENBF6ny40BCADsvtTvI28Ze+X4N+hvXTGLk2hw5P6uJxBWxfqFthpDA953gcq8 nFAH3sGDSxFFepx9fZ3t8j3mq+63T4NT7wdxfOwzoliW4CDaqQRnGe7KM8J0mGhc y7NwiMR/0w8sHEKSZCaXuCPP3DFQamqflGmBTxHSB65LE3YN1J0v40M9SL3n0zpD S4LtZnPqHw18tq6ZZ0TtmojRLRJPifkAa/5P9bsP9BNRrMhtgx+XLpyWg+BZAnDB aNWf+XUGmY/nWZ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