编译veye_mvcam.ko报错
-

请问这个是什么问题呀? -
@lin 可能是内核版本不太一致吧。
-
@veye_xumm 能分析一下这是为什么吗?我指定了交叉编译工具链后,报这些错误
make -C /home/forlinx/3588/OK3588_Linux_fs/kernel M=/home/forlinx/test/camera ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- modules
make[1]: Entering directory '/home/forlinx/3588/OK3588_Linux_fs/kernel'
CC [M] /home/forlinx/test/camera/veye_mvcam.o
/home/forlinx/test/camera/veye_mvcam.c: In function ‘mvcam_ioctl’:
/home/forlinx/test/camera/veye_mvcam.c:859:10: error: ‘RKMODULE_GET_CSI_DSI_INFO’ undeclared (first use in this function); did you mean ‘RKMODULE_GET_CHANNEL_INFO’?
859 | case RKMODULE_GET_CSI_DSI_INFO:
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| RKMODULE_GET_CHANNEL_INFO
/home/forlinx/test/camera/veye_mvcam.c:859:10: note: each undeclared identifier is reported only once for each function it appears in
/home/forlinx/test/camera/veye_mvcam.c:860:17: error: ‘RKMODULE_CSI_INPUT’ undeclared (first use in this function)
860 | *(int *)arg = RKMODULE_CSI_INPUT;
| ^~~~~~~~~~~~~~~~~~
/home/forlinx/test/camera/veye_mvcam.c: In function ‘mvcam_compat_ioctl32’:
/home/forlinx/test/camera/veye_mvcam.c:918:10: error: ‘RKMODULE_GET_CSI_DSI_INFO’ undeclared (first use in this function); did you mean ‘RKMODULE_GET_CHANNEL_INFO’?
918 | case RKMODULE_GET_CSI_DSI_INFO:
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| RKMODULE_GET_CHANNEL_INFO
/home/forlinx/test/camera/veye_mvcam.c:919:17: error: ‘RKMODULE_CSI_INPUT’ undeclared (first use in this function)
919 | *(int *)arg = RKMODULE_CSI_INPUT;
| ^~~~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:273: /home/forlinx/test/camera/veye_mvcam.o] Error 1
make[1]: *** [Makefile:1915: /home/forlinx/test/camera] Error 2
make[1]: Leaving directory '/home/forlinx/3588/OK3588_Linux_fs/kernel'
make: *** [Makefile:10: all] Error 2 -
@lin said in 编译veye_mvcam.ko报错:
RKMODULE_CSI_INPUT
forlinx的kernel源码不支持RKMODULE_GET_CSI_DSI_INFO这个宏定义,可以注掉代码。
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login