最近搞了一台Intel® Pentium® Processor J4205的機器,安裝centos7後發現非常卡頓,看到啟動的時候說不識別CPU,於是就去看去主板商官網看支持哪些操作系統,發現支持Linux: Ubuntu 16.10 / Fedora 25,centos7用的內核是3.10,Fedora25 用的是4.9的。於是為我的centos 7 升級內核:
內核升級
默認內核啟動
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
[ddd@localhost ~]$ yum --enablerepo=elrepo-kernel list |grep kernel* * elrepo-kernel: mirrors.tuna.tsinghua.edu.cnabrt-addon-kerneloops.x86_64 2.1.11-45.el7.centos @anacondakernel.x86_64 3.10.0-514.el7 @anacondakernel.x86_64 3.10.0-514.6.1.el7 @updates kernel-devel.x86_64 3.10.0-514.el7 @anacondakernel-devel.x86_64 3.10.0-514.6.1.el7 @updates kernel-headers.x86_64 3.10.0-514.6.1.el7 @updates kernel-ml.x86_64 4.9.10-1.el7.elrepo @elrepo-kernelkernel-ml-devel.x86_64 4.9.10-1.el7.elrepo @elrepo-kernelkernel-tools.x86_64 3.10.0-514.6.1.el7 @updates kernel-tools-libs.x86_64 3.10.0-514.6.1.el7 @updates erlang-kernel.x86_64 R16B-03.18.el7 epel kernel-abi-whitelists.noarch 3.10.0-514.6.1.el7 updates kernel-debug.x86_64 3.10.0-514.6.1.el7 updates kernel-debug-devel.x86_64 3.10.0-514.6.1.el7 updates kernel-doc.noarch 3.10.0-514.6.1.el7 updates kernel-lt.x86_64 4.4.49-1.el7.elrepo elrepo-kernelkernel-lt-devel.x86_64 4.4.49-1.el7.elrepo elrepo-kernelkernel-lt-doc.noarch 4.4.49-1.el7.elrepo elrepo-kernelkernel-lt-headers.x86_64 4.4.49-1.el7.elrepo elrepo-kernelkernel-lt-tools.x86_64 4.4.49-1.el7.elrepo elrepo-kernelkernel-lt-tools-libs.x86_64 4.4.49-1.el7.elrepo elrepo-kernelkernel-lt-tools-libs-devel.x86_64 4.4.49-1.el7.elrepo elrepo-kernelkernel-ml-doc.noarch 4.9.10-1.el7.elrepo elrepo-kernelkernel-ml-headers.x86_64 4.9.10-1.el7.elrepo elrepo-kernelkernel-ml-tools.x86_64 4.9.10-1.el7.elrepo elrepo-kernelkernel-ml-tools-libs.x86_64 4.9.10-1.el7.elrepo elrepo-kernelkernel-ml-tools-libs-devel.x86_64 4.9.10-1.el7.elrepo elrepo-kernelkernel-tools-libs-devel.x86_64 3.10.0-514.6.1.el7 updates libreport-plugin-kerneloops.x86_64 2.1.11-35.el7.centos base lirc-disable-kernel-rc.x86_64 0.9.1a-4.el7 epel perf.x86_64 4.9.10-1.el7.elrepo elrepo-kernelphp-symfony-http-kernel.noarch 2.8.12-2.el7 epel python-perf.x86_64 4.9.10-1.el7.elrepo elrepo-kerneltexlive-l3kernel.noarch 2:svn29409.SVN_4469-38.el7 base texlive-l3kernel-doc.noarch 2:svn29409.SVN_4469-38.el7 base [ddd@localhost ~]$
在yum的ELRepo源中,有mainline頒布的,可以這樣安裝:
yum --enablerepo=elrepo-kernel install kernel-ml-devel kernel-ml -y
當然也可以安裝long term的:
yum --enablerepo=elrepo-kernel install kernel-lt -y
打開 grub2-efi.cfg 找到 CentOS Linux (4.9.10-1.el7.elrepo.x86_64) 7 (Core)復制
vim /etc/grub2-efi.cfg
設置默認啟動項
grub2-set-default "CentOS Linux (4.9.10-1.el7.elrepo.x86_64) 7 (Core)"
驗證默認啟動項
grub2-editenv list
http://www.bkjia.com/Linuxjc/1195840.htmlwww.bkjia.comtrue