<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>sheevaplug module &#8211; Farlock.org</title>
	<atom:link href="https://www.farlock.org/tag/sheevaplug-module/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.farlock.org</link>
	<description>What you want to hack today?</description>
	<lastBuildDate>Wed, 02 Apr 2014 06:08:08 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.1</generator>
	<item>
		<title>SheevaPlug non-standard module compiling</title>
		<link>https://www.farlock.org/sheevaplug/sheevaplug-non-standard-module-compiling/</link>
					<comments>https://www.farlock.org/sheevaplug/sheevaplug-non-standard-module-compiling/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 28 May 2010 09:04:47 +0000</pubDate>
				<category><![CDATA[SheevaPlug]]></category>
		<category><![CDATA[custom kernel]]></category>
		<category><![CDATA[easycap]]></category>
		<category><![CDATA[kernel sheevaplug]]></category>
		<category><![CDATA[modules compile]]></category>
		<category><![CDATA[sheevaplug module]]></category>
		<guid isPermaLink="false">http://www.farlock.org/?p=151</guid>

					<description><![CDATA[<p>Howto compile a module for sheeva without standard kernel headers</p> <p>I&#8217;ve bought an EasyCap DC60 and i&#8217;ve found this fantastic driver for it:</p> <p>http://sourceforge.net/projects/easycapdc60/</p> <p>Obviously they aren&#8217;t available for our sheevaplug so i&#8217;m looking through the web on how to compile it,finally I was able to do it, this is the howto.</p> <p>We suppose that [...]]]></description>
										<content:encoded><![CDATA[<p>Howto compile a module for sheeva without standard kernel headers</p>
<p>I&#8217;ve bought an EasyCap DC60 and i&#8217;ve found this fantastic driver for it:</p>
<p><a href="http://sourceforge.net/projects/easycapdc60/" target="_blank">http://sourceforge.net/projects/easycapdc60/</a></p>
<p>Obviously they aren&#8217;t available for our sheevaplug so i&#8217;m looking through the web on how to compile it,finally I was able to do it, this is the howto.</p>
<p>We suppose that sheevaplug is already runnning with a <a href="http://sheeva.with-linux.com/sheeva" target="_blank">http://sheeva.with-linux.com/sheeva</a> kernel (in this example 2.6.33.2).<br />
All the operations described here are executed on a standard i686 linux pc (debian).</p>
<p>We need a cross-compiler, so go to this page and download the latest arm-XXXXXX-arm-none-eabi-i686-pc-linux-gnu.tar.bz2:<br />
<a href="http://www.codesourcery.com/downloads/public/public/gnu_toolchain/arm-none-eabi" target="_blank">http://www.codesourcery.com/downloads/public/public/gnu_toolchain/arm-none-eabi</a><br />
(in this example we use 2009q3-68)</p>
<p>First of all we need packages for cross-compile it</p>
<blockquote><p>cd /usr/src<br />
wget http://www.codesourcery.com/downloads/public/public/gnu_toolchain/arm-none-eabi/arm-2009q3-68-arm-none-eabi-i686-pc-linux-gnu.tar.bz2<br />
tar xzvf arm-2009q3-68-arm-none-eabi-i686-pc-linux-gnu.tar.bz2<br />
apt-get install build-essential</p></blockquote>
<p>Then download the standard kernel from kernel.org (nowadays marvell patch is included in the mainline kernel tree), and apply the config from http://sheeva.with-linux.com</p>
<blockquote><p>cd /usr/src<br />
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.33.2.tar.bz2<br />
tar xvf linux-2.6.33.2.tar.bz2<br />
cd linux-2.6.33.2<br />
wget http://sheeva.with-linux.com/sheeva/2.6.33.2/sheeva-2.6.33.2.config<br />
cp sheeva-2.6.33.2.config .config<br />
make ARCH=arm oldconfig</p></blockquote>
<p>Now we can compile it, if you wouldn&#8217;t waste time you can stop it after the first &#8220;<em>CC &#8230;</em>&#8221; lines, when it has already done &#8220;<em>HOSTCC/scripts &#8230;</em>&#8220;, at this time it has already generated header needed by us. If you want you can also compile it all (better).</p>
<blockquote><p>make -j4 ARCH=arm CROSS_COMPILE=../arm-2009q3/bin/arm-none-eabi-</p></blockquote>
<p>In this example we try to compile easycap driver, but you can adapt it to any external modules:</p>
<blockquote><p>cd /usr/src<br />
wget &#8220;http://downloads.sourceforge.net/project/easycapdc60/easycap_dc60.0.7.1.tar.gz?use_mirror=netcologne&#8221;<br />
cd easycap_dc60.0.7.1<br />
make clean</p></blockquote>
<p>Edit src/MakeFile (<em>vi src/Makefile</em>) and replace KERNELDIR line with this:</p>
<blockquote><p>KERNELDIR ?= /usr/src/linux-2.6.33.2</p></blockquote>
<p>and now compile it:</p>
<blockquote><p>make -j4 ARCH=arm CROSS_COMPILE=/usr/src/arm-2009q3/bin/arm-none-eabi-</p></blockquote>
<p>All done! <img src="https://s.w.org/images/core/emoji/15.0.3/72x72/1f609.png" alt="😉" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>Login to your sheevaplug and copy the new kernel mod in <em>/lib/modules/`uname -r`/kernel/drivers/media/video</em></p>
<blockquote><p>scp 192.168.1.220:/usr/src/easycap_dc60.0.7.1/src/easycap.ko /lib/modules/`uname -r`/kernel/drivers/media/video<br />
depmod -a</p></blockquote>
<p>try to insmod it and enjoy <img src="https://s.w.org/images/core/emoji/15.0.3/72x72/1f609.png" alt="😉" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.farlock.org/sheevaplug/sheevaplug-non-standard-module-compiling/feed/</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
			</item>
	</channel>
</rss>
