看错误提示应该是软排线没有充分接触好。
查了一下可能的因素:
https://blog.csdn.net/qq_38880380/article/details/78728509「原因有很多,比如摄像头的sunny部分是否连接牢靠,摄像头是否插紧。但最可能的原因是,你在树莓派带电的时候插拔摄像头,导致管脚烧坏了。这个时候就需要找到是哪个管脚烧坏了,然后补焊一下,加点阻焊剂;」
「This error usually appears because of a faulty connection with the camera. I had the exact same problem in different camera+Pi configurations. The following case is what I encountered:
The connector is not correctly inserted either in the camera or in the Pi.
The Sunny connector (the small yellow one on the camera) is not connected well. (now it gets interesting)
If you often remove and reinsert the camera in the Pi please be sure to remove all power from the Pi. The sensor is very sensitive and a spark on the wrong pin could burn it. (I did this already unfortunately) This could also trigger a problem with the Pi connector pins. It was somewhat confirmed that for Pi2 the connector may have some bad soldering which could lead to cold contact soldering. You can fix this by using some flux on the pins and then pass the soldering iron hot end over the pins to remake the connection.
I used a longer cable that had both connectors on the same side of the cable. If you connect it like it is you can burn your sensor and the Pi will not start because of the power surge (also the camera gets very hot in this case). DO NOT REMOVE IT from the Pi without removing power before. To a cable like this you have to remove the blue plastic from one end and bend the connector with the contacts on the other side. Insert this end in the camera since this will not be removed/inserted as often as the Pi end.」
「绝对不可以带着电源的情况下插入摄像头,如果带电操作,十之八九你的摄像头会GG,博主血泪教训。而且摄像头GG了之后每次调用还是会亮灯,只是你接受不到数据,这个问题我已经Google了很长时间,老外们也是一脸懵逼,大家普遍认为应该是被烧坏了。」
https://www.raspberrypi.org/forums/viewtopic.php?t=105100建议检查一下排线接触情况,再就是确认一下操作方面是否有失误,比如热插拔过摄像头之类的。
另外有个相关性不高的建议,来自:
https://github.com/raspberrypi/linux/issues/435确认一下系统开启了 1-wire 和 I2C。