修改配置文件:
root@raspberrypi:~# echo "bcm2835-v4l2" >> /etc/modules root@raspberrypi:~# reboot
找到/dev/video文件
pi@raspberrypi:~ $ stat /dev/video0 File: ‘/dev/video0’ Size: 0 Blocks: 0 IO Block: 4096 character special file Device: 6h/6d Inode: 1879 Links: 1 Device type: 51,0 Access: (0660/crw-rw----) Uid: ( 0/ root) Gid: ( 44/ video) Access: 2017-10-28 09:51:03.009999999 +0000 Modify: 2017-10-28 09:51:03.009999999 +0000 Change: 2017-10-28 09:51:03.009999999 +0000 Birth: - pi@raspberrypi:~ $ file /dev/video0 /dev/video0: character special (81/0) pi@raspberrypi:~ $
测试,摄像头灯亮起。
pi@raspberrypi:~ $ cat /dev/video0
转载于:https://blog.51cto.com/990487026/1977064