MV-MIPI-IMX264M+CM4+CM4-NANO-A 需要怎么配置?
-
原来在树莓派4b上开发的,现在移植到CM4+扩展板上;需要怎样配置?或者应该找那个教程,请指教!
-
我是把树莓派4b上的系统镜像到CM4上面,用扩展板CM4-IO-BASE-A,摄像头运行正常;




但是用扩展板CM4-NANO-A,就发现不了摄像头;



请专家给指点迷津! -
这是配置参考的内容;也按微雪官网的配了也不行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 -
@maifengw2023
CM4-NANO-A这个板子,好像是只连出了一个CSI接口。
需要判断一下引出的是哪个csi口。
你可以用i2cdetect -y - 10 i2cdetect -y - 0看一下哪个能找到0x3b?
-
-
@veye_xumm
我现在又重新安装了系统,添加驱动后,不认摄像头了;
板子跟摄像头不动,用老卡上的系统能连上摄像头

-
@maifengw2023
你的新卡和老卡有啥区别?
新卡上,执行dmesg | grep mvcam看看输出如何? -
@veye_xumm
nano-a 不支持 bullseye ;说这个有bug;
支持buster系统,所以我又在新sd卡上灌了5.10.103-v7l系统,安装驱动后,不认摄像头,就是上一楼的提示,我把老sd卡换上去,树莓派跟摄像头都没动,摄像头是正常的 -
-
@maifengw2023
你这个驱动的版本有点老了,不识别264这个型号。因为我们研发开发完成一个新的camera之后,往往只在较新的OS版本上编译出ko。
最好结合代码重新编译一个ko出来。 -
@veye_xumm
重新编译驱动吗? -
-
@veye_xumm
我先试一下吧,不行的话,还需要你们帮忙编译一下驱动 -
-
@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; } -
@veye_xumm
好的,我试试 -
@veye_xumm
在5.10.103-v7l+上安装好了驱动,在base-a上跟4b上都能正常调用了,但是换成nano-a扩展板,就连接不上摄像头

-
@maifengw2023
执行一下
dmesg | grep mvcam -
-
@maifengw2023
现在i2c0和i2c10都检测不到摄像头,那么有两种可能:- 没有给摄像头供电。—— 这种加上供电即可解决。
- 微雪的这个底板,在i2c硬件方面跟树莓派官方的不同。你需要根据微雪这个板子,改一下设备树文件dts,编译成dtb才可以。
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


