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.
    • 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
                          • M Offline
                            maifengW2023 @veye_xumm
                            last edited by

                            @veye_xumm
                            供电我量了一下J3连接器的1、2脚;电压是4.98V;
                            设备树文件dts怎样修改有没有教程或说明,我好参考一下;我问了微雪的技术他们连imx219摄像头没有问题

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

                              @maifengw2023
                              这东西没有教程了,就是一点点源码。你可以参考一下微雪的imx219在这个板子上的dts。

                              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 maifengW2023

                                @veye_xumm
                                按你们文档上这个,下载下来可以用吗?
                                d2be52fd-a041-4e3f-824f-69a0448c796e-image.png

                                还有这个双摄像头这个
                                11dceaf6-396d-4463-be71-d461ba76963a-image.png

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

                                  @maifengw2023
                                  我们的这个代码是open source的,你可以作为参考。
                                  但是原则上,软件肯定要去符合硬件,你要参考我们的dts,改动一下配置,去吻合到微雪的底板上。
                                  说白了就是驱动移植。

                                  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
                                      我把设备寄给你们,你们看看能不能调试的通,本来想发给微雪的,想了想,你们摄像头他不一定懂啊,但是树莓派你们肯定懂,他们也提供的又原理图

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

                                        @maifengw2023
                                        根据原理图,微雪的CM4-NANO-A所引出的CAMERA接口应该是跟树莓派官方的CMIO4板子的cam0一样的。
                                        树莓派4b实际上引出的是cam1。

                                        问题: 你用微雪的CM4-IO-BASE-A,是不是两个摄像头插口都调通了? 如果没有,那么,首先调通它。 然后再调CM4-NANO-A就顺理成章了。

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

                                        @veye_xumm
                                        这个不应该是我做的工作呀!再说了,这些我也没有搞过呀,我买微雪的扩展板,买你的摄像头,让我根据他的板子改这个驱动,有点不现实啊!😢

                                        错了,你不会,并不意味着这不是你的工作。

                                        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 世间板子千千万,我们并未承诺或者提示过支持微雪的这款板子。我们那么多客户,如果选了我们没有支持的板子,很多都是自己做驱动移植的。
                                            你作为设备的集成开发者,把供应商提供的东西捏合到一起,做成产品,就是你的工作啊~

                                            anyway,我还是会尽量帮你解决问题。

                                            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