Trying to emulate "ls" -> qemu: Unsupported syscall: 219
I am having problems running a toy example using qemu. Here's my setup:
Linux argon 2.6.11.4-21.9-default #1 Fri Aug 19 11:58:59 UTC 2005 i686 i686 i386 GNU/Linux
./configure --disable-gfx-check --prefix=../tmp --target-list=i386-user,i386-softmmu
argon:~/tmp # ./qemu-i386 /bin/ls
qemu: Unsupported syscall: 219
qemu: Unsupported syscall: 219
qemu: Unsupported syscall: 219
qemu: Unsupported syscall: 219
qemu: Unsupported syscall: 219
qemu: Unsupported syscall: 219
qemu: Unsupported syscall: 258
qemu: Unsupported syscall: 240 qemu qemu-i386 qemu-img
argon:~/tmp # ./qemu-i386 -L / /bin/ls
qemu: Unsupported syscall: 219
qemu: Unsupported syscall: 219
qemu: Unsupported syscall: 219
qemu: Unsupported syscall: 219
qemu: Unsupported syscall: 219
qemu: Unsupported syscall: 219
qemu: Unsupported syscall: 258
qemu: Unsupported syscall: 240 qemu qemu-i386 qemu-img
argon:~/projects/stem/bin # lsmod | grep kqemu
kqemu 40968 0
any ideas?
-Marc
Quoted 10 lines
argon:~/tmp # ./qemu-i386
/bin/ls
qemu: Unsupported syscall: 219
qemu: Unsupported syscall: 219
qemu: Unsupported syscall: 219
qemu: Unsupported syscall: 219
qemu: Unsupported syscall: 219
qemu: Unsupported syscall: 219
qemu: Unsupported syscall: 258
qemu: Unsupported syscall: 240 qemu qemu-i386 qemu-img
qemu doesn't support NPTL.
Quoted 2 lines
argon:~/projects/stem/bin # lsmod | grep kqemu
kqemu 40968 0
Not relevant. kqemu is only used for full system emulation.
Paul
Quoted 11 lines
Quoted 10 lines
argon:~/tmp # ./qemu-i386
/bin/ls
qemu: Unsupported syscall: 219
qemu: Unsupported syscall: 219
qemu: Unsupported syscall: 219
qemu: Unsupported syscall: 219
qemu: Unsupported syscall: 219
qemu: Unsupported syscall: 219
qemu: Unsupported syscall: 258
qemu: Unsupported syscall: 240 qemu qemu-i386 qemu-img
Quoted 2 lines
qemu doesn't support NPTL.
ah, so what are my options here? Can I compile qemu with an explicit -lpthread flag, or will I have to recomplile glibc? It seems that having two glibc libraries on my system is rather messy...
Thanks,
-Marc
hello
Quoted 3 lines
ah, so what are my options here? Can I compile qemu with an explicit -lpthread flag, or will I have to recomplile glibc? It seems that having two glibc libraries on my system is rather messy...
try to use LD_ASSUME_KERNEL, so your command becomes LD_ASSUME_KERNEL=2.4.9 ./qemu-i386 /bin/ls
or you can rename the /lib/tls or /lib/i686 into something else e.g. /lib/tls-
Ler me know if this works...
regards
Mulyadi