qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jocelyn Mayer <jma@netgem.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] linux-user target
Date: Tue, 10 Apr 2007 20:11:52 +0200	[thread overview]
Message-ID: <1176228712.22569.27.camel@jma4.dev.netgem.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0704100928040.20383@trantor.stuart.netsweng.com>

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.

jocelyn@rapid: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
jocelyn@rapid: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
jocelyn@rapid: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 <jma@netgem.com>

  reply	other threads:[~2007-04-10 18:16 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-10 13:34 [Qemu-devel] (no subject) Stuart Anderson
2007-04-10 18:11 ` Jocelyn Mayer [this message]
2007-04-10 18:27   ` [Qemu-devel] linux-user target Stuart Anderson
2007-04-17 20:55   ` Stuart Anderson
2007-04-18 17:31     ` Stuart Anderson
2007-04-18 18:43       ` J. Mayer
2007-04-18 19:30         ` Stuart Anderson
2007-04-18 19:52           ` Igor Kovalenko
2007-04-18 20:15             ` Stuart Anderson
2007-04-18 20:32               ` Igor Kovalenko
2007-04-18 20:42                 ` Stuart Anderson
2007-04-19  8:32                   ` J. Mayer
2007-04-19 17:04                     ` Stuart Anderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1176228712.22569.27.camel@jma4.dev.netgem.com \
    --to=jma@netgem.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).