在Deepin Linux里升级安装最新内核时报错时什么回事?
Tofloor
poster avatar
zjmafg
deepin
2018-12-28 17:04
Author
本帖最后由 zjmafg 于 2018-12-28 15:07 编辑

       因想玩下Deepin Linux系统的内核升级,从www.linux.org上面下载了linux内核最新版本如linux-4.20.tar.xz。经解压缩配置。
      配置使用命令:make localmodconfig,生成仅以正在使用的内核模块为对象的 .config 。
      然后编译内核。编译内核的命令使用:
      make -j64 bzImage
      编译内核模块。编译内核模块的命令:
      make -j64 modules
      安装内核。先安装内核模块命令,再安装内核命令:
      make modules_install
      make install
在此整个过程中,在使用make localmodconfig进行配置阶段,报一段错误:
using config: '/boot/config-4.15.0-29deepin-generic'
mincores config not found!!
vfs_monitor config not found!!
module autofs4 did not have configs CONFIG_AUTOFS_FS
.config:891:warning: symbol value 'm' invalid for HOTPLUG_PCI_SHPC
在使用命令make install安装内核期间,在提示如下一行时等待了很久:
run-parts: executing /etc/kernel/postinst.d/dkms 4.20.0 /boot/vmlinuz-4.20.0
然后报错:
Error!  Build of vfs_monitor.ko failed for: 4.20.0 (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/deepin-anything/0.0/build/ for more information.
Error!  Build of mincores.ko failed for: 4.20.0 (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/mincores/0.2.0/build/ for more information.
最终还是能完成内核的升级并启动进入到最新内核的Deepin Linux。
在百度里查找可以找到这样一段解释:
    “这个问题是一个不兼容的驱动造成的,通过sudo systemctl --failed命令的输出可以了解到系统的systemd-modules-load服务启动失败,不兼容的驱动是mincores,这个驱动是深度引进的warm-sched延时加载功能的依赖驱动,因为4.19内核API头文件的更改造成编译不通过,进而导致systemd-modules-load服务找不到要加载的内核模块,不断重试造成启动延时。 mincores驱动的源文件路径是/usr/src/mincores-0.2.0/mincores.c,我暂时还没深入研究,有兴趣的朋友可以研究研究该如何修改。
请问论坛里的专家,给解释下并说说如何修改吧?谢谢啦!









Reply Favorite View the author
All Replies
avatar
WENWEN
deepin
2018-12-28 17:29
#1
sudo apt install ukuu 按照更新内核
Reply View the author
avatar
zjmafg
deepin
2018-12-28 22:17
#2
https://bbs.deepin.org/post/172962
sudo apt install ukuu 按照更新内核

你好!我试了下原来的问题仍然在,请再帮忙看看?
Reply View the author
avatar
186******51
deepin
2018-12-28 22:27
#3
https://bbs.deepin.org/post/172962
sudo apt install ukuu 按照更新内核

步骤不同,结果是一样的,你这个方法并不能解决mincores的问题
Reply View the author
avatar
margetts99
deepin
2018-12-28 22:55
#4
解决方法是不要升级4.19以上的内核。4.18.20就不错,没有这个报错。
Reply View the author
avatar
ritter
deepin
2018-12-29 02:07
#5
最近manjaro一次更新把4.20降级到4.19了,不知道4.20是不是有什么问题。
Reply View the author
avatar
何来
deepin
2019-01-01 00:49
#6
Manjaro还是4.20呀,没有降级
Reply View the author