Navigation

    VEYE IMAGING Forum

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

    树莓派5 一个mipi接口连接相机无法识别问题

    Raspberry Pi App Software
    3
    4
    1452
    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.
    • S
      sqf121 last edited by sqf121

      你好,我在使用两个imx-642相机,
      用 https://wiki.veye.cc/index.php/V4L2_mode_for_Raspberry_Pi 安装了驱动。
      用树莓派5 CAM1可以打开并设置相机,但是CAM0口找不到相机。
      crop_1.jpg
      尝试更换了相机,单独插在CAM0口上还是识别不了。

      mipi接口是i2c-11和i2c-12吗?这两个接口好像是正常的。
      93f93864-3e82-41e4-a613-e8d9f5f0d0cb-image.png
      e368e99b-7f09-47b3-9a05-77d413515cfa-Screenshot from 2024-06-08 10-14-06.png
      d97f5cf5-f0ad-40c6-a1a7-7f9a267feade-image.png

      这个情况是接口坏了还是漏了什么东西没有设置?

      A veye_xumm 2 Replies Last reply Reply Quote 0
      • A
        alex_ai @sqf121 last edited by

        @sqf121
        Hi, I had similar issue with another camera vendor and it was related to overlay file which was from RPi4.

        And fixed by replacing :
        cam0 = <&i2c_frag>, "target:0=",<&i2c_vc>
        to
        cam0 = <&i2c_frag>, "target:0=",<&i2c_csi_dsi0>

        Did you install driver from "release" folder or built it manually from source code?
        if manually you need use dts(dtbo) file from rpi-6.1.y-bookworm folder.

        Correct camera location should be:
        /axi/pcie@120000/rp1/i2c@88000/veyecam2m@3b
        /axi/pcie@120000/rp1/i2c@80000/veyecam2m@3b

        As I see your second camera on ic2@70000 similar as I had with wrong overlay file.

        S 1 Reply Last reply Reply Quote 0
        • S
          sqf121 @alex_ai last edited by sqf121

          @alex_ai
          Thank you for your reply.

          I used the script from the release folder to install the driver, and the operating system version is 6.6.20-1+rpt1.
          So, while installing the driver, I think the DTS file used by the script is raspberrypi_v4l2/driver_source/dts/rpi-6.6.y/veyecam2m-overlay.dts, which already has cam0 = <&i2c_frag>, "target:0=",<&i2c_csi_dsi0>.


          I compiled the source code, and now both cameras are recognized!
          7011869b-c970-4741-a2db-3a671261f452-image.png

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

            @sqf121
            这个问题已经解决,请参考一下github上的更新。
            https://github.com/veyeimaging/raspberrypi_v4l2

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