728x90

BPI-M2+ Camera(OV5640)

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

Camera 모듈 설치

X
user@localhost:~

[user@localhost]$ sudo vi /etc/modules

내용 추가

ov5640
vfe_v4l2

Camera 설치 확인

X
user@localhost:~

[user@localhost]$ 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!
[user@localhost]$ ls /dev/video*
/dev/video0

Camera 정보

X
user@localhost:~

[user@localhost]$ 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

X
user@localhost:~

[user@localhost]$ git clone https://github.com/avafinger/cap-v4l2
[user@localhost]$ cd cap-v4l2
[user@localhost]$ sudo ./install_deps.sh
[user@localhost]$ ./build_script.sh
[user@localhost]$ ./cap 1280 720 4 1 -999 -1 -1

728x90

+ Recent posts