[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] linux-user target
From: |
Jocelyn Mayer |
Subject: |
Re: [Qemu-devel] linux-user target |
Date: |
Tue, 10 Apr 2007 20:11:52 +0200 |
On Tue, 2007-04-10 at 09:34 -0400, Stuart Anderson wrote:
> I'm trying to test my fixes to the linux-user emulation on some additonal
> architectures now, but I'm running into problems. I can debug these some,
> but any suggestions or guidence, especially from people more familiar
> with the architecture core code, would be appreciated.
[...]
> PPC:
>
> I am unable to get any executable to run.
>
>
> projects:~/upstream/qemu# ./ppc-linux-user/qemu-ppc -L /mirror0/chroots/ppc/
> /mirror0/chroots/ppc/bin/bash
> init_ppc_proc: PVR 00080000 mask ffffffff => 00080000
> Segmentation fault
> projects:~/upstream/qemu#
>
Just checked, on an amd64 host with a random powerpc bash version I got
on my hard disk drive:
./ppc-linux-user/qemu-ppc
-L /mnt/local/hdc/part3/PPC/linux/archives
/mnt/local/hdc/part3/PPC/linux/archives/bin/bash --version
init_ppc_proc: PVR 00080000 mask ffffffff => 00080000
GNU bash, version 2.05a.0(1)-release (powerpc-unknown-linux-gnu)
Copyright 2001 Free Software Foundation, Inc.
./ppc-linux-user/qemu-ppc
-L /mnt/local/hdc/part3/PPC/linux/archives
/mnt/local/hdc/part3/PPC/linux/archives/bin/bash.static --version
init_ppc_proc: PVR 00080000 mask ffffffff => 00080000
GNU bash, version 2.05b.0(1)-release (powerpc-unknown-linux-gnu)
Copyright (C) 2002 Free Software Foundation, Inc.
I also tried to really launch the shell and use it and it worked.
address@hidden:qemu-merge\> ps ww
[...]
29026 pts/57 Ss+ 0:00 bash -rcfile .bashrc
29269 pts/33 S 0:00 ./ppc-linux-user/qemu-ppc
-L /mnt/local/hdc/part3/PPC/linux/archives
/mnt/local/hdc/part3/PPC/linux/archives/bin/bash
29930 pts/33 R+ 0:00 ps ww
address@hidden:qemu-merge\> ps
PID TTY TIME CMD
28941 pts/33 00:00:00 bash
29269 pts/33 00:00:00 qemu-ppc
30017 pts/33 00:00:00 ps
address@hidden:qemu-merge\>
... I have to admit there are some strange behaviors with some
features...
But I think recent builds using glibc with TLS/NPTL would not run.
Here are informations about the glibc used by this bash version:
./ppc-linux-user/qemu-ppc
-L /mnt/local/hdc/part3/PPC/linux/archives
/mnt/local/hdc/part3/PPC/linux/archives/usr/bin/objdump -f
/mnt/local/hdc/part3/PPC/linux/archives/lib/libc-2.2.5.so
init_ppc_proc: PVR 00080000 mask ffffffff => 00080000
/mnt/local/hdc/part3/PPC/linux/archives/lib/libc-2.2.5.so: file
format elf32-powerpc
architecture: powerpc:common, flags 0x00000150:
HAS_SYMS, DYNAMIC, D_PAGED
start address 0x00025db4
file /mnt/local/hdc/part3/PPC/linux/archives/bin/bash
/mnt/local/hdc/part3/PPC/linux/archives/bin/bash: ELF 32-bit MSB
executable, PowerPC or cisco 4500, version 1 (SYSV), for GNU/Linux
2.2.0, dynamically linked (uses shared libs), stripped
If this can help.....
--
Jocelyn Mayer <address@hidden>
- [Qemu-devel] (no subject), Stuart Anderson, 2007/04/10
- Re: [Qemu-devel] linux-user target,
Jocelyn Mayer <=
- Re: [Qemu-devel] linux-user target, Stuart Anderson, 2007/04/10
- Re: [Qemu-devel] linux-user target, Stuart Anderson, 2007/04/17
- Re: [Qemu-devel] linux-user target, Stuart Anderson, 2007/04/18
- Re: [Qemu-devel] linux-user target, J. Mayer, 2007/04/18
- Re: [Qemu-devel] linux-user target, Stuart Anderson, 2007/04/18
- Re: [Qemu-devel] linux-user target, Igor Kovalenko, 2007/04/18
- Re: [Qemu-devel] linux-user target, Stuart Anderson, 2007/04/18
- Re: [Qemu-devel] linux-user target, Igor Kovalenko, 2007/04/18
- Re: [Qemu-devel] linux-user target, Stuart Anderson, 2007/04/18
- Re: [Qemu-devel] linux-user target, J. Mayer, 2007/04/19