Navigation

    VEYE IMAGING Forum

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

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

    Raspberry Pi App Software
    2
    26
    3159
    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
      fancong @veye_xumm last edited by

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

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

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

        veye_xumm 1 Reply Last reply Reply Quote 0
        • veye_xumm
          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的吗?

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

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

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

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

              veye_xumm 1 Reply Last reply Reply Quote 0
              • veye_xumm
                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中其他相机相关的东西注掉试试。

                F 1 Reply Last reply Reply Quote 0
                • F
                  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_xumm 1 Reply Last reply Reply Quote 0
                  • veye_xumm
                    veye_xumm @fancong last edited by

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

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

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

                      1 Reply Last reply Reply Quote 0
                      • F
                        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
                          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
                            fancong @veye_xumm last edited by

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

                            veye_xumm 1 Reply Last reply Reply Quote 0
                            • veye_xumm
                              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

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

                                @veye_xumm 相机在jetson nano上面能正常出图,所以相机硬件没啥问题,就是在cm4上面不行,微雪的cm4-io-baseA上面也不行,好奇怪

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

                                  @veye_xumm 楼主,我用的这个微雪的树莓派CM4扩展板,
                                  https://www.waveshare.net/wiki/CM4-IO-BASE-A
                                  能麻烦帮我看看么?

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