我关注了话题建立新内核 5.15在我的戴尔笔记本电脑上,安装了 Ubuntu 20.04.3 及其内核 5.14.0-1008-oem。不幸的是,由于我的 ssd 已加密,我在构建新内核时遇到了一些困难。我在构建内核时不习惯使用这个概念,所以也许我在 .config 中犯了一个错误。
这是我的工作电脑,所以我需要用这种加密来保护我的 Ubuntu。但我也需要构建这个内核来修改 perf linux 模块。
有关加密方法的一些信息:
$ sudo dmsetup status
nvme0n1p4_crypt: 0 980125696 crypt
$ sudo cryptsetup status /dev/mapper/nvme0n1p4_crypt
/dev/mapper/nvme0n1p4_crypt is active and is in use.
type: LUKS1
cipher: aes-xts-plain64
keysize: 512 bits
key location: dm-crypt
device: /dev/nvme0n1p4
sector size: 512
offset: 4096 sectors
size: 980125696 sectors
mode: read/write
flags: discards
我关注了该主题,但没有使用:
$ make menuconfig
我用了 :
$ make olddefconfig
$ make oldconfig
+ modified these lines in the .config :
CONFIG_MODULE_SIG_KEY=""
CONFIG_SYSTEM_TRUSTED_KEYS=""
CONFIG_SYSTEM_BLACKLIST_HASH_LIST=""
CONFIG_SYSTEM_REVOCATION_KEYS=""
If I don't do that, It doesn't work at the beginning with x509 certificate not found and not loaded.
1小时后制作结束:
LD [M] sound/x86/snd-hdmi-lpe-audio.ko
LD [M] sound/xen/snd_xen_front.ko
make KERNELRELEASE=5.15.0 ARCH=x86 KBUILD_BUILD_VERSION=1 -f ./Makefile intdeb-pkg
sh ./scripts/package/builddeb
arch/x86/Makefile:142: CONFIG_X86_X32 enabled but no binutils support
arch/x86/Makefile:142: CONFIG_X86_X32 enabled but no binutils support
INSTALL debian/linux-image/lib/modules/5.15.0/kernel/arch/x86/crypto/aegis128-aesni.ko
INSTALL debian/linux-image/lib/modules/5.15.0/kernel/arch/x86/crypto/aesni-intel.ko
INSTALL debian/linux-image/lib/modules/5.15.0/kernel/arch/x86/crypto/blake2s-x86_64.ko
INSTALL debian/linux-image/lib/modules/5.15.0/kernel/arch/x86/crypto/blowfish-x86_64.ko
INSTALL debian/linux-image/lib/modules/5.15.0/kernel/arch/x86/crypto/camellia-aesni-avx-x86_64.ko
INSTALL debian/linux-image/lib/modules/5.15.0/kernel/arch/x86/crypto/camellia-aesni-avx2.ko
INSTALL debian/linux-image/lib/modules/5.15.0/kernel/arch/x86/crypto/camellia-x86_64.ko
INSTALL debian/linux-image/lib/modules/5.15.0/kernel/arch/x86/crypto/cast5-avx-x86_64.ko
SIGN debian/linux-image/lib/modules/5.15.0/kernel/arch/x86/crypto/aegis128-aesni.ko
SIGN debian/linux-image/lib/modules/5.15.0/kernel/arch/x86/crypto/blowfish-x86_64.ko
SIGN debian/linux-image/lib/modules/5.15.0/kernel/arch/x86/crypto/blake2s-x86_64.ko
SIGN debian/linux-image/lib/modules/5.15.0/kernel/arch/x86/crypto/camellia-aesni-avx-x86_64.ko
SIGN debian/linux-image/lib/modules/5.15.0/kernel/arch/x86/crypto/camellia-aesni-avx2.ko
SIGN debian/linux-image/lib/modules/5.15.0/kernel/arch/x86/crypto/cast5-avx-x86_64.ko
SIGN debian/linux-image/lib/modules/5.15.0/kernel/arch/x86/crypto/camellia-x86_64.ko
SIGN debian/linux-image/lib/modules/5.15.0/kernel/arch/x86/crypto/aesni-intel.ko
At main.c:160:
At main.c:160:
At main.c:160:
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:69
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:69
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:69
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:76
At main.c:160:
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:76
At main.c:160:
At main.c:160:
sign-file: - SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:76
At main.c:160:
sign-file: - SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:69
At main.c:160:
: No such file or directory
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:69
sign-file: - SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:69
: No such file or directory
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:69
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:76
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:69
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:76
: No such file or directory
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:76
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:76
sign-file: - SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:76
sign-file: sign-file: sign-file: : No such file or directory
sign-file: : No such file or directory
: No such file or directory
: No such file or directory
: No such file or directory
make[6]: *** [scripts/Makefile.modinst:83 : debian/linux-image/lib/modules/5.15.0/kernel/arch/x86/crypto/cast5-avx-x86_64.ko] Erreur 1
make[6]: *** Suppression du fichier « debian/linux-image/lib/modules/5.15.0/kernel/arch/x86/crypto/cast5-avx-x86_64.ko »
make[6]: *** Attente des tâches non terminées....
make[6]: *** [scripts/Makefile.modinst:83 : debian/linux-image/lib/modules/5.15.0/kernel/arch/x86/crypto/aegis128-aesni.ko] Erreur 1
make[6]: *** Suppression du fichier « debian/linux-image/lib/modules/5.15.0/kernel/arch/x86/crypto/aegis128-aesni.ko »
make[6]: *** [scripts/Makefile.modinst:83 : debian/linux-image/lib/modules/5.15.0/kernel/arch/x86/crypto/blowfish-x86_64.ko] Erreur 1
make[6]: *** Suppression du fichier « debian/linux-image/lib/modules/5.15.0/kernel/arch/x86/crypto/blowfish-x86_64.ko »
make[6]: *** [scripts/Makefile.modinst:83 : debian/linux-image/lib/modules/5.15.0/kernel/arch/x86/crypto/blake2s-x86_64.ko] Erreur 1
make[6]: *** Suppression du fichier « debian/linux-image/lib/modules/5.15.0/kernel/arch/x86/crypto/blake2s-x86_64.ko »
make[6]: *** [scripts/Makefile.modinst:83 : debian/linux-image/lib/modules/5.15.0/kernel/arch/x86/crypto/camellia-aesni-avx-x86_64.ko] Erreur 1
make[6]: *** Suppression du fichier « debian/linux-image/lib/modules/5.15.0/kernel/arch/x86/crypto/camellia-aesni-avx-x86_64.ko »
make[6]: *** [scripts/Makefile.modinst:83 : debian/linux-image/lib/modules/5.15.0/kernel/arch/x86/crypto/camellia-aesni-avx2.ko] Erreur 1
make[6]: *** Suppression du fichier « debian/linux-image/lib/modules/5.15.0/kernel/arch/x86/crypto/camellia-aesni-avx2.ko »
make[6]: *** [scripts/Makefile.modinst:83 : debian/linux-image/lib/modules/5.15.0/kernel/arch/x86/crypto/camellia-x86_64.ko] Erreur 1
make[6]: *** Suppression du fichier « debian/linux-image/lib/modules/5.15.0/kernel/arch/x86/crypto/camellia-x86_64.ko »
make[6]: *** [scripts/Makefile.modinst:83 : debian/linux-image/lib/modules/5.15.0/kernel/arch/x86/crypto/aesni-intel.ko] Erreur 1
make[6]: *** Suppression du fichier « debian/linux-image/lib/modules/5.15.0/kernel/arch/x86/crypto/aesni-intel.ko »
make[5]: *** [Makefile:1794 : modules_install] Erreur 2
make[4]: *** [scripts/Makefile.package:87 : intdeb-pkg] Erreur 2
make[3]: *** [Makefile:1576 : intdeb-pkg] Erreur 2
make[2]: *** [debian/rules:13 : binary-arch] Erreur 2
dpkg-buildpackage: erreur: debian/rules binary subprocess returned exit status 2
make[1]: *** [scripts/Makefile.package:77 : deb-pkg] Erreur 2
make: *** [Makefile:1576 : deb-pkg] Erreur 2
如何修复它?