linux-5.15.26 の Debian 5.10.0-11 へのインストール

linux-5.15.26 の Debian 5.10.0-11 へのインストールログです.複数のトラブルが発生します.ただし,Ubuntu Server 20.04.3 とほぼ同じです.

su -
apt -y install make gcc flex bison libssl-dev libelf-dev bc
wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.15.26.tar.xz
tar xfJ linux-5.15.26.tar.xz
cd linux-5.15.26/
cp /boot/config-5.10.0-11-amd64 .config
make oldconfig

make oldconfig の質問への回答は,結局 Enter を連打することになると思います.

cp .config .config.bak
vi .config

vi .config は以下の2カ所の修正をする

(修正1)
修正前
CONFIG_SYSTEM_TRUSTED_KEYS="debian/certs/debian-uefi-certs.pem"
修正後
CONFIG_SYSTEM_TRUSTED_KEYS=""

(修正2)
修正前
CONFIG_DEBUG_INFO_BTF=y
修正後
CONFIG_DEBUG_INFO_DWARF5=n
CONFIG_DEBUG_INFO_BTF=n

make -j8

HOSTCC scripts/sign-file
scripts/sign-file.c:25:10: fatal error: openssl/opensslv.h: No such file or directory
25 | #include <openssl/opensslv.h>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.host:95: scripts/sign-file] Error 1
make: *** [Makefile:1203: scripts] Error 2

となってしまったら

apt -y install libssl-dev

を忘れている.

CC /root/linux-5.15.26/tools/bpf/resolve_btfids/libsubcmd/pager.o
In file included from /root/linux-5.15.26/tools/objtool/include/objtool/objtool.h:13,
from weak.c:10:
/root/linux-5.15.26/tools/objtool/include/objtool/elf.h:10:10: fatal error: gelf.h: No such file or directory
10 | #include <gelf.h>
| ^~~~~~~~
compilation terminated.

となってしまったら

apt -y install libelf-dev

を忘れている.

BTF: .tmp_vmlinux.btf: pahole (pahole) is not available
Failed to generate BTF for vmlinux
Try to disable CONFIG_DEBUG_INFO_BTF
make: *** [Makefile:1183: vmlinux] Error 1

となってしまったら
vi .config の(修正2)

vi .config
CONFIG_DEBUG_INFO_BTF=y

CONFIG_DEBUG_INFO_DWARF5=n
CONFIG_DEBUG_INFO_BTF=n

を忘れている.

make -j8 modules
make modules_install install
reboot


この記事が気に入ったらサポートをしてみませんか?