* [Qemu-devel] Problems executing qemu-ppc
@ 2010-12-18 17:27 Stefano Bonifazi
2010-12-18 20:29 ` [Qemu-devel] " Stefano Bonifazi
0 siblings, 1 reply; 6+ messages in thread
From: Stefano Bonifazi @ 2010-12-18 17:27 UTC (permalink / raw)
To: qemu-devel
Hi all!
May someone help me running qemu-ppc?
Executing:
> qemu-ppc hello
with hello a PPC binary, I get:
> /lib/ld.so.1: No such file or directory
executing qemu-ppc without argument I get this:
> [...]
> -L path set the elf interpreter prefix
> (default=/usr/gnemul/qemu-ppc)
> [...]
but /usr/gnemul/qemu-ppc does not exist on my system. I don't know what
an elf interpreter prefix is :[
my uname:
> Linux Stefano-PC 2.6.35-23-generic-pae #41-Ubuntu SMP Wed Nov 24
> 10:35:46 UTC 2010 i686 GNU/Linux
Thank you in advance!
Stefano B.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Qemu-devel] Re: Problems executing qemu-ppc
2010-12-18 17:27 [Qemu-devel] Problems executing qemu-ppc Stefano Bonifazi
@ 2010-12-18 20:29 ` Stefano Bonifazi
2010-12-19 14:19 ` Mulyadi Santosa
0 siblings, 1 reply; 6+ messages in thread
From: Stefano Bonifazi @ 2010-12-18 20:29 UTC (permalink / raw)
To: qemu-devel
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] Re: Problems executing qemu-ppc
2010-12-18 20:29 ` [Qemu-devel] " Stefano Bonifazi
@ 2010-12-19 14:19 ` Mulyadi Santosa
2010-12-19 15:38 ` Alexander Graf
0 siblings, 1 reply; 6+ messages in thread
From: Mulyadi Santosa @ 2010-12-19 14:19 UTC (permalink / raw)
To: Stefano Bonifazi; +Cc: qemu-devel
Hi :)
On Sun, Dec 19, 2010 at 03:29, Stefano Bonifazi <stefboombastic@email.it> wrote:
> Hi!
> I am answering myself hoping that my solution may help somebody other who
> has to face the same problem:
I am not PPC user by myself, but I think it is a good candidate to be
written in either Qemu web forum or Qemu wiki (do we have one?) :)
Just 2 cents idea :)
--
regards,
Mulyadi Santosa
Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] Re: Problems executing qemu-ppc
2010-12-19 14:19 ` Mulyadi Santosa
@ 2010-12-19 15:38 ` Alexander Graf
2010-12-19 20:22 ` Stefano Bonifazi
0 siblings, 1 reply; 6+ messages in thread
From: Alexander Graf @ 2010-12-19 15:38 UTC (permalink / raw)
To: Mulyadi Santosa; +Cc: qemu-devel, Stefano Bonifazi
On 19.12.2010, at 15:19, Mulyadi Santosa wrote:
> Hi :)
>
> On Sun, Dec 19, 2010 at 03:29, Stefano Bonifazi <stefboombastic@email.it> wrote:
>> Hi!
>> I am answering myself hoping that my solution may help somebody other who
>> has to face the same problem:
>
> I am not PPC user by myself, but I think it is a good candidate to be
> written in either Qemu web forum or Qemu wiki (do we have one?) :)
www.qemu.org is a wiki :). And yes, please, that sounds like it really should be on there. As a hint: gcc -static would have also worked.
Alex
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Qemu-devel] Re: Problems executing qemu-ppc
2010-12-19 15:38 ` Alexander Graf
@ 2010-12-19 20:22 ` Stefano Bonifazi
2010-12-20 2:36 ` Mulyadi Santosa
0 siblings, 1 reply; 6+ messages in thread
From: Stefano Bonifazi @ 2010-12-19 20:22 UTC (permalink / raw)
To: qemu-devel
On 12/19/2010 04:38 PM, Alexander Graf wrote:
>
> On 19.12.2010, at 15:19, Mulyadi Santosa wrote:
>
>> Hi :)
>>
>> On Sun, Dec 19, 2010 at 03:29, Stefano Bonifazi<stefboombastic@email.it> wrote:
>>> Hi!
>>> I am answering myself hoping that my solution may help somebody other who
>>> has to face the same problem:
>>
>> I am not PPC user by myself, but I think it is a good candidate to be
>> written in either Qemu web forum or Qemu wiki (do we have one?) :)
>
> www.qemu.org is a wiki :). And yes, please, that sounds like it really should be on there. As a hint: gcc -static would have also worked.
>
>
> Alex
>
>
>
As part of my project I am writing a good QEMU technical documentation,
.. I want to insert also this in it someway.. Then if my teacher's
policy allows it I'll make my documentation public..I am experiencing
big difficulties due to the lack of good updated documentation.. it is a
huge C project, and C is not as readable as OO projects.. moreover one
needs so many notions about emulators and computer architectures that
can't be taught at university .. maybe some document written by who had
to learn everything for understanding QEMU can be useful for novices
more than one written by those who master all those topics for whom
everything is easy and not worth to be said ;)
Best Regards!
Stefano B.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] Re: Problems executing qemu-ppc
2010-12-19 20:22 ` Stefano Bonifazi
@ 2010-12-20 2:36 ` Mulyadi Santosa
0 siblings, 0 replies; 6+ messages in thread
From: Mulyadi Santosa @ 2010-12-20 2:36 UTC (permalink / raw)
To: Stefano Bonifazi; +Cc: qemu-devel
Hi Stefano :)
On Mon, Dec 20, 2010 at 03:22, Stefano Bonifazi <stefboombastic@email.it> wrote:
> As part of my project I am writing a good QEMU technical documentation, .. I
> want to insert also this in it someway.. Then if my teacher's policy allows
> it I'll make my documentation public..I am experiencing big difficulties due
> to the lack of good updated documentation.. it is a huge C project, and C is
> not as readable as OO projects.. moreover one needs so many notions about
> emulators and computer architectures that can't be taught at university ..
> maybe some document written by who had to learn everything for understanding
> QEMU can be useful for novices more than one written by those who master all
> those topics for whom everything is easy and not worth to be said ;)
The best I could say for now is: try to strip out all the
"confidential" information in your document and try to label it as
Creative Common licensed document, or any other kind of open license.
After that, by submitting it to qemu wiki or forum, you can let other
improve it...thus you're not alone :)
--
regards,
Mulyadi Santosa
Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-12-20 2:37 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-18 17:27 [Qemu-devel] Problems executing qemu-ppc Stefano Bonifazi
2010-12-18 20:29 ` [Qemu-devel] " Stefano Bonifazi
2010-12-19 14:19 ` Mulyadi Santosa
2010-12-19 15:38 ` Alexander Graf
2010-12-19 20:22 ` Stefano Bonifazi
2010-12-20 2:36 ` Mulyadi Santosa
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).