小编Bal*_*ami的帖子

无法用补丁编译内核

我正在尝试使用自定义补丁构建 ubuntu 5.3.0 内核。我下载了源代码并使用添加了补丁

patch -p1 < patch_name.patch
Run Code Online (Sandbox Code Playgroud)

并使用进行配置

make config
Run Code Online (Sandbox Code Playgroud)

然后我编译它使用

make -j6
Run Code Online (Sandbox Code Playgroud)

这给了我 vmlinux 和 vmlinux.o 文件。我不知道如何使用它们,所以我尝试将内核制作成 .deb 文件。我用了

make deb-pkg

fakeroot make-kpkg -j N --initrd --append-to-version=my-very-own-kernel kernel-image kernel-headers

make bindeb-pkg
Run Code Online (Sandbox Code Playgroud)

但是在编译整个内核后,所有这些都给了我同样的错误。

/bin/sh: 1: lz4c: not found
arch/x86/boot/compressed/Makefile:146: recipe for target 'arch/x86/boot/compressed/vmlinux.bin.lz4' failed
make[3]: *** [arch/x86/boot/compressed/vmlinux.bin.lz4] Error 127
make[3]: *** Deleting file 'arch/x86/boot/compressed/vmlinux.bin.lz4'
make[3]: *** Waiting for unfinished jobs....
arch/x86/boot/Makefile:112: recipe for target 'arch/x86/boot/compressed/vmlinux' failed
make[2]: *** [arch/x86/boot/compressed/vmlinux] Error 2
arch/x86/Makefile:284: recipe for target 'bzImage' failed
make[1]: *** …
Run Code Online (Sandbox Code Playgroud)

compiling kernel

1
推荐指数
1
解决办法
3002
查看次数

标签 统计

compiling ×1

kernel ×1