<?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>Smörgåsbord &#187; sheevaplug</title>
	<atom:link href="http://smorgasbord.gavagai.nl/tags/sheevaplug/feed/" rel="self" type="application/rss+xml" />
	<link>http://smorgasbord.gavagai.nl</link>
	<description>Ambachtelijk bereide beschouwingen.</description>
	<lastBuildDate>Fri, 06 Jan 2012 21:30:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Thar she blows!</title>
		<link>http://smorgasbord.gavagai.nl/2010/09/thar-she-blows/</link>
		<comments>http://smorgasbord.gavagai.nl/2010/09/thar-she-blows/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 21:38:37 +0000</pubDate>
		<dc:creator>Wicher</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[kaboom]]></category>
		<category><![CDATA[sheevaplug]]></category>

		<guid isPermaLink="false">http://smorgasbord.gavagai.nl/?p=1098</guid>
		<description><![CDATA[
Last night my Sheevaplug&#8217;s power supply unit blew up. Slept clean through it but I think the fumes were responsible for the unorthodox dreaming I did that night. Incidentally, the dream was about electronics. I dreamt I was part of some development project, bringing electronics to the Indian countryside and I had just invented this [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://smorgasbord.gavagai.nl/2010/09/thar-she-blows/img_1418/" rel="attachment wp-att-1099"><img src="http://smorgasbord.gavagai.nl/wp-content/uploads/2010/09/IMG_1418-300x224.jpg" alt="Blown Sheevaplug PSU" title="Blown Sheevaplug PSU" width="300" height="224" class="aligncenter size-medium wp-image-1099" /></a></p>
<p>Last night my <a href="http://en.wikipedia.org/wiki/SheevaPlug">Sheevaplug</a>&#8217;s power supply unit blew up. Slept clean through it but I think the fumes were responsible for the unorthodox dreaming I did that night. Incidentally, the dream was about electronics. I dreamt I was part of some development project, bringing electronics to the Indian countryside and I had just invented this incredibly tiny airplane which could be made from readily available components such as tins and shrubs. It could fly a route autonomously (!) and had a cargo net which could be used for transporting lumber, cattle, children &#8211; anything a farmer family would need transported. The size of a large model airplane, one was supposed to hold on to its landing gear (with one&#8217;s legs taking over landing gear functions &#8211; better bring some bandages) and enjoy the flight. So I was flying around the hot Indian plains, soldering iron tucked under my belt, spreading the tale of this quantum leap in mobility in the land of Vishnu and Sheeva.</p>
<p>Back to my Sheevaplug. It was no more. A capacitator in the power supply unit (that converts 230VAC  to 5VDC) had made a complete mess of itself. And the rest of the PSU. It looks like burnt Marshmallows but smells worse.<br />
Also, the button cell that keeps the system clock running when power is lost, had swollen to unhealthy dimensions and had barfed its contents over part of the mainboard:</p>
<p><a href="http://smorgasbord.gavagai.nl/2010/09/thar-she-blows/img_1420/" rel="attachment wp-att-1106"><img src="http://smorgasbord.gavagai.nl/wp-content/uploads/2010/09/IMG_1420-300x168.jpg" alt="Swollen AG10 button cell" title="Swollen AG10 button cell" width="300" height="168" class="aligncenter size-medium wp-image-1106" /></a></p>
<p>Well, at least <a href="http://plugcomputer.org/plugforum/index.php?topic=1734.0">I&#8217;m</a> <a href="http://www.ronketti.org.uk/toasty.jpg">not</a> <a href="http://chemicaloliver.net/electronics/sheevaplug-why-globalscale-suck/">alone</a> in getting the marshmallow treatment. It appears to be a heat issue on the first version of the development kit. </p>
<p>Amazingly, the PSU still supplied about 2V, enough to make the blue LED blink to signal me that my marshmallows were ready.</p>
<p>I keep this box with old AC/DC adapters around. I&#8217;ve adapted my Sheevaplug to contain a socket to plug in a jack from an external 5VDC 2A supply, replaced the CMOS battery, and after some initial problems with the unit losing track of time after being powered down, all is working fine again. But better not take this Sheevaplug to the scorching heat of the land of Sheeva.</p>
]]></content:encoded>
			<wfw:commentRss>http://smorgasbord.gavagai.nl/2010/09/thar-she-blows/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SheevaPlug hardware crypto</title>
		<link>http://smorgasbord.gavagai.nl/2010/02/sheevaplug-hardware-crypto/</link>
		<comments>http://smorgasbord.gavagai.nl/2010/02/sheevaplug-hardware-crypto/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 23:25:16 +0000</pubDate>
		<dc:creator>Wicher</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[benchmark]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[sheevaplug]]></category>

		<guid isPermaLink="false">http://smorgasbord.gavagai.nl/?p=872</guid>
		<description><![CDATA[Some quick numbers for those looking for performance figures on the CESA crypto accelerator. Like I was, since my SheevaPlug has one. From the kernel config:

CRYPTO_DEV_MV_CESA
This driver allows you to utilize the Cryptographic Engines and Security Accelerator (CESA) which can be found on the Marvell Orion and Kirkwood SoCs, such as QNAP&#8217;s TS-209.
Currently the driver [...]]]></description>
			<content:encoded><![CDATA[<p>Some quick numbers for those looking for performance figures on the CESA crypto accelerator. Like I was, since my <a href="http://en.wikipedia.org/wiki/SheevaPlug">SheevaPlug</a> has one. From the kernel config:</p>
<blockquote><p>
CRYPTO_DEV_MV_CESA<br />
This driver allows you to utilize the Cryptographic Engines and Security Accelerator (CESA) which can be found on the Marvell Orion and Kirkwood SoCs, such as QNAP&#8217;s TS-209.<br />
Currently the driver supports AES in ECB and CBC mode without DMA.
</p></blockquote>
<p>Whether the accelerator will be used depends on whether an application uses the in-kernel crypto algorithms. OpenSSL does not unless it is explicitly enabled to use a certain accelerator, such as is the case with the Via Padlock engine. So this particular engine won&#8217;t let your SSH run faster. But it will speed up device mapper crypto if you use an AES cipher.</p>
<p>Right, let&#8217;s get on with it.<br />
<code><br />
#uname -a<br />
Linux sheeva 2.6.32-gentoo-r3 #3 Thu Feb 4 23:02:42 CET 2010 armv5tel Feroceon 88FR131 rev 1 (v5l) Marvell SheevaPlug Reference Board GNU/Linux<br />
</code></p>
<p>Quick &#038; oh-so-dirty way of getting a RAM-backed block device (that is, if you don&#8217;t have swap enabled):<br />
<code><br />
#mount -t tmpfs tmpfs /mnt/tmp/<br />
#dd if=/dev/zero of=/mnt/tmp/blob bs=1M count=224<br />
#losetup /dev/loop0 /mnt/tmp/blob<br />
#cryptsetup -c aes -h sha1 -d /dev/urandom create test /dev/loop0<br />
</code><br />
First we test without CESA.<br />
<code><br />
#dd if=/dev/zero of=/dev/mapper/test bs=1M count=224<br />
234881024 bytes (235 MB) copied, 41.858 s, 5.6 MB/s<br />
</code><br />
Only 5.6 MB/s and the <code>[kcryptd]</code> kernel process is having your CPU for lunch.<br />
Enter CESA:<br />
<code><br />
#dmsetup remove test<br />
#modprobe mv_cesa<br />
#cryptsetup -c aes -h sha1 -d /dev/urandom create test /dev/loop0<br />
#dd if=/dev/zero of=/dev/mapper/test bs=1M count=224<br />
234881024 bytes (235 MB) copied, 18.0525 s, 13.0 MB/s<br />
</code><br />
13.0 MB/s and there&#8217;s a new kernel process, <code>[mv_crypto]</code>. It&#8217;s eating about three times as much CPU as <code>[kcryptd]</code>. That means it&#8217;s offloading, which is good. The results are consistent over time so let&#8217;s say there&#8217;s a 2.5-fold performance gain.<br />
The loop device setup causes some overhead. Out in the wild you&#8217;ll get about 19 MB/s writing to USB HDD. Cheers!</p>
]]></content:encoded>
			<wfw:commentRss>http://smorgasbord.gavagai.nl/2010/02/sheevaplug-hardware-crypto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

