Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

How to setup tvp5151 video decoder

2,050 bytes added, 13:48, 12 May 2011
no edit summary
= What is?<br> =
The [http://focus.ti.com/docs/prod/folders/print/tvp5151.html TVP5151 ] device is an ultralow-power NTSC/PAL/SECAM video decoder. Available in a space-saving 48-terminal PBGA package or a 32-terminal TQFP package, the TVP5151 decoder converts NTSC, PAL, and SECAM video signals to 8-bit ITU-R BT.656 format. Discrete syncs are also available. The optimized architecture of the TVP5151 decoder allows for ultralow power consumption. The decoder consumes 138-mW power under typical operating conditions and consumes less than 1 mW in power-down mode, considerably increasing battery life in portable applications. The decoder uses just one crystal for all supported standards. The TVP5151 decoder can be programmed using an I2C serial interface.
The TVP5151 decoder converts baseband analog video into digital YCbCr 4:2:2 component video.
git checkout linux-2.6.35.y-omap3isp
</pre>
== Build the Kernel ==
Configure the kernel
<pre>source /usr/local/poky/eabi-glibc/environment-setup-arm-none-linux-gnueabi
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- igep0020_defconfig
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage modules
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- modules_install INSTALL_MOD_PATH=[path to your target rootfs
</pre>
By default the iommu2, tvp5151 and omap3-isp drivers be build inside the kernel but you can configure it for build as module using this [http://downloads.igep.es/files/tvp5151/config alternative configuration file].<br>
 
If you wish use this alternative configuration file copy it in the kernel sources root directory and rename the file as:<br>
<pre>mv config .config
</pre>
By default Build the kernel with this configuration file:<br><pre>source /usr/local/poky/eabi-glibc/environment-setup-arm-none-linux-gnueabimake ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage modulesmake ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- modules_install INSTALL_MOD_PATH=[path to your target rootfs</pre>After build the kernel and the modules you must install it on the IGEP board. = TVP5151 Setup<br> = You need the program [[http//downloads.igep.es/files/tvp5151/media-ctl|media-ctl]] this program it's useful for configure the ISP.<br> If you use the iommu2, tvp5151 and isp as modules before start you must insert it inside the kernel as:<br><pre>modprobe iommu2modprobe omap3-isp drivers </pre>The insert order must be build inside first the iommu2 and after that the omap3-isp.<br> == Seteps for configure the ISP and TVP5151<br> == Configure the right ISP routing.<br><pre>./media-ctl -r -l '"tvp5150 2-005c":0-&gt;"OMAP3 ISP CCDC":0[1], "OMAP3 ISP CCDC":1-&gt;"OMAP3 ISP CCDC output":0[1]'</pre>Configure the kernel but you video capture setup.<br><pre>./media-ctl --set-format '"tvp5150 2-005c":0 [UYVY 720x628]'</pre>= Play with TVP5151<br> = You can configure it use for build as module using this get the captured images [http://downloads.igep.es/files/tvp5151/config alternative configuration fileyavta yavta]or gstreamer as live stream.<br>  This is the suggested yavta capture setup:<br><pre>./yavta -f UYVY -s 720x628 -n 4 --capture=4 -F /dev/video2</pre>or the gstreamer pipeline setup:<br><pre>gst-launch-0.10 -v v4l2src device=/dev/video2 queue-size=2 ! video/x-raw-yuv,format=\(fourcc\)UYVY,width=720,height=628 ! omapdmaifbsink</pre>= Dependeces<br> = *IGEPv2 board with a Expansion board.<br>*Camera with PAL output live video.<br>*ISEE IGEPv2 toolchain (IGEP VM suggested)<br>*Gstreamer.<br> <br> [[Category:How_to_forge]][[Category:Gstreamer]][[Category:Hardware]][[Category:Linux]]
asdads<br>