参考:https://www.centos.bz/2017/08/upgrade-centos-7-6-kernel-to-4-12-4/
采用内核源码
一、下载源码Linux-5.5.13
二、tar解压到/usr/src/kernels/
三、编译 :
https://juejin.im/post/5e70de7b6fb9a07cb74bf1cd
https://www.linuxidc.com/Linux/2019-11/161257.htm
(参考鸟哥私房菜基础篇 第二十六章http://cn.linux.vbird.org/linux_basic/0540kernel.php#make_install)
1、make bzImage
中间出现的错误及解决方法
错误:script/sign-file : fatal error : openssl/opensslv.h :no such file or directory
解决:yum install openssl-devel
yum install openssl-devel
显示错误:no package openssl-devel availble
解决 :yum同步除了问题;yum clean all --> yum install openssl-devel
make bzImage
再次错误:building kernel with non-retpoline compiler: update your compiler
解决方法:运行 make menuconfig. 找到 Proc