UNSOLVED 树莓派64位连接CS-MIPI-IMX307问题
-
我这边有一个树莓派CM4,烧录最新的64位bullseye,连接相机的时候,没有发现/dev/video0节点,我执行了如下操作:
- 配置rasp-config为Legacy Camera Enable;
- 执行./enable_i2c_vc.sh并重启;
- 执行./camera_i2c_config报错:
setting GPIO for board revsion: c03140
CM4 - assume CAM1 on 44&45
./camera_i2c_config: 255: ./rpi3-gpiovirtbuf: not found
Use i2c-10 for the sensor (-y 10)
然后执行目录下面的./rpi3-gpiovirtbuf也是提示找不到该文件,怀疑该程序是32位的,翻了一下论坛,都只是有编译i2c_read和i2c_write,没有这个程序的64位编译,
请问楼主大神,这个该怎么解决啊?
-
@fancong
https://wiki.veye.cc/index.php/Raspberry_Pi_Application_Note_Index/zh
估计你看错了文档。64位系统不能使用legacy模式,需要使用v4l2模式。
v4l2模式才生成/dev/video0节点。 -
@veye_xumm
大神您好,按照这个文档,我加载驱动后重启,dmesg打印如下错误:
fancong@raspberrypi:~$ dmesg | grep imx
[ 0.067734] platform fe801000.csi: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@1/csimx307@3b
[ 7.304776] csimx307: loading out-of-tree module taints kernel.
[ 7.307571] csimx307 10-003b: supply VANA not found, using dummy regulator
[ 7.307929] csimx307 10-003b: supply VDIG not found, using dummy regulator
[ 7.308083] csimx307 10-003b: supply VDDL not found, using dummy regulator
[ 7.316034] csimx307 10-003b: csimx307_identify_module: error during i2c read probe (-121)
[ 7.317349] csimx307: probe of 10-003b failed with error -121
我想知道,这个cs-mipi-imx307是否需要接红黑电源线,我看接线文档里面说不需要,imx307小板上面上电之后,会有啥表现吗?例如有指示灯之类的 -
@fancong
没有指示灯。
不需要接红黑电源线。
你看一下fpc线的方向,有没有接反了?
或者拍一下fpc接口的照片我看看。 -
@veye_xumm ![替代文字]( 图片地址)
-
@fancong 看起来树莓派那头插反了
-
@veye_xumm 线没接错哦,我换了一个imx290,可以识别到:
[ 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 -
@veye_xumm 有没有可能是相机固件需要重新刷?
-
@fancong 不需要重刷固件。如果排线方向没问题,那么有可能需要红黑线供电。
我现在不清楚你的底板的供电能力如何,你可以短时间用红黑线给307供电试一下。不要长期这么用。
回头测试完成告诉我结果。 -
@veye_xumm 收到,我试试,谢谢大佬
-
@veye_xumm 我试了一下,单独加上供电,也不行,我还原成老版本的32位系统看看吧
-
@veye_xumm 还原成32位版本,也不能识别,这个是咋回事儿啊?老板大神,求指教
-
@veye_xumm 相机接上红黑线之后,也在发热
-
@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的吗? -
@veye_xumm 一共只有一个CSI口和一个DSI口
-
@veye_xumm 应该是插在CSI0了,如何选择哪个CSI呢?
-
@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中其他相机相关的东西注掉试试。 -
@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 -
@fancong 你的底板是自己做的对吧? 引出的是CM4的CAM1还是CAM0?对应的I2C是什么?
-
@veye_xumm 不是自己做的,是买的第三方的