Talk:Emulating the XO/Quick Start/Mac

From OLPC

Jump to: navigation, search

Got it running the first time but my XO is missing ALL the activities. It comes just with Journal. I really need Terminal and Browse at least. I don' think networking is working since when I go to Neighborhood, I don't see any other machines.

I used xo-1-olpc-stream-update.1-build-708-20080604_1540-devel_ext3.img.bz2 as my image. If I use the image that Bcbc used below, I get a few activities, but no Terminal.

Paul, August 20, 2008


I updated the page for the steps it took to emulate the latest joyride build (277 Nov-14; development build 625 of Nov-1 did not work) in Qemu on my Intel MacBookPro (OS X 10.4.10)

I did not need to drop into GRUB. --IanOsgood 14:33, 15 November 2007 (EST)

Got it up and running, but can't get the networking to work over the wireless connection in my MacBookPro... Any ideas anyone?



I have a MacBook running 10.5.1. Here's how I got the emulator running. It's Dec 29, 2007.

  1. Here's the Q app I downloaded: http://www.kju-app.org/kju/index.php?p=dd&build=Q-0.9.0a89.dmg (You want to go to the webpage http://www.kju-app.org/kju and click on "Download latest STABLE build.")
  2. I dragged Q into /Applications, as suggested.
  3. Here is the disk image I downloaded: http://xs-dev.laptop.org/cscott/olpc/streams/ship.2/latest/devel_ext3/olpc-redhat-stream-ship.2-devel_ext3.img.bz2
  4. Then I double-clicked the disk image (which is in the "Downloads" folder), and Archive Utility decompressed it. Then I discarded the .bz2 file, since it is not needed.
  5. Then I l configured a Virtual XO by doing the following:
    1. Launch Q by double-clicking it.
    2. Click the Yellow Plus Sign, supplied the name "Virtual XO" and clicked "Create PC."
    3. In the following configuration window, I changed only the following things, leaving everything else alone.
      1. Clicked "Hardware" and then set RAM to 256,
      2. Unchecked "NE2000 PCI Network Adapter" and checked "rtl8139 PCI Network Adapter"
      3. Checked "Sound Card Ensoniq AudioPCI ES 1370"
      4. Selected the menu "Hard Disk" and the item "Choose Disk Image." An Open panel will drop down.
      5. Now go BACK to the FINDER and open the "Downloads" folder, and drag the disk image into the center of the panel. The Panel will change to show the Downloads folder in the center part of the window. Scroll down to find olpc-redhat-stream-ship.2-devel_ext3.img, and double-click it. The open panel will go away, and the "Hard disk" menu will show the beginning part of "/Users/yourusername/Downloads/olpc-redhat-stream-ship.2-devel_ext3.img". (yourusername will be replaced by your user name, of course).
    4. Clicked "Create PC".
  6. Now I started the Virtual XO by clicking the "Circle with a Triangle Inside" icon, which starts the PC.

Once you've completed this configuration, you start your Virtual XO by double-clicking Q and then clicking the "Circle with a Triangle Inside icon.

  • Here is a command line I used that started the VIrtual XO successfully:
/Applications/Q.app/Contents/MacOS/i386-softmmu.app/Contents/MacOS/i386-softmmu -m 256 -soundhw es1370 -net user -net nic,model=rtl8139 -hda /Users/yourusername/Downloads/olpc-redhat-stream-ship.2-devel_ext3.img

Note that the path at the beginning might vary depending on where you installed Q.app, and also might vary if you have a PPC processor and not a 386 processor.


IMPORTANT NOTES:

  • When you start up, you'll see a bluish screen with some light white lettering. Just wait for it to go away. Then you will get black screen with lots of scrolling text. Keep waiting. Eventually, the XO will show the Sugar HOME screen.
  • The first time you start up, you will asked to enter your name, and then asked to click the "XO" icon until it matches the color of your computer. Since this is a virtual computer, pick whatever color you want. Once that's done, the Sugar HOME screen will appear.
  • Once you click in the Virtual XO window, your Macintosh mouse pointer will disappear until you tap "ctrl" and "alt/option" at the same time. This will not pause the Virtual XO computer.
  • The window will not fit on your screen very well. Some pixels will "hang off the bottom." To fix this, click the lozenge-shaped icon in the upper right of the title bar of the window. This will make the Q "control icons" disappear" and the window will now (just barely) fit. You can make the Virtual XO take over your entire computer screen with one of those control icons, or by pressing COMMAND-F. Note that COMMAND-F will also turn full screen mode. Don't forget!
  • In Full Screen, the image is stretched so round things are "fat," and the pixels occasionally "wiggle."
  • I was able to hit internet web sites in the browser, but I was not able to get sound to come out of Tam Tam Jam. I haven't tried too much else yet.
  • To shut down your Virtual XO, go to the Home page and click in the XO icon in the middle, then hit "Shut Down" and wait for all the scrolling text to come to a stop. The last line will say "System Halted." Then you can click on the Close Icon on the top-left of the window title bar, and click "Shutdown," and then Quit Q.

--Bcbc 23:37, 29 December 2007 (EST)


The process described by Bcbc worked for me. Thanks! I think the main problem is to know which image works and which not. I tried os656.img (form http://download.laptop.org/xo-1/os/official/latest/jffs2/) first and it didn't work...

pfiguero April 10th, 2008


Paul Barchilon:

Hi Walter,

That was exactly the right question to ask! I was trying the LiveCD method with XO-LiveCD_080919.iso, which didn't work. When I created a "new PC" in Qemu and told it to use olpc-redhat-stream-ship.2-devel_ext3.img then it worked.

Still trying to figure out how to get the screen size to the appropriate dimensions, and now I have to figure out how to use your OS. From there I will load PlayGo and get back to all of you. Thanks for the help, I am glad I got in finally!

--Walter 21:15, 12 October 2008 (UTC)


Here is a free way to get Sugar to work on an iMac: I downloaded and installed the free Sun xVM VirtualBox program, then downloaded the Sugar update.1-olpc-666.vmdk file. It seems to run ok but there are a few glitches (doesn't have sound, but that could be the VM setting).

Ok, so here is the step by step:

1. Download VirtualBox 2.0.6 for OS X hosts Intel Macs at: http://www.virtualbox.org/wiki/Downloads

2. After the .dmg file downloads, it should open up a window showing VirtualBox.mpkg (otherwise find the .dmg file and double click it to open the window.) Double click on the .mkpg file and follow the VirtualBox install procedure.

3. I then ran the VirtualBox program and created a Linux 2.6 Virtual Machine: Click the New button, (next) give it a name "test machine"; os type "Linux 2.6", (next) memory 512 MB; (next) New hard drive, dynamic expand image, (next); Sugar file name, 2 GB size (next); (finish). At this point you have created an image drive that you need to put the Sugar OS into.

Step 3 may not be strictly necessary, but the VirtualBox program creates a folder in your home directory: Users/your account name/Library/VirtualBox/Machines/ you (can/should/need?) that you can then put the Sugar OS vmdk file (next step) into.

4. Next download the update file http://dev.laptop.org/pub/virtualbox/update.1-OLPC-666.zip I'm not sure if something from http://download.laptop.org/xo-1/os/official/ will work or not though. Downloading the .zip file has an "update" folder contains a file "update.1-olpc-666.vmdk" which seems to work. After downloading and uncompressing, you should be able to find the update folder, move update.1-olpc-666.vmdk from this folder to Users/your account name/Library/VirtualBox/Machines/

5. Now, go back to VirtualBox, and create a New virtual machine: "Sugar OS"; os type "Linux 2.6", (next) memory 512 MB; (next) From the Boot Drive pull down list, or the "existing" button navigate to and choose pdate.1-olpc-666.vmdk, (finish). At this point you have the Virtual Machine, you can play around with some of the settings, like enabling the audio (don't use SoundBlaster 16 emulation though!) and the cd. Click the green Start arrow and watch it load up.

Steve

I would like to use VMware Fusion 3.01 to run the latest release of the XO-1 OS (802) but I have little idea as to how. Any pointers as to where to start? Or who to bug to try and get it done? Gorton k 20:21, 15 January 2010 (UTC)

Personal tools
  • Log in
  • Login with OpenID
About OLPC
About the laptop
About the tablet
Projects
OLPC wiki
Toolbox