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 A40571382C5 for ; Sun, 17 May 2020 11:29:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B3678E0923; Sun, 17 May 2020 11:29:05 +0000 (UTC) Received: from isp1.netcon.at (isp1.netcon.at [85.31.17.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 49B1FE0916 for ; Sun, 17 May 2020 11:29:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by isp1.netcon.at (Postfix) with ESMTP id 96A2918E4EC6 for ; Sun, 17 May 2020 13:29:03 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at isp1.netcon.intern Received: from isp1.netcon.at ([127.0.0.1]) by localhost (isp1.netcon.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id lXe0yU60NYFz for ; Sun, 17 May 2020 13:29:03 +0200 (CEST) Received: from puchmayr.linznet.at (be-9b-bb-d-c3.91-142-26-35.cust.kabelspeed.at [91.142.26.35]) by isp1.netcon.at (Postfix) with ESMTPS id 4386D18E4EC5 for ; Sun, 17 May 2020 13:29:03 +0200 (CEST) Received: (qmail 22211 invoked from network); 17 May 2020 11:29:01 -0000 Received: from zeus.local (HELO zeus.localnet) (192.168.1.2) by mail.local with SMTP; 17 May 2020 11:29:01 -0000 From: Alexander Puchmayr To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Realtek r8169 realtek.ko not loaded. Date: Sun, 17 May 2020 13:29:00 +0200 Message-ID: <3572318.5fSG56mABF@zeus> In-Reply-To: <7facb98a-4b6c-6af5-d5a5-83466a61da45@iinet.net.au> References: <3887877.iIbC2pHGDl@zeus> <7facb98a-4b6c-6af5-d5a5-83466a61da45@iinet.net.au> 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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-Archives-Salt: edd4c428-e7e0-4cb3-aa72-1e0b0fc818a6 X-Archives-Hash: b5a6c7dedc2d2774c0385b65723af771 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 genkernel > to add all built modules to the initrd via its config file. >=20 Whats the format of that file? Alex > BillK >=20 > On 17/5/20 4:07 pm, Alexander Puchmayr wrote: > > Hi there > >=20 > > I just upgraded an older notebook with r8169 network chip to new kernel > > 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 needs > > to be added to initramfs? > > [ 6.392864] r8169: probe of 0000:08:00.0 failed with error -2 > >=20 > > After searching with google I found a thread in the kernel mailing list > > https://bugzilla.kernel.org/show_bug.cgi?id=3D204343 > > The cause is a soft depencency to module realtek.ko, which needs to be > > loaded first. > >=20 > > Doing this manually, i.e. rmmod r8169 && modprobe realtek && modprobe > > r8169 > > works fine; network interface eth0 gets configured and is operating. > >=20 > > 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 > >=20 > > cat /etc/modprobe.d/realtek > > Softdep r8169 pre: realtek > >=20 > > How do I get this into initrd with genkernel-next? > >=20 > > Thanks in advance > >=20 > > Alex > >=20 > > PS > > Profile: > > default/linux/amd64/17.0/desktop/plasma/systemd > >=20 > > 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 > >=20 > > Lspci > > 08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. > > RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 03) =2D-=20 Dipl. Ing. Alexander Puchmayr Grundbachstra=DFe 36 4060 Leonding, =D6sterreich