Difference between revisions of "QEMU"

From IGEP - ISEE Wiki

Jump to: navigation, search
Line 1: Line 1:
 
= '''QEMU on IGEP Boards'''  =
 
= '''QEMU on IGEP Boards'''  =
 +
 +
[http://wiki.qemu.org/Main_Page '''QEMU'''] is a [http://en.wikipedia.org/wiki/Central_processing_unit processor] [http://en.wikipedia.org/wiki/Emulator emulator] that relies on dynamic [http://en.wikipedia.org/wiki/Binary_translation binary translation] to achieve a reasonable speed while being easy to port on new host CPU architectures.
 +
 +
In conjunction with CPU emulation, it also provides a set of device models, allowing it to run a variety of unmodified guest [http://en.wikipedia.org/wiki/Operating_system operating systems]; it can thus be viewed as a [http://en.wikipedia.org/wiki/Virtual_machine_monitor#Classification hosted virtual machine monitor]. It also provides an accelerated mode for supporting a mixture of binary translation (for kernel code) and native execution (for user code), in the same fashion as [http://en.wikipedia.org/wiki/VMware_Workstation VMware Workstation] and [http://en.wikipedia.org/wiki/VirtualBox VirtualBox]. QEMU can also be used purely for CPU emulation for user level processes, allowing applications compiled for one architecture to be run on another.
  
 
== Build QEMU with IGEP support  ==
 
== Build QEMU with IGEP support  ==
Line 25: Line 29:
 
$ make install  
 
$ make install  
  
<br>  
+
Optionally you can download from [http://downloads.igep.es/QEMU/qemu-linaro.tar.gz here] the QEMU binaries.<br>  
  
 
== Board Emulation  ==
 
== Board Emulation  ==
  
 
./qemu-system-arm -M igep -m 512 -clock unix -serial stdio -drive file=/home/mcaro/Projects/myigep/workspace/igep-dsp-gst-framework/igep-ubuntu-desktop.img,if=sd,cache=writeback -usb -usbdevice host:usb.1:80ee:cafe -monitor telnet:localhost:7100,server,nowait,nodelay
 
./qemu-system-arm -M igep -m 512 -clock unix -serial stdio -drive file=/home/mcaro/Projects/myigep/workspace/igep-dsp-gst-framework/igep-ubuntu-desktop.img,if=sd,cache=writeback -usb -usbdevice host:usb.1:80ee:cafe -monitor telnet:localhost:7100,server,nowait,nodelay

Revision as of 15:34, 10 January 2012

QEMU on IGEP Boards

QEMU is a processor emulator that relies on dynamic binary translation to achieve a reasonable speed while being easy to port on new host CPU architectures.

In conjunction with CPU emulation, it also provides a set of device models, allowing it to run a variety of unmodified guest operating systems; it can thus be viewed as a hosted virtual machine monitor. It also provides an accelerated mode for supporting a mixture of binary translation (for kernel code) and native execution (for user code), in the same fashion as VMware Workstation and VirtualBox. QEMU can also be used purely for CPU emulation for user level processes, allowing applications compiled for one architecture to be run on another.

Build QEMU with IGEP support

Download QEMU sources from linaro git repository:

$ git clone git://git.linaro.org/qemu/qemu-linaro.git

Download IGEP support patch for QEMU from this link and after that apply the patch as:

$ cd qemu-linaro

$ patch -p1 < 0001-IGEP_QEMU_support.path

Configure the sources for build with this command:

$ ./configure --target-list=arm-softmmu --prefix=/opt/qemu-linaro

Build the sources:

$ make

Install QEMU:

$ make install

Optionally you can download from here the QEMU binaries.

Board Emulation

./qemu-system-arm -M igep -m 512 -clock unix -serial stdio -drive file=/home/mcaro/Projects/myigep/workspace/igep-dsp-gst-framework/igep-ubuntu-desktop.img,if=sd,cache=writeback -usb -usbdevice host:usb.1:80ee:cafe -monitor telnet:localhost:7100,server,nowait,nodelay