Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

Aptina mt9v034 sensor V4L2 based linux driver

3,552 bytes added, 10:23, 14 February 2013
Created page with '= Overview = IMPORTANT NOTE: This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or …'
= Overview =

IMPORTANT NOTE: This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

The goal of this article is provide mt9v034 open source driver for our camera boards.

= General testing notes =

To manipulate the Media controller device node, you can use Laurent’s "media-ctl" command line tool, which you can find here.

* http://git.ideasonboard.org/media-ctl.git

To capture data from sensor, you can use Laurent's "yavta" tool, which you can find here.

* http://git.ideasonboard.org/yavta.git

To see live display from sensor, you can use Laurent's "live" tool, which you can find here.

* http://git.ideasonboard.org/omap3-isp-live.git

To convert raw bayer images to user viewable format, you can use "raw2rgbpnm" tool, which you can find here.

* https://gitorious.org/raw2rgbpnm

= Mainline status =

'''Submitted:''' Oct. 5, 2012

'''Permalink:''' [https://patchwork.kernel.org/patch/1552451 /patch/1552451/]

'''Status:''' Needs to revisit.

= linux-3.6.y status =

'''Repository:''' [http://git.isee.biz/?p=pub/scm/linux-omap-2.6.git;a=shortlog;h=refs/heads/linux-3.6.y-mt9v034 linux-3.6.y-mt9v034]

git clone git://git.isee.biz/pub/scm/linux-omap-2.6.git -b linux-3.6.y-mt9v034

'''Status:''' Working

== Testing notes ==

Use Laurent’s "live" command line tool,

modprobe omap_vout
live

'''Source code:''' http://git.ideasonboard.org/omap3-isp-live.git

== Known Issues ==

(None for the moment)

= linux-2.37.y status =

'''Repository:''' [http://git.isee.biz/?p=pub/scm/linux-omap-2.6.git;a=shortlog;h=refs/heads/linux-2.37.y-mt9v034 linux-2.37.y-mt9v034]

git clone git://git.isee.biz/pub/scm/linux-omap-2.6.git -b linux-2.37.y-mt9v034

'''Status:''' Working with issues

== Testing notes ==

Use Laurent’s "media-ctl" and yavta command line tool,

Configure pipeline to SENSOR -> CCDC OUTPUT

media-ctl -r
media-ctl -l '"mt9v034 2-005c":0->"OMAP3 ISP CCDC":0[1]'
media-ctl -l '"OMAP3 ISP CCDC":1->"OMAP3 ISP CCDC output":0[1]'
media-ctl -f '"mt9v034 2-005c":0 [SGRBG10 752x480]'
media-ctl -f '"OMAP3 ISP CCDC":1 [SGRBG10 752x480]

Capture data with,

yavta -p -f SGRBG10 -s 752x480 -n 4 --capture=3 /dev/video4 --file=img-#.bin

Convert to a viewable format with,

raw2rgbpnm -f SGRBG10 -s 752x480 img-000000.bin img-000000.pnm

== Known Issues ==

* #001: Can't capture from previewer.
* #002: Can't capture from resizer.

Pipeline for previewer

media-ctl -r
media-ctl -l '"mt9v034 2-005c":0->"OMAP3 ISP CCDC":0[1]'
media-ctl -l '"OMAP3 ISP CCDC":2->"OMAP3 ISP preview":0[1]'
media-ctl -l '"OMAP3 ISP preview":1->"OMAP3 ISP preview output":0[1]'
media-ctl -d /dev/media0 -f '"mt9v034 2-005c":0 [SGRBG10 752x480]'
media-ctl -d /dev/media0 -f '"mt9v034 2-005c":0 [SGRBG10 752x480]'
media-ctl -d /dev/media0 -f '"OMAP3 ISP CCDC":2 [SGRBG10 752x480]'
media-ctl -d /dev/media0 -f '"OMAP3 ISP preview":1 [UYVY 752x480]'

Pipeline for resizer

media-ctl -r
media-ctl -l '"mt9v034 2-005c":0->"OMAP3 ISP CCDC":0[1]'
media-ctl -l '"OMAP3 ISP CCDC":2->"OMAP3 ISP preview":0[1]'
media-ctl -l '"OMAP3 ISP preview":1->"OMAP3 ISP resizer":0[1]'
media-ctl -l '"OMAP3 ISP resizer":1->"OMAP3 ISP resizer output":0[1]'

media-ctl -f '"mt9v034 2-005c":0[SGRBG10 752x480]'
media-ctl -f '"OMAP3 ISP CCDC":0 [SGRBG10 752x480]'
media-ctl -f '"OMAP3 ISP CCDC":2 [SGRBG10 752x480]'
media-ctl -f '"OMAP3 ISP preview":1 [UYVY 752x480]'
media-ctl -f '"OMAP3 ISP resizer":1 [UYVY 752x480]'
0
edits