我有两台 CentOS 主机,想要安装内核模块 crc32_intel_glue。我在官方仓库中找不到它,所以我尝试从源代码构建它,但失败了。
我从此网页下载了 crc32c-intel_glue.c 和 Makefile:
https://raw.githubusercontent.com/torvalds/linux/master/arch/x86/crypto/
我试过
yum install kernel-headers
make crc32c-intel_glue
但它输出大量错误:
cc crc32c-intel_glue.c -o crc32c-intel_glue
crc32c-intel_glue.c:27:24: error: linux/init.h: No such file or directory
crc32c-intel_glue.c:28:26: error: linux/module.h: No such file or directory
crc32c-intel_glue.c:31:34: error: crypto/internal/hash.h: No such file or directory
crc32c-intel_glue.c:32:34: error: crypto/internal/simd.h: No such file or directory
crc32c-intel_glue.c:34:29: error: asm/cpufeatures.h: No such file or directory
crc32c-intel_glue.c:35:31: error: asm/cpu_device_id.h: No such file or directory
crc32c-intel_glue.c:36:22: error: asm/simd.h: No such file or directory
ETC...
CentOS 6.10
zgrep CONFIG_CRYPTO_CRC32C_INTEL /boot/config-*
回报
CONFIG_CRYPTO_CRC32C_INTEL=m
我寻找crc32c-intel.ko
并找到了它:
/lib/modules/2.6.32-754.14.2.el6.x86_64/kernel/arch/x86/crypto/crc32c-intel.ko
我想在 Centos 5.11 上编译该模块,以了解它是如何工作的。