樹莓派2,找不到 /dev/video 解決辦法
阿新 • • 發佈:2017-10-29
找不到 樹莓派2 dev/video
修改配置文件:
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
本文出自 “李春利” 博客,請務必保留此出處http://990487026.blog.51cto.com/10133282/1977064
樹莓派2,找不到 /dev/video 解決辦法