반짝고양이 2023. 9. 15. 17:19

2012-11-12 17:09:17

 

QEMU

Open source processor emulator

http://wiki.qemu.org/Main_Page

qemu-1.2.0.tar.bz2 를 사용해 보자.

1. configure

$ ./configure

    zlib1g-dev 가 필요하다.

$ ./configure

    glib-2.12 version 이 필요하다.

    http://ftp.acc.umu.se/pub/GNOME/sources/glib/2.12/

    gettext 가 필요하다.

2. make

$ make

librt.a가 필요하다.

    locate librt.a로 설치되어 있는 지 확인하고

    make LDFLAGS=-lrt 로 make 하면 된다.

    ubuntu 10.04 LTS 32bit의 경우 /usr/lib/librt.a 가 존재한다.

    12.10의 경우는 좀 다르다.

    ubuntu 12.10 32bit의 경우 /usr/lib/i386-linux-gnu/librt.a

    ubuntu 12.10 64bit의 경우 /usr/lib/x86_64-linux-gnu/librt.a

    ld가 참조하는 위치를 변경해야 할 것 같은데...

    ㅡ_ㅡ??


2013/02/28

On Fedora 17

qemu-1.3.1.tar.bz2

1. configure

gdb로 debugging하기 위해

configure --prefix=there --target-list=arm-linux-user --enable-debug --enable-debug-tcg



2. make

make all

make install


3. debugging

qemu-arm -g 7878 a.out

gdb ./qemu-arm

 

gdb ./qemu-arm

(gdb)b main

(gdb)run /test/a.out