Update Kernel version

honghu

New Member
Joined
Nov 12, 2021
Messages
9
Reaction score
1
Credits
75
[Resolved]kernel Update issuse(CentOs7): When updated kernel from a old version, the network card driver need update too.
use "#lspci --nn | grep -i net" to check matched driver(http://elrepo.org/tiki/DeviceIDs)
 
Last edited:


good morning and welcome to the forums, please use English..


Bwiz
 
thanks
[root~]# cat /proc/cpuinfo | grep name | cut -f2 -d | uniq -c
4 Intel(R) Celeron(R) CPU J1900 1.99GHz
[root~]# lspci | grep vga
Intel Corporation Atom Processor Z36xxx/Z37xxxIntegrated Graphics Controller

a Mini Computer Motherboard. A standard mirror image(CentOs7 / CentOs8/ CentOs Stream 8,All tried)
When I tride to install KDE Desktop and reboot the device, I found I couldn't enter the Desktop,just a grey screen with the mouse.
Before I reboot the device ,I confirm it's ok.
When I moved the mouse , it can moved beyond the screen. I couldn't find the error, I could really use some help so please.
 
Forgive my ignorance
Not a problem
we have a few members familiar with Centos, but as we are spread across all the timezones of the world it may take a little time before they pop in.
 
I guess it's a driver problem. When I update kernel version , there were some conflicts between two version.
I couldn't unstall the old version(it warning its need),I couldn't install the new(it warning some conflicts)
[root~]#yum install -y kernel-ml-devel(some packages I checked) --enablerepo="elrepo-kernel"
 
You'll need the C Compiler and Libraries, also kernel-devel,
 
It would be useful if you shared the output of the errors of yum update and or the errors you are getting with the yum install.
 
It would be useful if you shared the output of the errors of yum update and or the errors you are getting with the yum install.
thanks for reply, Here's what I typed(I redo it)
[root~]#uname -r
3.10.0-1160.e17.x86_64
[root~]#rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
[root~]#rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
[root~]#yum --disablerepo="*" --enablerepo="elrepo-kernel" list available
5.4.159-1/5.15.2-1(availabe version)
[root~]#$ yum --enablerepo=elrepo-kernel install kernel-ml
.....
[root~]#reboot
[root~]#uname -r
5.15.2-1.el7.x86_64

ERROR:
[root~]#ping 192.168.1.1
connect: network is unreachable

when I change the version(3.10.0-1160), the network is OK
I am so confused
 
Is there a specific reason you need kernel-ml, can you show the output of the following when booted into kernel-ml?
Code:
ip a
lspci -nn | grep -i net
The kernel-ml is the mainline kernel and it could be that the driver for your network is not available in that kernel anymore.
 
Is there a specific reason you need kernel-ml, can you show the output of the following when booted into kernel-ml?
Code:
ip a
lspci -nn | grep -i net
The kernel-ml is the mainline kernel and it could be that the driver for your network is not available in that kernel anymore.
I install the driver(r8168-kmod), the connection is OK
And I tried another way:
[root~]#rmmod r8169
[root~]#modprobe r8169
[root~]#service network restart

This way has some problem(it like driving a car with square wheels), but you can get on the internet with it
 
That means the driver for your network card isn't available in the kernel-ml(mainline) by having installed that kernel module it basically installed the driver your network card needs to work.
 

Members online


Top