<?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 &#8211; Farlock.org</title>
	<atom:link href="https://www.farlock.org/tag/sheevaplug/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 Debian booting from internal Flash</title>
		<link>https://www.farlock.org/sheevaplug/sheevaplug-debian-booting-from-internal-flash/</link>
					<comments>https://www.farlock.org/sheevaplug/sheevaplug-debian-booting-from-internal-flash/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 26 Jun 2012 16:18:51 +0000</pubDate>
				<category><![CDATA[SheevaPlug]]></category>
		<category><![CDATA[environments]]></category>
		<category><![CDATA[nand flash]]></category>
		<category><![CDATA[u-boot]]></category>
		<guid isPermaLink="false">http://www.farlock.org/?p=191</guid>

					<description><![CDATA[<p>If you previosuly installed Debian on your internal flash and for some reasons your u-boot environment f**k you can simply restore it with this:</p> <p>setenv mtdpartitions mtdparts=nand_mtd:0xa0000@0x0(u-boot),0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs)</p> <p>setenv bootargs_root ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs</p> <p>setenv bootargs_console console=ttyS0,115200</p> <p>setenv bootcmd_nand &#8216;nand read.e 0x00800000 0x00100000 0x00400000&#8217;</p> <p>setenv bootcmd &#8216;setenv bootargs $(bootargs_console) $(mtdpartitions) $(bootargs_root); run bootcmd_nand; bootm 0x00800000&#8217;</p> <p>saveenv</p> <p>This [...]]]></description>
										<content:encoded><![CDATA[<p>If you previosuly installed Debian on your internal flash and for some reasons your u-boot environment f**k you can simply restore it with this:</p>
<blockquote><p>setenv mtdpartitions mtdparts=nand_mtd:0xa0000@0x0(u-boot),0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs)</p>
<p>setenv bootargs_root ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs</p>
<p>setenv bootargs_console console=ttyS0,115200</p>
<p>setenv bootcmd_nand &#8216;nand read.e 0x00800000 0x00100000 0x00400000&#8217;</p>
<p>setenv bootcmd &#8216;setenv bootargs $(bootargs_console) $(mtdpartitions) $(bootargs_root); run bootcmd_nand; bootm 0x00800000&#8217;</p>
<p>saveenv</p></blockquote>
<p>This saved me, hope that can help you <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-debian-booting-from-internal-flash/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Debian Wheezy install on SheevaPlug MMC/SD</title>
		<link>https://www.farlock.org/sheevaplug/debian-wheezy-install-on-sheevaplug-mmcsd/</link>
					<comments>https://www.farlock.org/sheevaplug/debian-wheezy-install-on-sheevaplug-mmcsd/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 07 Mar 2012 09:07:40 +0000</pubDate>
				<category><![CDATA[SheevaPlug]]></category>
		<category><![CDATA[debian wheezy]]></category>
		<category><![CDATA[SheevaPlug debian]]></category>
		<category><![CDATA[sheevaplug install]]></category>
		<guid isPermaLink="false">http://www.farlock.org/?p=185</guid>

					<description><![CDATA[<p>In this howto I&#8217;m going to explain how to install debian wheezy on a sheevaplug SD (i want to maintain my old squeeze on NAND flash). We need at least Marvell U-boot 3.4.19.</p> <p>We assume that our server is 192.168.1.2 and sheeva ip is 192.168.1.7.</p> <p>Setup TFTP server and download these file on tftp root [...]]]></description>
										<content:encoded><![CDATA[<p>In this howto I&#8217;m going to explain how to install debian wheezy on a sheevaplug SD (i want to maintain my old squeeze on NAND flash). We need at least Marvell U-boot 3.4.19.</p>
<p>We assume that our server is 192.168.1.2 and sheeva ip is 192.168.1.7.</p>
<p>Setup TFTP server and download these file on tftp root directory (usually /var/lib/tftpboot):</p>
<blockquote><p>cd /var/lib/tftpboot</p>
<p>wget ftp://ftp.debian.org/debian/dists/wheezy/main/installer-armel/current/images/kirkwood/netboot/marvell/sheevaplug/uImage</p>
<p>wget ftp://ftp.debian.org/debian/dists/wheezy/main/installer-armel/current/images/kirkwood/netboot/marvell/sheevaplug/uInitrd</p></blockquote>
<p>Connect the sheeva through USB to our pc and connect to it with putty or minicom or similar. Power it on and press enter to stop the boot process, and copy these commands:</p>
<blockquote><p>setenv serverip 192.168.1.2</p>
<p>setenv ipaddr 192.168.1.7</p>
<p>setenv netmask 255.255.255.0</p>
<p>tftpboot 0x00800000 uImage</p>
<p>tftpboot 0x01100000 uInitrd</p>
<p>setenv bootargs console=ttyS0,115200n8 base-installer/initramfs-tools/driver-policy=most priority=low</p>
<p>bootm 0x00800000 0x01100000</p></blockquote>
<p>If you don&#8217;t want an &#8220;expert&#8221; setup process remove &#8220;priority=low&#8221;.</p>
<p>Now install your debian in a normal way, keep in mind to load mmc module.</p>
<p><strong>When you need to partition your MMC/SD device my suggestion is to createat least one different partition for /boot (100MB is enough) with ext2 format. Create this as the FIRST partition. If you don&#8217;t do this you could have trouble on booting your new system.</strong></p>
<p>Remember to execute &#8220;Make the system bootable&#8221; voice menù.</p>
<p>When your sheeva reboot stop again the boot process and execute these:</p>
<blockquote><p>setenv bootargs_console console=ttyS0,115200</p>
<p>setenv bootcmd_mmc &#8216;mmcinit; ext2load mmc 0:1 0x00800000 /uImage; ext2load mmc 0:1 0x01100000 /uInitrd&#8217;</p>
<p>setenv bootcmd &#8216;setenv bootargs $(bootargs_console); run bootcmd_mmc; bootm 0x00800000 0x01100000&#8217;</p>
<p>run bootcmd</p></blockquote>
<p>Now it should start with your debian wheezy fresh install!</p>
<p>If all went ok reboot again, stop the boot process and we set-up sheevaplug to boot default from MMC/SD:</p>
<blockquote><p>setenv bootargs_console console=ttyS0,115200</p>
<p>setenv bootcmd_mmc &#8216;mmcinit; ext2load mmc 0:1 0x00800000 /uImage; ext2load mmc 0:1 0x01100000 /uInitrd&#8217;</p>
<p>setenv bootcmd &#8216;setenv bootargs $(bootargs_console); run bootcmd_mmc; bootm 0x00800000 0x01100000&#8217;</p>
<p>saveenv</p></blockquote>
<p><em><strong>Finish!</strong></em></p>
<p>Execute &#8220;run bootcmd&#8221; again, and your sheeva is ready to go!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.farlock.org/sheevaplug/debian-wheezy-install-on-sheevaplug-mmcsd/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<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>
