Talk:Emulating the XO/Quick Start/Windows

From OLPC
Jump to navigation Jump to search

winrar vs 7-zip

I had changed winrar to 7-zip simply due to it being a more open tool and overall has better support than winrar in terms of usable archive formats, however I noticed great work went into the tutorial that was winrar specific, I might consider changing that later if there is no problem with that

  • I'm not sure what the format is for discussions, but some thoughts:
    • Why encourage using 7-zip? Shouldn't most users already have winzip installed? winzip also unzips .bz2 well enough.
    • Which image should I be using exactly? After a couple of passes, I'm attracted to the little green box with the os711.img, which seems to be the latest build, but that seems not to be a bootable disk. However, any of the other images provided on the page works. Is there a way we can just link to a page that will constantly provide the latest image, or will this page be constantly edited when new images come out?
There's no single "latest image", read OS images to learn about latest stable, release candidate, joyride, etc. -- skierpage 03:43, 8 November 2008 (UTC)
    • Other than that, I thought the instructions were great, and I especially like the .bat file at the end.

8.2.0 images

There are some known issues (<trac>8369</trac>) regarding emulating 8.2.0 builds, message from Ton regarding these problems and a workaround pasted below.

You (and anybody else interested) can find my version of QEMU for Windows which runs 8.2 and joyride images successfully here:

 http://www.v-overbeek.nl/XO-1/qemu-svn-4887-for-windows.zip .

Below the README from the zip file:

=========================================================================
       QEMU for running 8.2 XO-1 devel-ext3 images on Windows
       ------------------------------------------------------

Here is my privately compiled version of qemu based on snapshot svn-4887.
See http://savannah.nongnu.org/svn/?group=qemu .
I have only used it on Windows XP/SP2, but it most likely will work under
Windows Vista.

Installing qemu
---------------

Make sure the following files are all in the same directory:
qemu.exe
fmod.dll
SDL.dll
mwgz.dll
bios.bin
vgabios-cirrus.bin
qemu-img.exe (optional)

This will allow you to run qemu, but slowly. It is recommended to use the
kqemu accelaratiob module. You'll find a version compatible with this version
of qemu in the subdirectory kqemu-1.4.0pre1.

Before installing this version, uninstall any previous versions of kqemu !
The kqemu supplied with the released 0.9.1 version is not compatible
with this version of qemu.

In the kqemu-1.4.0pre1 directory right click kqemu.inf and select Install.
See also http://bellard.org/qemu/kqemu-doc.html .

The service can be started by the command 'net start kqemu'. it should report
"The KQEMU virtualisation module for QEMU service was started successfully."
on Win XP/SP2

Running qemu
------------

Make sure the kqemu accelerator is running (see above).

To run qemu for an XO-1 image use  commands like:
------
net start kqemu
qemu -L . -cpu athlon -m 512 -net nic,model=rtl8139 -soundhw es1370 xo-1-olpc-stream-8.2-763-devel_ext3.img
------
The important option is '-cpu athlon'.
If you forget this option you will get the following messages:
       This kernel requires the following features not present on the CPU
       3dnow
       Unable to boot - please use a kernel appropriate for your CPU.

For other options see the qemu documentation.

Ton's pre-built QEMU worked great. Here are followups that were useful on Windows Vista:

In Windows Vista, install KQEMU with this command line from an Administrator CMD prompt:
 
   rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 kqemu.inf

Right clicking on the .inf file and selecting Install returns the error 
"The INF file you selected does not support this method of installation" 
on Vista . QEMU+KQEMU, however, works fine under Vista. Ton's QEMU build 
also asks for libusb0.dll which can be found in 
http://slimak.onet.pl/_m/onetlajt/olpc/olpc_qemu_full.zip .
	
Thanks for the update on how to install kqemu on Vista.
libusb0.dll is from the libusb-win32 project on Sourceforge:
http://sourceforge.net/projects/libusb-win32
Right now I am on travel in Europe through the end of the month.
When back, I will update my port (include libusb0.dll and document
Vista installation)

Ton van Overbeek

New Quick Start bundle for emulating 8.2.0 and later images...

I put together a new Quick Start bundle and hosted it at http://sites.google.com/site/olpcqemu/ (4.7 MB). The bundle includes Ton's qemu-svn-4887, KQEMU 1.4.0pre1, cwRsync bundle (rsync, cygwin1.dll, PuTTY) and curl and bunzip2. The OLPC image has been replaced with a get-image.cmd script that automatically downloads the 8.2.0, build 767 disk image, bunzip2's it and creates a linked .qcow2.img file.

I would appreciate it if you can try out the script and provide feedback. Thank you! Mwarren 01:18, 13 November 2008 (UTC)

VirtualBox

For ease of navigation, would it make sense to link this page (or provide info on this page) on how to use VBox in windows? 209.94.128.117 15:16, 10 March 2009 (UTC)