range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 69 www.xunlong.tv
root@orangepi:~# lsmod
Module Size Used by
vfe_v4l2 1018545 0
videobuf_dma_contig 3513 1 vfe_v4l2
videobuf_core 14871 2 vfe_v4l2,videobuf_dma_contig
gc2035 19692 0
vfe_subdev 4531 2 vfe_v4l2,gc2035
cci 22869 2 vfe_v4l2,gc2035
vfe_os 4269 3 cci,vfe_v4l2,vfe_subdev
7) Then use v4l2-ctl (note that l in v4l2 is a lowercase letter l, not a number 1) command
to view the device node of the CSI camera. From the output below, we can see that the
device node corresponding to the camera is /dev/video0
root@orangepi:~# apt update
root@orangepi:~# apt install v4l-utils
root@orangepi:~# v4l2-ctl --list-devices
sunxi-vfe (sunxi_vfe sunxi_vfe.0):
/dev/video0
8) Then start to install the camera test software motion
root@orangepi:~# apt update
root@orangepi:~# apt install motion
9) Modify the configuration of /etc/default/motion, change start_motion_daemon=no to
start_motion_daemon=yes
root@orangepi:~# sed -i "s/start_motion_daemon=no/start_motion_daemon=yes/" \
/etc/default/motion
10) Modify the configuration of /etc/motion/motion.conf
root@orangepi:~# sed -i "s/stream_localhost on/stream_localhost off/" \
/etc/motion/motion.conf
11) Then restart the motion service
root@orangepi:~# /etc/init.d/motion restart
[ ok ] Restarting motion (via systemctl): motion.service.