(fixed links, wrote about Bochs)
(Copyediting, fixed some links)
Line 4:
Line 4:
== Emulation Packages ==
== Emulation Packages ==
=== QEMU ===
=== QEMU ===
(削除) Available for Linux and Windows (the latter as 'kqemu'). (削除ここまで)
(追記) [[QEMU]] (追記ここまで)is operated from the command line with the parameters used to specify the hardware environment of the system and also to link to the image which holds your kernel binary(追記) . It's available for Linux and Windows (the later as 'kqemu') (追記ここまで).
(削除) Qemu (削除ここまで)is operated from the command line with the parameters used to specify the hardware environment of the system and also to link to the image which holds your kernel binary.
A simple command to run a floppy image would be:
A simple command to run a floppy image would be:
<(削除) code (削除ここまで)>
<(追記) source lang="bash" (追記ここまで)>
qemu -fda floppy.img
qemu -fda floppy.img
</(削除) code (削除ここまで)>
</(追記) source (追記ここまで)>
You can use Ctrl+Alt to release the cursor (while captured)(削除) . (削除ここまで)
You can use Ctrl+Alt to release the cursor (while captured) (追記) and (追記ここまで)can use Ctrl+Alt+F to toggle fullscreen. (追記) There are further parameters available for use: (追記ここまで)
(削除) You (削除ここまで)can use Ctrl+Alt+F to toggle fullscreen.
(削除) There are further parameters available for use: (削除ここまで)
(追記) {| {{wikitable}} (追記ここまで)
(削除) <table border=1> (削除ここまで)
(追記) ! heading !! heading (追記ここまで)
(削除) <tr> (削除ここまで)
(追記) |- (追記ここまで)
(削除) <td> (削除ここまで)
(追記) | (追記ここまで)HDD Image/Device ''path'' (追記) || (追記ここまで)<code>-hda ''path''</code>
HDD Image/Device ''path''
(追記) |- (追記ここまで)
(削除) </td> (削除ここまで)
(追記) | (追記ここまで)CD Image/Device ''path'' (追記) || (追記ここまで)<code>-cdrom ''path''</code>
(削除) <td> (削除ここまで)
(追記) |- (追記ここまで)
<code>-hda ''path''</code>
(追記) | (追記ここまで)Boot Device x(if not default) (追記) || (追記ここまで)<code>-boot x</code>
(削除) </td> (削除ここまで)
(追記) |- (追記ここまで)
(削除) </tr> (削除ここまで)
(追記) | (追記ここまで)(x)MB RAM (追記) || (追記ここまで)<code>-m x</code>
(削除) <tr> (削除ここまで)
(追記) |- (追記ここまで)
(削除) <td> (削除ここまで)
(追記) | (追記ここまで)Localized Time (追記) || (追記ここまで)<code>-localtime</code>
CD Image/Device ''path''
(追記) |- (追記ここまで)
(削除) <td> (削除ここまで)
(追記) | (追記ここまで)USB Support (追記) || (追記ここまで)<code>-usb</code>
<code>-cdrom ''path''</code>
(追記) |- (追記ここまで)
(削除) <tr> (削除ここまで)
(追記) | (追記ここまで)Start in Full-Screen (追記) || (追記ここまで)<code>-full-screen</code>
(削除) <td> (削除ここまで)
|(追記) } (追記ここまで)
Boot Device x(if not default)
<code>-full-screen</code>
(削除) For more information take a look in the links section below or this [[QEMU (削除ここまで)|(削除) wiki page]] (削除ここまで)
=== Bochs ===
=== Bochs ===
(追記) [[ (追記ここまで)Bochs(追記) ]] (追記ここまで)supports a variety of features, all of which can be carefully customized with command line switches or a settings file. It can emulate a PC with VBE, NE2000, and Sound Blaster 16. It also has a built-in debugger which can be useful for testing and debugging your kernel. Bochs can emulate CPUs with support for SMP and x86-64. However, Bochs itself does not use threading and the emulation is not ''virtualized'', so you can expect slow and CPU-intensive emulation. Bochs (追記) is available (追記ここまで)for (追記) Linux (追記ここまで)and (追記) Windows and is free and open source (追記ここまで).
(削除) Bochs is also available for Linux and Windows. It is free and open source. (削除ここまで)
Bochs supports a variety of features, all of which can be carefully customized with command line switches or a settings file. (削除) (削除ここまで)It can emulate a PC with VBE, NE2000, and Sound Blaster 16. (削除) (削除ここまで)It also has a built-in debugger which can be useful for testing and debugging your kernel. (削除) (削除ここまで)Bochs can emulate CPUs with support for SMP and x86-64. However, Bochs itself does not use threading and the emulation is not ''virtualized'', so you can expect slow and CPU-intensive emulation.
(削除) See this [[ (削除ここまで)Bochs(削除) |wiki page]] (削除ここまで)for (削除) more details on setting up (削除ここまで)and (削除) using Bochs (削除ここまで).
=== Sun VirtualBox ===
=== Sun VirtualBox ===
[[Virtual Box]] (追記) is a desktop VM package (追記ここまで).
(削除) ''Desktop VM package'' (削除ここまで)
(削除) See this (削除ここまで)[[Virtual Box(削除) |wiki page (削除ここまで)]].
=== Microsoft Virtual PC ===
=== Microsoft Virtual PC ===
[[Microsoft Virtual PC]] (追記) is a desktop VM package. (追記ここまで)
(削除) ''Desktop VM package'' (削除ここまで)
(削除) See this (削除ここまで)[[Microsoft Virtual PC(削除) |wiki page (削除ここまで)]]
=== CPCE ===
=== CPCE ===
(追記) CPCE is an (追記ここまで)Amstrad (追記) emulator, see (追記ここまで)the [http://cpce.emuunlim.com/ official CPCE website] for installation and usage instructions.
(削除) '' (削除ここまで)Amstrad (削除) Emulator'' (削除ここまで)
(削除) See (削除ここまで)the [http://cpce.emuunlim.com/ official CPCE website] for installation and usage instructions.
=== PearPC ===
=== PearPC ===
(追記) PearPC is a [[ (追記ここまで)PowerPC (追記) Overview| (追記ここまで)PowerPC](追記) ] emulator, an (追記ここまで)[http://pearpcguide.tripod.com in-depth tutorial(追記) ] (追記ここまで)on how to setup the PearPC emulator with a PowerPC Mac OS install (追記) is available (追記ここまで). (追記) (Pop (追記ここまで)-up blocker installed (追記) recommended (追記ここまで)!(追記) ) (追記ここまで)
(削除) '' (削除ここまで)PowerPC (削除) Emulator'' (削除ここまで)
(削除) More information on the (削除ここまで)PowerPC (削除) architecture head to this [http://wiki.osdev.org/PowerPC_Overview wiki entry (削除ここまで)]
[http://pearpcguide.tripod.com(削除) / This link] contains an (削除ここまで)in-depth tutorial on how to setup the PearPC emulator with a PowerPC Mac OS install. (削除) We recommend having a pop (削除ここまで)-up blocker installed!
=== YAPE ===
=== YAPE ===
(追記) [http://yape.homeserver.hu YAPE] is a Commodore emulator. (追記ここまで)
(削除) ''Commodore Emulator'' (削除ここまで)
== (追記) External (追記ここまで)Links ==
(追記) * [ (追記ここまで)http://www.emulators.com/ A website filled with emulators from many platforms(追記) ] (追記ここまで)
(削除) To see this emulator's project home page click on [http://yape.homeserver.hu/ this link]. (削除ここまで)
(追記) * [ (追記ここまで)http://gablog.eu/online/node/39 Quick Qemu Tutorial(追記) ] (追記ここまで)
(追記) * [ (追記ここまで)http://qemu-forum.ipi.fi Qemu Forum(追記) ] (追記ここまで)
== Links ==
(追記) * [ (追記ここまで)http://www.thefreecountry.com/emulators/arm.shtml A good list of ARM emulators(追記) ] (追記ここまで)
http://www.emulators.com/ (削除) - '' (削除ここまで)A website filled with emulators from many platforms(削除) '' (削除ここまで)
http://gablog.eu/online/node/39 (削除) - '' (削除ここまで)Quick Qemu Tutorial(削除) '' (削除ここまで)
http://qemu-forum.ipi.fi(削除) / - '' (削除ここまで)Qemu Forum(削除) '' (削除ここまで)
http://www.thefreecountry.com/emulators/arm.shtml (削除) - '' (削除ここまで)A good list of ARM emulators(削除) '' (削除ここまで)
Revision as of 21:47, 9 July 2009
An emulator is a device, computer program, or system that accepts the same inputs and produces the same outputs of another device, computer program or system.
Emulators are available for everything from running Windows on the Mac OS to running Game Boy games on PS3s. In the context of kernel development however we want a generic emulator which emulates the environment you would like your kernel to run in.
Emulation Packages
QEMU
QEMU is operated from the command line with the parameters used to specify the hardware environment of the system and also to link to the image which holds your kernel binary. It's available for Linux and Windows (the later as 'kqemu').
A simple command to run a floppy image would be:
You can use Ctrl+Alt to release the cursor (while captured) and can use Ctrl+Alt+F to toggle fullscreen. There are further parameters available for use:
| heading |
heading
|
| HDD Image/Device path |
-hda path
|
| CD Image/Device path |
-cdrom path
|
| Boot Device x(if not default) |
-boot x
|
| (x)MB RAM |
-m x
|
| Localized Time |
-localtime
|
| USB Support |
-usb
|
| Start in Full-Screen |
-full-screen
|
Bochs
Bochs supports a variety of features, all of which can be carefully customized with command line switches or a settings file. It can emulate a PC with VBE, NE2000, and Sound Blaster 16. It also has a built-in debugger which can be useful for testing and debugging your kernel. Bochs can emulate CPUs with support for SMP and x86-64. However, Bochs itself does not use threading and the emulation is not virtualized, so you can expect slow and CPU-intensive emulation. Bochs is available for Linux and Windows and is free and open source.
Sun VirtualBox
Virtual Box is a desktop VM package.
Microsoft Virtual PC
Microsoft Virtual PC is a desktop VM package.
CPCE
CPCE is an Amstrad emulator, see the official CPCE website for installation and usage instructions.
PearPC
PearPC is a PowerPC emulator, an in-depth tutorial on how to setup the PearPC emulator with a PowerPC Mac OS install is available. (Pop-up blocker installed recommended!)
YAPE
YAPE is a Commodore emulator.
External Links