[Seek Help] 通过编译升级内核
Tofloor
poster avatar
郑少君
deepin
2022-04-03 20:00
Author

有谁分享一下通过编译升级最新内核的方法

Reply Favorite View the author
All Replies
kirin2020
deepin
2022-04-03 21:23
#1

论坛有,我 也发过😁

Reply View the author
咿呀
deepin
2022-04-03 21:36
#2

如果只是想体验最新内核,

推荐使用这个方法,简单不易翻车
https://blog.csdn.net/wf19930209/article/details/81879777


内核编译

下载内核:
https://www.kernel.org
将下载的内核文件移动到/usr/src:

安装必要编译环境

sudo apt-get install git fakeroot build-essential ncurses-dev xz-utils libssl-dev bc flex libelf-dev bison liblz4-tool

解压

cd /usr/src
sudo xz -d linux-5.10.2.tar.xz
sudo tar -xf linux-5.10.2.tar

复制当前使用内核的一些文件

sudo cp /usr/src/linux-headers-5.10.0-051000-generic/.config /usr/src/linux-5.10.2/

编译

sudo su
make menuconfig
make -j8
make bzImage
make modules_install
make install
update-initramfs -c -k 5.10.2
update-grub

参考文章:
https://linux.cn/article-9665-1.html
https://www.jianshu.com/p/eece4167999d
https://elementaryos.stackexchange.com/questions/25182/elementary-os-is-slow-and-unstable

Reply View the author
SamLukeYes
deepin
2022-04-03 21:51
#3

如果只是想体验新内核,这里有编译好的内核:https://xanmod.org/

Reply View the author