在我的linux头文件文件夹中,包含在/usr/src/linux-headers-5.7.0-kali1-common/include.目录中的Kali内核5.7.0头在这个文件夹中,我有包含在子文件夹中的头文件,如asm-generic、linux、uapi、acpi、crypto等等。但是在头文件中,即linux/module.h中有一个头文件引用,如
#include <asm/module.h> // top o
此包跟踪Linux内核的更改,并在必要时重新编译vboxdrv内核模块。我按照建议的步骤重新安装内核模块,日志文件如下所示:
Makefile:181: *** Error: unable to find the sources of your current LinuxSpecify KERN_DIR=<directory> and run Make again. Stop.Specify KERN_DIR=<directory> and run Make a