From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=44550 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUJGA-0001iw-KZ for qemu-devel@nongnu.org; Sun, 19 Dec 2010 08:25:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PUJG9-0002FB-M0 for qemu-devel@nongnu.org; Sun, 19 Dec 2010 08:25:10 -0500 Received: from lo.gmane.org ([80.91.229.12]:50914) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PUJG9-0002E9-Fo for qemu-devel@nongnu.org; Sun, 19 Dec 2010 08:25:09 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PUJG4-0004fZ-Vr for qemu-devel@nongnu.org; Sun, 19 Dec 2010 14:25:04 +0100 Received: from 93-63-215-23.ip29.fastwebnet.it ([93.63.215.23]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 19 Dec 2010 14:25:04 +0100 Received: from stefboombastic by 93-63-215-23.ip29.fastwebnet.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 19 Dec 2010 14:25:04 +0100 From: Stefano Bonifazi Date: Sat, 18 Dec 2010 21:29:57 +0100 Message-ID: References: <4D0CEF16.9010701@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit In-Reply-To: <4D0CEF16.9010701@gmail.com> Subject: [Qemu-devel] Re: Problems executing qemu-ppc List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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.