2013년 12월 2일 월요일

QEMU 1.7.0 install on Linux OS

* Source code download

$git clone git://git.qemu-project.org/qemu.git
$cd qemu
$git submodule update --init dtc

* Configure 
$ cd qemu
$ mkdir obj
$ cd obj
$ ../configure --target-list=arm-softmmu --python=/usr/bin/python2.7

* Make
$ make
$ su
$ make install

* test qemu
$ emacs test.c
<code>
#include<stdio.h>
int main(){
    printf("Hello World\n");
}
</code>

* compile 
$ arm-none-linux-gnueabi-gcc test.c -o test
 
* check the properties of the output file
$ file test 

* execute qemu
$ qemu-system-arm -L ~/arm-none-linux-gnueabi/libc ./test