Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

QEMU

1,538 bytes added, 16:09, 10 January 2012
no edit summary
When used as a virtualizer, QEMU achieves near native performances by executing the guest code directly on the host CPU. QEMU supports virtualization when executing under the Xen hypervisor or using the KVM kernel module in Linux. When using KVM, QEMU can virtualize x86, server and embedded PowerPC, and S390 guests.
QEMU documentation can be found [http://wiki.qemu.org/Manual here].<br>
== Build QEMU with IGEP support ==
Download QEMU sources from linaro git repository:
<pre>$ [http://git.linaro.org/gitweb?p=qemu/qemu-linaro.git;a=summary git clone git://git.linaro.org/qemu/qemu-linaro.git]</pre>
Download IGEP support patch for QEMU from this [http://downloads.igep.es/QEMU/0001-IGEP_QEMU_support.path link ]and after that apply the patch as:
<pre>$ cd qemu-linaro
 
$ patch -p1 &lt; 0001-IGEP_QEMU_support.path</pre>
Configure the sources for build with this command:
<pre>$ ./configure --target-list=arm-softmmu --prefix=<span style="color: rgb(255, 0, 0);">/opt/qemu-linaro</span></pre>
Build the sources:
<pre>$ make </pre>
Install QEMU:
<pre>$ make install</pre>
Optionally you can download from [http://downloads.igep.es/QEMU/qemu-linaro.tar.gz here] the QEMU binaries, we suggest install it under /opt directory with the right user execution permissions.<br>
$ [http://git.linaro.org/gitweb?p=qemu/qemu-linaro.git;a=summary git clone git://git.linaro.org/qemu/qemu-linaro.git] Board Emulation ==
Download IGEP support patch for QEMU from this [http://downloadsGo to your qemu install directory.igep.es/QEMU/0001-IGEP_QEMU_support.path link ]and after that apply the patch as: <br>
$ cd /opt/qemu-linaro /bin<br>
$ patch -p1 &lt;&nbsp;0001-IGEP_QEMU_supportWe provide a QEMU ready image based on Ubuntu/Linaro Nano (Oneric 11.path 11) image, it can be download from [http://downloads.igep.es/QEMU/igep.nano.img here].<br>
Configure The image has 2 partitions (you can see the sources for build with this partitions using fdisk -ul commandas: fdisk -ul igep-nano.img)<br>
$Device&nbsp;./configure --target-list=arm-softmmu --prefix=<span style="color: rgb(255, 0, 0)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Boot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Blocks&nbsp;&nbsp; Id&nbsp;">/opt/qemu-linaroSystem</spanbr>
Build the sources: igep-nano.img1&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 63&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 106494&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 53232&nbsp;&nbsp;&nbsp; c&nbsp; FAT32 LBA (Boot)<br>
$ make igep-nano.img2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 106496&nbsp;&nbsp;&nbsp;&nbsp; 1048575&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 470016&nbsp;&nbsp; 83&nbsp; Linux (Root filesystem)<br>
Install QEMUOptionally you can mount the partitions in you host PC and modify the content as: <br><pre>First Partition: $ mount -o loop,offset$[63*512] igep-nano.img /mnt/tmp</pre><pre>Second Partition: $ mount -o loop,offset$[106496*512] igep-nano.img /mnt/tmp</pre>Now you're ready for execute the emulator:<br><pre>qemu-system-arm -M igep -m 512 -clock unix -serial stdio -drive file=igep-nano.img,if=sd,cache=writeback -usb -monitor telnet:localhost:7100,server,nowait,nodelay</pre>Parameters:<br>
$ make install <br>
Optionally you can download from [http://downloads.igep.es/QEMU/qemu-linaro.tar.gz here] the QEMU binaries.<br>
== Board Emulation ==<br>
./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<br>