VEYE IMAGING Forum
    • Categories
    • Tags
    • Recent
    • Popular
    • Users
    • WIKI
    • veye.cc
    • Register
    • Login

    树莓派64位连接CS-MIPI-IMX307问题

    Scheduled Pinned Locked Moved Raspberry Pi App Software
    26 Posts 2 Posters 11.0k Views 1 Watching
    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.
    • F Offline
      fancong
      last edited by

      我这边有一个树莓派CM4,烧录最新的64位bullseye,连接相机的时候,没有发现/dev/video0节点,我执行了如下操作:

      1. 配置rasp-config为Legacy Camera Enable;
      2. 执行./enable_i2c_vc.sh并重启;
      3. 执行./camera_i2c_config报错:
        setting GPIO for board revsion: c03140
        CM4 - assume CAM1 on 44&45
        ./camera_i2c_config: 255: ./rpi3-gpiovirtbuf: not found
        Use i2c-10 for the sensor (-y 10)
        然后执行目录下面的./rpi3-gpiovirtbuf也是提示找不到该文件,怀疑该程序是32位的,翻了一下论坛,都只是有编译i2c_read和i2c_write,没有这个程序的64位编译,
        请问楼主大神,这个该怎么解决啊?
      veye_xummV 1 Reply Last reply Reply Quote 0
      • veye_xummV Offline
        veye_xumm @fancong
        last edited by

        @fancong
        https://wiki.veye.cc/index.php/Raspberry_Pi_Application_Note_Index/zh
        估计你看错了文档。64位系统不能使用legacy模式,需要使用v4l2模式。
        v4l2模式才生成/dev/video0节点。

        Questions will be answered as soon as possible, please be patient.
        如果你使用中文,请直接用中文提问。
        May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

        F 1 Reply Last reply Reply Quote 0
        • F Offline
          fancong @veye_xumm
          last edited by

          @veye_xumm
          大神您好,按照这个文档,我加载驱动后重启,dmesg打印如下错误:
          fancong@raspberrypi:~$ dmesg | grep imx
          [ 0.067734] platform fe801000.csi: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@1/csimx307@3b
          [ 7.304776] csimx307: loading out-of-tree module taints kernel.
          [ 7.307571] csimx307 10-003b: supply VANA not found, using dummy regulator
          [ 7.307929] csimx307 10-003b: supply VDIG not found, using dummy regulator
          [ 7.308083] csimx307 10-003b: supply VDDL not found, using dummy regulator
          [ 7.316034] csimx307 10-003b: csimx307_identify_module: error during i2c read probe (-121)
          [ 7.317349] csimx307: probe of 10-003b failed with error -121
          我想知道,这个cs-mipi-imx307是否需要接红黑电源线,我看接线文档里面说不需要,imx307小板上面上电之后,会有啥表现吗?例如有指示灯之类的

          veye_xummV 1 Reply Last reply Reply Quote 0
          • veye_xummV Offline
            veye_xumm @fancong
            last edited by

            @fancong
            没有指示灯。
            不需要接红黑电源线。
            你看一下fpc线的方向,有没有接反了?
            或者拍一下fpc接口的照片我看看。

            Questions will be answered as soon as possible, please be patient.
            如果你使用中文,请直接用中文提问。
            May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

            F 1 Reply Last reply Reply Quote 0
            • F Offline
              fancong @veye_xumm
              last edited by

              @veye_xumm ![替代文字](screenshot-20240319-105841.png screenshot-20240319-105828.png 图片地址)

              veye_xummV 1 Reply Last reply Reply Quote 0
              • veye_xummV Offline
                veye_xumm @fancong
                last edited by

                @fancong 看起来树莓派那头插反了

                Questions will be answered as soon as possible, please be patient.
                如果你使用中文,请直接用中文提问。
                May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                F 2 Replies Last reply Reply Quote 0
                • F Offline
                  fancong @veye_xumm
                  last edited by

                  @veye_xumm 线没接错哦,我换了一个imx290,可以识别到:
                  [ 0.068153] platform fe801000.csi: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@1/imx290@1a
                  [ 7.133686] csimx307: loading out-of-tree module taints kernel.
                  [ 7.138194] csimx307 10-003b: supply VANA not found, using dummy regulator
                  [ 7.150271] csimx307 10-003b: supply VDIG not found, using dummy regulator
                  [ 7.150441] csimx307 10-003b: supply VDDL not found, using dummy regulator
                  [ 7.158951] csimx307 10-003b: csimx307_identify_module: error during i2c read probe (-121)
                  [ 7.159789] csimx307: probe of 10-003b failed with error -121
                  [ 7.209372] imx290 10-001a: 16-bit write to 0x301c failed: -121
                  [ 7.211146] imx290 10-001a: 24-bit write to 0x3020 failed: -121
                  [ 7.212098] imx290 10-001a: 24-bit write to 0x3018 failed: -121
                  [ 7.213639] imx290 10-001a: 24-bit write to 0x3020 failed: -121
                  [ 7.213706] imx290 10-001a: Consider updating driver imx290 to match on endpoints

                  1 Reply Last reply Reply Quote 0
                  • F Offline
                    fancong @veye_xumm
                    last edited by

                    @veye_xumm 有没有可能是相机固件需要重新刷?

                    veye_xummV 1 Reply Last reply Reply Quote 0
                    • veye_xummV Offline
                      veye_xumm @fancong
                      last edited by

                      @fancong 不需要重刷固件。如果排线方向没问题,那么有可能需要红黑线供电。
                      我现在不清楚你的底板的供电能力如何,你可以短时间用红黑线给307供电试一下。不要长期这么用。
                      回头测试完成告诉我结果。

                      Questions will be answered as soon as possible, please be patient.
                      如果你使用中文,请直接用中文提问。
                      May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                      F 4 Replies Last reply Reply Quote 0
                      • F Offline
                        fancong @veye_xumm
                        last edited by

                        @veye_xumm 收到,我试试,谢谢大佬

                        1 Reply Last reply Reply Quote 0
                        • F Offline
                          fancong @veye_xumm
                          last edited by

                          @veye_xumm 我试了一下,单独加上供电,也不行,我还原成老版本的32位系统看看吧

                          1 Reply Last reply Reply Quote 0
                          • F Offline
                            fancong @veye_xumm
                            last edited by

                            @veye_xumm 还原成32位版本,也不能识别,这个是咋回事儿啊?老板大神,求指教

                            1 Reply Last reply Reply Quote 0
                            • F Offline
                              fancong @veye_xumm
                              last edited by

                              @veye_xumm 相机接上红黑线之后,也在发热

                              veye_xummV 1 Reply Last reply Reply Quote 0
                              • veye_xummV Offline
                                veye_xumm @fancong
                                last edited by

                                @fancong
                                这个跟64位系统和32位系统没有关系,都能支持。
                                看你的提示,

                                [ 7.158951] csimx307 10-003b: csimx307_identify_module: error during i2c read probe (-121)
                                [ 7.159789] csimx307: probe of 10-003b failed with error -121
                                

                                显示i2c-10上面找不到摄像头。
                                你这个板子总共引出了几个camera接口? 确定测试307的时候是插到i2c-10的吗?

                                Questions will be answered as soon as possible, please be patient.
                                如果你使用中文,请直接用中文提问。
                                May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                                F 2 Replies Last reply Reply Quote 0
                                • F Offline
                                  fancong @veye_xumm
                                  last edited by

                                  @veye_xumm 一共只有一个CSI口和一个DSI口

                                  1 Reply Last reply Reply Quote 0
                                  • F Offline
                                    fancong @veye_xumm
                                    last edited by

                                    @veye_xumm 应该是插在CSI0了,如何选择哪个CSI呢?

                                    veye_xummV 1 Reply Last reply Reply Quote 0
                                    • veye_xummV Offline
                                      veye_xumm @fancong
                                      last edited by

                                      @fancong said in 树莓派64位连接CS-MIPI-IMX307问题:

                                      [ 0.068153] platform fe801000.csi: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@1/imx290@1a

                                      [ 7.133686] csimx307: loading out-of-tree module taints kernel.

                                      [ 7.138194] csimx307 10-003b: supply VANA not found, using dummy regulator

                                      [ 7.150271] csimx307 10-003b: supply VDIG not found, using dummy regulator

                                      [ 7.150441] csimx307 10-003b: supply VDDL not found, using dummy regulator

                                      [ 7.158951] csimx307 10-003b: csimx307_identify_module: error during i2c read probe (-121)

                                      [ 7.159789] csimx307: probe of 10-003b failed with error -121

                                      [ 7.209372] imx290 10-001a: 16-bit write to 0x301c failed: -121

                                      [ 7.211146] imx290 10-001a: 24-bit write to 0x3020 failed: -121

                                      [ 7.212098] imx290 10-001a: 24-bit write to 0x3018 failed: -121

                                      [ 7.213639] imx290 10-001a: 24-bit write to 0x3020 failed: -121

                                      [ 7.213706] imx290 10-001a: Consider updating driver imx290 to match on endpoints

                                      你调试290也是放在同一个CSI接口的吗? 是不是dtb有冲突啊?
                                      你把/boot/config.txt里面的内容贴出来我看看。你把/boot/config.txt中其他相机相关的东西注掉试试。

                                      Questions will be answered as soon as possible, please be patient.
                                      如果你使用中文,请直接用中文提问。
                                      May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                                      F 1 Reply Last reply Reply Quote 0
                                      • F Offline
                                        fancong @veye_xumm
                                        last edited by

                                        @veye_xumm 我后面重新烧录了32位的了,没有290的驱动了,只是我们自己的cs-mipi-imx307的,新的打印如下:
                                        $ dmesg | grep imx
                                        [ 5.458365] csimx307: loading out-of-tree module taints kernel.
                                        [ 5.470420] csimx307 10-003b: csimx307_identify_module: error during i2c read probe (-121)
                                        [ 5.475082] csimx307: probe of 10-003b failed with error -121
                                        fancong@raspberrypi:~$
                                        fancong@raspberrypi:~$
                                        $ dmesg | grep csi
                                        [ 5.458365] csimx307: loading out-of-tree module taints kernel.
                                        [ 5.470420] csimx307 10-003b: csimx307_identify_module: error during i2c read probe (-121)
                                        [ 5.475082] csimx307: probe of 10-003b failed with error -121

                                        veye_xummV 1 Reply Last reply Reply Quote 0
                                        • veye_xummV Offline
                                          veye_xumm @fancong
                                          last edited by

                                          @fancong 你的底板是自己做的对吧? 引出的是CM4的CAM1还是CAM0?对应的I2C是什么?

                                          Questions will be answered as soon as possible, please be patient.
                                          如果你使用中文,请直接用中文提问。
                                          May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                                          F 4 Replies Last reply Reply Quote 0
                                          • F Offline
                                            fancong @veye_xumm
                                            last edited by

                                            @veye_xumm 不是自己做的,是买的第三方的

                                            1 Reply Last reply Reply Quote 0

                                            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
                                            • First post
                                              Last post