Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5034212pxb; Mon, 28 Mar 2022 07:05:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz663tH3jnjZp7CiwZPRq5J5t1/ftdo+5tplK3KwkYaoCj/vjDlXQjHjPDZsze4nLjQ/Z/b X-Received: by 2002:a17:902:ecc6:b0:154:5393:aa98 with SMTP id a6-20020a170902ecc600b001545393aa98mr26853047plh.88.1648476330827; Mon, 28 Mar 2022 07:05:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648476330; cv=none; d=google.com; s=arc-20160816; b=do/ZkXF0aIvWyifGYTDftqk/3wo8q+tX6WZ6HH/G8SE/q6XwuwLPxZzNihN+n1RZUW RF2AVarNBNbC+eHyQptl81s97gu9VuUvfWOKSrQqsMZRg0n304HEx2TerOlIf+RvABWD byDCK4vAJGTOLBVuhqK4Cc+TnrTaUlLdlXl3/g0xIV5ntv5e10sY/wfHdSXpAPPv3R/8 9rkYigf+CWOaFx7EkyVAvfIAHMmqYNnP+/rve6CbDnN9UjVk2llFp8r1Um/OFpWEDXkT 7c235v3g6GqrzTr9WZduL6BkAjE+ObYhbOHxF1pboayvPpJUD5EDe3YlZ5N56Zsxb/Wy 3SQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=xPQjxfvtCg/ErDgrvCxeRn6ULOMr1Vws1bbyrP0AKkQ=; b=LKQkYXtsNmvaCbr+ukCUytjmKRhz19iibK7xJdFsYjqU0H9IQVLe0yMzNKRItbYdST 2pPg+pRnyQJnhwdfKDh3u60LPEN1l5c7rEidMZ+FoE/aRG8Y2IRVtrAL2sCZpI70Zf5U oa+B71qEcKkMSObzWNdo3NX8+1dPB/ic1sQQsdVjDysbUns2S4Di7UgogtRYrCnvSy9W 6lCd6wVA0/qTadQtWhQifUjR46fXbTd+oeXof/ED+Z7rwuEDcok6/la1pzfGn//K48ZJ dC501aZF63mu80crDY7oo1+FOTQX5IKt7PX9NjQaiPJlJoY/h/otK++/A/T+iL56ERC/ FiSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=iTUkLxtP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h10-20020a63574a000000b0038288abe5f7si12192447pgm.230.2022.03.28.07.05.15; Mon, 28 Mar 2022 07:05:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=iTUkLxtP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233774AbiCZQKX (ORCPT + 99 others); Sat, 26 Mar 2022 12:10:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231758AbiCZQKV (ORCPT ); Sat, 26 Mar 2022 12:10:21 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0E2221DF1B for ; Sat, 26 Mar 2022 09:08:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :In-Reply-To:From:References:To:Subject:MIME-Version:Date:Message-ID:Sender: Reply-To:Cc:Content-ID:Content-Description; bh=xPQjxfvtCg/ErDgrvCxeRn6ULOMr1Vws1bbyrP0AKkQ=; b=iTUkLxtP0i2Um/lVfMEDvvWS+w ehjcrJXgls+Zfse1s6ycmdH+av/iBhTslJngYubclvfA5Y7M3VqKiYLnupHvLLipzlxilXw7Prr5H ry85f/P6ceIufu6tyrKPA+TvULnJaY7Zb/k0AQ41hpBgo8/q1HPnYdDGo/cKuQXTdyxN2XBqTiuX/ 0qF0Lwf7a8JKf3uekB5whY6k+10QFjheZD6JPQf23nsnewdLRvDGmgL2ff+amobl4tc+09Mr3mbPh zvEEfgnst2KRRSdyXZLSxR9/pmjmYft5BSTPKghzOKLWCfy0tiFABKptWqapwC3zxdlVLjJJcf1wt VG+VPkgw==; Received: from [2601:1c0:6280:3f0::aa0b] by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nY8xy-004miw-U7; Sat, 26 Mar 2022 16:08:39 +0000 Message-ID: <41a3daf2-a4e0-5eab-8c66-6db6b0dbcf70@infradead.org> Date: Sat, 26 Mar 2022 09:08:32 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: Kernel 5.16.11 r8169 ethernet module do not build Content-Language: en-US To: Hatim Muhammed , linux-kernel@vger.kernel.org References: From: Randy Dunlap In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi-- On 3/26/22 07:34, Hatim Muhammed wrote: > > Hello everyone > > I'm Hatim, I use Ubuntu 20.4.3 Kernel 5.11 > I downloaded kernel 5.16.11 and installed it as follow: > > make defconfig > make > sudo make modules_install In defconfig, I see CONFIG_R8169=y so the r8169 driver is built-in in the kernel binary image. It is not being built as a loadable module (not as a .ko file). > and now I can't connect to Ethernet > I tried again (make defconfig => make => sudo make modules_install) > But before make, I (make menuconfig) and set r8169 to > and tried again, But no, it did not build, there's no .ko file > > Actually when I (lsmod) I see nothing, NO MODULES ARE LOADED > I'm must be a fool to think things will be easy, but why r8169 driver > refused to build? The binary (.o) files are listed in the 'ls' output below. That is normal for built-in drivers (CONFIG_R8169=y). > Here are some diagnostics: > > $ dmesg | grep -i eth > [ 1.000377] r8169 0000:01:00.0 eth0: RTL8168e/8111e, 9c:8e:99:47:c7:0d, XID 2c2, > IRQ 26 > [ 1.000385] r8169 0000:01:00.0 eth0: jumbo features [frames: 9194 bytes, tx > checksumming: ko] > [ 1.538290] r8169 0000:01:00.0 eno1: renamed from eth0 > [ 4.182471] RTL8211DN Gigabit Ethernet r8169-0-100:00: attached PHY driver > (mii_bus:phy_addr=r8169-0-100:00, irq=MAC) > I don't see any problems there... > > $ ls ~/Desktop/Kernel/linux-5.16.11/drivers/net/ethernet/realtek > > 8139cp.c > 8139too.o > Makefile atp.h > modules.order > r8169_firmware.c > r8169_firmware.o > r8169_main.o > r8169_phy_config.o > 8139too.c > Kconfig atp.c > built-in.a > r8169.h > r8169_firmware.h > r8169_main.c > r8169_phy_config.c > -- ~Randy