【Luckfox幸狐 RV1106 Linux 开发板】编译驱动模块问题求助
[复制链接]
邀请 LitchiCheng,sonicfirr,damiaa参与回复。
我在编译驱动模块的时候出现下面的问题,也搜索过相关解答:linux内核编译报错问题code/include/uapi/linux/types.h:5:10: fatal error: asm/types.h: 没有那个文件或目录_./include/uapi/linux/types.h:5:10: fatal error: as-CSDN博客 但是对我不起作用,请问大家又遇到这种情况吗?是怎么解答的。
报错代码:
make -C /home/tang/linux/LuckFox_RV1106/luckfox-pico/sysdrv/source/kernel M=/home/tang/linux/LuckFox_RV1106/workspace/driver/st7735/st7735_driver modules
make[1]: 进入目录“/home/tang/linux/LuckFox_RV1106/luckfox-pico/sysdrv/source/kernel”
CC [M] /home/tang/linux/LuckFox_RV1106/workspace/driver/st7735/st7735_driver/st7789_driver.o
In file included from ./include/linux/types.h:6:0,
from ./include/linux/list.h:5,
from ./include/linux/module.h:12,
from /home/tang/linux/LuckFox_RV1106/workspace/driver/st7735/st7735_driver/st7789_driver.c:1:
./include/uapi/linux/types.h:5:10: fatal error: asm/types.h: No such file or directory
#include <asm/types.h>
^~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.build:273: recipe for target '/home/tang/linux/LuckFox_RV1106/workspace/driver/st7735/st7735_driver/st7789_driver.o' failed
make[2]: *** [/home/tang/linux/LuckFox_RV1106/workspace/driver/st7735/st7735_driver/st7789_driver.o] Error 1
Makefile:1917: recipe for target '/home/tang/linux/LuckFox_RV1106/workspace/driver/st7735/st7735_driver' failed
make[1]: *** [/home/tang/linux/LuckFox_RV1106/workspace/driver/st7735/st7735_driver] Error 2
make[1]: 离开目录“/home/tang/linux/LuckFox_RV1106/luckfox-pico/sysdrv/source/kernel”
Makefile:8: recipe for target 'kernel_modules' failed
make: *** [kernel_modules] Error 2
注:在我虚拟机的/usr/include目录下有这个头文件<asm/types.h>,如下图
|