[Seek Help] 编译5.18.9内核 出现错误提示! 求助
Tofloor
poster avatar
烧饼大咖
deepin
2022-07-05 00:32
Author

deepin升级到 20.6 后 很多驱动都不正常了 显卡也只有最低分辨率显示 ,只能自己尝试编译最新内核看下能不能正常使用! 结果编译到最后安装出现错误.

截图_选择区域_20220704162557.jpg

make && make install 出现上面错误提示

有遇到同样问题的人? 怎么解决

Reply Favorite View the author
Comments
poster avatar
正直笔尖
2022-07-05 00:41
一些小白对折腾内核有特强的好奇心,以为换了内核就变成了宇宙最强系统了。下回折腾前首先要区分是闲置设备,还是工作电脑。自己给自己评估风险,思想准备,评估自己有没有折腾后起死回生的能力。
All Replies
jjcui8595
deepin
2022-07-05 00:37
#1

make完成后不是要先安装模块吗?直接安装内核?

Reply View the author
烧饼大咖
deepin
2022-07-05 00:41
#2
jjcui8595

make完成后不是要先安装模块吗?直接安装内核?

sudo make modules_install

正常安装模块后 才运行 make && make install 安装内核的 结果最后一步出现错误提示 前面一切正常!

Reply View the author
jjcui8595
deepin
2022-07-05 00:45
#3
烧饼大咖
sudo make modules_install

正常安装模块后 才运行 make && make install 安装内核的 结果最后一步出现错误提示 前面一切正常!

模块安装后,为什么还要make?应该直接make install

Reply View the author
烧饼大咖
deepin
2022-07-05 00:49
#4
jjcui8595

模块安装后,为什么还要make?应该直接make install

截图_选择区域_20220704164736.jpg

运行

sudo make install

出错后! 才尝试 make && make install 结果还是出错

Reply View the author
jjcui8595
deepin
2022-07-05 00:52
#5
烧饼大咖

截图_选择区域_20220704164736.jpg

运行

sudo make install

出错后! 才尝试 make && make install 结果还是出错

看起来在make阶段就有问题。建议重新编译

Reply View the author
jjcui8595
deepin
2022-07-05 00:53
#6

先make distclean清理干净,再从头开始

Reply View the author
jjcui8595
deepin
2022-07-05 00:56
#7

建议先尝试安装deepin官方内核5.15.34或5.17.3,不行的话再自己编译。我使用编译的内核,无法打开安卓应用

Reply View the author
烧饼大咖
deepin
2022-07-05 02:00
#8
jjcui8595

先make distclean清理干净,再从头开始

截图_选择区域_20220704175956.jpg

make distclean

清理 重新安装 还是出现同样错误

Reply View the author
s402136469
deepin
2022-07-05 04:27
#9

这不是提示zstd命令没找到吗? 安装zstd后再编译内核就应该就没问题了: sudo apt install zstd

Reply View the author
thepoy
deepin
2022-07-05 04:48
#10

如果你不知道make时也会出现错误,就不要编译内核了,属于折磨自己

Reply View the author
咿呀
deepin
2022-07-05 05:53
#11

试试我常用的编译内核方法

因为你编译过,要先清除旧的编译文件

make clean

Linux内核编译

下载内核:

https://www.kernel.org

安装编译环境

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

解压源码到/usr/src:

sudo tar -xavf linux-5.18.8.tar -C /usr/src/

拷贝配置文件到源码目录

cd /linux-5.18.8/
cp /boot/config-`uname -r` ./.config
sudo su
make menuconfig
加载配置文件:load-->exit
make -j8
make modules_install
make install

内核卸载

1、系统安装内核

dpkg --get-selections|grep linux

2、卸载自编译安装的内核

删除/boot目录下面目标内核版本相关的文件
删除/usr/src目录下的目标旧内核源码
删除/lib/modules目录下目标旧模块
删除/var/lib/initramfs-tools目录下目标旧工具
update-grub 更新grub

参考链接:

https://bbs.deepin.org/post/237619
https://www.jianshu.com/p/eece4167999d
https://linux.cn/article-9665-1.html
https://elementaryos.stackexchange.com/questions/25182/elementary-os-is-slow-and-unstable

Reply View the author
安洛
deepin
2022-07-05 06:44
#12
jjcui8595

建议先尝试安装deepin官方内核5.15.34或5.17.3,不行的话再自己编译。我使用编译的内核,无法打开安卓应用

deepin内核编译的时候打开了兼容安卓的开关,你应该在编译的时候添加某个参数来打开这个开关才能在deepin上使用uengine,详细的看linux内核文档。

Reply View the author
jjcui8595
deepin
2022-07-05 06:49
#13
安洛

deepin内核编译的时候打开了兼容安卓的开关,你应该在编译的时候添加某个参数来打开这个开关才能在deepin上使用uengine,详细的看linux内核文档。

谢谢,知道是哪个参数吗

Reply View the author
烧饼大咖
deepin
2022-07-13 10:06
#14
咿呀

试试我常用的编译内核方法

因为你编译过,要先清除旧的编译文件

make clean

Linux内核编译

下载内核:

https://www.kernel.org

安装编译环境

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

解压源码到/usr/src:

sudo tar -xavf linux-5.18.8.tar -C /usr/src/

拷贝配置文件到源码目录

cd /linux-5.18.8/
cp /boot/config-`uname -r` ./.config
sudo su
make menuconfig
加载配置文件:load-->exit
make -j8
make modules_install
make install

内核卸载

1、系统安装内核

dpkg --get-selections|grep linux

2、卸载自编译安装的内核

删除/boot目录下面目标内核版本相关的文件
删除/usr/src目录下的目标旧内核源码
删除/lib/modules目录下目标旧模块
删除/var/lib/initramfs-tools目录下目标旧工具
update-grub 更新grub

参考链接:

https://bbs.deepin.org/post/237619
https://www.jianshu.com/p/eece4167999d
https://linux.cn/article-9665-1.html
https://elementaryos.stackexchange.com/questions/25182/elementary-os-is-slow-and-unstable

谢谢!!不过我已经重装了deepin 重装后就正常了。原本想不重装就是不想折腾结果一顿操作后比重装还多事😂

Reply View the author