给麒麟V10升级5.15.165内核

1、去Linux官网下载linux 5.15.165内核

2、解压内核

3、进入文件目录

4、从boot下copy一个config

5、命令如下

sudo make clean
sudo make mrproper
sudo cp /boot/config-x-x-x .config
sudo make menuconfig
sudo make -j8
sudo make modules -j8
sudo make modules_install
sudo make install

awk -F\' '$1=="menuentry " {print i++ " : " $2}' /boot/grub2/grub.cfg
grub2-set-default 0
reboot

升级内核有风险,建议先虚拟机测试。


You May Also Like

More From Author

+ There are no comments

Add yours