Emulating the XO/Quick Start/Mac

From OLPC
< Emulating the XO‎ | Quick Start
Revision as of 06:33, 24 May 2007 by MitchellNCharity (talk | contribs) (Copied "QEMU on Mac OS X" section of OS_images_for_emulation. It needs work to become a real Quick Start.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

QEMU on Mac OS X

Bert: I successfully ran OLPC on OS X using the following method on a Powerbook G4 (867 MHz), albeit very slowly.

Justin: Likewise, I successfully ran the latest disk image (Build 385) through QEMU on OS X (10.4) on and Intel Apple using the instructions below.

  • Download and install Q.app (kju-app.org , I got 0.8.1a35, the builds are here: kberg.ch/q/builds/ (previous link broken / server down))
  • Download a disk image (build 59 worked, 73 did not), double-click to unzip. (Note: See point (1) in Section "Enabling SSH" below before choosing an image.)
  • Double-click Q.app Example
  • Click (+) to add a new PC Example
    • Name: OLPC
    • Operating System: Q Standard Guest
    • Click (Create PC)
  • Configure Settings:
    • General: No file sharing Example
    • Hardware - Hard disk: Select your unzipped disk image Example
    • Advanced - QEMU Arguments: type "-redir tcp:2222::22" (without quotes) Example
    • Click (Create PC)
  • Double-click "OLPC" to run:
    • press space to get into GRUB, Example
    • choose "OLPC for Qemu Target", Example
    • press "e" to edit commands,
    • select "kernel" line, and press "e", Example
    • add "single" option at the end of the line, Example
    • hit return, then "b" to boot
    • set some root password (necessary for SSH), sync (Note: See point (2) in Section "Enabling SSH" below)
    • reboot (power-off button or run "init 6")
  • once it's up, from a terminal, log into OLPC using "ssh -p 2222 root@localhost" (Note: See point (3) in Section "Enabling SSH" below)

Jonb: I had trouble running this using Q.app. I guess Q.app doesn't have USB 1.1 support for "real" USB devices yet http://www.kju-app.org/proj/wiki/KjuUSBSupport. Their documentation says something about using the USB Tablet to emulate the mouse, no idea what this is about. The result is that I do not get a keyboard in OLPC on my G4 Mac (USB Keyboard, obviously). I assume User:bert got it to work using his PowerBook because PCMCIA emulation works?

Shekay: I was able to run Q.app from the command line. for example:

$ /Applications/Q.app/Contents/MacOS/i386-softmmu.app/Contents/MacOS/i386-softmmu -hda olpc/olpc-redhat-stream-development-devel_ext3.img -serial stdio