Navigation

    VEYE IMAGING Forum

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Recent
    • Popular
    • Users
    • WIKI
    • veye.cc

    SOLVED 编译veye_mvcam.ko报错

    VEYE MIPI camera
    2
    4
    715
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      lin last edited by

      d9184aae-817e-4af4-929d-71909935341c-image.png
      请问这个是什么问题呀?

      veye_xumm 1 Reply Last reply Reply Quote 0
      • veye_xumm
        veye_xumm @lin last edited by

        @lin 可能是内核版本不太一致吧。

        L 1 Reply Last reply Reply Quote 0
        • L
          lin @veye_xumm last edited by

          @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

          veye_xumm 1 Reply Last reply Reply Quote 0
          • veye_xumm
            veye_xumm @lin last edited by

            @lin said in 编译veye_mvcam.ko报错:

            RKMODULE_CSI_INPUT

            forlinx的kernel源码不支持RKMODULE_GET_CSI_DSI_INFO这个宏定义,可以注掉代码。

            1 Reply Last reply Reply Quote 0
            • First post
              Last post