도전2022

qemu install on openmoco 본문

작업/openmoko

qemu install on openmoco

hotdigi 2009. 12. 9. 19:04
SMALL
1. USB 연결, 맞지 않는 곳이 있으므로 이곳 저곳 옮겨 다녀야 함.

2. ifconfig로 연결된 것 확인 
root@hotdigi-desktop:~/src# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0c:29:e0:86:ea 
          inet addr:192.168.71.132  Bcast:192.168.71.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fee0:86ea/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12038 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8899 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:12565795 (12.5 MB)  TX bytes:1102005 (1.1 MB)
          Interrupt:19 Base address:0x2024

eth1      Link encap:Ethernet  HWaddr 00:1f:11:01:37:c6 
          inet6 addr: fe80::21f:11ff:fe01:37c6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:456 (456.0 B)  TX bytes:1238 (1.2 KB)

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:64 errors:0 dropped:0 overruns:0 frame:0
          TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:7412 (7.4 KB)  TX bytes:7412 (7.4 KB)

3. 연결된 usb에 eth1 포트 할당 
root@hotdigi-desktop:~/src# ifconfig eth1 192.168.0.200 marsk 255.255.255.0 up
marsk: Unknown host
ifconfig: `--help' gives usage information.

4. 포트 할당이 잘 되었는지 확인 
root@hotdigi-desktop:~/src# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0c:29:e0:86:ea 
          inet addr:192.168.71.132  Bcast:192.168.71.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fee0:86ea/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12050 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8907 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:12567145 (12.5 MB)  TX bytes:1103266 (1.1 MB)
          Interrupt:19 Base address:0x2024

eth1      Link encap:Ethernet  HWaddr 00:1f:11:01:37:c6 
          inet addr:192.168.0.200  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::21f:11ff:fe01:37c6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7 errors:0 dropped:0 overruns:0 frame:0
          TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:456 (456.0 B)  TX bytes:5135 (5.1 KB)

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:64 errors:0 dropped:0 overruns:0 frame:0
          TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:7412 (7.4 KB)  TX bytes:7412 (7.4 KB)

5. ssh를 이용하여 openmoco에 접속하기
root@hotdigi-desktop:~/src# ssh root@192.168.0.202
root@192.168.0.202's password:
Linux debian-gta02 2.6.28-20090105.git69b2aa26 #1 PREEMPT Tue Mar 3 20:22:28 UTC 2009 armv4tl

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Oct 14 09:07:47 2008 from 192.168.0.200
debian-gta02:~#

6. qemu 설치하기 
- 인터넷을 이용해서 qemu 다운 받기

First you must decompress the sources:
cd /tmp
tar zxvf qemu-x.y.z.tar.gz
cd qemu-x.y.z
Then you configure QEMU and build it (usually no options are needed):
./configure
make
Then type as root user:
make install

- openmoco에 복사하기(scp)
root@hotdigi-desktop:~/바탕화면# scp qemu-0.10.6.tar.gz root@192.168.202:/root
The authenticity of host '192.168.202 (192.168.0.202)' can't be established.
RSA key fingerprint is a2:2e:0a:58:4c:8c:09:4e:66:c7:94:02:4b:7d:fd:24.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.202' (RSA) to the list of known hosts.
root@192.168.202's password:
qemu-0.10.6.tar.gz                            100% 3579KB   1.2MB/s   00:03   
root@hotdigi-desktop:~/바탕화면#

-

debian-gta02:~# tar xvzf qemu-0.10.6.tar.gz

............................

debian-gta02:~# mkdir obj
debian-gta02:~# cd obj
debian-gta02:~/obj#
debian-gta02:~#
debian-gta02:~# cd obj/
debian-gta02:~/obj# ../qemu-0.10.6/configure 

Install prefix    /usr/local
BIOS directory    /usr/local/share/qemu
binary directory  /usr/local/bin
Manual directory  /usr/local/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path       /root/qemu-0.10.6
C compiler        gcc
Host C compiler   gcc
ARCH_CFLAGS       
make              make
install           install
host CPU          armv4l
host big endian   no
target list       i386-softmmu x86_64-softmmu arm-softmmu cris-softmmu m68k-softmmu mips-softmmu mipsel-softmmu mips64-softmmu mips64el-softmmu ppc-softmmu ppcemb-softmmu ppc64-softmmu sh4-softmmu sh4eb-softmmu sparc-softmmu i386-linux-user x86_64-linux-user alpha-linux-user arm-linux-user armeb-linux-user cris-linux-user m68k-linux-user mips-linux-user mipsel-linux-user ppc-linux-user ppc64-linux-user ppc64abi32-linux-user sh4-linux-user sh4eb-linux-user sparc-linux-user sparc64-linux-user sparc32plus-linux-user 
gprof enabled     no
sparse enabled    no
profiler          no
static build      no
-Werror enabled   no
SDL support       no
curses support    yes
mingw32 support   no
Audio drivers     oss
Extra audio cards ac97 es1370 sb16
Mixer emulation   no
VNC TLS support   yes
    TLS CFLAGS     
    TLS LIBS      -lgnutls  
kqemu support     no
brlapi support    no
Documentation     no
NPTL support      yes
vde support       no
AIO support       yes
Install blobs     yes
KVM support       no - (linux/kvm.h: No such file or directory, #error Invalid KVM version, #error Missing KVM capability KVM_CAP_USER_MEMORY, #error Missing KVM capability KVM_CAP_SET_TSS_ADDR, #error Missing KVM capability KVM_CAP_DESTROY_MEMORY_REGION_WORKS)
fdt support       no
The error log from compiling the libSDL test is: 
/tmp/qemu-conf--1746-.c:1:17: error: SDL.h: No such file or directory
/tmp/qemu-conf--1746-.c: In function 'main':
/tmp/qemu-conf--1746-.c:3: error: 'SDL_INIT_VIDEO' undeclared (first use in this function)
/tmp/qemu-conf--1746-.c:3: error: (Each undeclared identifier is reported only once
/tmp/qemu-conf--1746-.c:3: error: for each function it appears in.)
ERROR: QEMU requires SDL or Cocoa for graphical output
To build QEMU without graphical output configure with --disable-gfx-check
Note that this will disable all output from the virtual graphics card
except through VNC or curses.

==================================================================================================

debian-gta02:~/obj# ../qemu-0.11.1/configure
Install prefix    /usr/local
BIOS directory    /usr/local/share/qemu
binary directory  /usr/local/bin
Manual directory  /usr/local/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path       /root/qemu-0.11.1
C compiler        gcc
Host C compiler   gcc
ARCH_CFLAGS      
make              make
install           install
host CPU          armv4l
host big endian   no
target list       i386-softmmu x86_64-softmmu arm-softmmu cris-softmmu m68k-softmmu microblaze-softmmu mips-softmmu mipsel-softmmu mips64-softmmu mips64el-softmmu ppc-softmmu ppcemb-softmmu ppc64-softmmu sh4-softmmu sh4eb-softmmu sparc-softmmu sparc64-softmmu i386-linux-user x86_64-linux-user alpha-linux-user arm-linux-user armeb-linux-user cris-linux-user m68k-linux-user microblaze-linux-user mips-linux-user mipsel-linux-user ppc-linux-user ppc64-linux-user ppc64abi32-linux-user sh4-linux-user sh4eb-linux-user sparc-linux-user sparc64-linux-user sparc32plus-linux-user
tcg debug enabled no
gprof enabled     no
sparse enabled    no
strip binaries    yes
profiler          no
static build      no
-Werror enabled   no
SDL support       no
curses support    yes
curl support      yes
mingw32 support   no
Audio drivers     oss
Extra audio cards ac97 es1370 sb16
Mixer emulation   no
VNC TLS support   yes
    TLS CFLAGS    
    TLS LIBS      -lgnutls 
VNC SASL support  yes
    SASL CFLAGS   
    SASL LIBS      -lsasl2
kqemu support     no
xen support       no
brlapi support    no
Documentation     no
NPTL support      yes
vde support       no
AIO support       yes
IO thread         no
Install blobs     yes
-e KVM support       no - (linux/kvm.h: No such file or directory, #error Invalid KVM version, #error Missing KVM capability KVM_CAP_USER_MEMORY, #error Missing KVM capability KVM_CAP_SET_TSS_ADDR, #error Missing KVM capability KVM_CAP_DESTROY_MEMORY_REGION_WORKS)
    NOTE: To enable KVM support, update your kernel to 2.6.29+ or install recent kvm-kmod from http://sourceforge.net/projects/kvm.
fdt support       no
preadv support    no
debian-gta02:~/obj#



debian-gta02:~/obj# make
make: Warning: File `/root/qemu-0.11.1/rules.mak' has modification time 3.6e+07 s in the future
config-host.mak is out-of-date, running configure
Install prefix    /usr/local
BIOS directory    /usr/local/share/qemu
binary directory  /usr/local/bin
Manual directory  /usr/local/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path       /root/qemu-0.11.1
C compiler        gcc
Host C compiler   gcc
ARCH_CFLAGS      
make              make
install           install
host CPU          armv4l
host big endian   no
target list       i386-softmmu x86_64-softmmu arm-softmmu cris-softmmu m68k-softmmu microblaze-softmmu mips-softmmu mipsel-softmmu mips64-softmmu mips64el-softmmu ppc-softmmu ppcemb-softmmu ppc64-softmmu sh4-softmmu sh4eb-softmmu sparc-softmmu sparc64-softmmu i386-linux-user x86_64-linux-user alpha-linux-user arm-linux-user armeb-linux-user cris-linux-user m68k-linux-user microblaze-linux-user mips-linux-user mipsel-linux-user ppc-linux-user ppc64-linux-user ppc64abi32-linux-user sh4-linux-user sh4eb-linux-user sparc-linux-user sparc64-linux-user sparc32plus-linux-user
tcg debug enabled no
gprof enabled     no
sparse enabled    no
strip binaries    yes
profiler          no
static build      no
-Werror enabled   no
SDL support       no
curses support    yes
curl support      yes
mingw32 support   no
Audio drivers     oss
Extra audio cards ac97 es1370 sb16
Mixer emulation   no
VNC TLS support   yes
    TLS CFLAGS    
    TLS LIBS      -lgnutls 
VNC SASL support  yes
    SASL CFLAGS   
    SASL LIBS      -lsasl2
kqemu support     no
xen support       no
brlapi support    no
Documentation     no
NPTL support      yes
vde support       no
AIO support       yes
IO thread         no
Install blobs     yes
-e KVM support       no - (linux/kvm.h: No such file or directory, #error Invalid KVM version, #error Missing KVM capability KVM_CAP_USER_MEMORY, #error Missing KVM capability KVM_CAP_SET_TSS_ADDR, #error Missing KVM capability KVM_CAP_DESTROY_MEMORY_REGION_WORKS)
    NOTE: To enable KVM support, update your kernel to 2.6.29+ or install recent kvm-kmod from http://sourceforge.net/projects/kvm.
fdt support       no
preadv support    no
make: Warning: File `/root/qemu-0.11.1/rules.mak' has modification time 3.6e+07 s in the future
config-host.mak is out-of-date, running configure



make: Warning: File `/root/qemu-0.12.0-rc1/rules.mak' has modification time 3.6e+07 s in the future
  GEN   i386-softmmu/config-devices.mak
WARNING: i386-softmmu/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   x86_64-softmmu/config-devices.mak
WARNING: x86_64-softmmu/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   arm-softmmu/config-devices.mak
WARNING: arm-softmmu/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   cris-softmmu/config-devices.mak
WARNING: cris-softmmu/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   m68k-softmmu/config-devices.mak
WARNING: m68k-softmmu/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   microblaze-softmmu/config-devices.mak
WARNING: microblaze-softmmu/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   mips-softmmu/config-devices.mak
WARNING: mips-softmmu/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   mipsel-softmmu/config-devices.mak
WARNING: mipsel-softmmu/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   mips64-softmmu/config-devices.mak
WARNING: mips64-softmmu/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   mips64el-softmmu/config-devices.mak
WARNING: mips64el-softmmu/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   ppc-softmmu/config-devices.mak
WARNING: ppc-softmmu/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   ppcemb-softmmu/config-devices.mak
WARNING: ppcemb-softmmu/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   ppc64-softmmu/config-devices.mak
WARNING: ppc64-softmmu/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   sh4-softmmu/config-devices.mak
WARNING: sh4-softmmu/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   sh4eb-softmmu/config-devices.mak
WARNING: sh4eb-softmmu/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   sparc-softmmu/config-devices.mak
WARNING: sparc-softmmu/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   sparc64-softmmu/config-devices.mak
WARNING: sparc64-softmmu/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   i386-linux-user/config-devices.mak
WARNING: i386-linux-user/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   x86_64-linux-user/config-devices.mak
WARNING: x86_64-linux-user/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   alpha-linux-user/config-devices.mak
WARNING: alpha-linux-user/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   arm-linux-user/config-devices.mak
WARNING: arm-linux-user/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   armeb-linux-user/config-devices.mak
WARNING: armeb-linux-user/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   cris-linux-user/config-devices.mak
WARNING: cris-linux-user/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   m68k-linux-user/config-devices.mak
WARNING: m68k-linux-user/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   microblaze-linux-user/config-devices.mak
WARNING: microblaze-linux-user/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   mips-linux-user/config-devices.mak
WARNING: mips-linux-user/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   mipsel-linux-user/config-devices.mak
WARNING: mipsel-linux-user/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   ppc-linux-user/config-devices.mak
WARNING: ppc-linux-user/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   ppc64-linux-user/config-devices.mak
WARNING: ppc64-linux-user/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   ppc64abi32-linux-user/config-devices.mak
WARNING: ppc64abi32-linux-user/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   sh4-linux-user/config-devices.mak
WARNING: sh4-linux-user/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   sh4eb-linux-user/config-devices.mak
WARNING: sh4eb-linux-user/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   sparc-linux-user/config-devices.mak
WARNING: sparc-linux-user/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   sparc64-linux-user/config-devices.mak
WARNING: sparc64-linux-user/config-devices.mak out of date.
Run "make defconfig" to regenerate.
  GEN   sparc32plus-linux-user/config-devices.mak
WARNING: sparc32plus-linux-user/config-devices.mak out of date.
Run "make defconfig" to regenerate.
config-host.mak is out-of-date, running configure

------------------------------------------------------------------------------------------------------------------

  CC    i386-softmmu/hpet.o
  CC    i386-softmmu/device-hotplug.o
  CC    i386-softmmu/pci-hotplug.o
  CC    i386-softmmu/smbios.o
  CC    i386-softmmu/exec.o
  CC    i386-softmmu/translate-all.o
  CC    i386-softmmu/cpu-exec.o
  CC    i386-softmmu/translate.o
gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <file:///usr/share/doc/gcc-4.3/README.Bugs> for instructions.
make[1]: *** [translate.o] Error 1
make: *** [subdir-i386-softmmu] Error 2
debian-gta02:~/obj# vi /usr/share/doc/gcc-4.3/README.Bugs 
debian-gta02:~/obj#

----------------------------------------------------------------------------------------

  CC    slirp/udp.o
  CC    slirp/bootp.o
  CC    slirp/tftp.o
  AR    libqemu_common.a
  GEN   config-target.h
  GEN   i386-softmmu/qemu-options.h
  CC    i386-softmmu/vl.o
/tmp/ccIqaLbf.s: Assembler messages:
/tmp/ccIqaLbf.s:1846: Error: expected comma after "push"
/tmp/ccIqaLbf.s:1847: Error: expected comma after "mips32r2"
/tmp/ccIqaLbf.s:1848: Error: bad instruction `rdhwr r3,$3'
/tmp/ccIqaLbf.s:1849: Error: expected comma after "pop"
/tmp/ccIqaLbf.s:1856: Error: expected comma after "push"
/tmp/ccIqaLbf.s:1857: Error: expected comma after "mips32r2"
/tmp/ccIqaLbf.s:1858: Error: bad instruction `rdhwr r3,$2'
/tmp/ccIqaLbf.s:1859: Error: expected comma after "pop"
/tmp/ccIqaLbf.s:4171: Error: expected comma after "push"
/tmp/ccIqaLbf.s:4172: Error: expected comma after "mips32r2"
/tmp/ccIqaLbf.s:4173: Error: bad instruction `rdhwr ip,$2'
/tmp/ccIqaLbf.s:4174: Error: expected comma after "pop"
/tmp/ccIqaLbf.s:4214: Error: expected comma after "push"
/tmp/ccIqaLbf.s:4215: Error: expected comma after "mips32r2"
/tmp/ccIqaLbf.s:4216: Error: bad instruction `rdhwr r3,$3'
/tmp/ccIqaLbf.s:4217: Error: expected comma after "pop"
make[1]: *** [vl.o] Error 1
make: *** [subdir-i386-softmmu] Error 2
debian-gta02:~/obj#

------------------------------------------------------------------------------------------------
debian-gta02:~/obj# ../qemu-0.12.0-rc1/configure --target-list=arm-softmmu


  GEN   config-target.h
  GEN   arm-softmmu/qemu-options.h
  CC    arm-softmmu/vl.o
/tmp/ccKsiQU6.s: Assembler messages:
/tmp/ccKsiQU6.s:1846: Error: expected comma after "push"
/tmp/ccKsiQU6.s:1847: Error: expected comma after "mips32r2"
/tmp/ccKsiQU6.s:1848: Error: bad instruction `rdhwr r3,$3'
/tmp/ccKsiQU6.s:1849: Error: expected comma after "pop"
/tmp/ccKsiQU6.s:1856: Error: expected comma after "push"
/tmp/ccKsiQU6.s:1857: Error: expected comma after "mips32r2"
/tmp/ccKsiQU6.s:1858: Error: bad instruction `rdhwr r3,$2'
/tmp/ccKsiQU6.s:1859: Error: expected comma after "pop"
/tmp/ccKsiQU6.s:4254: Error: expected comma after "push"
/tmp/ccKsiQU6.s:4255: Error: expected comma after "mips32r2"
/tmp/ccKsiQU6.s:4256: Error: bad instruction `rdhwr ip,$2'
/tmp/ccKsiQU6.s:4257: Error: expected comma after "pop"
/tmp/ccKsiQU6.s:4297: Error: expected comma after "push"
/tmp/ccKsiQU6.s:4298: Error: expected comma after "mips32r2"
/tmp/ccKsiQU6.s:4299: Error: bad instruction `rdhwr r3,$3'
/tmp/ccKsiQU6.s:4300: Error: expected comma after "pop"
make[1]: *** [vl.o] Error 1
make: *** [subdir-arm-softmmu] Error 2
debian-gta02:~/obj# ls /tmp












LIST

'작업 > openmoko' 카테고리의 다른 글

openmoco 사용법  (0) 2009.12.22
qemu-0.12.0-rc1 test --target-list=arm-softmmu  (0) 2009.12.14
cross compile error  (0) 2009.12.14
out-of-date error  (0) 2009.12.14
Openmoko under QEMU  (0) 2009.12.10