<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.olimex.com/wiki/index.php?action=history&amp;feed=atom&amp;title=STK1160-howto-linux-sunxi-3_4</id>
	<title>STK1160-howto-linux-sunxi-3 4 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.olimex.com/wiki/index.php?action=history&amp;feed=atom&amp;title=STK1160-howto-linux-sunxi-3_4"/>
	<link rel="alternate" type="text/html" href="https://www.olimex.com/wiki/index.php?title=STK1160-howto-linux-sunxi-3_4&amp;action=history"/>
	<updated>2026-05-12T21:27:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.0</generator>
	<entry>
		<id>https://www.olimex.com/wiki/index.php?title=STK1160-howto-linux-sunxi-3_4&amp;diff=1221&amp;oldid=prev</id>
		<title>DimitarTomov: Added ./build --check to media_build part</title>
		<link rel="alternate" type="text/html" href="https://www.olimex.com/wiki/index.php?title=STK1160-howto-linux-sunxi-3_4&amp;diff=1221&amp;oldid=prev"/>
		<updated>2014-06-04T09:33:50Z</updated>

		<summary type="html">&lt;p&gt;Added ./build --check to media_build part&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 09:33, 4 June 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l136&quot; &gt;Line 136:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 136:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;git clone --depth=1 git://linuxtv.org/media_build.git&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;git clone --depth=1 git://linuxtv.org/media_build.git&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;cd media_build&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;cd media_build&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;./build --check&amp;lt;br/&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/code&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Install missing packages showed from ./build --check and then continue&amp;lt;br/&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;code&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;patch -p1 &amp;lt; /path/to/media_build-makefilepl.patch&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;patch -p1 &amp;lt; /path/to/media_build-makefilepl.patch&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;make download&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;make download&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key olimex-wiki_:diff::1.12:old-1220:rev-1221 --&gt;
&lt;/table&gt;</summary>
		<author><name>DimitarTomov</name></author>
		
	</entry>
	<entry>
		<id>https://www.olimex.com/wiki/index.php?title=STK1160-howto-linux-sunxi-3_4&amp;diff=1220&amp;oldid=prev</id>
		<title>DimitarTomov: Initial version</title>
		<link rel="alternate" type="text/html" href="https://www.olimex.com/wiki/index.php?title=STK1160-howto-linux-sunxi-3_4&amp;diff=1220&amp;oldid=prev"/>
		<updated>2014-06-04T08:54:46Z</updated>

		<summary type="html">&lt;p&gt;Initial version&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
STK1160 is the new kernel driver for Easycap like USB AV capture devices.&amp;lt;br/&amp;gt;&lt;br /&gt;
It is available in the linux kernel from version 3.7 and above, but linux-sunxi &amp;lt;br/&amp;gt;&lt;br /&gt;
stable kernel is 3.4 . So this driver does not exist native in that kernel.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Why use stk1160 instead of the old driver easycap ? ==&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
One main reason: You can change input channel on your device.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you have the single channel version you also have and a S-video input. But&amp;lt;br/&amp;gt;&lt;br /&gt;
with easycap driver you can't switch to that input. The input selection is not&amp;lt;br/&amp;gt;&lt;br /&gt;
supported by the easycap driver and you will be always on default input 0.&lt;br /&gt;
&lt;br /&gt;
If you have the four channel version you have four AV channels and most likely&amp;lt;br/&amp;gt;&lt;br /&gt;
you will want to be able to switch between channels. Again old easycap driver&amp;lt;br/&amp;gt;&lt;br /&gt;
does not have that functionality.&lt;br /&gt;
&lt;br /&gt;
NB: If you don't need changing the input channel you can use the old easycap&amp;lt;br/&amp;gt;&lt;br /&gt;
driver and there is one benefit: easycap supports two framerate modes: 5 and 25&amp;lt;br/&amp;gt;&lt;br /&gt;
fps by selecting the proper norm. For example there is norm PAL_BGHN and norm&amp;lt;br/&amp;gt;&lt;br /&gt;
PAL_BGHN_SLOW, which is the 5 fps mode. And on SBCs this framelimit relieve the&amp;lt;br/&amp;gt;&lt;br /&gt;
CPU a little bit as the capture streams only five frames per second. The stk1160&amp;lt;br/&amp;gt;&lt;br /&gt;
supports currently only 25 fps mode.&lt;br /&gt;
&lt;br /&gt;
== What do You need before starting ==&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
Kernel source.&amp;lt;br/&amp;gt;&lt;br /&gt;
Config file from your current kernel.&amp;lt;br/&amp;gt;&lt;br /&gt;
Compiler for the cross compilation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Getting the kernel source ===&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
For the latest stable linux-sunxi 3.4.xx kernel the command is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
git clone -b sunxi-3.4 --depth 1 https://github.com/linux-sunxi/linux-sunxi.git&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Wait for the download process to finish.&lt;br /&gt;
&lt;br /&gt;
=== Getting the config file from your current kernel ===&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
While on the device copy the /proc/config.gz to your build machine,&amp;lt;br/&amp;gt;&lt;br /&gt;
then use gunzip to extract and you now have your current kernel config.&lt;br /&gt;
&lt;br /&gt;
=== Getting compiler for the cross compilation ===&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
On Debian add to your /etc/apt/sources.list&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
deb http://www.emdebian.org/debian unstable main&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
apt-get update&amp;lt;br/&amp;gt;&lt;br /&gt;
apt-get install gcc-4.7-arm-linux-gnueabihf&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you have compiler for the cross compilation.&lt;br /&gt;
&lt;br /&gt;
== Compiling stk1160 ==&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
The stk1160 will be build using backported version provided by media_build, more&amp;lt;br/&amp;gt;&lt;br /&gt;
info about media_build you can find at the following link:&lt;br /&gt;
&lt;br /&gt;
http://www.linuxtv.org/wiki/index.php/How_to_Obtain,_Build_and_Install_V4L-DVB_Device_Drivers&lt;br /&gt;
&lt;br /&gt;
But for this to work you need to build a new kernel with V4L support as modules,&amp;lt;br/&amp;gt;&lt;br /&gt;
so you can load the new V4L core from media_build and also patch dma-buf.c/.h in&amp;lt;br/&amp;gt;&lt;br /&gt;
the kernel tree, because of a missing function there.&lt;br /&gt;
&lt;br /&gt;
Lets get to work ...&lt;br /&gt;
&lt;br /&gt;
Will assume that you have your kernel source tree in ~/linux-sunxi, also that&amp;lt;br/&amp;gt;&lt;br /&gt;
you have already copied your current kernel config like ~/linux-sunxi/.config .&lt;br /&gt;
&lt;br /&gt;
=== Preparing the build environment ===&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
export CROSS_COMPILE=arm-linux-gnueabihf-&amp;lt;br/&amp;gt;&lt;br /&gt;
export ARCH=arm&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Patching the kernel tree: ===&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
The patch is available at:&lt;br /&gt;
&lt;br /&gt;
https://drive.google.com/file/d/0B6S44jnEBxzyQVhUNDFlQ2RnRUU/edit?usp=sharing&lt;br /&gt;
&lt;br /&gt;
Download and execute the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd ~/linux-sunxi&amp;lt;br/&amp;gt;&lt;br /&gt;
patch -p0 &amp;lt; /path/to/dma-buf-vmap.patch&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Building the new kernel with V4L core as modules ===&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
make silentoldconfig&amp;lt;br/&amp;gt;&lt;br /&gt;
make menuconfig&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Go to Device Drivers -&amp;gt; Multimedia support and mark Video for Linux with m.&lt;br /&gt;
Exit and choose to save the changes to the config.&lt;br /&gt;
Based on your build machine use -j with value #threads your CPU is capable,&lt;br /&gt;
example values: dual-core no HT -j2, dual-core with HT -j4 and so on.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
make -j4 uImage&amp;lt;br/&amp;gt;&lt;br /&gt;
make -j4 INSTALL_MOD_PATH=out modules&amp;lt;br/&amp;gt;&lt;br /&gt;
make -j4 INSTALL_MOD_PATH=out modules_install&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The uImage file is located in linux-sunxi/arch/arm/boot/&lt;br /&gt;
The kernel modules are located in linux-sunxi/out/lib/modules/3.x.xx+&lt;br /&gt;
&lt;br /&gt;
'''Do not rush to update your kernel and modules on your sd-card or nand.'''&lt;br /&gt;
&lt;br /&gt;
=== Building media_build ===&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
Download this patch for media_build:&lt;br /&gt;
&lt;br /&gt;
https://drive.google.com/file/d/0B6S44jnEBxzydGlELXl4S3I2dzg/edit?usp=sharing&lt;br /&gt;
&lt;br /&gt;
First we will go up one level to home dir as we were in ~/linux-sunxi, then&amp;lt;br/&amp;gt;&lt;br /&gt;
get latest media_build source and build it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd ..&amp;lt;br/&amp;gt;&lt;br /&gt;
git clone --depth=1 git://linuxtv.org/media_build.git&amp;lt;br/&amp;gt;&lt;br /&gt;
cd media_build&amp;lt;br/&amp;gt;&lt;br /&gt;
patch -p1 &amp;lt; /path/to/media_build-makefilepl.patch&amp;lt;br/&amp;gt;&lt;br /&gt;
make download&amp;lt;br/&amp;gt;&lt;br /&gt;
make untar&amp;lt;br/&amp;gt;&lt;br /&gt;
make prepare&amp;lt;br/&amp;gt;&lt;br /&gt;
DIR=~/linux-sunxi make release&amp;lt;br/&amp;gt;&lt;br /&gt;
nano v4l/Makefile&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
find and comment out the line&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
-include $(obj)/Makefile.sound&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
because sound modules require PCI support, which sunxi doesn't have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
nano v4l/.version&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
append to the lines starting with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
SUBLEVEL:=...&amp;lt;br/&amp;gt;&lt;br /&gt;
KERNELRELEASE:=...&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
one plus sign at the end as the kernel versions of linux-sunxi 3.4 stable are&amp;lt;br/&amp;gt;&lt;br /&gt;
in format 3.4.xx+ , but media_build for some reason omits the + .&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
mv v4l/.config v4l/.config.orig&amp;lt;br/&amp;gt;&lt;br /&gt;
nano v4l/.config&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Insert the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
CONFIG_VIDEO_DEV=m&amp;lt;br/&amp;gt;&lt;br /&gt;
CONFIG_VIDEO_V4L2_COMMON=m&amp;lt;br/&amp;gt;&lt;br /&gt;
CONFIG_VIDEO_MEDIA=m&amp;lt;br/&amp;gt;&lt;br /&gt;
CONFIG_VIDEO_V4L2=m&amp;lt;br/&amp;gt;&lt;br /&gt;
CONFIG_VIDEOBUF_GEN=m&amp;lt;br/&amp;gt;&lt;br /&gt;
CONFIG_VIDEOBUF_DMA_CONTIG=m&amp;lt;br/&amp;gt;&lt;br /&gt;
CONFIG_DMA_SHARED_BUFFER=m&amp;lt;br/&amp;gt;&lt;br /&gt;
CONFIG_VIDEOBUF2_CORE=m&amp;lt;br/&amp;gt;&lt;br /&gt;
CONFIG_VIDEOBUF2_MEMOPS=m&amp;lt;br/&amp;gt;&lt;br /&gt;
CONFIG_VIDEOBUF2_VMALLOC=m&amp;lt;br/&amp;gt;&lt;br /&gt;
CONFIG_VIDEO_CAPTURE_DRIVERS=y&amp;lt;br/&amp;gt;&lt;br /&gt;
CONFIG_V4L_MEM2MEM_DRIVERS=y&amp;lt;br/&amp;gt;&lt;br /&gt;
CONFIG_V4L_PLATFORM_DRIVERS=y&amp;lt;br/&amp;gt;&lt;br /&gt;
CONFIG_VIDEO_SAA711X=m&amp;lt;br/&amp;gt;&lt;br /&gt;
CONFIG_VIDEO_STK1160_AC97=n&amp;lt;br/&amp;gt;&lt;br /&gt;
CONFIG_VIDEO_STK1160=m&amp;lt;br/&amp;gt;&lt;br /&gt;
CONFIG_VIDEO_STK1160_COMMON=m&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save and exit. This is a stripped media_build configuration for stk1160 only.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''NB: For audio support for your capture change CONFIG_VIDEO_STK1160_AC97 to y.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
make -j4&amp;lt;br/&amp;gt;&lt;br /&gt;
DESTDIR=~/linux-sunxi/out make install&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installing the new kernel and modules ==&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
Now you have the kernel and updated modules with the new V4L core and stk1160.&amp;lt;br/&amp;gt;&lt;br /&gt;
Copy from ~/linux-sunxi/arch/arm/boot/uImage to your /boot folder on the device.&amp;lt;br/&amp;gt;&lt;br /&gt;
Then copy the modules folder /linux-sunxi/out/lib/modules/3.x.xx+ to the device.&lt;br /&gt;
&lt;br /&gt;
'''Blacklisting the old easycap driver:'''&amp;lt;br/&amp;gt;&lt;br /&gt;
While on the device create /etc/modprobe.d/easycap-blacklist.conf and add:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
blacklist easycap&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save and exit&lt;br /&gt;
&lt;br /&gt;
Reboot the device and all should be ok.&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
Insert the capture, check with lsmod for stk1160, check dmesg for any warnings,&amp;lt;br/&amp;gt;&lt;br /&gt;
errors, unresolved symbols, etc, there should be none. Check if video device was&amp;lt;br/&amp;gt;&lt;br /&gt;
created under /dev/video0 or /dev/videoX if you have more than one V4L device.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''PAL norm is at number 5, by default stk1160 is configured for NTSC.'''&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Known issues ==&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
Sometimes you can see in dmesg warning from videobuf2-core.c, but this does not&amp;lt;br/&amp;gt;&lt;br /&gt;
effect the capturing or streaming. I have not found the reason for the warning,&amp;lt;br/&amp;gt;&lt;br /&gt;
but as it is not problematic I have left it for now.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Good luck and happy capturing using stk1160 :-)'''&lt;/div&gt;</summary>
		<author><name>DimitarTomov</name></author>
		
	</entry>
</feed>