[SOLVED] Network Doesn't Work With Any Kernel After 5.4.0-65
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
First and foremost, I'm the farthest thing from an expert. Relative newbie to all things Linux to be sure. However I did experience something similar in the past and I noticed that in your "broken" output, it does not show: logical name: enp5s0.
If your set up is anything like mine, by not having the logical name, many other features (firewalls, DNS, etc...) might not work correctly.
In my case, I had to solve this by creating a new file at /etc/udev/rules.d/70-persistent-net.rules
and then adding the following line:
In your case, of course, I think the name would just be "enp2s0" since that was your original name. One you've saved that file, give your server a reboot and see if that helps.
This is a stab in the dark from me, but wanted to offer up something for you to try. Best of luck!
The lost driver (r8169.ko) should be in /lib/modules/5.13.0-37-generic/kernel/drivers/net/ethernet/realtek. Try going down this tree by hand and see at what point the path fails.
Distribution: Fedora 18, Slackware64 13.37, Windows 7/8
Posts: 386
Original Poster
Rep:
Quote:
Originally Posted by boughtonp
Is there a reason you pick 5.8 and 5.13 instead of 5.10 or 5.15 or 5.17 ?
Or have you actually tested every version when you assert "5.8.0-49 and newer" are broken? (What about versions 5.5/5.6/5.7?)
5.13 is what apt wanted to install so that's what I went with. At this point I have tried 5.8 (the kernel version where the failure started), 5.10, and 5.13 and all of them fail in the same way. Not sure its worth the trouble to test every kernel when every kernel => 5.8 fails.
Distribution: Fedora 18, Slackware64 13.37, Windows 7/8
Posts: 386
Original Poster
Rep:
Okay, so digging through the bug reports for ubuntu 20.04 it seems the ubuntu team shipped a broken update (did not contain the linux-modules-extra package, which contains the driver pack (r8169) for Realtek Ethernet devices.
1. Rollback to kernel 5.4.0-* (to get internet back) by changing grub to boot older kernel
5.13 is what apt wanted to install so that's what I went with.
Fair enough, but if this is Ubuntu Server 20.04 then I would have expected it to limit itself to LTS kernels.
Quote:
Not sure its worth the trouble to test every kernel when every kernel => 5.8 fails.
Well it's worth testing LTS kernels because they might get fixes which non-LTS kernels wouldn't, but you say you've checked the latest 5.10 also.
If this is your hardware maybe the mtorromeo/r8168 listed under "other drivers" option is worth investigating?
Just seen you've solved it... looks like the Hardware for Linux site has notes on some items, which might help others, but no idea on how they get added.
According to this site Realtek uses the same PCI ID for different chips and distinguishes them by the rev. When I look at the Windows INF file I can see that there are chips with the same vendor, device and revision, but different subsystem, which have different names. Realtek seems to make hundreds of variations.
The problem is that someone added some new software that does some PHY ID checking, and it is now breaking drivers that were working.
The second problem is that there is an attitude that they can blame the Gigabyte BIOS. Meaning they do not want to fix what they broke.
Users are supposed to fix their hardware (upgrade the BIOS); apparently the driver would be dirtied if it had to accept that PHY ID that has been reported the last 10 years.
The suggestion was actually made too not use that hardware and buy another network card.
At this point my blood is boiling a bit, and I will avoid saying too much. There are too many knee-jerk defenders here that will leap in to bash anything that sounds like a complaint.
There is a patch for kernel 5.10 there:
The patch simply adds the PHY ID reported by the Gigabyte BIOS to the list of known PHY.
It matches what I see on my hardware.
I will be trying it on my kernel build.
The driver has been modified since, so the patch will not apply directly.
No, they were not fixing this problem. I still see it on 5.15.19 (slackware).
Quote:
petr.bahula 2021-06-17 10:13:49 UTC
Hi,
we have two GIGABITE MB with this onboard chip.
The chip is detected differ on each MB:
[ 1.702543] r8169 0000:03:00.0: no dedicated PHY driver found for PHY ID 0xc2077002, maybe realtek.ko needs to be added to initramfs?
[ 1.702544] r8169 0000:03:00.0: no dedicated PHY driver found for PHY ID 0xc1071002, maybe realtek.ko needs to be added to initramfs?
In my case following (not fully correct, but working) patch for kernel 5.10.27 helped:
Distribution: Fedora 18, Slackware64 13.37, Windows 7/8
Posts: 386
Original Poster
Rep:
Quote:
Originally Posted by selfprogrammed
At this point my blood is boiling a bit, and I will avoid saying too much. There are too many knee-jerk defenders here that will leap in to bash anything that sounds like a complaint.
Thank you for posting this. I've given up trying to explain this problem to people so everytime I see there is a kernel update I know its gonna break my networking so I pre-emptively follow the steps I mentioned in this thread before I reboot the server. Pretty soon I am going to need to upgrade to V22.04 and I'm 100% certain that is going to fail and break this server
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.