How to use ov5640 on BPI-M2Plus

(BPI_Justin) #1

Step 1: Install git

$ sudo apt-get install git

Step 2: Update bpi-tools

$ git clone $ cd bpi-tools $ sudo ./bpi-tools -u -U

Step 3: Use bpi-update to update kerenl (bpi-m2p.conf)

$ mkdir update_file $ cd update_file $ sudo bpi-update -c bpi-m2p.conf $ sudo reboot

Step 4: Check again to see if the kernel’s been updated. The version should be newer than Thu Nov 17 08:10:07 UTC 2.016

$ sudo uname -a

pi@bpi-iot-ros-ai:~$ uname -a
Linux bpi-iot-ros-ai 3.4.39-BPI-M2P-Kernel #1 SMP PREEMPT Fri Nov 18 00:54:47 UTC 2016 armv7l armv7l armv7l GNU/Linux

Step 5: Run command (use the ov8865 record video)

$ sudo ffmpeg-3.1.4 -f v4l2 -channel 0 -video_size 1920x1080 -i /dev/video0 -pix_fmt nv12 -r 22 -c:v cedrus264 bpi-m2p_ov5640_test_1920x1080.mp4

PS3eye Driver and video0 doesnt exit error