All of lore.kernel.org
 help / color / mirror / Atom feed
* Kernel 5.16.11 r8169 ethernet module do not build
@ 2022-03-26 14:34 Hatim Muhammed
  2022-03-26 16:08 ` Randy Dunlap
  0 siblings, 1 reply; 2+ messages in thread
From: Hatim Muhammed @ 2022-03-26 14:34 UTC (permalink / raw)
  To: linux-kernel


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

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 <M>
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?

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)


$ 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Kernel 5.16.11 r8169 ethernet module do not build
  2022-03-26 14:34 Kernel 5.16.11 r8169 ethernet module do not build Hatim Muhammed
@ 2022-03-26 16:08 ` Randy Dunlap
  0 siblings, 0 replies; 2+ messages in thread
From: Randy Dunlap @ 2022-03-26 16:08 UTC (permalink / raw)
  To: Hatim Muhammed, linux-kernel

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 <M>
> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-03-26 16:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-26 14:34 Kernel 5.16.11 r8169 ethernet module do not build Hatim Muhammed
2022-03-26 16:08 ` Randy Dunlap

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.