Emulating the XO/Quick Start/Linux: Difference between revisions

From OLPC
Jump to navigation Jump to search
(→‎Debian/Ubuntu/Fedora/...: kqemu changed from "optional" to "optional, but recommended". Bold-face qemu invocation.)
(Moved 'emulation on qemu on ydl on PS3' section from Sugar to Emulating_the_XO/Quick_Start/Linux. Added ToC.)
Line 1: Line 1:
__TOC__

== Debian/Ubuntu/Fedora/... ==
== Debian/Ubuntu/Fedora/... ==


Line 55: Line 57:
qemu-system-x86_64 -kernel-kqemu ...
qemu-system-x86_64 -kernel-kqemu ...
If you forget and use just <tt>qemu</tt> instead, things will be slow again.
If you forget and use just <tt>qemu</tt> instead, things will be slow again.



== FreeBSD ==
== FreeBSD ==
Line 75: Line 78:
qemu -hda olpc-stream-development-7-20060609_1600-ext3.img
qemu -hda olpc-stream-development-7-20060609_1600-ext3.img
:Should this take the same arguments as the linux qemu invocation? [[User:MitchellNCharity|MitchellNCharity]] 21:18, 23 May 2007 (EDT)
:Should this take the same arguments as the linux qemu invocation? [[User:MitchellNCharity|MitchellNCharity]] 21:18, 23 May 2007 (EDT)


== Yellow Dog Linux on PlayStation3 ==

Sugar is able to run on a PS3. It can be run using the qemu emulator. Here are some directions for one way of doing this:

1. Install [[ydl]] linux for PS3

2. Log on to ydl as root user

3. Install [[yum]] (helps install other linux software)

4. Download [[qemu]]

5. Download [http://users.xplornet.com/~ooley/therepos.zip therepos here]

6. Unzip therepos.zip

7. Access yum folder (yum.repos.d)

8. Copy unzipped files to yum.repos.d

9. Follow the linux [http://wiki.laptop.org/go/Emulating_the_XO/Quick_Start emulation instructions]

Revision as of 13:53, 20 June 2007

Debian/Ubuntu/Fedora/...

1 - Unpack the image

bzcat olpc-redhat-stream-development-ext3.img.bz2 > laptop.img

2 - Obtain qemu

On Debian/Ubuntu, as root:

apt-get install qemu

On Fedora, as root:

yum install qemu

3 - Run qemu on the image

qemu -soundhw es1370 -serial `tty` -hda laptop.img

Then see Running for the first time.

4 - (optional, but recommended) Make qemu run faster

If you have an x86 or x86_64 cpu, you can use kqemu to speed up the emulation several 100%.

4 a - Obtain kqemu

On Debian/Ubuntu, as root, do one of:

apt-get install kqemu-modules-2.6-486    # if you have a 486/original Pentium
apt-get install kqemu-modules-2.6-686    # if you have a later Pentium
apt-get install kqemu-modules-2.6-k7     # if you have a 32-bit AMD Duron/Athlon/AthlonXP

Then

apt-get install kqemu-common

to add docs and have it auto-load at boot time.

On Fedora x86,

XXX please fill this in if you know

On Fedora x86_64,

as of 2007-05-13, there are no official rpms for kqemu, or the kqemu kernel module, and they are not included in the qemu rpm. atrpms.net has kqemu rpms. Or install from source.
There are several kernel rpms to choose from. Some guidance should be given. MitchellNCharity 22:01, 23 May 2007 (EDT)

4 b - Run modprobe

/sbin/modprobe kqemu major=0

This will need to be run again if the host computer is rebooted (unless noted above). If you forget, qemu will be slow again (and a one-line error message scroll by when you run qemu).

4 c - Run a qemu variant with the -kernel-kqemu option

On x86,

qemu -kernel-kqemu ...

On x86_64,

qemu-system-x86_64 -kernel-kqemu ...

If you forget and use just qemu instead, things will be slow again.


FreeBSD

Install qemu from ports:

cd /usr/ports/emulators/qemu && make install clean

or as a package

pkg_add -r qemu

Then load kqemu and aio kernel modules:

kldload kqemu
kldload aio

and launch the image you want:

qemu -hda olpc-stream-development-7-20060609_1600-ext3.img
Should this take the same arguments as the linux qemu invocation? MitchellNCharity 21:18, 23 May 2007 (EDT)


Yellow Dog Linux on PlayStation3

Sugar is able to run on a PS3. It can be run using the qemu emulator. Here are some directions for one way of doing this:

1. Install ydl linux for PS3

2. Log on to ydl as root user

3. Install yum (helps install other linux software)

4. Download qemu

5. Download therepos here

6. Unzip therepos.zip

7. Access yum folder (yum.repos.d)

8. Copy unzipped files to yum.repos.d

9. Follow the linux emulation instructions