From: Stefano Bonifazi <stefboombastic@email.it>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: Problems executing qemu-ppc
Date: Sat, 18 Dec 2010 21:29:57 +0100 [thread overview]
Message-ID: <iej5k6$6tr$1@dough.gmane.org> (raw)
In-Reply-To: <4D0CEF16.9010701@gmail.com>
Hi!
I am answering myself hoping that my solution may help somebody other
who has to face the same problem:
In QEMU home page, under downloads section you can find QEMU Linux user
mode tests: http://wiki.qemu.org/download/linux-user-test-0.3.tar.gz
Inside there are also examples for qemu-ppc
Anyway what one probably wants to obtain with qemu-ppc is not just
running the tests programs provided there. Instead probably you want to
test PPC programs you compile for your needs.
Unless you compile your programs with the same PPC Linux kernel whose
libs are contained in the downloaded archive, they won't run fine with
qemu-ppc using the "gnemul" libs provided in the downloaded archive.
I don't have any powerPC machine, so I use a QEMU virtual machine
(qemu-system-ppc) with installed Debian 5.07 PowerPC for compiling
PowerPC programs.
So what I did for making qemu-ppc run fine my PPC programs was simply to
copy all the following files:
/lib/ld*
/lib/lib*
from the Debian PPC linux (virtual machine) into
/usr/gnemul/qemu-ppc/lib/ of my real i386 Linux system (ubuntu 10.10, i386)
and /etc/ld* from the Debian PPC Linux into
/usr/gnemul/qemu-ppc/etc/ of my real i386 Linux system
After that running "qemu-ppc myproggy" in my real i386 Linux where
"proggy" is a simple program compiled into the Debian PPC linux VM works
perfectly :)
Feel free of asking for explanations, though I must confess I do not
master the topic.. still I managed to run it :)
Best Regards!
Stefano B.
next prev parent reply other threads:[~2010-12-19 13:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-18 17:27 [Qemu-devel] Problems executing qemu-ppc Stefano Bonifazi
2010-12-18 20:29 ` Stefano Bonifazi [this message]
2010-12-19 14:19 ` [Qemu-devel] " Mulyadi Santosa
2010-12-19 15:38 ` Alexander Graf
2010-12-19 20:22 ` Stefano Bonifazi
2010-12-20 2:36 ` Mulyadi Santosa
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='iej5k6$6tr$1@dough.gmane.org' \
--to=stefboombastic@email.it \
--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).