You are not logged in.

#1 2021-03-09 07:35:05

holzboa
Member
Registered: 2021-03-09
Posts: 3

[SOLVED] No Ethernet with Kernel 5.10.21-1-lts

I updated yesterday to linux-lts 5.10.21-1 and my ethernet connection stopped working.
Booting linux 5.11.4.arch1-1 ethernet works fine.

$ sudo lshw -c network
 *-network UNCLAIMED
       description: Ethernet controller
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:03:00.0
       version: 07
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd cap_list
       configuration: latency=0
       resources: ioport:e000(size=256) memory:f0004000-f0004fff memory:f0000000-f0003fff
$ lspci -v
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 07)
	Subsystem: ZOTAC International (MCO) Ltd. Device 8168
	Flags: fast devsel, IRQ 255
	I/O ports at e000 [disabled] [size=256]
	Memory at f0004000 (64-bit, prefetchable) [disabled] [size=4K]
	Memory at f0000000 (64-bit, prefetchable) [disabled] [size=16K]
	Capabilities: <access denied>
	Kernel modules: r8169

After loading the module manually ethernet starts working again.

$ sudo modprobe -v r8169
insmod /lib/modules/5.10.21-1-lts/kernel/drivers/net/phy/libphy.ko.xz 
insmod /lib/modules/5.10.21-1-lts/kernel/drivers/net/phy/mdio_devres.ko.xz 
insmod /lib/modules/5.10.21-1-lts/kernel/drivers/net/phy/realtek.ko.xz 
insmod /lib/modules/5.10.21-1-lts/kernel/drivers/net/ethernet/realtek/r8169.ko.xz

Should I add r8169 to /etc/modules-load.d/ or better just wait for a new kernel update?
Is it a problem when a module gets loaded by default and is in /etc/modules-load.d/ as well?
I could use linux 5.11.4.arch1-1 but it doesn't recognize my USB DAC as audio output (didn't find a solution to that).

Last edited by holzboa (2021-03-09 10:03:32)

Offline

#2 2021-03-09 08:03:53

seth
Member
Registered: 2012-09-03
Posts: 49,992

Offline

#3 2021-03-09 10:02:14

holzboa
Member
Registered: 2021-03-09
Posts: 3

Re: [SOLVED] No Ethernet with Kernel 5.10.21-1-lts

Thank you - I installed r8168-lts and ethernet is working again.
As i didn't have to install a additional package before I asume this is a new way to handle things.

Offline

#4 2021-03-09 11:08:11

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: [SOLVED] No Ethernet with Kernel 5.10.21-1-lts

The r8169 in-tree module has a history of issues w/ the 8168 chips. r8168 is out-of-tree provided by realtek and is lately the increasingly reliable driver.
https://wiki.archlinux.org/index.php/Ne … 8111/8168B - search the forum for similar reports and "r8168" if you want.

Offline

#5 2021-03-13 11:30:26

hkall
Member
Registered: 2019-11-11
Posts: 18

Re: [SOLVED] No Ethernet with Kernel 5.10.21-1-lts

I the case here I don't think r8169 driver can be blamed. The user writes that "after loading the module manually ethernet starts working again."
This means r8169 is fine. The issue sounds like before the update r8168 was installed and r8169 was blacklisted. After the update r8168 is gone and therefore there's no active driver.
Simply removing the r8169 blacklisting should have been sufficient.

And yes, r8169 was somewhat poor until ca. 2019. Partially Realtek has to be blamed because they release no chip datasheets. Everything has to be reverse-engineered from r8168.
Since then a lot has been done, and the driver architecture of r8169 is superior meanwhile. Just look at the source code of both drivers.
Most of the issue reports, like in the referenced wiki, are years old. In most cases r8169 should be fine now, just make sure that linux-firmware package is installed.

Offline

#6 2021-08-17 02:51:56

bhanu_arch
Member
Registered: 2021-08-17
Posts: 2

Re: [SOLVED] No Ethernet with Kernel 5.10.21-1-lts

holzboa wrote:

Thank you - I installed r8168-lts and ethernet is working again.
As i didn't have to install a additional package before I asume this is a new way to handle things.

I have installed arch for the first time and facing the same issure, could you tell me how to load r8168 in 5.10.36-1-lts, cause on using the `modinfo r8168-lts`  ,  i am getting the error "modinfo: ERROR: Module r8168-lts not found."

any link or some set of commands would be very helpful for me.

Offline

#7 2021-08-17 05:29:25

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: [SOLVED] No Ethernet with Kernel 5.10.21-1-lts

You install https://archlinux.org/packages/communit … r8168-lts/ but first you'll have to update your system, because 5.10.36 was a kernel in may, we're currently at 5.10.56

Offline

#8 2021-08-17 07:43:40

bhanu_arch
Member
Registered: 2021-08-17
Posts: 2

Re: [SOLVED] No Ethernet with Kernel 5.10.21-1-lts

bhanu_arch wrote:
holzboa wrote:

Thank you - I installed r8168-lts and ethernet is working again.
As i didn't have to install a additional package before I asume this is a new way to handle things.

I have installed arch for the first time and facing the same issure, could you tell me how to load r8168 in 5.10.36-1-lts, cause on using the `modinfo r8168-lts`  ,  i am getting the error "modinfo: ERROR: Module r8168-lts not found."

any link or some set of commands would be very helpful for me.

I solve this problem by using the commands :

sudo pacman -S r8168-lts

I was unaware of the fact that this can be installed from the repository itself.

Actually the problem arises because, once i installed the arch linux, it installed with the linux latest kernel and not the linux-lts, and it was not supporting my pc, and making my 'kernel panic'.

Then i try to shift to lts kernel from one of the online article, but it didn't tell about installing other packages important for lts kernel and there my ethernet brokes.

finally from the video of 'eflinux' channel on lts kernel on youtube, i figure out that to know what things are necessary we need to search in the repository by using the command

pacman -Ss linux | grep lts

and there it tells me to installed things needed for linux lts kernel and module for realtek cards if using lts kernel.

Offline

Board footer

Powered by FluxBB