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 @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
                                    • F Offline
                                      fancong @veye_xumm
                                      last edited by

                                      @veye_xumm 我看你们文档里面有说明:
                                      "对于只有1个MIPI CSI-2口的树莓派主板,i2c总线序号是10。如果你的piOS很老,那么有可能是0。"
                                      默认是10吧

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

                                        @veye_xumm 我换了一个树莓派4B,按照经典方案进行验证,可以得到如下信息,但是只有video10,没有video0:
                                        pi@raspberrypi:bin$ ./cs_mipi_i2c.sh -r -f devid
                                        hardwareid is 0x 2
                                        pi@raspberrypi:bin$ ./cs_mipi_i2c.sh -r -f hdver
                                        hardware logic version is 0x33
                                        pi@raspberrypi:bin$ ./cs_mipi_i2c.sh -r -f firmwarever
                                        r firmware version is 2.35
                                        pi@raspberrypi:bin$ ./cs_mipi_i2c.sh -r -f productmodel
                                        PRODUCT MODEL is CS-MIPI-IMX307
                                        pi@raspberrypi:bin$ ./cs_mipi_i2c.sh -r -f camcap
                                        r camera capbility 0x0005
                                        pi@raspberrypi:bin$ ./cs_mipi_i2c.sh -r -f videofmtcap
                                        camera support videofmt num 3
                                        r videofmtcap num 1 width 1920 height 1080 framerate 30
                                        r videofmtcap num 2 width 1280 height 720 framerate 60
                                        r videofmtcap num 3 width 640 height 480 framerate 130
                                        pi@raspberrypi:bin$ ./cs_mipi_i2c.sh -r -f videofmt
                                        r old type videofmt width 1920 height 1080 framerate 30
                                        pi@raspberrypi:bin$ ./cs_mipi_i2c.sh -w -f videofmt -p1 1920 -p2 1080 -p3 10
                                        w old videofmt width 1920 height 1080 framerate 10
                                        pi@raspberrypi:bin$ ./cs_mipi_i2c.sh -r -f ispcap
                                        r ispcap 0x17
                                        pi@raspberrypi:bin$ ./cs_mipi_i2c.sh -w -f videofmt -p1 1920 -p2 1080 -p4 0.20
                                        w new type videofmt width 1920 height 1080 framerate 0.20
                                        pi@raspberrypi:bin$ ./cs_mipi_i2c.sh -r -f i2caddr -d i2caddrnow
                                        r i2caddr 0xff
                                        pi@raspberrypi:bin$ ./cs_mipi_i2c.sh -w -f i2caddr -p1 newi2caddr -d oldi2caddr
                                        ./cs_mipi_i2c.sh: line 586: printf: newi2caddr: invalid number
                                        w i2caddr 0x 0 and save
                                        w paramsave,all param will write to flash
                                        pi@raspberrypi:bin$ ./cs_mipi_i2c.sh -w -f paramsave
                                        w paramsave,all param will write to flash
                                        pi@raspberrypi:bin$ ./cs_mipi_i2c.sh -w -f sysreset
                                        w sysreset,all param will reset
                                        这个能表示检测到了摄像头了吗? 但是为啥是video10呢?用的树莓派4B

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

                                          @veye_xumm 你们的文档里面关于树莓派CM4的连接写的是:
                                          "树莓派经典版型硬件连接所使用的为FFC异面线,如右图所示
                                          树莓派Computer Module硬件连接所使用的为FFC同面线,如右图所示"
                                          我这边需要使用同面的FFC吗?

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

                                            @fancong

                                            pi@raspberrypi:bin$ ./cs_mipi_i2c.sh -r -f productmodel

                                            PRODUCT MODEL is CS-MIPI-IMX307

                                            你现在4b上i2c已经通了,CM上面不通,由于你的底板是第三方的,我不确定需要用什么线。
                                            你最好直接根据你底板的接口定义,接插件接触面,线的方向,我们相机的引脚定义,确认一下。
                                            https://wiki.veye.cc/index.php/CS-MIPI-IMX307_STARVIS_Module/zh

                                            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

                                            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