* Re: [Qemu-devel] qemu ELF Loader Kernel integration
2005-03-31 8:48 [Qemu-devel] qemu ELF Loader Kernel integration Philipp Gühring
@ 2005-03-31 8:41 ` Panagiotis Issaris
2005-03-31 8:57 ` Valtteri Rahkonen
2005-03-31 8:59 ` [Qemu-devel] " Lennert Buytenhek
2 siblings, 0 replies; 7+ messages in thread
From: Panagiotis Issaris @ 2005-03-31 8:41 UTC (permalink / raw)
To: qemu-devel
Hi,
Philipp Gühring schreef:
>Hi,
>
>Is it possible to integrate qemu(-ppc) into the Linux kernel, so that when a
>program tries to start a Linux-ELF-ppc executable, that qemu is being used to
>start it normally?
>
>It would be useful for embedded systems development for cross-compilation:
>The resulting binaries could be tried natively on the development system.
>If I would do it manually, I could start
>qemu-ppc binary
>But in some enviroments, the binary is started automatically by a third-party
>product, therefore being able to launch the binary directly would be helpful.
>
>
Yes, have a look at linux-2.6.11/Documentation/binfmt_misc.txt.
With friendly regards,
Takis
--
K.U.Leuven, Mechanical Eng., Mechatronics & Robotics Research Group
http://people.mech.kuleuven.ac.be/~pissaris/
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Qemu-devel] qemu ELF Loader Kernel integration
@ 2005-03-31 8:48 Philipp Gühring
2005-03-31 8:41 ` Panagiotis Issaris
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Philipp Gühring @ 2005-03-31 8:48 UTC (permalink / raw)
To: qemu-devel
Hi,
Is it possible to integrate qemu(-ppc) into the Linux kernel, so that when a
program tries to start a Linux-ELF-ppc executable, that qemu is being used to
start it normally?
It would be useful for embedded systems development for cross-compilation:
The resulting binaries could be tried natively on the development system.
If I would do it manually, I could start
qemu-ppc binary
But in some enviroments, the binary is started automatically by a third-party
product, therefore being able to launch the binary directly would be helpful.
Regards,
--
Philipp Gühring
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] qemu ELF Loader Kernel integration
2005-03-31 8:48 [Qemu-devel] qemu ELF Loader Kernel integration Philipp Gühring
2005-03-31 8:41 ` Panagiotis Issaris
@ 2005-03-31 8:57 ` Valtteri Rahkonen
2005-03-31 15:09 ` [Qemu-devel] " mirak
2005-03-31 8:59 ` [Qemu-devel] " Lennert Buytenhek
2 siblings, 1 reply; 7+ messages in thread
From: Valtteri Rahkonen @ 2005-03-31 8:57 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: TEXT/PLAIN, Size: 988 bytes --]
On Thu, 31 Mar 2005, PhilippGühring wrote:
> Hi,
>
> Is it possible to integrate qemu(-ppc) into the Linux kernel, so that when a
> program tries to start a Linux-ELF-ppc executable, that qemu is being used to
> start it normally?
Yes, see binfmt_misc (kernel support for misc binaries).
> It would be useful for embedded systems development for cross-compilation:
> The resulting binaries could be tried natively on the development system.
> If I would do it manually, I could start
> qemu-ppc binary
> But in some enviroments, the binary is started automatically by a third-party
> product, therefore being able to launch the binary directly would be helpful.
If you have a binfmt_misc compiled to your kernel and you have registered
qemu as a ppc interpreter then qemu will be started automatically when
executing the ppc binaries. You will need to register qemu as your
interprer in proc interface (/proc/sys/fs/binfmt_misc/register).
--
Valtteri Rahkonen
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] qemu ELF Loader Kernel integration
2005-03-31 8:48 [Qemu-devel] qemu ELF Loader Kernel integration Philipp Gühring
2005-03-31 8:41 ` Panagiotis Issaris
2005-03-31 8:57 ` Valtteri Rahkonen
@ 2005-03-31 8:59 ` Lennert Buytenhek
2 siblings, 0 replies; 7+ messages in thread
From: Lennert Buytenhek @ 2005-03-31 8:59 UTC (permalink / raw)
To: qemu-devel
On Thu, Mar 31, 2005 at 10:48:37AM +0200, Philipp Gühring wrote:
> Is it possible to integrate qemu(-ppc) into the Linux kernel, so that
> when a program tries to start a Linux-ELF-ppc executable, that qemu
> is being used to start it normally?
Something like that is already available, see qemu-binfmt-conf.sh
--L
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Qemu-devel] Re: qemu ELF Loader Kernel integration
2005-03-31 8:57 ` Valtteri Rahkonen
@ 2005-03-31 15:09 ` mirak
2005-04-01 1:32 ` Mark Williamson
0 siblings, 1 reply; 7+ messages in thread
From: mirak @ 2005-03-31 15:09 UTC (permalink / raw)
To: qemu-devel
Valtteri Rahkonen wrote:
> On Thu, 31 Mar 2005, PhilippGühring wrote:
>
>> Hi,
>>
>> Is it possible to integrate qemu(-ppc) into the Linux kernel, so that
>> when a
>> program tries to start a Linux-ELF-ppc executable, that qemu is being
>> used to
>> start it normally?
>
>
> Yes, see binfmt_misc (kernel support for misc binaries).
>
>> It would be useful for embedded systems development for
>> cross-compilation:
>> The resulting binaries could be tried natively on the development system.
>> If I would do it manually, I could start
>> qemu-ppc binary
>> But in some enviroments, the binary is started automatically by a
>> third-party
>> product, therefore being able to launch the binary directly would be
>> helpful.
>
>
> If you have a binfmt_misc compiled to your kernel and you have
> registered qemu as a ppc interpreter then qemu will be started
> automatically when executing the ppc binaries. You will need to register
> qemu as your interprer in proc interface
> (/proc/sys/fs/binfmt_misc/register).
Would this work for for exemple the flash player plugin or is it only
for executables ?
I am interested in doing that the other way around, for i386 code on
linux ppc.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] Re: qemu ELF Loader Kernel integration
2005-03-31 15:09 ` [Qemu-devel] " mirak
@ 2005-04-01 1:32 ` Mark Williamson
2005-04-05 14:19 ` David Woodhouse
0 siblings, 1 reply; 7+ messages in thread
From: Mark Williamson @ 2005-04-01 1:32 UTC (permalink / raw)
To: qemu-devel; +Cc: mirak
> > If you have a binfmt_misc compiled to your kernel and you have
> > registered qemu as a ppc interpreter then qemu will be started
> > automatically when executing the ppc binaries. You will need to register
> > qemu as your interprer in proc interface
> > (/proc/sys/fs/binfmt_misc/register).
>
> Would this work for for exemple the flash player plugin or is it only
> for executables ?
> I am interested in doing that the other way around, for i386 code on
> linux ppc.
Shared libraries (like Netscape plugins) are a different matter: they need to
interface intimately with the native code - you can't run part of an app. in
QEmu.
Last time this came up, somebody suggested that you might be OK with x86
Mozilla, with the x86 flash plugin, all under QEmu. I've not tried this,
YMMV ;-)
HTH,
Mark
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] Re: qemu ELF Loader Kernel integration
2005-04-01 1:32 ` Mark Williamson
@ 2005-04-05 14:19 ` David Woodhouse
0 siblings, 0 replies; 7+ messages in thread
From: David Woodhouse @ 2005-04-05 14:19 UTC (permalink / raw)
To: qemu-devel; +Cc: mirak
On Fri, 2005-04-01 at 02:32 +0100, Mark Williamson wrote:
> Shared libraries (like Netscape plugins) are a different matter: they need to
> interface intimately with the native code - you can't run part of an app. in
> QEmu.
>
> Last time this came up, somebody suggested that you might be OK with x86
> Mozilla, with the x86 flash plugin, all under QEmu. I've not tried this,
> YMMV ;-)
You probably don't actually need to use an i386 Mozilla. Mozilla can use
external _programs_ displaying within its window; I use mozplugger with
the i386 acroread on PPC, for example. You could just run the flash
player _itself_ in a separate process, with a wrapper of your own to
make it think it's running in an i386 Mozilla.
Or just use swfdec.
--
dwmw2
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-04-05 13:55 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-31 8:48 [Qemu-devel] qemu ELF Loader Kernel integration Philipp Gühring
2005-03-31 8:41 ` Panagiotis Issaris
2005-03-31 8:57 ` Valtteri Rahkonen
2005-03-31 15:09 ` [Qemu-devel] " mirak
2005-04-01 1:32 ` Mark Williamson
2005-04-05 14:19 ` David Woodhouse
2005-03-31 8:59 ` [Qemu-devel] " Lennert Buytenhek
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).