Hi,
I've been looking for information how to connect ov5640 camera to VPIF port in OMAPL138 prcessor but I haven't found an answer. I am using custom board that is based on OMAPL138-LCDK board. I'm using linux-3.3-psp03.22.00.06.sdk.
Problem 1. I have turned on VPIF interface in kernel following this instruction:
http://processors.wiki.ti.com/index.php/Demonstration_of_VPIF_raw_capture_using_MT9T031_sensor_on_AM18X/DA850/OMAP-L138_running_Linux
Unfortunately I cannot see any video device in /dev/ (no /dev/video0 or any other). I can see though that video4linux is in /proce/devices when I cat this file:
81 video4linux
Question 1. Should I see /dev/video0 automatically after booting kernel or should I create it on my own? like this: mknod /dev/video0 c 81 0
Problem 2. Assuming that I can create device with mknod I tried to use gstreamer to capture raw video (beforehand I configure camera with i2c interface by application written by me). I use this command:
gst-launch-0.10 v4l2src device=/dev/video0 ! video/x-raw-yuv,width=640,height=480 ! avimux ! filesink location=test0.avi
but in return I get:
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not open device '/dev/video0' for reading and writing.
Additional debug info:
v4l2_calls.c(511): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
system error: No such device or address
Setting pipeline to NULL ...
Freeing pipeline ...
Question 2:
Is it possible at all to communicate with ov5640 with this scenario? What I should to to acheive this?
1. Boot linux
2. Run own application that will configure camera via I2C
3. Open VPIF to read from camera
4. Capture data to memory
5. Copy this data to my PC computer
6. Throw this data to my FrameBuffer (I assume I will write an application that does that)
What steps do I need to acheive points 1-4?
Thank you in advance for quick response.