<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>mattfarmer [dot] net &#187; OLPC</title>
	<atom:link href="http://mattfarmer.net/category/tech/linux/olpc/feed/" rel="self" type="application/rss+xml" />
	<link>http://mattfarmer.net</link>
	<description>impossible nothing</description>
	<lastBuildDate>Tue, 06 Sep 2011 18:04:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>First Post</title>
		<link>http://mattfarmer.net/2008/03/22/first-post-2/</link>
		<comments>http://mattfarmer.net/2008/03/22/first-post-2/#comments</comments>
		<pubDate>Sat, 22 Mar 2008 05:19:42 +0000</pubDate>
		<dc:creator>POS</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OLPC]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://mattfarmer.net/2008/03/22/first-post-2/</guid>
		<description><![CDATA[This is my first post from my OLPC. Kind of. I actually wrote up an article earlier in a little bit of haste and was overly critical of a lot of things and so this post is half edit / half addition to that. Saturday morning, when I finally woke up, I was siked to [...]]]></description>
			<content:encoded><![CDATA[<p>This is my first post from my OLPC.  Kind of.  I actually wrote up an article earlier in a little bit of haste and was overly critical of a lot of things and so this post is half edit / half addition to that.</p>
<p>Saturday morning, when I finally woke up, I was siked to see hear that I had a package downstairs for me.  All the emails that I had received about the OLPC said that I would I would get an email with the tracking number of my package when it shipped and so I was quite disappointed when it was a few days before my trip, and I still hadn&#8217;t heard anything.</p>
<p>But there it was, in was!  Just in time!</p>
<p>I was convinced that the smaller keyboard wouldn&#8217;t bother me, since I was so used to pecking away on my Treo, so I was pretty surprised when I first tried to use it and had to resort 1/2 the time to the &#8216;hunt and peck&#8217; method.  After hacking around on it for a little bit here and there this weekend though, its not so bad.  Sometimes it is difficult to hit all the keys on the membrain keyboard, often requiring you to press the key several times before the stroke takes (especially on the larger keys like the spacebar and back-space key), but we&#8217;ll see if that passes with time as well.  And while we&#8217;re on the note of bashing the keyboard.  It is most definitely cramped, some keys are missing (caplocks), and a few keys are in different places (I keep hitting the up arrow when I reach for the right shift key), but all and all, its pretty usable.</p>
<p>I had also read somewhere that the OLPC also didn&#8217;t come with support for WPA wireless signals which I was frustrated by, but I seemed to be able to join my wireless router with no troubles at all from the network screen.</p>
<p>So at first glace, I was unimpressed to say the least, but after using it for a short while, it definitely seems like it will be worth the money spent.  I&#8217;d also say that I am most definitely not using this laptop for what it was designed for, and I really don&#8217;t see either of these issues being a problem for the intended audiance , and so I&#8217;d say the developers of the OLPC should feel as though they did a good job!</p>
]]></content:encoded>
			<wfw:commentRss>http://mattfarmer.net/2008/03/22/first-post-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to make an OLPC Application</title>
		<link>http://mattfarmer.net/2008/01/06/how-to-make-an-olpc-application/</link>
		<comments>http://mattfarmer.net/2008/01/06/how-to-make-an-olpc-application/#comments</comments>
		<pubDate>Sun, 06 Jan 2008 22:53:29 +0000</pubDate>
		<dc:creator>POS</dc:creator>
				<category><![CDATA[OLPC]]></category>

		<guid isPermaLink="false">http://mattfarmer.net/2008/01/06/how-to-make-an-olpc-application/</guid>
		<description><![CDATA[Someone forwarded me a slashdot article with a link to an IBM article on how to design an application for the OLPC. I haven&#8217;t gone to far into it, but it has goes into how to set up QEMU (at least in the simple case), why python was a good language for OLPC to have [...]]]></description>
			<content:encoded><![CDATA[<p>Someone forwarded me a slashdot article with a link to an IBM article on how to design an application for the OLPC.  I haven&#8217;t gone to far into it, but it has goes into how to set up QEMU (at least in the simple case), why python was a good language for OLPC to have chosen and then what you need to do.  I figured if I didn&#8217;t post it here, I&#8217;ll be looking for it later, and it might help someone else out so here it is:  <a href="https://www6.software.ibm.com/developerworks/education/l-sugarpy/index.html">IBM:  Application development for the OLPC laptop</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://mattfarmer.net/2008/01/06/how-to-make-an-olpc-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making a bigger Harddrive</title>
		<link>http://mattfarmer.net/2008/01/06/making-a-bigger-harddrive/</link>
		<comments>http://mattfarmer.net/2008/01/06/making-a-bigger-harddrive/#comments</comments>
		<pubDate>Sun, 06 Jan 2008 19:41:59 +0000</pubDate>
		<dc:creator>POS</dc:creator>
				<category><![CDATA[OLPC]]></category>

		<guid isPermaLink="false">http://mattfarmer.net/2008/01/06/making-a-bigger-harddrive/</guid>
		<description><![CDATA[While using the OLPC under QEMU, I immediately started installing a bunch of development tools into the image. This quickly filled up the 1GB image, and so I wanted increase the size of it. Originally I tried to dd some space onto the end of it and use parted to expand the image but it [...]]]></description>
			<content:encoded><![CDATA[<p>While using the OLPC under QEMU, I immediately started installing a bunch of development tools into the image.  This quickly filled up the 1GB image, and so I wanted increase the size of it.  </p>
<p>Originally I tried to dd some space onto the end of it and use parted to expand the image but it gave me an error saying:  &#8220;Error: File system has an incompatible feature enabled.&#8221;   And so this is how I got it to work:</p>
<ol>
<li>Make the newimage:<br />
<blockquote class="code">dd if=/dev/zero of=newimage bs=1GB count=5</p></blockquote>
</li>
<li>Start up QEMU with your OLPC image with this newimage as a 2nd drive:<br />
<blockquote class="code">qemu -m 256 -soundhw es1370 -serial /dev/pts/1 -net user -net nic,model=rtl8139 -hda laptop-orig.img -hdb newimg</p></blockquote>
</li>
<li>From inside the image I then tried to dd /dev/hda to /dev/hdb, but that didn&#8217;t work exactly, though I forget now exactly why.  It could have been that I needed to re-read the partition table on disk B, but I&#8217;m not sure.  We still need to do this however for at least the first part of the disk so we get the MBR. (Note: I&#8217;m fudging this step to be what I think it should have been, if it doesn&#8217;t work, try copying the whole disk)<br />
<blockquote class="code">dd if=/dev/hda of=/dev/hdb bs=4k count=1</p></blockquote>
</li>
<li>Still within the image we want to fdisk the new disk, delete the partition that&#8217;s there and make it larger.  Technically speaking, if we do this and the partition has the same starting block, I thought that I would be able to still use it (since I had copied the whole disk), but that didn&#8217;t seem to be the case.<br />
<blockquote class="code"><p>-bash-3.2# fdisk /dev/hdb</p>
<p>The number of cylinders for this disk is set to 9844.<br />
There is nothing wrong with that, but this is larger than 1024,<br />
and could in certain setups cause problems with:<br />
1) software that runs at boot time (e.g., old versions of LILO)<br />
2) booting and partitioning software from other OSs<br />
   (e.g., DOS FDISK, OS/2 FDISK)</p>
<p>Command (m for help): p</p>
<p>Disk /dev/hdb: 5000 MB, 5000000000 bytes<br />
16 heads, 62 sectors/track, 9844 cylinders<br />
Units = cylinders of 992 * 512 = 507904 bytes</p>
<p>   Device Boot      Start         End      Blocks   Id  System<br />
/dev/hdb1               1        9844     4882623+  83  Linux</p>
<p>Command (m for help): d<br />
Selected partition 1</p>
<p>Command (m for help): n<br />
Command action<br />
   e   extended<br />
   p   primary partition (1-4)<br />
p<br />
Partition number (1-4): 1<br />
First cylinder (1-9844, default 1):<br />
Using default value 1<br />
Last cylinder or +size or +sizeM or +sizeK (1-9844, default 9844):<br />
Using default value 9844</p>
<p>Command (m for help): w<br />
The partition table has been altered!</p>
<p>Calling ioctl() to re-read partition table.<br />
Syncing disks.
</p></blockquote>
</li>
<li>So now we have our new disk with the MBR and a good partition table.  Now its time to copy over our original image:<br />
<blockquote class="code">-bash-3.2# dd if=/dev/hda1 of=/dev/hdb1 bs=4k<br />
237452+1 records in<br />
237452+1 records out<br />
972604416 bytes (973 MB) copied, 114.234 s, 8.5 MB/s</p></blockquote>
</li>
<li>Now lets make sure that it works:<br />
<blockquote class="code">-bash-3.2# mkdir t<br />
-bash-3.2# mount /dev/hdb1 t -t ext3<br />
-bash-3.2# ls t<br />
activities  dev   lib         mnt  proc  security  sys  var<br />
bin         etc   lost+found  ofw  root  selinux   tmp<br />
boot        home  media       opt  sbin  srv       usr<br />
-bash-3.2# df -h<br />
Filesystem            Size  Used Avail Use% Mounted on<br />
/dev/hda1             913M  716M  189M  80% /<br />
tmpfs                  38M     0   38M   0% /dev/shm<br />
/dev/hdb1             913M  716M  189M  80% /root/t<br />
-bash-3.2# umount t
</p></blockquote>
<p>  Notice its mounted, and has the same stats as our real system.</li>
<li>Now expand the filesystem to the length of the partition.  resize2fs requires that we do an fsck first, so lets do that too:<br />
<blockquote class="code">
-bash-3.2# e2fsck -f /dev/hdb1 &#038;&#038; !!<br />
e2fsck -f /dev/hdb1 &#038;&#038; resize2fs -p /dev/hdb1<br />
e2fsck 1.40.2 (12-Jul-2007)<br />
Pass 1: Checking inodes, blocks, and sizes<br />
Pass 2: Checking directory structure<br />
Pass 3: Checking directory connectivity<br />
Pass 4: Checking reference counts<br />
Pass 5: Checking group summary information<br />
OLPCRoot: 22509/118784 files (0.9% non-contiguous), 186946/237452 blocks<br />
resize2fs 1.40.2 (12-Jul-2007)<br />
Resizing the filesystem on /dev/hdb1 to 1220648 (4k) blocks.<br />
Begin pass 1 (max = 30)<br />
Extending the inode table     XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br />
The filesystem on /dev/hdb1 is now 1220648 blocks long.
</p></blockquote>
</li>
<li>That should be it.  Let&#8217;s mount it and see what it thinks!<br />
<blockquote class="code">
-bash-3.2# mount /dev/hdb1 t -t ext3<br />
-bash-3.2# df -h<br />
Filesystem            Size  Used Avail Use% Mounted on<br />
/dev/hda1             913M  716M  189M  80% /<br />
tmpfs                  38M     0   38M   0% /dev/shm<br />
/dev/hdb1             4.6G  717M  3.9G  16% /root/t<br />
-bash-3.2# umount t<br />
-bash-3.2# rmdir t
</p></blockquote>
</li>
<p>And there we have it!  Now we have a 5GB image to play with.  I loaded this into QEMU just as I would any other image:<br />
<blockquote class="code">qemu -m 256 -soundhw es1370 -serial /dev/pts/1 -net user -net nic,model=rtl8139 -hda newimg</p></blockquote>
<p>It booted up just fine!  Feel free to download and install away, realizing of course that you won&#8217;t be able to ever apply this image directly to your OLPC, but it will at least allow you to develop first and worry about the size of things later on.</p>
]]></content:encoded>
			<wfw:commentRss>http://mattfarmer.net/2008/01/06/making-a-bigger-harddrive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>One Laptop Per Child</title>
		<link>http://mattfarmer.net/2008/01/06/one-laptop-per-child/</link>
		<comments>http://mattfarmer.net/2008/01/06/one-laptop-per-child/#comments</comments>
		<pubDate>Sun, 06 Jan 2008 18:50:50 +0000</pubDate>
		<dc:creator>POS</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[OLPC]]></category>

		<guid isPermaLink="false">http://mattfarmer.net/2008/01/06/one-laptop-per-child/</guid>
		<description><![CDATA[Many of you have probably heard of the One Laptop Per Child [http://laptopl.org] Program or seen their recent commercials for their GiveOneGetOne program on mainstream TV. Well I bit the bullet and decided to get one of these. Costing $425 (which covers the cost of 2 laptops and shipping to myself), I think its going [...]]]></description>
			<content:encoded><![CDATA[<p>Many of you have probably heard of the One Laptop Per Child [<a href="http://laptop.org/">http://laptopl.org</a>] Program or seen their recent commercials for their GiveOneGetOne program on mainstream TV.  Well I bit the bullet and decided to get one of these.</p>
<p>Costing $425 (which covers the cost of 2 laptops and shipping to myself), I think its going to work out pretty well.  The machine is fairly modest, having only a 433 Mhz CPU, 256 MB of ram, and 1GB of flash rom (for a hard drive).  What make this laptop so interesting is the rest of the design.  It&#8217;s lcd screen was designed specifically for this laptop to be extremely friendly in the low power realm, its case is designed to seal well enough that children walking to and from school need not fear rainstorms and dust, and the battery can charge off of anywhere from 11 to 18 Volts.  Add to this that it has built in wifi and an expansion SD memory card slot, and you have a pretty mobile friendly laptop.</p>
<p>One of the first things I&#8217;ll do when I get this is find some type of alternative charging source for it.  The children that receive these will get some sort of hand crank which should give 10 minutes of use to every 1 minute of charging, but the purchasers don&#8217;t get this feature.  I&#8217;ve already looked at several inexpensive solar cells but have yet to decide on one yet.  Until then I&#8217;ll just be working on the software in QEMU and seeing what I can do!</p>
]]></content:encoded>
			<wfw:commentRss>http://mattfarmer.net/2008/01/06/one-laptop-per-child/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

