<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Account of my unadventures</title>
	<atom:link href="http://unadventure.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://unadventure.wordpress.com</link>
	<description>Boring non-technical babble</description>
	<pubDate>Sun, 08 Jun 2008 21:00:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Accelerating in my pocket</title>
		<link>http://unadventure.wordpress.com/2008/06/08/accelerating-in-my-pocket/</link>
		<comments>http://unadventure.wordpress.com/2008/06/08/accelerating-in-my-pocket/#comments</comments>
		<pubDate>Sun, 08 Jun 2008 18:53:07 +0000</pubDate>
		<dc:creator>balrog</dc:creator>
		
		<category><![CDATA[Code]]></category>

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

		<guid isPermaLink="false">http://unadventure.wordpress.com/?p=50</guid>
		<description><![CDATA[I started poking at the SMedia Glamo chip in the GTA02 this week.  First I played with the Linux framebuffer driver and later with decoding MPEG in hardware, and now I have some code ready. I was challenged by messages like this on the Openmoko lists. Contrary to the opinion spreading accross these messages, [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I started poking at the SMedia Glamo chip in the GTA02 this week.  First I played with the Linux framebuffer driver and later with decoding MPEG in hardware, and now I have some code ready. I was challenged by messages like <a href="http://article.gmane.org/gmane.comp.handhelds.openmoko.hardware/95">this</a> on the Openmoko lists. Contrary to the opinion spreading accross these messages, we&#8217;re not doomed and we still have a graphics accelerator in a phone (which is coolness on its own). And it&#8217;s a quite hackable one.</p>
<p>I first had a look at <em>libglamo</em> code - a small library written some time ago by Chia-I Wu (olv) and Harald Welte (laf0rge) for accessing some of the Glamo&#8217;s submodules (<em>engines</em>).  I asked the authors if I could use their code and release it under GPL and they liked the idea, so I stitched together libglamo and <a href="http://www.mplayerhq.hu/">mplayer</a> and added the necessary glue drivers.  This wasn&#8217;t all straight forward because mplayer isn&#8217;t really prepared for doing decoding in hardware, even though some support was present.  Today I uploaded my <a href="http://repo.or.cz/w/mplayer/glamo.git">mplayer git tree here</a> - see below what it can and cannot do.  There&#8217;s lots more that can be improved but the basic stuff is there and seems to work.  To clone, do this:</p>
<pre>cg-clone git://repo.or.cz/mplayer/glamo.git</pre>
<p style="text-align:center;"><img class="alignnone size-full wp-image-51 aligncenter" style="border:0 none;vertical-align:middle;" src="http://unadventure.files.wordpress.com/2008/06/mplayer.jpeg?w=450&h=600" alt="" width="450" height="600" /></p>
<p>The Glamo fact sheet claims it can do MPEG-4 and H-263 encoding/decoding at 352&#215;288, 30fps max and 640&#215;480 at 12fps max.  Since it also does all the scaling/rotation in hardware, I hoped I would be able to play a 352&#215;288 video scaled to 640&#215;480 at full frame-rate but this doesn&#8217;t seem to be the case.  The decoding is pretty fast but the scaling takes a while and rotation adds another bit of overhead.  That said, even if mplayer is not keeping up with the video&#8217;s frame-rate it still shows 0.0% CPU usage in <em>top</em>.  There are still many obvious optimisations that can be done (and some less obvious that I don&#8217;t know about not being much into graphics).  Usage considerations:</p>
<ul>
<li>Pass &#8220;-vo glamo&#8221; to use the glamo driver.  The driver should probably be a VIDIX subdriver in mplayer&#8217;s source but that would take much more work as VIDIX is very incomplete now, so glamo is a separate output driver (in particular vidix seems to support only &#8220;BES&#8221; (backend scaler?) type of hw acceleration, which the Glamo also does, but it does much more too).  Like vidix, it requires root access to run (we should move the driver to the kernel once there exists a kernel API for video decoders - or maybe to X).</li>
<li>It only supports MPEG-4 videos, so you should recode if you want to watch something on the phone without using much CPU. H-263 would probably only require some trivial changes in the code.  For completeness - MPEG-4 is not backwards compatible with MPEG1 or 2, it&#8217;s a separate codec.  It&#8217;s the one used by most digital cameras and it can be converted to/from with Fabrice Bellard&#8217;s <a href="http://ffmpeg.mplayerhq.hu/">ffmpeg</a>.  A deblocking filter is supported by the Glamo but the driver doesn&#8217;t yet support it.  For other codecs, &#8220;-vo glamo&#8221; will try to help in converting the decoded frames from YUV to RGB (untested), which is normally the last step of decoding.</li>
<li>The &#8220;glamo&#8221; driver can take various parameters.  Add &#8220;:rotate=90&#8243; to rotate (or 180 or 270) - the MPEG engine doesn&#8217;t know about the xrandr rotation and they won&#8217;t work together. Add &#8220;:nosleep&#8221; to avoid sleeping in mplayer - this yields slightly better FPS but takes up all your CPU, spinning.</li>
<li>Supports the &#8220;xover&#8221; output driver, pass &#8220;-vo xover:glamo&#8221; to use that (not very useful with a window manager that makes all windows full-screen anyway).</li>
<li>Only works with the 2.6.22.5 Openmoko kernels.  There were some changes in openmoko 2.6.24 patches that disabled access to the MPEG engine but since we don&#8217;t have a bisectable git tree <span style="text-decoration:line-through;">I can&#8217;t be bothered.</span> <strong>UPDATE</strong>: A 2.6.24 patch <a href="http://folks.o-hand.com/andrew/linux-glamo-mpeg.patch">here</a> - note that it can eat your files, no responsibility assumed. I guess it can also be accounted for in mplayer, will check.  My rant about lack of changes history in git is still valid - while I loved the switch to git, the SVN was being maintained better in this regard.</li>
<li>In the mplayer git tree linked above I enabled <a title="Mob" href="http://repo.or.cz/mob.html">anonymous unmoderated push access</a> so improvements are welcome and easy to get in.</li>
</ul>
<p>With respect to the linux framebuffer poking, I wanted to see how much of the text console rendering can be moved to the hardware side and it seems the hw is not lacking anything (scrolling, filling rectagles, cursor) compared to the other accelerated video cards, and even the code already exists in Dodji Seketeli&#8217;s <a href="http://git.openmoko.org/?p=xglamo.git;a=summary">Xglamo</a>.  I&#8217;m sure sooner or later we&#8217;ll have it implemented in the kernel too.  For now I got the framebuffer to use hardware cursor drawing (alas still with issues).</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/unadventure.wordpress.com/50/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/unadventure.wordpress.com/50/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/unadventure.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/unadventure.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/unadventure.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/unadventure.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/unadventure.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/unadventure.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/unadventure.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/unadventure.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/unadventure.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/unadventure.wordpress.com/50/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unadventure.wordpress.com&blog=1302864&post=50&subd=unadventure&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://unadventure.wordpress.com/2008/06/08/accelerating-in-my-pocket/feed/</wfw:commentRss>
	
		<media:content url="http://unadventure.files.wordpress.com/2008/06/mplayer.jpeg" medium="image" />
	</item>
		<item>
		<title>Bricked! lol</title>
		<link>http://unadventure.wordpress.com/2008/05/28/bricked-lol/</link>
		<comments>http://unadventure.wordpress.com/2008/05/28/bricked-lol/#comments</comments>
		<pubDate>Wed, 28 May 2008 19:42:52 +0000</pubDate>
		<dc:creator>balrog</dc:creator>
		
		<category><![CDATA[Code]]></category>

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

		<guid isPermaLink="false">http://unadventure.wordpress.com/?p=49</guid>
		<description><![CDATA[Somewhat related to the Phoenix probe landing, I found in the Viking mission page on wikipedia (the exams are here again and I&#8217;m looking up things on WP and then getting stuck reading completely unrelated stuff and consequently failing exams) an amazing bit of information.  The mission started in 1975 when it sent to [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Somewhat related to the Phoenix probe landing, I found in the <a title="Viking mission page on wikipedia" href="http://en.wikipedia.org/wiki/Viking_program" target="_self">Viking mission page on wikipedia</a> (the exams are here again and I&#8217;m looking up things on WP and then getting stuck reading completely unrelated stuff and consequently failing exams) an amazing bit of information.  The mission started in 1975 when it sent to Mars two NASA rockets carrying four spacecraft, each having on-board a computer based on the RCU1802 chip (that was a legitimate computer at that time).  All four vessels successfully carried out their missions but <a title="Viking mission end" href="http://en.wikipedia.org/wiki/Viking_program#Mission_End" target="_self">each one failed years later in a different way</a>.  Three computers were shut down in appropriate ways worth a space travel (physical damage) but the last operating one has this failure reason: <strong><em>Human error during software update</em></strong>.  Sounds so contemporary.</p>
<p>It&#8217;s amazing that a board that left Earth in 1975 could be updated from 100,000,000 km away (some vendors still don&#8217;t get it about updates).  Even more amazing is that the discussion of whether (and how) to protect software from the user is still not resolved.  FIC GTA phones evolve a pattern of writable and read-only memories to become &#8220;un-brickable&#8221;.  I&#8217;m sure that&#8217;s partially because it becomes less clear who is a user and who is the developer (like in a NASA mission).  It&#8217;s clear that nobody wants their mission to end this way,  &#8220;a lorry ran over my phone&#8221; somehow sounds much better.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/unadventure.wordpress.com/49/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/unadventure.wordpress.com/49/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/unadventure.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/unadventure.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/unadventure.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/unadventure.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/unadventure.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/unadventure.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/unadventure.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/unadventure.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/unadventure.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/unadventure.wordpress.com/49/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unadventure.wordpress.com&blog=1302864&post=49&subd=unadventure&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://unadventure.wordpress.com/2008/05/28/bricked-lol/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Gazpacho a lo guiri</title>
		<link>http://unadventure.wordpress.com/2008/05/19/gazpacho-a-lo-guiri/</link>
		<comments>http://unadventure.wordpress.com/2008/05/19/gazpacho-a-lo-guiri/#comments</comments>
		<pubDate>Sun, 18 May 2008 23:25:27 +0000</pubDate>
		<dc:creator>balrog</dc:creator>
		
		<category><![CDATA[Horrible hack]]></category>

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

		<guid isPermaLink="false">http://unadventure.wordpress.com/?p=48</guid>
		<description><![CDATA[Background: I try lots of new things when I make my food and while most of my experiments fail miserably, there are cases that come out well enough that I even repeat them, so I thought I can share (open-source) one of these results, and this is an attempt.  But, open-sourcing food, strangely, isn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Background</strong>: I try lots of new things when I make my food and while most of my experiments fail miserably, there are cases that come out well enough that I even repeat them, so I thought I can share (open-source) one of these results, and this is an attempt.  But, open-sourcing food, strangely, isn&#8217;t so easy because the &#8220;code-base&#8221; is very ugly - everything is an undocumented hack (or &#8220;spaghetti code&#8221;), and needs to be documented.  My optimisation flags are always set for minimising the number of dishes to wash and ingredients cost.</p>
<p><strong><a title="WP definition" href="http://en.wikipedia.org/wiki/Gazpacho" target="_self">Gazpacho</a></strong>: gazpacho is a Spanish dish (or drink) originating from Andalusia.  It&#8217;s made of mainly vegetables, is almost liquid, is consumed cold and doesn&#8217;t involve cooking.  It&#8217;s eaten in the summer only, especially on hot days.  (At higher latitudes than Spain, I found the added practical argument is that vegetables are about 3 times cheaper in the summer).</p>
<p>There are a zillion types of gazpacho and some Spanish are very religious about preparing it, especially those who make cookbooks.  Every region has its own type, but there&#8217;s also the generic type that you can buy in supermarkets or in McDonald&#8217;s.</p>
<p>Now, I&#8217;m not Spanish and I allow myself to break some of the rules.  If you&#8217;re Spanish, stop reading here because you&#8217;ll find that I&#8217;m committing various terrible crimes against the mediterranean cuisine.</p>
<p><strong>The recipe</strong>: today I completed a quest for all the ingredients and made a gazpacho again and it turned out eatable again, so it must not be extremely difficult, here&#8217;s the list.</p>
<ul>
<li>0.5 to 1kg of tomatoes (canned tomatoes will also do, even a box of juice - here&#8217;s where I commit the first crime).</li>
<li>2 red peppers/paprikas, optionally add one green.</li>
<li>2 or so slices of bread.</li>
<li>one half bulb of garlic (maybe less).</li>
<li>a medium-size onion.</li>
<li>a cucumber.</li>
<li>1tbs or so of salt, some pepper (or none).</li>
<li>half a glass of oil (here&#8217;s my second crime: use any oil - it really really doesn&#8217;t matter that much.  It appears that if you&#8217;re Spanish a single drop of oil that is not the absolute highest quality immediately spoils your dinner.  You will never ever see or hear the word oil (<em>aceite</em>) go alone when you&#8217;re in Spain - it is in 100% cases accompanied by the words <em>virgen</em> and <em>extra</em>, as in <em>aceite de oliva virgen extra</em> - it might equally well just be a single word in the vocabulary because it always appears together, I don&#8217;t think anyone is even able to pronounce <em>aceite</em> alone).</li>
<li>4tbs or so of vinagre and half glass of water.</li>
</ul>
<p>Place the bread in a plate with water and let it dissolve a bit.  Cut all the vegetables into pieces of sizes that will make your electric blender happy.  The peppers and tomatoes are fine as they are (another crime!) - in a real gazpacho recipe they tell you to peel them and remove the seeds, but the seeds are the best part, they&#8217;ll get blended anyway and they&#8217;ll just make the texture nicer, and peeling is just too much work.  Blend the bread, vegetables, and water until liquid.  Then throw in the oil, vinagre and salt and mix again until the oil can&#8217;t be seen.</p>
<p>The colour is between orange and pink and is most influenced by the red peppers.  The taste is most affected by the salt and vinagre and you need to adjust their amounts but it will probably be a lot of vinagre and a lot of salt.  Too much onion or garlic makes the gazpacho spicy but at some point the smell is too strong.</p>
<p>When it&#8217;s done, just store in a fridge and serve cold optionally with pieces of toasted bread.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/unadventure.wordpress.com/48/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/unadventure.wordpress.com/48/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/unadventure.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/unadventure.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/unadventure.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/unadventure.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/unadventure.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/unadventure.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/unadventure.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/unadventure.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/unadventure.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/unadventure.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unadventure.wordpress.com&blog=1302864&post=48&subd=unadventure&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://unadventure.wordpress.com/2008/05/19/gazpacho-a-lo-guiri/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Unscientific GPS note</title>
		<link>http://unadventure.wordpress.com/2008/04/28/unscientific-gps-note/</link>
		<comments>http://unadventure.wordpress.com/2008/04/28/unscientific-gps-note/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 02:32:03 +0000</pubDate>
		<dc:creator>balrog</dc:creator>
		
		<category><![CDATA[OpenMoko]]></category>

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

		<guid isPermaLink="false">http://unadventure.wordpress.com/?p=44</guid>
		<description><![CDATA[Last week I charged the different batteries and took a GTA01 Neo, a GTA02 Neo and a Nokia N810 with me to enable their GPSes on my way home from school. Then I saved the traces they logged and loaded into JOSM to have a look (GTA01, GTA02, N810 - gpx files converted using gpsbabel [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Last week I charged the different batteries and took a GTA01 Neo, a GTA02 Neo and a Nokia N810 with me to enable their GPSes on my way home from school. Then I saved the traces they logged and loaded into JOSM to have a look (<a href="http://folks.o-hand.com/andrew/geo/trace-test-gta01.gpx">GTA01</a>, <a href="http://folks.o-hand.com/andrew/geo/trace-test-gta02.gpx">GTA02</a>, <a href="http://folks.o-hand.com/andrew/geo/trace-test-n810.gpx">N810</a> - gpx files converted using gpsbabel from nmea)</p>
<p><a href="http://unadventure.files.wordpress.com/2008/04/josm.png"><img class="alignnone size-full wp-image-46" style="vertical-align:middle;" src="http://unadventure.files.wordpress.com/2008/04/josm.png?w=400&h=387" alt="" width="400" height="387" /></a></p>
<p>The devices made respectively 11.28km, 12.12km and 11.07km routes (sitting in the same bag the whole time).</p>
<p>All in all I like the GTA01 accuracy the most although all three sometimes have horrible errors. They all three have accuracy about near the bottom line of usability for OSM mapping for a city, so if you get a GPS with that in mind, it may be slightly disappointing. All three are quite good at keeping the fix while indoor but everytime there&#8217;s not enough real input available they will invent their own rather than admit (if you had physics experiments at high-school and had to prove theories that way, you know how this works), resulting in run-offs to alternative realities - especially the N810 likes to make virtual trips. They all three apparently do advanced extrapolation and most of the time get things right, but the GTA01 GPS (the hammerhead) very notably assumes in all the calculations that the vehicle in which you move has a certain inertia and treats tight turns as errors. I&#8217;m on a bike most of the time and can turn very quickly and it feels as if the firmware was made for a car (SpeedEvil thinks rather a supertanker).</p>
<p>It&#8217;s suprising how well they all three can determine the direction in which they&#8217;re pointing even when not moving (the GTAs more so). The firmwares seem to rely on that more than on the actual position data sometimes. This results in a funny effect that the errors they make are very consistent even if very big - once the GPS thinks it&#8217;s on the other side of a river from you (or worse in the middle), it will stay there as long as you keep going along the river.</p>
<p>I&#8217;m curious to see what improvement the galileo system brings over GPS.</p>
<p><strong>UPDATE</strong>: I was curious about the precision with which the altitude is reported, which can&#8217;t be seen in JOSM.  First I found that the $GPGGA sentences on my GTA01 have always 000.0 in the <em>elevation</em> field, but the field before it (normally containing HDOP) has a value that kind of makes sense as an altitude, so I swapped the two fields (HDOP value should be &lt; 20.0 I believe?).  Then I loaded the data into <em>gnuplot</em> to generate this chart:</p>
<p><a href="http://unadventure.files.wordpress.com/2008/04/trace-test.png"><img class="alignnone size-full wp-image-47" style="vertical-align:middle;" src="http://unadventure.files.wordpress.com/2008/04/trace-test.png?w=450&h=337" alt="" width="450" height="337" /></a></p>
<p>The horizontal axis has longitude and vertical the elevation in metres above mean sea level.  Err, sure?  I might have screwed something up but I checked everything twice.  Except the GTA01 which might be a different value completely - but the <em>is</em> some correlation.  I&#8217;m not sure which one to trust now.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/unadventure.wordpress.com/44/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/unadventure.wordpress.com/44/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/unadventure.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/unadventure.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/unadventure.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/unadventure.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/unadventure.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/unadventure.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/unadventure.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/unadventure.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/unadventure.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/unadventure.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unadventure.wordpress.com&blog=1302864&post=44&subd=unadventure&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://unadventure.wordpress.com/2008/04/28/unscientific-gps-note/feed/</wfw:commentRss>
	
		<media:content url="http://unadventure.files.wordpress.com/2008/04/josm.png" medium="image" />

		<media:content url="http://unadventure.files.wordpress.com/2008/04/trace-test.png" medium="image" />
	</item>
		<item>
		<title>Panoramic photos revisited</title>
		<link>http://unadventure.wordpress.com/2008/04/21/panoramic-photos-revisited/</link>
		<comments>http://unadventure.wordpress.com/2008/04/21/panoramic-photos-revisited/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 03:46:58 +0000</pubDate>
		<dc:creator>balrog</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://unadventure.wordpress.com/?p=42</guid>
		<description><![CDATA[Every some time there&#8217;s a place that would look great on a panoramic picture but I only have a plain touristic camera with me and decide to take a series of photos in all directions from one point with a plan to later glue them together to get something real. Then I forget it completely [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Every some time there&#8217;s a place that would look great on a panoramic picture but I only have a plain touristic camera with me and decide to take a series of photos in all directions from one point with a plan to later glue them together to get something real. Then I forget it completely or sometimes I load Gimp and glue the pictures together. This can take an hour or two and gets boring, but the result is often ok (<a href="http://www.digart.pl/zoom/14667/plaza_espa%C3aa.html">digital</a> <a href="http://www.digart.pl/zoom/12921/studio.html">example</a>, analog camera <a href="http://www.digart.pl/zoom/27276/Machupicchu.html">example</a>). This time I decided to try to get my PC to do the gluing for me and use one of the tools that appeared in gentoo&#8217;s portage tree. This didn&#8217;t go faster than I would have done it manually (perhaps five x longer) but knowing about all the quirks, it may actually go faster next time, and the result is comparable with manual stitching. So let me just write down the things I wish I had known when I started. The package that is now in most distro&#8217;s repositories and that I used, is <a href="http://panotools.sourceforge.net/">libpano12</a> and various tools associated with it.</p>
<p>First part is selecting the individual pictures and telling the computer how they are oriented in relation to each other so it knows how to glue them. <a href="http://hugin.sf.net">Hugin</a> (a GUI frontend for libpano) lets you select the shots and input the data necessary for libpano to make sense of the individual pictures, which is a list of common points on the overlapping parts of the photos. This part quite intuitive. Remember to build the latest hugin and latest wxGTK or hugin will segfault. <strong>Before</strong> loading pictures into hugin rotate them in Gimp to be at least more or less straight (if they aren&#8217;t). Have 2GB of free disc space. Choose one of the rectangular projection types because the fancy ones are not supported by the other tools we&#8217;ll need to use. The picking of common points can be done automatically by <a href="http://user.cs.tu-berlin.de/~nowozin/autopano-sift/">autopano-sift</a> but this has mono and other heavy packages as dependencies so I avoided it. When you&#8217;re done placing the points and playing with all the other parameters in hugin, hugin will want to generate a script for the stitching program that will do the heavy work. Hugin knows about two such programs: PTstitcher (part of panotools) which sucks because it&#8217;s closed-source and only works on one arch. The second one is nona which sucks because it doesn&#8217;t support most of the format, projections, blending, auto adjusting. So we will choose &#8220;multiple TIFF&#8221; as the output format, set all the other parameters, save the project, tell hugin to generate the script to a text file and quit hugin. Now we have one other program to do the stitching: PTmender, an opensource replacement for PTstitcher, also part of panotools - this one supports the formats we want and some automatic colour balance / exposure correction but if you choose any of the plain bitmap output formats, it won&#8217;t blend them nicely together because it&#8217;s not supported yet. If you in turn want a format with the individual pieces on separate layers (XCF not supported yet, so PSD) to do the merging in Gimp, PTmender will segfault in some doubly-linked-list code. So we choose the &#8220;multiple TIFF&#8221; output format and get TIFFs that are ready to merge except they don&#8217;t have any transparency mask set. We could now use Gimp&#8217;s &#8220;alpha to selection&#8221; and &#8220;feather selection&#8221;, but there&#8217;s a program, <a href="http://enblend.sourceforge.net/">enblend</a>, that will do just this merging, and does it really well (using multi-resolution splines). It only operates on TIFFs, and seems to get all the parameters right if you don&#8217;t give any.</p>
<p>You may need to repeat some part of the process if you see something really bad in the enblend output, and if not then you just need to load it in Gimp and rotate / crop / scale the picture. To load TIFFs in Gimp you may need to rebuild with USE=&#8221;tiff&#8221; if you&#8217;re on Gentoo.</p>
<p><a href="http://folks.o-hand.com/andrew/fuencarral.jpeg"><img class="alignnone size-full wp-image-43" src="http://unadventure.files.wordpress.com/2008/04/fuencarralm.jpeg" alt="" /></a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/unadventure.wordpress.com/42/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/unadventure.wordpress.com/42/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/unadventure.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/unadventure.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/unadventure.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/unadventure.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/unadventure.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/unadventure.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/unadventure.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/unadventure.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/unadventure.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/unadventure.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unadventure.wordpress.com&blog=1302864&post=42&subd=unadventure&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://unadventure.wordpress.com/2008/04/21/panoramic-photos-revisited/feed/</wfw:commentRss>
	
		<media:content url="http://unadventure.files.wordpress.com/2008/04/fuencarralm.jpeg" medium="image" />
	</item>
		<item>
		<title>Trip</title>
		<link>http://unadventure.wordpress.com/2008/04/21/trip/</link>
		<comments>http://unadventure.wordpress.com/2008/04/21/trip/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 02:06:23 +0000</pubDate>
		<dc:creator>balrog</dc:creator>
		
		<category><![CDATA[Life]]></category>

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

		<guid isPermaLink="false">http://unadventure.wordpress.com/?p=36</guid>
		<description><![CDATA[So I went to Brazil last month but had no time to put any pictures online, now I uploaded them here. Also uploaded some pictures from a trip to Spain that was just before that.
 Brazil cities reminded me a lot of Peru, which was the only place I had seen in America (this comparison [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So I went to Brazil last month but had no time to put any pictures online, now I uploaded them <a title="Brazil pictures" href="http://picasaweb.google.com/balrogg/Brazil2008">here</a>. Also uploaded <a title="Pics from Spain" href="http://picasaweb.google.com/balrogg/MalagaSpain2008">some pictures</a> from a trip to Spain that was just before that.</p>
<p style="text-align:left;"><img class="alignright size-full wp-image-40" src="http://unadventure.files.wordpress.com/2008/04/dsc_0164.jpeg?w=350&h=380" alt="" width="350" height="380" /> Brazil cities reminded me a lot of Peru, which was the only place I had seen in America (this comparison must seem awfully ignorant to anyone who lives in some place between Brazil and Peru). We spent one week in Ceará region seeking out best places for paragliding. One of the spots was the launch pad near Nossa Senhora Imaculada <a href="http://www.santuariorainhadosertao.com/">sanctuary</a> near Quixada where &#8220;Sol&#8221; group (Brazil) took off last year and set the current world record in straight distance paraglider flight landing over 460km away. (Obviously this was a different season and incomparable weather conditions.)  I made an attempt to adapt my Neo1973 Linux phone to dub as a variometer using the altitude data from built-in GPS.  Impressively the measures are somewhere on the edge of being accurate enough for that purpose, but time resolution is way too low (normal variometers use air pressure changes rather than GPS).  The speaker is loud enough to emit the familiar beeping of a variometer (so good enough for showing off even if inaccurate).  The GTA02 should be much better with its 3D accelerometers, but I didn&#8217;t have time to play with it yet.</p>
<p style="text-align:center;"><img class="alignnone size-full wp-image-41" src="http://unadventure.files.wordpress.com/2008/04/dsc_0165.jpeg" alt="" /></p>
<p>The second week the group split and I went <a href="http://www.bossaconference.indt.org/">Bossa &#8216;08 conference</a> that was in a fantastic setting and from where I brought home a collection of five geeky t-shirts.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/unadventure.wordpress.com/36/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/unadventure.wordpress.com/36/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/unadventure.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/unadventure.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/unadventure.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/unadventure.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/unadventure.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/unadventure.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/unadventure.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/unadventure.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/unadventure.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/unadventure.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unadventure.wordpress.com&blog=1302864&post=36&subd=unadventure&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://unadventure.wordpress.com/2008/04/21/trip/feed/</wfw:commentRss>
	
		<media:content url="http://unadventure.files.wordpress.com/2008/04/dsc_0164.jpeg" medium="image" />

		<media:content url="http://unadventure.files.wordpress.com/2008/04/dsc_0165.jpeg" medium="image" />
	</item>
		<item>
		<title>I could&#8217;ve written a novel with all the keystrokes</title>
		<link>http://unadventure.wordpress.com/2008/04/18/i-couldve-written-a-novel-with-all-the-keystrokes/</link>
		<comments>http://unadventure.wordpress.com/2008/04/18/i-couldve-written-a-novel-with-all-the-keystrokes/#comments</comments>
		<pubDate>Fri, 18 Apr 2008 14:06:53 +0000</pubDate>
		<dc:creator>balrog</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://unadventure.wordpress.com/?p=35</guid>
		<description><![CDATA[In other words if you printed all the vim commands I typed, on Earth&#8217;s equator in 15pt font, you would get a very repetitive string printed on Earth&#8217;s equator line (which could no way be seen from outer space).
$ history &#124; awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}' &#124; sort -rn &#124; [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In other words if you printed all the vim commands I typed, on Earth&#8217;s equator in 15pt font, you would get a very repetitive string printed on Earth&#8217;s equator line (which could no way be seen from outer space).</p>
<pre>$ history | awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}' | sort -rn | head
2673 vim
1475 cd
694 screen
632 make
475 man
329 ls
261 grep
231 cg-diff
161 aoss
149 cg-patch</pre>
<p>The numbers sum to &gt; 1000 because I use HISTSIZE=&#8221;10000&#8243; and HISTCONTROL=&#8221;ignoredups&#8221; in my <em>bashrc</em>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/unadventure.wordpress.com/35/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/unadventure.wordpress.com/35/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/unadventure.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/unadventure.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/unadventure.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/unadventure.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/unadventure.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/unadventure.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/unadventure.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/unadventure.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/unadventure.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/unadventure.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unadventure.wordpress.com&blog=1302864&post=35&subd=unadventure&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://unadventure.wordpress.com/2008/04/18/i-couldve-written-a-novel-with-all-the-keystrokes/feed/</wfw:commentRss>
		</item>
		<item>
		<title>OMAP3 resources opened</title>
		<link>http://unadventure.wordpress.com/2008/04/09/omap-docs-opened/</link>
		<comments>http://unadventure.wordpress.com/2008/04/09/omap-docs-opened/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 22:51:16 +0000</pubDate>
		<dc:creator>balrog</dc:creator>
		
		<category><![CDATA[Code]]></category>

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

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

		<guid isPermaLink="false">http://unadventure.wordpress.com/?p=34</guid>
		<description><![CDATA[Texas Instruments OMAP series of mobile CPUs have for some time had okay Linux support with parts of the code coming from community, parts from TI and parts from Nokia, one of the vendors.  This month we start seeing results of TI&#8217;s recent efforts on making this support better by opening various technical resources [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Texas Instruments OMAP series of mobile CPUs have for some time had okay Linux support with parts of the code coming from community, parts from TI and parts from Nokia, one of the vendors.  This month we start seeing results of TI&#8217;s recent efforts on making this support better by opening various technical resources that were available only to the vendors earlier.  Yesterday the <a title="The post in MARC archives" href="http://marc.info/?l=linux-omap&amp;m=120761100810527&amp;w=2" target="_self">announcement</a> of their DSP-bridge framework release under GPL was posted to the linux-omap list, and as of this week you can download the entire TRMs (35MB PDF each) for various OMAP3 CPUs from <a title="Texas Instruments" href="http://ti.com/">ti.com</a>. Added to this are various types of manuals, example code and that covers also the recently announced 35xx models.</p>
<p>I had an occasion to be at TI&#8217;s Rishi Bhattacharya&#8217;s talk at <a title="Bossa Mobile Linux conference" href="http://www.bossaconference.indt.org/">BossaConference</a> last month with a sneak peek on the process of opening OMAP3 related resources that had been ongoing internally for some time.  Apparently more releases are planned including among other things some GPLed sources (and some freeware binaries) of DSP codecs for use on OMAP.  This also should make life a fair bit easier.  One of the interesting points was also the evaluation board for the new processors which looks a bit more like a final product than previously made evaluation boards.  It&#8217;s called <a title="Omap Zoom" href="http://www.omapzoom.org/wiki/tiki-index.php">Zoom MDK</a> and it&#8217;s sold by a <a title="Logic Product Development" href="http://www.logicpd.com/">third party</a>. It includes a modem, optional battery and a neat case so it can potentially be used as a (only slightly oversize for today&#8217;s standards) phone, and comes equipped with a full Linux SDK.  One of the points is also to make it more affordable so that individual developers are not excluded (currently only available through a beta programme but the final price was said to be aiming at below $900). There&#8217;s an effort to have <a title="Open Mobile Communications" href="http://www.openmoko.org/">Openmoko</a> running on the thing.  Looking forward to that and to the rest of the releases from TI.</p>
<p><img class="alignnone" src="http://www.omapzoom.org/wiki/img/wiki_up/ExternalView.jpg" alt="ZoomMDK external view" /></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/unadventure.wordpress.com/34/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/unadventure.wordpress.com/34/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/unadventure.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/unadventure.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/unadventure.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/unadventure.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/unadventure.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/unadventure.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/unadventure.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/unadventure.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/unadventure.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/unadventure.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unadventure.wordpress.com&blog=1302864&post=34&subd=unadventure&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://unadventure.wordpress.com/2008/04/09/omap-docs-opened/feed/</wfw:commentRss>
	
		<media:content url="http://www.omapzoom.org/wiki/img/wiki_up/ExternalView.jpg" medium="image">
			<media:title type="html">ZoomMDK external view</media:title>
		</media:content>
	</item>
		<item>
		<title>Need more freedom, more freedom!</title>
		<link>http://unadventure.wordpress.com/2008/03/25/need-more-freedom-more-freedom/</link>
		<comments>http://unadventure.wordpress.com/2008/03/25/need-more-freedom-more-freedom/#comments</comments>
		<pubDate>Tue, 25 Mar 2008 01:43:27 +0000</pubDate>
		<dc:creator>balrog</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://unadventure.wordpress.com/?p=33</guid>
		<description><![CDATA[After some discussion it was agreed that the freedoms guaranteed by free / open-source software were no freedom at all and that we need to add more freedoms.  The proposed fifth freedom is the freedom of choosing the implementation you want to use.  To spread the idea the Multi-source Software Foundation is hereby established, MSS [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>After some discussion it was agreed that the freedoms guaranteed by free / open-source software were no freedom at all and that we need to add more freedoms.  The proposed fifth freedom is the freedom of choosing the implementation you want to use.  To spread the idea the Multi-source Software Foundation is hereby established, <a href="http://en.wikipedia.org/wiki/Marymount_Secondary_School" title="MSS at WP">MSS</a> being the proposed short-hand for the body of software that comes with more than one source representations of the program, letting you choose the source you wanna compile.  Among our flagship projects are such fundamental programs as <a href="http://en.wikipedia.org/wiki/Hello_world" title="Hello, World! at WP">hello world</a>, <a href="http://en.wikipedia.org/wiki/Pacman" title="Pacman at WP">pacman</a>, <a href="http://en.wikipedia.org/wiki/Tetris" title="Tetris at WP">tetris</a>, <a href="http://en.wikipedia.org/wiki/Netcat" title="Netcat at WP">netcat</a>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/unadventure.wordpress.com/33/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/unadventure.wordpress.com/33/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/unadventure.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/unadventure.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/unadventure.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/unadventure.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/unadventure.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/unadventure.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/unadventure.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/unadventure.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/unadventure.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/unadventure.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unadventure.wordpress.com&blog=1302864&post=33&subd=unadventure&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://unadventure.wordpress.com/2008/03/25/need-more-freedom-more-freedom/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Nomadic C162</title>
		<link>http://unadventure.wordpress.com/2008/02/11/nomadic-c162/</link>
		<comments>http://unadventure.wordpress.com/2008/02/11/nomadic-c162/#comments</comments>
		<pubDate>Sun, 10 Feb 2008 23:01:46 +0000</pubDate>
		<dc:creator>balrog</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://unadventure.wordpress.com/?p=32</guid>
		<description><![CDATA[&#8230;is a regular smartphone (don&#8217;t confuse with Nomadik). I&#8217;m only posting about it because I found completely no information about it on the intarwebs when trying to answer the simple question of whether Linux could be ported to it, so that if anybody else wants its specs they don&#8217;t have to take the device apart [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>&#8230;is a regular smartphone (don&#8217;t confuse with <a href="http://en.wikipedia.org/wiki/Nomadik">Nomadik</a>). I&#8217;m only posting about it because I found completely no information about it on the intarwebs when trying to answer the simple question of whether Linux could be ported to it, so that if anybody else wants its specs they don&#8217;t have to take the device apart anymore.  I got one such phone this week and today disassembled it and collected the list of chips it features, complete with pictures.  All chips on the PCB have metal covers on them, some of the covers have to be ripped out by force.  There&#8217;s nothing special about the phone except that it&#8217;s a CDMA phone (uses the CDMA2000 standard in the 850MHz range) and that local calls are free, but the network only exists in Warsaw, outside this area it becomes an mp3 player/camera with four hours running time (in constant use, so not terribly bad).  The manufacturer of the C162 is a Chinese company called <a href="http://www.techfaithwireless.com/">TechFaith</a>. They have several similar models on their website but no mention of C162 or C161c in particular.  The Polish operator Sferia seems to be the only operator using these models.  <a href="http://www.techfaithwireless.com/english/products/products_ApplicationSoftware.htm">Here&#8217;s</a> the obligatory generic diagram of the OS structure of TechFaith devices.</p>
<p>The specs I collected are in <a href="http://folks.o-hand.com/andrew/nomadic/chips">this text file</a>. I uploaded some pictures of the C162 intestines <a href="http://picasaweb.google.com/balrogg/RandomGeekery">here</a>, together with some pics of my new GTA02.</p>
<p><img src="http://lh4.google.com/balrogg/R69ikCqshtI/AAAAAAAAHYE/lWxe17fz2dk/sany4615.jpg?imgmax=800" alt="GTA02 WLAN card from Atheros" align="middle" border="0" width="800" />The answer to my original question seems to be that the C162 can&#8217;t run Linux because the CPU is from the MSM6k series by Qualcomm which features ARM7TDMI cores (i.e. no mmu), so the best you can get is uClinux, but then it seems Qualcomm doesn&#8217;t make the documentation accessible. There exists a working kernel tree for the MSM7k series maintained by the Google Android project, probably some drivers would be reusable.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/unadventure.wordpress.com/32/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/unadventure.wordpress.com/32/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/unadventure.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/unadventure.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/unadventure.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/unadventure.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/unadventure.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/unadventure.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/unadventure.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/unadventure.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/unadventure.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/unadventure.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unadventure.wordpress.com&blog=1302864&post=32&subd=unadventure&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://unadventure.wordpress.com/2008/02/11/nomadic-c162/feed/</wfw:commentRss>
	
		<media:content url="http://lh4.google.com/balrogg/R69ikCqshtI/AAAAAAAAHYE/lWxe17fz2dk/sany4615.jpg?imgmax=800" medium="image">
			<media:title type="html">GTA02 WLAN card from Atheros</media:title>
		</media:content>
	</item>
	</channel>
</rss>