试图安装新内核,错误 modules.order & Makefile 错误 2

maa*_*nnn 7 kernel makefile sed linux-kernel

尝试安装新内核。编译后,我输入:

su -c "make modules_install install"

Run Code Online (Sandbox Code Playgroud)

此错误填充:

sed: can't read modules.order: No such file or directory
make[1]: *** [Makefile:1304: _modinst_] Error 2
make: *** [Makefile:327: __build_one_by_one] Error 2

Run Code Online (Sandbox Code Playgroud)

解决办法是什么?

小智 9

我在 Debian 10.4 上使用 VirtualBox 中当前工作的 Linux Kernel 4.19.0 的配置编译 Linux Kernel 5.6.14 时遇到了同样的问题。

make oldconfig
make
make modules_install
Run Code Online (Sandbox Code Playgroud)

给了我相同的输出。在我将配置中的CONFIG_SYSTEM_TRUSTED_KEYS行注释掉并将其复制到 Linux Kernel 5.6.14 源目录并从头开始重复之后,make花费了更长的时间,然后我能够执行make module_install

在这里找到,不知道为什么它有效,抱歉我是新手。