User:DanielDrake/Run upstream kernel on XO-4

From OLPC
< User:DanielDrake
Revision as of 17:42, 20 February 2013 by DanielDrake (talk | contribs) (→‎Booting)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

How to run Linux 3.8 on XO-4.

XO preparation

  1. Downloading http://download.laptop.org/xo-4/os/candidate/13.1.0-30/31030o4.zd to a USB disk
  2. Connect the USB disk to the XO-4
  3. Boot the XO-4, hit escape to get to ok prompt
  4. Run: fs-update u:\31030o4.zd
  5. Once flashed, power cycle the XO (with AC adapter connected), let it upgrade the firmware and boot into Linux.
  6. From a root terminal, run: olpc-dev-kernel
  7. Turn the XO off

Kernel compilation

Apply this patch to Linux 3.8 and compile. You can use this config as a base.

Booting

  1. Create a subdirectory of the root directory on your USB disk called "boot", and place olpc.fth inside it.
  2. Copy arch/arm/boot/zImage from your kernel compile to the boot directory of the USB disk, to sit alongside olpc.fth.
  3. Connect the USB disk to the XO and turn it on.

Note: there will be no output on the screen - you need to use a serial console to access the system. Once the output stops (i.e. boot has finished), wait a couple of seconds then hit enter to get a bash prompt.