{"id":372,"date":"2006-02-21T00:58:37","date_gmt":"2006-02-21T05:58:37","guid":{"rendered":"http:\/\/www.bytebot.net\/blog\/?p=372"},"modified":"2008-01-30T20:09:28","modified_gmt":"2008-01-31T01:09:28","slug":"one-laptop-per-child","status":"publish","type":"post","link":"https:\/\/www.bytebot.net\/blog\/archives\/2006\/02\/21\/one-laptop-per-child","title":{"rendered":"One Laptop Per Child"},"content":{"rendered":"<p>There was a request to take a gander at the <a href=\"http:\/\/www.laptop.org\/\">$100 Laptop: One Laptop Per Child (OLPC)<\/a>, and reading Fedora People recently made me want to snap up the opportunity to give it a go. Here are my first impressions on the emulator, known as the <a href=\"http:\/\/people.redhat.com\/berrange\/olpc\/sdk\/\">OLPC SDK<\/a>, by Daniel Berrange.<\/p>\n<p>Installation, if instructions are followed on FC-4 work fine. There are spec files to rebuild for FC-5. During the bootup sequence, I noticed that LVM was starting up, and finding no volume groups &#8211; can&#8217;t this be disabled? There doesn&#8217;t seem to be a use for LVM on the OLPC.<\/p>\n<p>Once you get past the fairly slow emulator startup (its qemu based), you&#8217;ll notice that at the heart of it, you&#8217;ve got FC-5 sitting there. Very <em>sexy<\/em>.<\/p>\n<p>Looking for a terminal? While gnome-terminal isn&#8217;t supplied (and probably will never be), xterm is there for the moment. Alt+F2, xterm, and you&#8217;re on your way. The root user has no password, so su &#8211; shouldn&#8217;t be a problem.<\/p>\n<p>What doesn&#8217;t work with the olpc-2006_02_06_16_08.ext3 firmware image is networking. Try modprobing for ne2k-pci, and it&#8217;ll fail, mainly because 8390.ko is missing. This should be fixed with the next firmware image.<\/p>\n<p>All&#8217;s not lost however. If you run file on the .ext3 firmware image, you&#8217;ll notice that it contains an x86 boot sector, code offset 0x48. A little fdisk, will show that there are 63 sectors\/track, with each sector size being 512 bytes. Multiply that, get 32256, and that should be the offset to mounting the image.<\/p>\n<p><code>sudo \/sbin\/losetup -o 32256 \/dev\/loop0 olpc-2006_02_06_16_08.ext3<\/code><br \/>\n<code>sudo mount -t ext3 \/dev\/loop0\/mnt<\/code><br \/>\n<em>merrily going on making changes<\/em><br \/>\n<code>sudo umount \/mnt<\/code><br \/>\n<code>sudo \/sbin\/losetup -d \/dev\/loop0<\/code><\/p>\n<p>Its well worthwhile to not have QEMU running with the disk image &#8211; make sure it isn&#8217;t, otherwise corruption is likely. Once that happened, it was fairly trivial to get MySQL installed. So I did.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/bytebot.net\/shots\/olpc-mysql.png\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/bytebot.net\/shots\/olpc-mysql_small.png\" \/><\/a><br \/>\n<strong><em>MySQL running on the OLPC<\/em><\/strong><\/p>\n<p>The question is&#8230; do we want 61MB of a package sitting there? It can probably be reduced in size tremendously. So can removal of \/var\/log and \/etc\/yum.repos.d\/ and so on&#8230;<\/p>\n<p>From reading the <a href=\"http:\/\/pedia.media.mit.edu\/wiki\/OLPC_software_task_list\">software task list<\/a>, it doesn&#8217;t seem like there&#8217;s a focus on teaching IT to the owners of the OLPC. Does MySQL pass off as educational software, covering a database component? I don&#8217;t see OpenOffice.org being listed as something that will be on the OLPC, and the GNOME Office (Abiword and Gnumeric) don&#8217;t have a front-end for database connectivity.<\/p>\n<p>I&#8217;d like to thank davidz and <a href=\"http:\/\/www.berrange.com\/personal\/diary\">Daniel Berrange<\/a> for assistance when needed! Oh and read his blog for little tips &#8211; the <a href=\"http:\/\/berrange.com\/personal\/diary\/2006\/02\/olpc-simulator-debugging\">simulator debugging<\/a> did come in handy.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There was a request to take a gander at the $100 Laptop: One Laptop Per Child (OLPC), and reading Fedora People recently made me want to snap up the opportunity to give it a go. Here are my first impressions on the emulator, known as the OLPC SDK, by Daniel Berrange. Installation, if instructions are [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[23],"tags":[],"class_list":["post-372","post","type-post","status-publish","format-standard","hentry","category-mysql"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p4vJD-60","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/comments?post=372"}],"version-history":[{"count":0,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/372\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/media?parent=372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/categories?post=372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/tags?post=372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}