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

    相机采集图像阻塞

    Scheduled Pinned Locked Moved VEYE MIPI camera
    37 Posts 4 Posters 17.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.
    • veye_xummV Offline
      veye_xumm @lin
      last edited by

      @lin
      dmesg里面提示的是mvcam1 7-003b: camera is: RAW_MIPI_AR0234M,这个地方是mvcam1而不是mvcam。跟你的拓扑信息对不起来。
      不知道你咋搞成这样的。
      另外,你的板子上计划装几个camera?

      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.)

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

        @veye_xumm mvcam1是我后面修改的,我们使用的开发板上有五个mipi接口,我想使用其中两个mipi,这是我的设备树文件设备树.txt

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

          @lin 你没有改驱动吧?按理说驱动不需要改,只需要改一下dts适配你的硬件就可以。 但是,不改驱动的话,提示应该不会变成mvcam1。

          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.)

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

            @veye_xumm 改了驱动程序里的匹配字符,应该没影响吧,设备树对应的我也改了

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

              @lin bea356de-cdc2-4f3f-8e42-0eb7b04394c2-image.png
              我觉得没有这个必要。
              另外你在i2c-7上面挂了两个相机?即便是这样,也没有必要做两个完全一致的ko插入到系统里面去。

              另外,你所提的图像阻塞的问题。你需要检查一下:1. 硬件的mipi信号线是否跟dts配置的一致。 2. 芯片内的数据通路配置是否正确。

              我建议你先参考我们的资料,搞通一个,然后再类比搞通另一个相机。

              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.)

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

                @veye_xumm said in 相机采集图像阻塞:

                另外你在i2c-7上面挂了两个相机?即便是这样,也没有必要做两个完全一致的ko插入到系统里面去
                我现在只在设备树添加一个相机,设备树中对相机时钟有要求吗?
                232ff5df-676b-4b76-8f24-b45200ea43a2-image.png
                d00b0123-c455-4981-877a-de1c4bbc93e2-image.png
                f4e888cd-a9ec-44a2-a253-bf5574cf4fbd-image.png
                39692e27-31cf-4459-ba78-8abed15efed9-image.png

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

                  @lin

                  @lin said in 相机采集图像阻塞:

                  我现在只在设备树添加一个相机,设备树中对相机时钟有要求吗?

                  没有要求,相机自己有时钟。
                  OK3588-C-Camera.dtsi中,i2c-7这一路,你可以参考一下下面这部分代码。

                  
                  //************************************************
                  //***  CAM3 VEYE MVCAM Configuration Description  ****
                  //************************************************
                  
                  &csi2_dphy0_hw {
                      status = "okay";
                  };
                  
                  &i2c7 {
                      status = "okay";
                      clock-frequency = <400000>;
                  
                      cam3_mvcam: cam3_mvcam@3b {
                          compatible = "veye,mvcam";
                          status = "okay";
                          reg = <0x3b>;
                  
                          clocks = <&ext_cam_clk>;
                          clock-names = "xclk";
                          clock-frequency = <24000000>;
                          pwdn-gpios = <&extio EXTIO_GPIO_P05 GPIO_ACTIVE_HIGH>;
                          //enable-gpios = <&extio EXTIO_GPIO_P05 GPIO_ACTIVE_HIGH>;
                          reset-gpios = <&extio EXTIO_GPIO_P04 GPIO_ACTIVE_LOW>;
                          
                          rockchip,camera-module-index = <0>;
                          rockchip,camera-module-facing = "back";
                          rockchip,camera-module-name = "NC";
                          rockchip,camera-module-lens-name = "NC";
                  
                          port {
                              cam3_mvcam_out: endpoint {
                                  remote-endpoint = <&mipi_in_ucam3>;
                                  data-lanes = <1 2>;
                              };
                          };
                      };
                  };
                  
                  &csi2_dphy0 {
                      status = "okay";
                      ports {
                          #address-cells = <1>;
                          #size-cells = <0>;
                          port@0 {
                              reg = <0>;
                              #address-cells = <1>;
                              #size-cells = <0>;
                              mipi_in_ucam3: endpoint@1 {
                                  reg = <1>;
                                  remote-endpoint = <&cam3_mvcam_out>;
                                  data-lanes = <1 2>;
                              };
                          };
                          port@1 {
                              reg = <1>;
                              #address-cells = <1>;
                              #size-cells = <0>;
                              mipi2_csi2_mipicsi0_out0: endpoint@0 {
                                  reg = <0>;
                                  remote-endpoint = <&mipi2_csi2_input>;
                              };
                          };
                      };
                  };
                  
                  &mipi2_csi2 {
                          status = "okay";
                      ports {
                          #address-cells = <1>;
                          #size-cells = <0>;
                          port@0 {
                              reg = <0>;
                              #address-cells = <1>;
                              #size-cells = <0>;
                              mipi2_csi2_input: endpoint@1 {
                                  reg = <1>;
                                  remote-endpoint = <&mipi2_csi2_mipicsi0_out0>;
                              };
                          };
                          port@1 {
                              reg = <1>;
                              #address-cells = <1>;
                              #size-cells = <0>;
                              mipi2_csi2_output: endpoint@0 {
                                  reg = <0>;
                                  remote-endpoint = <&cif_mipi_lvds2>;
                              };
                          };
                      };
                  };
                  
                  &rkcif_mipi_lvds2 {
                      status = "okay";
                      port {
                          cif_mipi_lvds2: endpoint {
                              remote-endpoint = <&mipi2_csi2_output>;
                          };
                      };
                  };
                  
                  &rkcif_mipi_lvds2_sditf {
                      status = "disabled";
                  };
                  
                  

                  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.)

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

                    @veye_xumm请问,你们调试的时候有遇到这种情况吗?没有数据流输出,一直阻塞 16a1f873-dc28-49a3-9b52-47e9ce0a76fb-image.png

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

                      @lin 你是否用的是外触发模式?
                      查看一下dmesg是否有报错?
                      确认一下dts中关于mipi接口配置是否正确。

                      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.)

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

                        @veye_xumm c77647b7-8387-4016-a9c5-bac295f81e3c-image.png
                        内核打印信息:1.txt
                        还有您说的mipi接口配置是指链路设置还是mipi_csi2节点设置?

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

                          @lin

                          @lin said in 相机采集图像阻塞:

                          还有您说的mipi接口配置是指链路设置还是mipi_csi2节点设置?

                          整个数据通路都得配置好才行。

                          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.)

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

                            @veye_xumm 设备树OK3588-C-Camera.txt 拓扑图已经生成了拓扑图.txt ,哪里可能会导致阻塞呀?

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

                              @lin
                              看你的拓扑图:

                              - entity 48: m00_b_mvcam 7-003b (1 pad, 1 link)
                                           type V4L2 subdev subtype Sensor flags 0
                                           device node name /dev/v4l-subdev2
                                      pad0: Source
                                              [fmt:Y8_1X8/1920x1200@100/6000 field:none]
                                              -> "rockchip-csi2-dphy1":0 [ENABLED]
                              

                              你这边设定i2c-7接口配套的mipi硬件接口是:csi2-dphy1
                              真的是这样的吗?

                              我给你的我们调过的那个dts,用的可是csi2-dphy0啊!

                              baf36233-e256-4ca2-b12d-b5c3fd93661a-image.png

                              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.)

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

                                @veye_xumm said in 相机采集图像阻塞:

                                i2c-7接口配套的mipi硬件接口

                                硬件接口是这样的,39bbed92-b702-4ddd-b2d1-67653a8fcf90-企业微信截图_17177212345917.png
                                我将接口节点换成csi2-dphy0也还是无法采集到图像数据

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

                                  @lin 你是用的OK3588-C这个开发板吗?

                                  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.)

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

                                    @veye_xumm 是的

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

                                      @lin 能否添加您的邮箱,我们这边相机驱动调试还是有问题?

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

                                        @lin said in 相机采集图像阻塞:

                                        OK3588-C这个开发板,我之前贴的这个dts是调试过的。

                                        没有要求,相机自己有时钟。

                                        OK3588-C-Camera.dtsi中,i2c-7这一路,你可以参考一下下面这部分代码。

                                        你直接用这个dts,然后配合我们官方发布的驱动。
                                        在加上这个链接提示的问题点:https://wiki.veye.cc/index.php/FAQ_on_RK35xx_Platform/zh

                                        应该可以直接调通i2c-7这一路才对。

                                        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.)

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

                                          @veye_xumm said in 相机采集图像阻塞:
                                          我已经全部按照您说的进行了修改,但是相机还是无法出图,内核打印信息2.txt ,efedde5a-872d-4ed1-92b8-39639606c76e-image.png
                                          这和这个有关系吗?cab69001-dcf2-4f8b-9966-fbffc6f90b9a-image.png

                                          veye_xummV 2 Replies Last reply Reply Quote 0
                                          • veye_xummV Offline
                                            veye_xumm @lin
                                            last edited by

                                            @lin said in 相机采集图像阻塞:

                                            我已经全部按照您说的进行了修改,但是相机

                                            你用的相机型号是什么? 用哪个命令做的取图?

                                            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.)

                                            L 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