XS-on-XO: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
Line 2: Line 2:
We have an experimental ext3 image that boots and seems to work correctly as an XS would, on XO hardware.
We have an experimental ext3 image that boots and seems to work correctly as an XS would, on XO hardware.


=Grab the image from=
==Grab the image from==


http://xs-dev.laptop.org/xs/other/OLPC-School-Server-0.5.2-dev01-i386.img.gz
http://xs-dev.laptop.org/xs/other/OLPC-School-Server-0.5.2-dev01-i386.img.gz
Line 10: Line 10:
b34227d6c635d270eceeff7e3107cffa4c08e55c
b34227d6c635d270eceeff7e3107cffa4c08e55c


=To install=
==To install==


# Grab a fast SD card, at least 4GB (though smaller cards may work in some cases, see below)
# Grab a fast SD card, at least 4GB (though smaller cards may work in some cases, see below)
Line 20: Line 20:
Now the SD card should just boot on any unlocked XO.
Now the SD card should just boot on any unlocked XO.
=Matching the fs size to the actual partition on the SD card=
==Matching the fs size to the actual partition on the SD card==


If your card or first partition is larger, first dd the image onto the card, and then use resize2fs on it. resize2fs will expand it to fill the partition.
If your card or first partition is larger, first dd the image onto the card, and then use resize2fs on it. resize2fs will expand it to fill the partition.
Line 26: Line 26:
If your card is smaller than 4GB (which sometimes happens with cards advertised as 4GB), shrink the partition with resize2fs before using dd. You can expand it to fill the whole partition with resize2fs.
If your card is smaller than 4GB (which sometimes happens with cards advertised as 4GB), shrink the partition with resize2fs before using dd. You can expand it to fill the whole partition with resize2fs.


=Completing the installation=
==Completing the installation==


# Set a password for the root user.
# Set a password for the root user.
Line 32: Line 32:
## It's probably a wise idea to avoid using Squid on the XO hardware.
## It's probably a wise idea to avoid using Squid on the XO hardware.


=Further work=
==Further work==


Help is needed with...
Help is needed with...
Line 46: Line 46:
* Scripts to switch from mesh portal to hostap
* Scripts to switch from mesh portal to hostap


=Developer notes=
==Developer notes==
== Building the image==
=== Building the image===


# checkout xs-livecd
# checkout xs-livecd
# wget http://xs-dev.laptop.org/xs/OLPC-School-Server-0.5.2-i386.iso
# wget http://xs-dev.laptop.org/xs/OLPC-School-Server-0.5.2-i386.iso
# sudo ./util/mkext3img OLPC-School-Server-0.5.2-i386.iso imgbuilder/anaconda-f9.ks
# sudo ./util/mkext3img OLPC-School-Server-0.5.2-i386.iso imgbuilder/anaconda-f9.ks

===See also===

* [[XO as XS]]

[[Category:SchoolServer]]

Revision as of 02:44, 17 June 2009

We have an experimental ext3 image that boots and seems to work correctly as an XS would, on XO hardware.

Grab the image from

http://xs-dev.laptop.org/xs/other/OLPC-School-Server-0.5.2-dev01-i386.img.gz

The sha1 of the uncompressed file is

  b34227d6c635d270eceeff7e3107cffa4c08e55c

To install

  1. Grab a fast SD card, at least 4GB (though smaller cards may work in some cases, see below)
  2. Uncompress the image with gzip -d
  3. Identify the mountpoint for the first partition -- usually /dev/mmcblk0p1 or /dev/sdX1
  4. Using fdisk, make the first partition at least 4GB, type 83 (linux) and bootable
  5. dd if=OLPC-School-Server-0.5.2-dev01-i386.img of=/dev/<device> bs=1M

Now the SD card should just boot on any unlocked XO.

Matching the fs size to the actual partition on the SD card

If your card or first partition is larger, first dd the image onto the card, and then use resize2fs on it. resize2fs will expand it to fill the partition.

If your card is smaller than 4GB (which sometimes happens with cards advertised as 4GB), shrink the partition with resize2fs before using dd. You can expand it to fill the whole partition with resize2fs.

Completing the installation

  1. Set a password for the root user.
  2. Follow the Initial Configuration steps outlined in XS_Installing_Software .
    1. It's probably a wise idea to avoid using Squid on the XO hardware.

Further work

Help is needed with...

  • Testing of the XS functionality
  • Getting a vanilla F9 kernel+initrd to boot
  • ejabberd and postfix complain during the generation of the ext3 image about not having a hostname. Check whether this creates problems, and what fixes can be applied.
  • PostgreSQL ('pgsql-xs' service) does not seem to have landed in good shape.
  • External disk setup: scripts to setup an external disk to handle /library and swap. Should be hooked up with the usbmount triggers.
  • Load testing and tuning of memory settings in apache and postgres -- how many users can reasonably use eJabberd & Moodle with our limited memory?
  • Scripts to auto-configure usb-ethernet adapters as eth0
  • Scripts to auto-configure USB "3G" adapters (usually appearing as ppp devices)
  • Scripts to switch from mesh portal to hostap

Developer notes

Building the image

  1. checkout xs-livecd
  2. wget http://xs-dev.laptop.org/xs/OLPC-School-Server-0.5.2-i386.iso
  3. sudo ./util/mkext3img OLPC-School-Server-0.5.2-i386.iso imgbuilder/anaconda-f9.ks

See also