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 082CD1382C5 for ; Sun, 17 May 2020 08:08:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6491EE08CA; Sun, 17 May 2020 08:07:55 +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 F371DE08AE for ; Sun, 17 May 2020 08:07:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by isp1.netcon.at (Postfix) with ESMTP id 0EAB318E4F97 for ; Sun, 17 May 2020 10:07:53 +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 UD7h2SaC0KF7 for ; Sun, 17 May 2020 10:07:52 +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 A1AFB18E4F86 for ; Sun, 17 May 2020 10:07:52 +0200 (CEST) Received: (qmail 21917 invoked from network); 17 May 2020 08:07:52 -0000 Received: from zeus.local (HELO zeus.localnet) (192.168.1.2) by mail.local with SMTP; 17 May 2020 08:07:52 -0000 From: Alexander Puchmayr To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Realtek r8169 realtek.ko not loaded. Date: Sun, 17 May 2020 10:07:51 +0200 Message-ID: <3887877.iIbC2pHGDl@zeus> 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: 7Bit Content-Type: text/plain; charset="us-ascii" X-Archives-Salt: f6f83420-11ab-483a-9a77-c09db09386b0 X-Archives-Hash: 1f0cbdbfb14bce2aff0fad24b97b7907 Hi there 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 After searching with google I found a thread in the kernel mailing list https://bugzilla.kernel.org/show_bug.cgi?id=204343 The cause is a soft depencency to module realtek.ko, which needs to be 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)