[Community] [News] GTA04 Camera

Dr. H. Nikolaus Schaller hns at goldelico.com
Tue Apr 9 18:46:35 CEST 2013

the camera is finally starting to work!

Here is a short video made with the GTA04 camera:


Quality is not yet optimized and exact frame position isn't as well.

And the frame rate is quite limited by mplayer / mencoder running (unaccelerated?)
on the GTA04.

But I think we have reached a major milestone and I encourage to compile your own camera
driver and let us all know about patches and improvements.

Source of the V4L2 subdevice driver is here:


and of course the matching board file entries (to load and configure camera and ISP capture interface):


The working camera demo (only works as "camera-demo sxga") is here:


And frame capture by C code:


Finally, the media-ctl comes as a precompiled (armel) debian package here:


So what is working?
* initialization
* capture interface
* SXGA resolution (specified for 15fps)
* capture through mplayer or C code
* media-ctl to set-up the OMAP3 ISP

What is not working?
* hsync/vsync position
* VGA, QVGA, CIF does not set pixel clock etc. correctly
* only understands UYVY although the camera can provide (raw or cooked) RGB
* frame rate (?)
* more settings (black/white level, AGC)
* flashlight driver and connection between drivers
* picture is a little speckled (green and magenta spots)
* the driver code still has spoils from the original driver it was forked from, i.e. needs code clean-up
* overclocking of the camera - it is specified to run up to 48 MHz which would theoretically allow 30fps @ SXGA

What were the key challenges?
* understanding how V4L2 subdevices work
* understanding that both the camera and the OMAP3 have a signal processor
* understanding the media-ctl command to bypass the OMAP3 ISP
* understanding format encoding in the kernel drivers

Happy experimenting!

Now as the basics are here, I am curious which distro will be the first to come with a camera application :)


More information about the Community mailing list