Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

QEMU

41 bytes added, 10:06, 31 August 2012
Board Emulation
$ [http://git.linaro.org/gitweb?p=qemu/qemu-linaro.git;a=summary git clone git://git.linaro.org/qemu/qemu-linaro.git]
Download IGEP support patch for QEMU from this [http://downloadswww.igepisee.esbiz/QEMUcomponent/0001zoo/item/qemu-IGEP_QEMU_support.path emulator link ]and after that apply the patch as:
<pre>$ cd qemu-linaro
Install QEMU:
<pre>$ make install</pre>
Optionally you can download from [http://downloadswww.igepisee.esbiz/QEMUcomponent/zoo/item/qemu-linaro.tar.gz emulator here] the QEMU binaries, we suggest install it under /opt directory with the right user execution permissions.<br>
== Board Emulation ==
<pre>$ cd /opt/qemu-linaro/bin
</pre>
We provide a QEMU ready image based on Ubuntu/Linaro Nano (Oneric 11.11) image, it can be download from [http://downloadswww.igepisee.esbiz/QEMUcomponent/igepzoo/item/qemu-nano.img.tgz emulator here] (first uncompress firstit).<br>
The image has 2 partitions (you can see the partitions using fdisk -ul command as: fdisk -ul igep-nano.img)<br>
Optionally 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 in a console with this command:<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 -device usb-kbd -device usb-mouse</pre>
-m&nbsp;: Memory assigned to the Virtualized board in Mega Bytes.
[[Image:QEMU_bootQEMU boot.png|thumb|center]]
== Tips ==
$ sudo losetup -d /dev/loop0
</pre>Now you should see your new partition with your wished new size. [[Category:Development_tools|QEMU]]