<?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/"
	>

<channel>
	<title>nAnL.de - hacken, kracken, kacken</title>
	<atom:link href="http://nanl.de/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://nanl.de/blog</link>
	<description>"Wer die Freiheit aufgibt, um Sicherheit zu gewinnen, wird beides verlieren." - Benjamin Franklin</description>
	<pubDate>Sun, 28 Feb 2010 21:52:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Qt is working on OpenWrt</title>
		<link>http://nanl.de/blog/2010/02/qt-is-working-on-openwrt/</link>
		<comments>http://nanl.de/blog/2010/02/qt-is-working-on-openwrt/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 00:14:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nanl.de/blog/?p=361</guid>
		<description><![CDATA[
Okay, now some - really little - text I promised&#8230;
As you can I see Qt is running inside OpenWrt on the Ben NanoNote of qi-hardware. The device has only 32MB of RAM so this - especially this video I made (qt_openwrt_nanonote.ogm) with it&#8217;s coverflow-like 3d and mirroring-effects - shows the great potential of even such [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://nanl.de/blog/wp-content/qt_openwrt_nanonote.jpg"><img class="alignnone size-full wp-image-362" title="qt_openwrt_nanonote" src="http://nanl.de/blog/wp-content/qt_openwrt_nanonote.jpg" alt="qt_openwrt_nanonote" width="484" height="503" /></a></p>
<p>Okay, now some - really little - text I promised&#8230;</p>
<p>As you can I see Qt is running inside OpenWrt on the <a href="http://sharism.cc/products/ben-nanonote/">Ben NanoNote</a> of <a href="http://www.qi-hardware.com">qi-hardware</a>. The device has only 32MB of RAM so this - especially this video I made (<a title="qt_openwrt_nanonote.ogm" href="http://nanl.de/blog/wp-content/qt_openwrt_nanonote.ogm">qt_openwrt_nanonote.ogm</a>) with it&#8217;s coverflow-like 3d and mirroring-effects - shows the great potential of even such embedded hardware.</p>
<p>The Qt packages are not yet committed, I&#8217;ll do some cleanups and testing before.</p>
<p>However it&#8217;s almost ready to get its way into the OpenWrt packages repository.</p>
]]></content:encoded>
			<wfw:commentRss>http://nanl.de/blog/2010/02/qt-is-working-on-openwrt/feed/</wfw:commentRss>
		</item>
		<item>
		<title>QT/KDE on OpenWrt</title>
		<link>http://nanl.de/blog/2010/02/qtkde-on-openwrt/</link>
		<comments>http://nanl.de/blog/2010/02/qtkde-on-openwrt/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 21:28:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[English articles]]></category>

		<category><![CDATA[OpenWrt]]></category>

		<category><![CDATA[Tech]]></category>

		<category><![CDATA[embedded systems]]></category>

		<category><![CDATA[qi-hardware]]></category>

		<guid isPermaLink="false">http://nanl.de/blog/?p=345</guid>
		<description><![CDATA[As you may know OpenWrt&#8217;s collection of ported packages is continuesly growing.
Many graphical stuff gets ported, as well as graphical desktops and toolkits (lxde, xfce, gnome based on GTK2 - e17 based on the enlightenment foundation libraries - etc.).
However there was no approach yet to port the last missing Desktop &#8220;KDE&#8221; and underlying Toolkit &#8220;QT&#8221;.
That&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>As you may know OpenWrt&#8217;s collection of ported packages is continuesly growing.</p>
<p>Many graphical stuff gets ported, as well as graphical desktops and toolkits (lxde, xfce, gnome based on GTK2 - e17 based on the enlightenment foundation libraries - etc.).</p>
<p>However there was no approach yet to port the last missing Desktop &#8220;KDE&#8221; and underlying Toolkit &#8220;QT&#8221;.</p>
<p>That&#8217;s why I went to &#8220;Tokamak 4&#8243; this weekend, a meeting organized and founded by the KDE foundation, intended to communicate and hack together related to several KDE software projects.</p>
<p>We were about 25 people from all over the world and I really enjoyed the stay and nice, friendly and mixed party - surprisingly I was the only one not using KDE (however not for a special reason - just got used to my current environment) :).</p>
<p>They showed lot&#8217;s of interest in the UCI-System (Unified Configuration Interface) OpenWrt is using.<br />
It&#8217;s a simple, human-readable, easy-to-parse configuration file format and library OpenWrt uses for services to make it easy writing Administration Interfaces for them (e.g. the webinterface &#8220;LuCI&#8221;).<br />
We were spinning around about KDE Plasma applets which will list available OpenWrt-devices ready to get administrated right through native applications.</p>
<p>Key deal for me however was to get in touch with people who know the QT/KDE architecture very well, for sure promoting a bit OpenWrt, qi-hardware and it&#8217;s concept of open hardware and why I think having QT/KDE support within OpenWrt is opening lot&#8217;s of opportunities for both projects.</p>
<p>Since QT is able to use DirectFB (a very powerful but light abstraction for the linux framebuffer) - and therefore does not require a X11 system necessarily - it would be also great for limited hardware such as the Ben NanoNote (32MB of RAM) where I got GTK2-based apps running on top of DirectFB quite some time ago.</p>
<p>I expected to get basic support for QT within OpenWrt done this weekend, however I underestimated the size and complexity of QT - never touched QT-code before.<br />
I realized QT is not just a toolkit as GTK2 is, but a whole framework which tries to abstract as much as possible from the underlying system. It features own backends for multimedia, sound, graphics, even networking - to achieve a stable API and platform compatibility without the need of code modifications, no matter which backends or systems are used below.</p>
<p>In which way the typical issues of such a abstraction-concept - such as getting bloated, having performance issues, being feature-limited as you&#8217;re usually just able to support the least common denominator of all supported backends, etc. - I&#8217;ve no idea yet - maybe they found a way, will find that out sooner or later.</p>
<p>They also use &#8220;qmake&#8221; as build-system which is structured quite different than e.g. GNU make, so this got another temporary road blocker as I used qmake never before and had to dig in first.</p>
<p>Back to the port of QT to OpenWrt: I&#8217;m having promise to see the first basic QT based application running on a OpenWrt supported device within the next days.</p>
<p>Will let you know <img src='http://nanl.de/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://nanl.de/blog/2010/02/qtkde-on-openwrt/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PHP - fooled me once again&#8230;</title>
		<link>http://nanl.de/blog/2010/01/php-fooled-me-once-again/</link>
		<comments>http://nanl.de/blog/2010/01/php-fooled-me-once-again/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 18:22:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[English articles]]></category>

		<category><![CDATA[Tech]]></category>

		<category><![CDATA[fun]]></category>

		<category><![CDATA[misc]]></category>

		<guid isPermaLink="false">http://nanl.de/blog/?p=291</guid>
		<description><![CDATA[I was asked to take a look at several free and opensource software web-projects which are capable for so called &#8220;ISP configuration management&#8221;, managing web-, mail-, database-servers, etc. - handling clients, resellers and admins and having specialized frontends for them&#8230;
Anyway&#8230; I trigerred a weird bug in one of the projects where I got into an [...]]]></description>
			<content:encoded><![CDATA[<p>I was asked to take a look at several free and opensource software web-projects which are capable for so called &#8220;ISP configuration management&#8221;, managing web-, mail-, database-servers, etc. - handling clients, resellers and admins and having specialized frontends for them&#8230;</p>
<p>Anyway&#8230; I trigerred a weird bug in one of the projects where I got into an if-condition where I shouldn&#8217;t get into&#8230; which not just caused a weird behaviour of the application but was also a big security hole in this special case.</p>
<p>The code was something like that (simplified and not tested):</p>
<p><code><br />
get_sql($value) {<br />
&nbsp;&nbsp; if ($ret = mysql_query ("SELECT * FROM `table` WHERE foo='%s'"),<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mysql_real_escape_string($value))<br />
&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp; return $ret;<br />
&nbsp;&nbsp; }<br />
&nbsp;&nbsp; else<br />
&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp; return false;<br />
&nbsp;&nbsp; }<br />
}<br />
<br />
$result = get_sql($foo);<br />
if (count($result) &gt; 0) {<br />
&nbsp;&nbsp; // privileged area&#8230;<br />
}<br />
</code><br />
Ugly code - anyway&#8230; how it was expected to behave by the author?<br />
1) function <code>get_sql()</code> gets executed and therefore a sql-query<br />
2) <code>get_sql()</code> returns an array of results<br />
3) the number of results is checked via <code>count($result)</code> and when the result-array is greater than <code>0</code> jump into the if-block</p>
<p>Okay, so far so good&#8230;</p>
<p>However - I finally found out the SQL-query in <code>get_sql()</code> fails because of a typo.<br />
No error was thrown in the above code - so what&#8217;s happening?<br />
1) function <code>get_sql()</code> gets executed and therefore a sql-query<br />
2) <code>get_sql()</code> returns the boolean <code>false</code>, because the sql-query failed<br />
3) <code>count($result)</code>, evaluated <code>count(false)</code> is called</p>
<p>As the software just did behave different and didn&#8217;t throw an error an intermediate result is:</p>
<p><code>count()</code> applied on a boolean is <strong>valid</strong> !</p>
<p>So what&#8217;s <code>count(false)</code> going to return?</p>
<p><strong>1</strong>! - the integer <strong>one</strong>!</p>
<p><code>count(false)</code> is <strong>1</strong> and in PHP therefore <strong>true</strong>!</p>
<p>Proof:<br />
<code><br />
$ php<br />
&lt;? echo count(false); ?&gt;<br />
1<br />
$<br />
</code></p>
<p>Even better: this behaviour is kind of &#8220;documented&#8221; within an example at <a href="http://php.net/manual/en/function.count.php">http://php.net/manual/en/function.count.php</a> without any comment.</p>
<p>Okay, now guess:<br />
What&#8217;s <code>count(true)</code> returning? And this is <strong>not</strong> documented!</p>
<p><strong>1</strong>! - the integer <strong>one</strong>!</p>
<p>PHP - dine in hell&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://nanl.de/blog/2010/01/php-fooled-me-once-again/feed/</wfw:commentRss>
		</item>
		<item>
		<title>GTK2 running on top of DirectFB on OpenWrt!</title>
		<link>http://nanl.de/blog/2009/10/gtk2-running-on-top-of-directfb-on-openwrt/</link>
		<comments>http://nanl.de/blog/2009/10/gtk2-running-on-top-of-directfb-on-openwrt/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 05:50:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[OpenWrt]]></category>

		<category><![CDATA[Openmoko]]></category>

		<category><![CDATA[Tech]]></category>

		<category><![CDATA[embedded systems]]></category>

		<category><![CDATA[qi-hardware]]></category>

		<guid isPermaLink="false">http://nanl.de/blog/?p=223</guid>
		<description><![CDATA[OpenWrt is now able to run applications based on toolkit GTK+ on top of DirectFB!
Using DirectFB avoids having a full blown X11-server (most times Xorg) running, but having the possibiliy of getting nice GTK2 widgets onto your display without altering applications which are using the toolkit.
I was quite happy I got that working, because unfortunately [...]]]></description>
			<content:encoded><![CDATA[<p>OpenWrt is now able to run applications based on toolkit GTK+ on top of DirectFB!</p>
<p>Using DirectFB avoids having a full blown X11-server (most times Xorg) running, but having the possibiliy of getting nice GTK2 widgets onto your display without altering applications which are using the toolkit.</p>
<p>I was quite happy I got that working, because unfortunately DirectFB-support on part of gtk2 is quite broken in most versions.</p>

<a href='http://nanl.de/blog/2009/10/gtk2-running-on-top-of-directfb-on-openwrt/ben-directfb-gtkperf/' title='gtkperf on Ben NanoNote'><img src="http://nanl.de/blog/wp-content/ben-directfb-gtkperf-150x150.jpg" width="150" height="150" class="attachment-thumbnail" alt="" /></a>
<a href='http://nanl.de/blog/2009/10/gtk2-running-on-top-of-directfb-on-openwrt/gta02-directfb-gtkperf/' title='gtkperf on GTA02'><img src="http://nanl.de/blog/wp-content/gta02-directfb-gtkperf-150x150.jpg" width="150" height="150" class="attachment-thumbnail" alt="" /></a>

<p>Due its incredible slowness of GTK2 on the <a href="http://wiki.openmoko.org/wiki/Neo_FreeRunner">Openmoko Freerunner</a> (400 MHz ARM, 128 MB RAM) I didn&#8217;t expect much of gtk2 on top of DirectFB.</p>
<p>Surprisingly, a simple gtk2 app runs quite well and responsive on my <a href="http://www.qi-hardware.com/products/ben-nanonote/">Ben NanoNote by qi-hardware</a> (366 MHz mips, 32 MB RAM).</p>
<p>I was curious and started some benchmarking with the gtk2 performance testing tool &#8220;gtkperf&#8221;. However I had to patch gtkperf that it&#8217;ll be usable with the qvga-resolution on the Ben NanoNote (otherwise parts of the app were hidden and the benchmark will get falsified because not the whole gets redrawed).</p>
<p><strong>Do not compare your results of an original version of gtkperf with mine - varieties may be caused due to mentioned changes!</strong> <em>(Patch: <a title="http://nanl.de/files/patches/gtkperf/gtkperf-adjust-layout.patch" href="http://nanl.de/files/patches/gtkperf/gtkperf-adjust-layout.patch" target="_blank">http://nanl.de/files/patches/gtkperf/gtkperf-adjust-layout.patch</a>)</em></p>
<p>What got tested?</p>
<p>gtkperf using GTK2 on:</p>
<ol>
<li>Openmoko Freerunner with DirectFB</li>
<li>Openmoko Freerunner with Xorg and glamo driver</li>
<li>Openmoko Freerunner with Xorg and fbdev driver</li>
<li>qi-hardware Ben NanoNote with DirectFB</li>
<li>qi-hardware Ben NanoNote with Xorg and fbdev driver <em>(not yet done)</em></li>
</ol>
<table border="0">
<tbody>
<tr>
<td><strong>1</strong></td>
<td><strong> </strong></td>
<td><strong>2</strong></td>
</tr>
<tr>
<td>GtkEntry - time:  0.91<br />
GtkComboBox - time: 16.01<br />
GtkComboBoxEntry - time: 10.18<br />
GtkSpinButton - time:  2.37<br />
GtkProgressBar - time:  1.04<br />
GtkToggleButton - time:  2.54<br />
GtkCheckButton - time:  1.72<br />
GtkRadioButton - time:  4.16<br />
GtkTextView - Add text - time:  9.47</td>
<td><strong> </strong></td>
<td>GtkEntry - time:  2.08<br />
GtkComboBox - time: 30.40<br />
GtkComboBoxEntry - time: 21.65<br />
GtkSpinButton - time:  3.54<br />
GtkProgressBar - time:  2.55<br />
GtkToggleButton - time:  4.66<br />
GtkCheckButton - time:  2.71<br />
GtkRadioButton - time:  6.64<br />
GtkTextView - Add text - time: 26.06</td>
</tr>
<tr>
<td><strong>3</strong></td>
<td><strong> </strong></td>
<td><strong>4</strong></td>
</tr>
<tr>
<td>GtkEntry - time:  1.73<br />
GtkComboBox - time: 22.70<br />
GtkComboBoxEntry - time: 16.52<br />
GtkSpinButton - time:  2.60<br />
GtkProgressBar - time:  1.93<br />
GtkToggleButton - time:  3.60<br />
GtkCheckButton - time:  2.28<br />
GtkRadioButton - time:  5.73<br />
GtkTextView - Add text - time: 18.81</td>
<td><strong> </strong></td>
<td>GtkEntry - time:  1.07<br />
GtkComboBox - time: 18.61<br />
GtkComboBoxEntry - time: 10.98<br />
GtkSpinButton - time:  2.81<br />
GtkProgressBar - time:  1.51<br />
GtkToggleButton - time:  4.31<br />
GtkCheckButton - time:  2.60<br />
GtkRadioButton - time:  7.42<br />
GtkTextView - Add text - time: 12.48</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p>The results are really interesting!</p>
<p>On the Openmoko GTA02 (Freerunner) GTK on DirectFB seems to be almost twice as fast as GTK on top of Xorg!</p>
<p>Even though the Hardware of the Ben NanoNote is quite limited compared to the GTA02, the benchmark looks quite promising and GTK2-applications seem to be - unline I expected - really usable on that kind of limited hardware.</p>
<p>What&#8217;s really confusing to me: running gtkperf on top of the accelerated Xorg-glamo driver for the glamo graphics chip is slower than using the not accelerated Xorg-fbdev driver. However this myth should not be part of this article; I&#8217;ll get in touch with Lars - the author of Xorg-glamo - regarding this issue.</p>
<p><strong>UPDATE:</strong> Lars told me this is related to the glamo-overhead. Data transferred to the framebuffer via fbdev only consists of pure pixmap-data. Data transferred via the glamo-driver consists of data AND special glamo-related commands (telling the chip what to accelerate) which results in more data to be transferred. Normally this shouldn&#8217;t cause such a discrepancy, however the glamo <-> memory-onnection is a bottleneck and only capable of tansferring around 4 MB / second which slows down unacceleraed content. The glamo chip provides the interface for the SD-card, so the whole bus is shared by graphics- and SD-carc-traffic. That&#8217;s the reason why e.g. playing videos (unaccelerated) stored on SD-card is that damn slow!</p>
<p><em>Further tests, benchmarks, evaluation coming soon&#8230;</em></p>
<p>Versions:</p>
<p>gtkperf: 0.40 (with patch: <a title="http://nanl.de/files/patches/gtkperf/gtkperf-adjust-layout.patch" href="http://nanl.de/files/patches/gtkperf/gtkperf-adjust-layout.patch" target="_blank">http://nanl.de/files/patches/gtkperf/gtkperf-adjust-layout.patch</a>)<br />
DirectFB: 1.4<br />
GTK+: 2.17.0<br />
cairo: 1.8.6<br />
pango:1.26.0<br />
freetype: 2.3.9<br />
glib: 2.22.2<br />
atk: 1.22.0<br />
pixman: 0.14.0<br />
Xorg X11 server: X11R7.4-1.5.1<br />
xorg-driver-glamo: b45d78c927715b8814404fc2a34ae0aa1d003c29</p>
]]></content:encoded>
			<wfw:commentRss>http://nanl.de/blog/2009/10/gtk2-running-on-top-of-directfb-on-openwrt/feed/</wfw:commentRss>
		</item>
		<item>
		<title>OpenWrt on the Ben NanoNote!</title>
		<link>http://nanl.de/blog/2009/08/openwrt-on-the-ben-nanonote/</link>
		<comments>http://nanl.de/blog/2009/08/openwrt-on-the-ben-nanonote/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 09:46:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[English articles]]></category>

		<category><![CDATA[OpenWrt]]></category>

		<category><![CDATA[Tech]]></category>

		<category><![CDATA[embedded systems]]></category>

		<category><![CDATA[qi-hardware]]></category>

		<guid isPermaLink="false">http://nanl.de/blog/?p=200</guid>
		<description><![CDATA[The Ben NanoNote I got a few weeks ago by qi-hardware is now running OpenWrt!
The patch, published by the manufacturer ingenic itself, which provides linux support for their SoC&#8217;s (System-on-a-Chip&#8217;s),  is roughly cleaned up, unneeded stuff is cleared out and it&#8217;s levelled up to 2.6.25.20 (originally the patch refers to 2.6.24.3) and - running!
That&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>The Ben NanoNote I got a few weeks ago by <a href="http://qi-hardware.com">qi-hardware</a> is now running <a href="http://openwrt.org">OpenWrt</a>!</p>
<p>The <a href="ftp://ftp.ingenic.cn/3sw/01linux/02kernel/linux-2.6.24/linux-2.6.24.3-jz-20090506.patch.gz">patch</a>, published by the manufacturer ingenic itself, which provides linux support for their SoC&#8217;s (System-on-a-Chip&#8217;s),  is roughly cleaned up, unneeded stuff is cleared out and it&#8217;s levelled up to 2.6.25.20 (originally the patch refers to 2.6.24.3) and - running!</p>
<p>That&#8217;s the good news&#8230;</p>
<p>&#8230;now the bad ones:</p>
<ul>
<li>The mentioned patch by ingenic contains not only linux kernel source but also binary data - ELF-formatted binary code for the mips instruction set! For more details you may want to look at my <a href="http://lists.qi-hardware.com/pipermail/developer/2009-August/000162.html">post</a> on the <a href="http://lists.qi-hardware.com/pipermail/developer/">developer-mailinglist</a> (<a href="http://lists.qi-hardware.com/pipermail/developer/2009-August/000162.html">http://lists.qi-hardware.com/pipermail/developer/2009-August/000162.html</a>). They patch in a proprietary mtdblock-replacement which seems to differ to the original in nand-flash error correction and handling of bad blocks. That&#8217;s a no-go - not just because of the reaosons of open hardware/software but also as not being able to forward the patchset to a newer kernel version.</li>
<li>Strange problems appear with the MMC / SD-card hardware. Randomly the hardware does not recognize the card correctly (more precisely, the card is recognized but not the partition table why the kernel panics because of not finding it&#8217;s given root device). Spent days not on this issue, but weren&#8217;t able to figure out yet what&#8217;s causing this kind of behaviour <img src='http://nanl.de/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </li>
</ul>
<p>What&#8217;s next?</p>
<ul>
<li>get this bloody MMC/SD-card issue fixed</li>
<li>get the NAND flash supported - either we get the sourcecode of the modified mtdblock driver or get it supported elsewise</li>
<li>further cleanups of the existing patchset</li>
<li>level up the patchset to a recent kernel version (2.6.31 would be best - much stuff went upstream / is now handled nativly, e.g. nand-chips &gt; 4 GB don&#8217;t need the ingenic hacks anymore, also there&#8217;s a new interface for gpio-based keyboards which should make it pretty easy to write a keyboard-driver and allows us to get rid of the existing stuff).</li>
<li>(re)writing some (of the) drivers (e.g. MMC/SD-card support and support for SDIO, keyboard-driver as mentioned above)</li>
</ul>
<p>I was in Hamburg this weekend meeting Lars for a hack-session on the Ben NanoNote. He&#8217;s also part of the OpenWrt-team and now another proud owner of such a device <img src='http://nanl.de/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Besides his ongoing contributions to the Openmoko-project, hopefully he will also help us* spending some of his time on the NanoNote - thank&#8217;s a lot at this point for your great work and efforts!</p>
<p>*i&#8217;m happy to announce that <a href="http://lists.qi-hardware.com/pipermail/developer/2009-August/000157.html">last week</a> I &#8220;became an official developer of the [qi-]core team&#8221; with &#8220;focus<br />
on the OpenWrt integration&#8221; - let&#8217;s see what will happen <img src='http://nanl.de/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://nanl.de/blog/2009/08/openwrt-on-the-ben-nanonote/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Linksys WRT160NL</title>
		<link>http://nanl.de/blog/2009/07/linksys-wrt160nl/</link>
		<comments>http://nanl.de/blog/2009/07/linksys-wrt160nl/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 21:35:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[English articles]]></category>

		<category><![CDATA[OpenWrt]]></category>

		<category><![CDATA[Tech]]></category>

		<category><![CDATA[embedded systems]]></category>

		<guid isPermaLink="false">http://nanl.de/blog/?p=182</guid>
		<description><![CDATA[I got a Linksys WRT160NL and because I didn&#8217;t find any pictures of the board nor any data about the serial - here&#8217;s what I got:
]]></description>
			<content:encoded><![CDATA[<p>I got a Linksys WRT160NL and because I didn&#8217;t find any pictures of the board nor any data about the serial - here&#8217;s what I got:</p>
<div id="attachment_183" class="wp-caption alignnone" style="width: 503px"><a href="http://nanl.de/blog/wp-content/wrt160nl.jpg"><img class="size-full wp-image-183" title="wrt160nl" src="http://nanl.de/blog/wp-content/wrt160nl.jpg" alt="Linksys WRT160NL" width="493" height="370" /></a><p class="wp-caption-text">Linksys WRT160NL (click to enlarge)</p></div>
]]></content:encoded>
			<wfw:commentRss>http://nanl.de/blog/2009/07/linksys-wrt160nl/feed/</wfw:commentRss>
		</item>
		<item>
		<title>qi-hardware</title>
		<link>http://nanl.de/blog/2009/07/qi-hardware/</link>
		<comments>http://nanl.de/blog/2009/07/qi-hardware/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 16:50:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[English articles]]></category>

		<category><![CDATA[OpenWrt]]></category>

		<category><![CDATA[Openmoko]]></category>

		<category><![CDATA[Tech]]></category>

		<category><![CDATA[embedded systems]]></category>

		<category><![CDATA[qi-hardware]]></category>

		<guid isPermaLink="false">http://nanl.de/blog/?p=154</guid>
		<description><![CDATA[qi-hardware is a startup (announced 20th of July on linux.com) which set itself the target of manufacturing and deploying  hardware under the idea of &#8220;Open Source Hardware&#8221; (for details you might want to read the mentioned article on linux.com or on qi-hardware.com itself).
This idea might call some analogies to Openmoko and - indeed - not [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://qi-hardware.com">qi-hardware</a> is a startup (announced 20th of July on <a href="http://linux.com/news/embedded-mobile/mids/29263-openmoko-layoffs-lead-to-new-open-hardware-venture">linux.com</a>) which set itself the target of manufacturing and deploying  hardware under the idea of &#8220;<a href="http://en.wikipedia.org/wiki/Open_source_hardware">Open Source Hardware</a>&#8221; (for details you might want to read the mentioned article on <a href="http://linux.com/news/embedded-mobile/mids/29263-openmoko-layoffs-lead-to-new-open-hardware-venture">linux.com</a> or on <a href="http://qi-hardware.com">qi-hardware.com</a> itself).</p>
<p>This idea might call some analogies to <a href="http://openmoko.org">Openmoko</a> and - indeed - not just the ideas, also the people are almost the same <img src='http://nanl.de/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Same idea? Same targets? Same people? Let&#8217;s face it: same mistakes? At least qi is saying: &#8220;no!&#8221; as described in their post &#8220;<a href="http://www.qi-hardware.com/2009/07/21/lessons-learned/">Lessons learned</a>&#8221;</p>
<p>Based on the saying &#8220;back to the roots&#8221; aka &#8220;the more basics the fewer problems&#8221; they announced their first device:</p>
<p><a href="http://www.qi-hardware.com/wp-content/uploads/2009/07/ben-nanonote.png"> </a></p>

<a href='http://nanl.de/blog/2009/07/qi-hardware/ben-nanonote-closed/' title='ben-nanonote-closed'><img src="http://nanl.de/blog/wp-content/ben-nanonote-closed.png" width="150" height="116" class="attachment-thumbnail" alt="" /></a>
<a href='http://nanl.de/blog/2009/07/qi-hardware/ben-nanonote/' title='ben-nanonote'><img src="http://nanl.de/blog/wp-content/ben-nanonote.png" width="102" height="150" class="attachment-thumbnail" alt="" /></a>

<p>the &#8220;Ben NanoNote&#8221;, which (at least for now) comes with no RF-hardware at all.</p>
<p>Nevertheless the project looks very interesting and promising - even more when I was told that OpenWrt is going to be used as default operating system.</p>
<p>Shortly after I was asked whether I&#8217;m interested in helping getting OpenWrt running on it - I agreed, got one and am now hacking on it <img src='http://nanl.de/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Let&#8217;s see how things will do&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://nanl.de/blog/2009/07/qi-hardware/feed/</wfw:commentRss>
		</item>
		<item>
		<title>&#8230;and because everybody likes screenshots :)</title>
		<link>http://nanl.de/blog/2009/07/and-because-everybody-likes-screenshots/</link>
		<comments>http://nanl.de/blog/2009/07/and-because-everybody-likes-screenshots/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 21:40:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[English articles]]></category>

		<category><![CDATA[OpenWrt]]></category>

		<category><![CDATA[Openmoko]]></category>

		<category><![CDATA[Tech]]></category>

		<category><![CDATA[embedded systems]]></category>

		<guid isPermaLink="false">http://nanl.de/blog/?p=135</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[
<a href='http://nanl.de/blog/2009/07/and-because-everybody-likes-screenshots/openwrt_boot/' title='openwrt boot'><img src="http://nanl.de/blog/wp-content/openwrt_boot.jpg" width="112" height="150" class="attachment-thumbnail" alt="" /></a>
<a href='http://nanl.de/blog/2009/07/and-because-everybody-likes-screenshots/illume/' title='illume desktop'><img src="http://nanl.de/blog/wp-content/illume.jpg" width="112" height="150" class="attachment-thumbnail" alt="" /></a>
<a href='http://nanl.de/blog/2009/07/and-because-everybody-likes-screenshots/paroli_pin/' title='paroli pin'><img src="http://nanl.de/blog/wp-content/paroli_pin.jpg" width="112" height="150" class="attachment-thumbnail" alt="" /></a>
<a href='http://nanl.de/blog/2009/07/and-because-everybody-likes-screenshots/tangogps/' title='tangogps'><img src="http://nanl.de/blog/wp-content/tangogps.jpg" width="112" height="150" class="attachment-thumbnail" alt="" /></a>
<a href='http://nanl.de/blog/2009/07/and-because-everybody-likes-screenshots/paroli_contacts/' title='paroli contacts'><img src="http://nanl.de/blog/wp-content/paroli_contacts.jpg" width="112" height="150" class="attachment-thumbnail" alt="" /></a>
<a href='http://nanl.de/blog/2009/07/and-because-everybody-likes-screenshots/illume_settings/' title='illume settings'><img src="http://nanl.de/blog/wp-content/illume_settings.jpg" width="112" height="150" class="attachment-thumbnail" alt="" /></a>
<a href='http://nanl.de/blog/2009/07/and-because-everybody-likes-screenshots/paroli_call/' title='paroli call'><img src="http://nanl.de/blog/wp-content/paroli_call.jpg" width="112" height="150" class="attachment-thumbnail" alt="" /></a>

]]></content:encoded>
			<wfw:commentRss>http://nanl.de/blog/2009/07/and-because-everybody-likes-screenshots/feed/</wfw:commentRss>
		</item>
		<item>
		<title>OpenWrt on the Openmoko Freerunner - some updates&#8230;</title>
		<link>http://nanl.de/blog/2009/07/131/</link>
		<comments>http://nanl.de/blog/2009/07/131/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 21:25:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[English articles]]></category>

		<category><![CDATA[OpenWrt]]></category>

		<category><![CDATA[Openmoko]]></category>

		<category><![CDATA[Tech]]></category>

		<category><![CDATA[embedded systems]]></category>

		<guid isPermaLink="false">http://nanl.de/blog/?p=131</guid>
		<description><![CDATA[Long time no news regarding OpenWrt &#60;-&#62; the Openmoko Neo devices; but it
happened much!
It now reached a state where I think it&#8217;s justified to announce a ready-to-work(/debug?) OpenWrt-Image for the Openmoko Freerunner.
This should be a short overview of what happened
- kernel 2.6.30.1 is running
all neo-specific patches were extracted from the OM-kernel-tree and
created an atomic and [...]]]></description>
			<content:encoded><![CDATA[<p>Long time no news regarding OpenWrt &lt;-&gt; the Openmoko Neo devices; but it<br />
happened much!</p>
<p>It now reached a state where I think it&#8217;s justified to announce a ready-to-work(/debug?) OpenWrt-Image for the Openmoko Freerunner.</p>
<p>This should be a short overview of what happened</p>
<p>- kernel 2.6.30.1 is running<br />
all neo-specific patches were extracted from the OM-kernel-tree and<br />
created an atomic and maintainable patchset for the Neo (thanks to Lars !!)</p>
<p>- clean, stable and accelerated graphics system<br />
thanks to the gorgeous work of the xf86-video-glamo developers (especially Lars (again)), finally<br />
there&#8217;s no need for &lt;Xglamo&gt; anymore - acceleration is done from within<br />
an usual &lt;Xorg&gt; with the glamo-driver used. The infamous WSOD (white screen of death) should be<br />
ultimately purged out.</p>
<p>- GPS works<br />
the amazing application &lt;tangoGPS&gt; is also available as an<br />
OpenWrt-package now</p>
<p>- performance tuned<br />
due to it&#8217;s architecture itself, fixed bugs and found ways for<br />
optimizations through all layers, OpenWrt now boots in less than 1<br />
minute into illume (very first boot excluded)</p>
<p>- software added/upgraded<br />
besides lot&#8217;s of just OpenWrt-related improvements, also typical<br />
OM-community-used packages were added and upgraded to recent versions<br />
(e.g. tangogps, enlightenment/the whole efl-suite, paroli, fso, connman,<br />
etc.)</p>
<p>- a beautiful bootsplash<br />
real beauty can&#8217;t be described by words <img src='http://nanl.de/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>- phone calls are still possible<br />
thanks to paroli, the basic phone stuff is (still) working (phone calls,<br />
messages, contacts, etc.)</p>
<p>== Images / environment</p>
<p>Images can be found here: http://nanl.de/files/openwrt/openmoko/<br />
Mind - that, as usual for OpenWrt - the default IP of your device will<br />
be &#8220;192.168.1.1&#8243; and the only running service will be &lt;telnet&gt; on port<br />
23.<br />
After logging in and setting a password, &lt;telnetd&gt; is getting replaced<br />
through &lt;sshd&gt; (port 22).<br />
The mentioned files/images have the prefix &#8220;20090706_r16709_1&#8243;, based on<br />
svn-revision 16709.</p>
<p>Suggestions / critism is welcome&#8230; <img src='http://nanl.de/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The original announcement on the mailinglists can be found here (http://kerneltrap.org/mailarchive/openmoko-devel/2009/7/6/6147903)</p>
]]></content:encoded>
			<wfw:commentRss>http://nanl.de/blog/2009/07/131/feed/</wfw:commentRss>
		</item>
		<item>
		<title>asserts in python may not work as expected</title>
		<link>http://nanl.de/blog/2009/06/asserts-in-python-may-not-work-as-expected/</link>
		<comments>http://nanl.de/blog/2009/06/asserts-in-python-may-not-work-as-expected/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 11:46:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[English articles]]></category>

		<category><![CDATA[OpenWrt]]></category>

		<category><![CDATA[Tech]]></category>

		<category><![CDATA[embedded systems]]></category>

		<guid isPermaLink="false">http://nanl.de/blog/?p=104</guid>
		<description><![CDATA[While getting the phone suite &#8220;paroli&#8221; (http://paroli-project.org) working on OpenWrt, I got some thrown exceptions in the OpenWrt-environment which I didn&#8217;t get in the official OM-builds.
I tried to figure out what exactly is causing the exception on the OpenWrt-target and created a minimal program which raises it:
You don&#8217;t have to know what&#8217;s &#60;tichy&#62; and its [...]]]></description>
			<content:encoded><![CDATA[<p>While getting the phone suite &#8220;paroli&#8221; (<a title="http://paroli-project.org" href="http://paroli-project.org">http://paroli-project.org</a>) working on OpenWrt, I got some thrown exceptions in the OpenWrt-environment which I didn&#8217;t get in the official OM-builds.<br />
I tried to figure out what exactly is causing the exception on the OpenWrt-target and created a minimal program which raises it:</p>
<p>You don&#8217;t have to know what&#8217;s &lt;tichy&gt; and its &lt;Item&gt; class, nor what &lt;issubclass&gt; is doing exactly - just mind the return values.</p>
<p>root@OpenWrt:/# DISPLAY=:0 python<br />
Python 2.6.1 (r261:67515, Jun  8 2009, 09:18:20)<br />
[GCC 4.1.2] on linux2<br />
Type &#8220;help&#8221;, &#8220;copyright&#8221;, &#8220;credits&#8221; or &#8220;license&#8221; for more information.<br />
&gt;&gt;&gt; from tichy.item import Item<br />
&gt;&gt;&gt; issubclass(bool, Item)<br />
False<br />
&gt;&gt;&gt; assert issubclass(bool, Item)<br />
Traceback (most recent call last):<br />
File &#8220;&lt;stdin&gt;&#8221;, line 1, in &lt;module&gt;<br />
AssertionError</p>
<p>Ah, ok. On the OpenWrt-target the assert throws an exception, because &lt;issubclass&gt; returns &lt;False&gt;</p>
<p>So, logically, within the Openmoko-environment, the &lt;issubclass&gt;-statement must return &lt;True&gt; to not get assert raising an exception - but that&#8217;s not the case:</p>
<p>root@om-gta02:~# DISPLAY=:0 python<br />
Python 2.6.2 (r262:71600, May 31 2009, 00:18:54)<br />
[GCC 4.1.2] on linux2<br />
Type &#8220;help&#8221;, &#8220;copyright&#8221;, &#8220;credits&#8221; or &#8220;license&#8221; for more information.<br />
&gt;&gt;&gt; from tichy.item import Item<br />
&gt;&gt;&gt; issubclass(bool, Item)<br />
False<br />
&gt;&gt;&gt; assert issubclass(bool, Item)<br />
&gt;&gt;&gt;</p>
<p>Huh - ok, let&#8217;s take a closer look here:</p>
<p>&lt;issubclass (bool, Item)&gt; is returning False, but &lt;assert issubclass(bool, Item)&gt; is not throwing an exception - that&#8217;s weird and caused me to do test the assert-statement in a very simple way:</p>
<p>root@om-gta02:~# DISPLAY=:0 python<br />
Python 2.6.2 (r262:71600, May 31 2009, 00:18:54)<br />
[GCC 4.1.2] on linux2<br />
Type &#8220;help&#8221;, &#8220;copyright&#8221;, &#8220;credits&#8221; or &#8220;license&#8221; for more information.<br />
&gt;&gt;&gt; assert False<br />
&gt;&gt;&gt;</p>
<p>That&#8217;s definitely not the expected result of assert.</p>
<p>So, why is that happening? Why python&#8217;s assert is just doing nothing?</p>
<p>Some research about that got me into this statement:</p>
<p>&#8220;[..]The current code generator emits no code for an assert statement when optimization is requested at compile time. Note that it is unnecessary to include the source code for the expression that failed in the error message; it will be displayed as part of the stack trace.[..]&#8221; - <a title="http://docs.python.org/reference/simple_stmts.html#grammar-token-assert_stmt" href="http://docs.python.org/reference/simple_stmts.html#grammar-token-assert_stmt">http://docs.python.org/reference/simple_stmts.html#grammar-token-assert_stmt</a></p>
<p>Let&#8217;s check that with a regular python-installation:</p>
<p>$ python<br />
Python 2.5.4 (r254:67916, Feb 18 2009, 03:00:47)<br />
[GCC 4.3.3] on linux2<br />
Type &#8220;help&#8221;, &#8220;copyright&#8221;, &#8220;credits&#8221; or &#8220;license&#8221; for more information.<br />
&gt;&gt;&gt; assert False<br />
Traceback (most recent call last):<br />
File &#8220;&lt;stdin&gt;&#8221;, line 1, in &lt;module&gt;<br />
AssertionError<br />
&gt;&gt;&gt;<br />
$ python -O # enable optimizations<br />
Python 2.5.4 (r254:67916, Feb 18 2009, 03:00:47)<br />
[GCC 4.3.3] on linux2<br />
Type &#8220;help&#8221;, &#8220;copyright&#8221;, &#8220;credits&#8221; or &#8220;license&#8221; for more information.<br />
&gt;&gt;&gt; assert False<br />
&gt;&gt;&gt;</p>
<p>Conclusion:<br />
- some distributions are shipping their python-package configured for executing python-scripts with optimizations enabled<br />
- asserts may not act as expected, means, they may don&#8217;t do anything when above is true<br />
- i&#8217;m not using asserts anymore when my app is relying on asserts and I don&#8217;t know for sure which target/distribution my scripts are running on</p>
]]></content:encoded>
			<wfw:commentRss>http://nanl.de/blog/2009/06/asserts-in-python-may-not-work-as-expected/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
