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

    MV-MIPI-IMX264M+CM4+CM4-NANO-A 需要怎么配置?

    Scheduled Pinned Locked Moved Raspberry Pi App Software
    31 Posts 2 Posters 18.7k 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.
    • M Offline
      maifengW2023
      last edited by

      原来在树莓派4b上开发的,现在移植到CM4+扩展板上;需要怎样配置?或者应该找那个教程,请指教!

      1 Reply Last reply Reply Quote 0
      • M Offline
        maifengW2023
        last edited by

        我是把树莓派4b上的系统镜像到CM4上面,用扩展板CM4-IO-BASE-A,摄像头运行正常;
        6e5503df-4e6c-446d-aeee-9c486dc03703-73ad3701de53368d5879a0bd5b4877c.png
        8a1b9b2c-8221-424a-8c3d-e806772e95fa-da921d802b054668f1a68313d2585b7.png
        947cc7a5-e6ec-45f0-93cb-090518f696cb-b1225267440458747880f2a630c8aba.png
        56abe02d-8357-4bc7-b847-8eea529e1987-87531b9797ecb35807b24c0c3b14509.jpg
        但是用扩展板CM4-NANO-A,就发现不了摄像头;
        9ea5c83e-8309-4fa1-be4a-c9b31200f0bc-a2c7282d4c9b0b2c407ba59e3c28ee4.jpg
        35baa918-170a-490e-9246-0497d762fe29-59f88330785694dd3698e5e25bcc335.png
        47438e8c-6479-4de6-b3d0-87d065391fab-cc314bcfa81cf45b075b583998aebfe.jpg
        请专家给指点迷津!

        1 Reply Last reply Reply Quote 0
        • M Offline
          maifengW2023
          last edited by maifengW2023

          这是配置参考的内容;也按微雪官网的配了也不行https://wiki.veye.cc/index.php/VEYE_MIPI_290/327_for_Raspberry_Pi/zh#.E5.85.B3.E4.BA.8E.E6.A0.91.E8.8E.93.E6.B4.BEComputer_Module_.E5.92.8C.E6.A0.91.E8.8E.93.E6.B4.BEZero.E4.BD.BF.E7.94.A8.E7.9A.84.E8.A1.A5.E5.85.85.E8.AF.B4.E6.98.8E
          执行8.5;拷贝 db-blob.bin到/boot/
          https://wiki.veye.cc/index.php/Mv_series_camera_appnotes_4_rpi/zh#.E4.BB.8E.E6.BA.90.E4.BB.A3.E7.A0.81.E7.BC.96.E8.AF.91.E9.A9.B1.E5.8A.A8.E6.96.B9.E6.B3.95
          执行6.8.4;修改/boot/config.txt
          [all]
          dtparam=i2c_vc=on
          dtoverlay=veye_mvcam
          dtoverlay=veye_mvcam,cam0

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

            @maifengw2023
            CM4-NANO-A这个板子,好像是只连出了一个CSI接口。
            需要判断一下引出的是哪个csi口。
            你可以用

            i2cdetect -y - 10
            i2cdetect -y - 0
            

            看一下哪个能找到0x3b?

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

            M 3 Replies Last reply Reply Quote 0
            • M Offline
              maifengW2023 @veye_xumm
              last edited by

              @veye_xumm
              68bbf8e6-e34a-4544-8cc8-b94954025c72-image.png

              1 Reply Last reply Reply Quote 0
              • M Offline
                maifengW2023 @veye_xumm
                last edited by

                @veye_xumm
                我现在又重新安装了系统,添加驱动后,不认摄像头了;
                板子跟摄像头不动,用老卡上的系统能连上摄像头
                c7e9f05c-69aa-47e7-952f-5564a21dd692-image.png

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

                  @maifengw2023
                  你的新卡和老卡有啥区别?
                  新卡上,执行dmesg | grep mvcam看看输出如何?

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

                  M 1 Reply Last reply Reply Quote 0
                  • M Offline
                    maifengW2023 @veye_xumm
                    last edited by

                    @veye_xumm
                    nano-a 不支持 bullseye ;说这个有bug;
                    支持buster系统,所以我又在新sd卡上灌了5.10.103-v7l系统,安装驱动后,不认摄像头,就是上一楼的提示,我把老sd卡换上去,树莓派跟摄像头都没动,摄像头是正常的

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      maifengW2023 @veye_xumm
                      last edited by

                      @veye_xumm
                      e9c9af60-b209-470e-9fe6-66b3cf34c438-image.png

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

                        @maifengw2023
                        你这个驱动的版本有点老了,不识别264这个型号。因为我们研发开发完成一个新的camera之后,往往只在较新的OS版本上编译出ko。
                        最好结合代码重新编译一个ko出来。

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

                        M 1 Reply Last reply Reply Quote 0
                        • M Offline
                          maifengW2023 @veye_xumm
                          last edited by

                          @veye_xumm
                          重新编译驱动吗?

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

                            @maifengw2023 是的

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

                            M 2 Replies Last reply Reply Quote 0
                            • M Offline
                              maifengW2023 @veye_xumm
                              last edited by

                              @veye_xumm
                              我先试一下吧,不行的话,还需要你们帮忙编译一下驱动

                              1 Reply Last reply Reply Quote 0
                              • M Offline
                                maifengW2023 @veye_xumm
                                last edited by

                                @veye_xumm
                                d2195d1a-8e0a-47f6-b895-207ebc7d7ec8-image.png

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

                                  @maifengw2023
                                  看起来是kernel版本中.remove函数原型定义的差异导致的。你用这个函数替代掉原代码中的对应函数。

                                  static int mvcam_remove(struct i2c_client *client)
                                  {
                                  	struct v4l2_subdev *sd = i2c_get_clientdata(client);
                                  	struct mvcam *mvcam = to_mvcam(sd);
                                  
                                  	v4l2_async_unregister_subdev(sd);
                                  	media_entity_cleanup(&sd->entity);
                                  	mvcam_free_controls(mvcam);
                                  
                                  	mutex_destroy(&mvcam->mutex);
                                      return 0;
                                  }
                                  

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

                                  M 2 Replies Last reply Reply Quote 0
                                  • M Offline
                                    maifengW2023 @veye_xumm
                                    last edited by

                                    @veye_xumm
                                    好的,我试试

                                    1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      maifengW2023 @veye_xumm
                                      last edited by

                                      @veye_xumm
                                      在5.10.103-v7l+上安装好了驱动,在base-a上跟4b上都能正常调用了,但是换成nano-a扩展板,就连接不上摄像头
                                      e5a9e43b-2972-4a87-967b-5894a0c27542-8fdf1f870d81c400a7baa41e212270b.png

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

                                        @maifengw2023
                                        执行一下
                                        dmesg | grep mvcam

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

                                        M 1 Reply Last reply Reply Quote 0
                                        • M Offline
                                          maifengW2023 @veye_xumm
                                          last edited by

                                          @veye_xumm said in MV-MIPI-IMX264M+CM4+CM4-NANO-A 需要怎么配置?:

                                          dmesg | grep mvcam

                                          223389da-0ebd-4a7d-aceb-c0606155bb6a-image.png

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

                                            @maifengw2023
                                            现在i2c0和i2c10都检测不到摄像头,那么有两种可能:

                                            1. 没有给摄像头供电。—— 这种加上供电即可解决。
                                            2. 微雪的这个底板,在i2c硬件方面跟树莓派官方的不同。你需要根据微雪这个板子,改一下设备树文件dts,编译成dtb才可以。

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

                                            M 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