modpost报错
若出现以下报错信息:
ERROR: modpost: "lapic_timer_period" [/home/user/workspace/jailhouse/driver/jailhouse.ko] undefined!
ERROR: modpost: "__get_vm_area_caller" [/home/user/workspace/jailhouse/driver/jailhouse.ko] undefined!
ERROR: modpost: "ioremap_page_range" [/home/user/workspace/jailhouse/driver/jailhouse.ko] undefined!
ubuntu 20.04, 22.04均会出现这个问题,我的解决方法是换到18.04
<asm/types.h>缺失
cd jailhouse
之后make
,若报错:
fatal error: asm/types.h: No such file or directory
#include <asm/types.h>
- 确保已经
sudo apt-get install gcc-multilib
- 跑
make
的时候要指定交叉编译器,如make CC=x86_64-linux-gnu-gcc
jailhouse hardware check报错
execvp: No such file or directory
./tools/jailhouse-hardware-check