Banana Pi - BPI-M2+ Camera(OV5640)

OS/Banana Pi 2017.02.26 04:27 Posted by 파란크리스마스

BPI-M2+ Camera(OV5640)

출처 : BPI-M2+ OV5640 camera linux driver is work fine
BPI-M2+ camera module

Camera 모듈 설치

$ sudo vi /etc/modules

내용 추가

ov5640
vfe_v4l2

Camera 설치 확인

$ dmesg | grep ov5640
[    8.330079] [VFE]Find sensor name is "ov5640", i2c address is 78, type is "YUV" !
[    8.330090] [VFE]Sub device register "ov5640" i2c_addr = 0x78 start!
[    8.535088] [VFE]Sub device register "ov5640" is OK!
$ ls /dev/video*
/dev/video0

Camera 정보

$ modinfo ov5640
filename:       /lib/modules/3.4.112-sun8i/kernel/drivers/media/video/sunxi-vfe/device/ov5640.ko
license:        GPL
description:    A low-level driver for ov5640 sensors
author:         raymonxiu
alias:          i2c:ov5640
depends:        cci,vfe_subdev
intree:         Y
vermagic:       3.4.112-sun8i SMP preempt mod_unload modversions ARMv7 p2v8 

Camera 캡쳐 프로그램 컴파일 및 실행

출처 : https://github.com/avafinger/ov5640

$ git clone https://github.com/avafinger/cap-v4l2
$ cd cap-v4l2
$ sudo ./install_deps.sh
$ ./build_script.sh
$ ./cap 1280 720 4 1 -999 -1 -1
저작자 표시
신고


 

티스토리 툴바