Hi,

On Mon, Sep 12, 2011 at 11:02 PM, itodroid <itodroid@gmail.com> wrote:
I have been down this path and you have my condolences.  It's not easy, nor
is it documented.  I got dangerously close to getting this to work when we
decided to forgo power management for now and baseline the 2.6.34 kernel.  I
will share with you some high level steps in hopes that this helps you down
the path.

1.) Grab the v2.6.39 patch for the mt9v032 sensor from TI's website.  It's
located here:
http://git.angstrom-distribution.org/cgi-bin/cgit.cgi/meta-texasinstruments/
diff/recipes-kernel/linux/linux-omap-2.6.39/camera/0002-v4l-Add-mt9v032-sens
or-driver.patch?id=066b16478ede808f74a126d8bced0785af064d8b
 There are
significant changes from 2.6.34 to 2.6.39.  Don't try to forward port the
2.6.34 driver.

2.) Next, get the omap3isp driver compiled into your kernel.  See the
drivers/media/video/omap3isp directory for the source.  It's natively in the
2.6.39 kernel.

3.) Once you have both the omap3isp and mt9v032 sensor in your kernel, you
have to modify the board file (board-overo.c) in order for the device to
show up.  This involves registering v4l2 devices and v4l2 subdevices.  I
successfully got the mt9v032 sensor to be registered as a subdevice.  The
following thread is useful (just remember that the sensor is a mt9v032):
http://www.mail-archive.com/linux-media@vger.kernel.org/msg25117.html

4.) If you succeed, you should get a bunch of /dev/video devices.  However,
you're not done yet.  You need to compile media-ctl and configure the isp
pipeline.  The following thread should be helpful here:
http://permalink.gmane.org/gmane.linux.distributions.gumstix.general/60123

5.) After that, I believe you should have a working pipeline and should be
able to test it with yavta or ffmpeg.

Hope this helps.

PS - Eventually I will revisit this.  However, it won't be until the late
October/November timeframe.


Instead of grabbing pieces of the patches here and there, I suggest you try change the preferred_provider for the kernel to use
"linux-omap" NOT "linux-omap3" and v2.6.39 already has all the necessary patches to get the MT9V032 with the correct ISP.

I tried that successfully capturing still snapshots but am still consolidating my notes before I share it as I need to get confirmation of some patches from others.

I'm looking out for a streaming application to test it too.

Steve's GNOME v3.0 image should also has all the necessary parts since he said that it's based on kernel.org's v3.0 which already has everything needed.

I intend to try and rebuild his GNOME v3.0 image using his repo but can't do any as kernel.org is down since Thursday evening (GMT+8) till now with no news of when it will be back online.

--
Regards,
James