<?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>custom kernel &#8211; Farlock.org</title>
	<atom:link href="https://www.farlock.org/tag/custom-kernel/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:12 +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>
		<item>
		<title>Recompile Kernel for SheevaPlug</title>
		<link>https://www.farlock.org/sheevaplug/recompile-kernel-for-sheevaplug/</link>
					<comments>https://www.farlock.org/sheevaplug/recompile-kernel-for-sheevaplug/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 28 May 2010 08:10:56 +0000</pubDate>
				<category><![CDATA[SheevaPlug]]></category>
		<category><![CDATA[custom kernel]]></category>
		<category><![CDATA[kernel sheevaplug]]></category>
		<category><![CDATA[marvell]]></category>
		<category><![CDATA[plugcomputer]]></category>
		<guid isPermaLink="false">http://www.farlock.org/?p=133</guid>

					<description><![CDATA[<p>Howto recompile a custom kernel for our SheevaPlug:</p> <p>In this example we suppose that our pc has ip 192.168.1.220, and the network has dhcp. First of all install packages needed:</p> <p>apt-get install git-core build-essential</p> <p>Then download the latest kernel from Marvell:</p> <p>cd /usr/src git clone git://git.marvell.com/orion.git</p> <p>Then set default config for SheevaPlug:</p> <p>cd orion make [...]]]></description>
										<content:encoded><![CDATA[<p>Howto recompile a custom kernel for our SheevaPlug:</p>
<p>In this example we suppose that our pc has ip 192.168.1.220, and the network has dhcp.<br />
First of all install packages needed:</p>
<blockquote><p>apt-get install git-core build-essential</p></blockquote>
<p>Then download the latest kernel from Marvell:</p>
<blockquote><p>cd /usr/src<br />
git clone git://git.marvell.com/orion.git</p></blockquote>
<p>Then set default config for SheevaPlug:</p>
<blockquote><p>cd orion<br />
make ARCH=arm kirkwood_defconfig</p></blockquote>
<p>And then run menuconfig for set our personalized features:</p>
<blockquote><p>make ARCH=arm menuconfig</p></blockquote>
<p>When done, save the config and compile it:</p>
<blockquote><p>make -j4 ARCH=arm CROSS_COMPILE=../arm-2009q3/bin/arm-none-eabi- uImage</p>
<p>make -j4 ARCH=arm CROSS_COMPILE=../arm-2009q3/bin/arm-none-eabi- modules</p>
<p>make -j4 ARCH=arm CROSS_COMPILE=../arm-2009q3/bin/arm-none-eabi- INSTALL_MOD_PATH=.. modules_install</p></blockquote>
<p>The last command copy our modules in ../lib, we make a tar of them and copy into sheevaplug:</p>
<blockquote><p>cd ..<br />
tar cvf lib_snapshot.tar lib</p></blockquote>
<p>The new kernel is built in orion/arch/arm/boot/, we copy it in our tftp directory</p>
<blockquote><p>cp orion/arch/arm/boot/uImage /var/lib/tftpboot</p></blockquote>
<p>log in as root in sheevaplug, and copy the tar of modules:</p>
<blockquote><p>scp 192.168.1.220:/usr/src/sheeva/compile/lib_snapshot.tar .<br />
tar xvf lib_snapshot.tar<br />
mv lib/modules/2.6.KERNEL_VERSION /lib/modules</p></blockquote>
<p>now we need to connect the sheeva&#8217;s console cable to our pc and connect with a terminal emulator like minicom (for information on how to do this look at plugcomputer.org), stop the boot process and go to bootloader prompt. On our machine we need to setup a tftp server (information at http://plugcomputer.org), in this example 192.168.1.220 is the tftpserver ip.</p>
<p>Write this on bootloader prompt:</p>
<blockquote><p>bootp<br />
setenv serverip 192.168.1.220<br />
tftpboot 0x2000000 uImage<br />
setenv bootargs $(bootargs_console) $(mtdpartitions) $(bootargs_root)<br />
bootm 0x2000000</p></blockquote>
<p>Now our sheevaplug is booting with new kernel&#8230;.<br />
If it start <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;" /> run <em>uname -a</em> and look the kernel version!<br />
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>
<p>Test your sheevaplug with your new kernel, it is running well we can write the new kernel in flash, copy the uImage in any directory of sheevplug and flash it!</p>
<blockquote><p>scp 192.168.1.220:/var/lib/tftpboot/uImage /tmp<br />
flash_eraseall /dev/mtd0<br />
nandwrite -p /dev/mtd0 /tmp/uImage</p></blockquote>
<p>reboot and sheevaplug automatically start with new kernel <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/recompile-kernel-for-sheevaplug/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
