2009-09-19 08:48:49     capture images cm-bf548 with ov2640 connected to EXT-5xx-CAM over eppi and i2c-gpio

Document created by Aaronwu Employee on Aug 19, 2013
Version 1Show Document
  • View in full screen mode

2009-09-19 08:48:49     capture images cm-bf548 with ov2640 connected to EXT-5xx-CAM over eppi and i2c-gpio

Bernd Helge Schäfer (GERMANY)

Message: 80159   

 

Hello everybody,

 

I have a cm-bf548 with the camera extender board EXT-cm5xx-CAM by BlueTechnix with an OmniVision ov2640 attached. I intend to use the v4l blackfin-cam driver to access the camera starting with ov9655 driver that is already available and then try to adapt to suit needs of the ov-2640. I am pretty new to uclinux and not too experienced in writing my own embedded camera drivers, perhaps someone can help me out.

 

First of all I configured i2c-gpio for the cm-bf548 as here cameras are not connected to the hardware i2c but routed over general purpose IO pins (sda_pin=GPIO_PD12, scl_pin=GPIO_PD15 for camera 1, see attached file cm_bf548.c which is located under uclinux-dist/linux-2.6.x/arch/blackfin/mach-bf548/boards/). Now I can successfully load modules i2c-gpio and blackfin-cam yielding the following output:

 

/ # modprobe i2c-gpio

i2c-gpio i2c-gpio.0: using pins 60 (SDA) and 63 (SCL)

i2c-gpio i2c-gpio.1: using pins 91 (SDA) and 90 (SCL)

/ # modprobe blackfin-cam

OV9655: detecting client on address 0x60

OV9655: V4L driver Blackfin CMOS Camera now ready

OV9655: i2c driver ready

 

Device file /dev/video0 is created and

 

cat /dev/video0

 

yields data which I piped into a file to check on my host computer in mplayer. The resulting file is accepted by mplayer as containing video format (see attached file mplayer_output.txt) but the playback is not yet satisfactory (see attached file video.jpg).

 

Certainly the ov9655 and the ov2640 are different with respect to many things but where do I start to adapt the ov9655 driver to get a new driver for the ov2640 in the end? Any help on that issue is appreciated.

 

Thanks in advance

 

mplayer_output.txt

mplayer_video.jpg

cm_bf548.c

Outcomes