qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: system emulation booting elf files [was: Re: [Qemu-devel] Open Hack'


From: Karel Gardas
Subject: Re: system emulation booting elf files [was: Re: [Qemu-devel] Open Hack'Ware question]
Date: Sun, 17 Jul 2005 21:48:06 +0200 (CEST)

On Sat, 16 Jul 2005, Natalia Portillo wrote:

Use the -kernel command line option to supply the ELF executable to
boot.

In OHW there is a known problem that surely will prevent doing that
in QEMU System PPC, but in QEMU System x86 it should work without
problem.

Are you sure it should really work? The problem is that -kernel option requires -hda option to be supplied, if I understand sources well, it uses it to load disc partition table into memory. Also the kernel binary supplied is "normal" zImage, which means it contains x86 boot sector, which makes me curious if the boot sector is really used or not.

Anyway, if I try this:

silence:~/cvs/rtems/examples/hello_world_c/o-optimize$ qemu -kernel ./hello.exe 
-hda /images/rtems.img

where rtems.img is the hardisk image where I store some rtems examples, then Qemu only prints usual messages and ``Booting from Hard Disc...'' and that's all, nothing more and just consume 100% CPU.

Thanks,
Karel


El 15/07/2005, a las 21:17, Karel Gardas escribió:

On Thu, 14 Jul 2005, Brian Wheeler wrote:


On Thu, 2005-07-14 at 17:52 +0200, Karel Gardas wrote:

On Thu, 14 Jul 2005, Brian Wheeler wrote:


All of the websites that are referred to in the docs and source are
missing.  Is there another place to get it?  I'm tinkering with
the idea
to try to boot aix on qemu.


The same here! But for RTEMS and Mesquite cPCI (MCP750) BSP.

Any idea how to get such code booting? IMHO the best would be to use
Qemu's -kernel option, but I don't know what are precise
requirement for
it and for image booting in this scenario.


I've thought about it a little bit, but since I'm not system
programmer, I'm a bit lost. RTEMS executables (whole system image)
are ordinary elf files:

silence:~/cvs/rtems/examples/hello_world_c/o-optimize$ file hello.exe
hello.exe: ELF 32-bit LSB executable, Intel 80386, version 1
(SYSV), statically linked, stripped
silence:~/cvs/rtems/examples/hello_world_c/o-optimize$

(i.e. hello.exe is whole RTEMS kernel and user app built together)

for example GRUB is able to boot such file and when booting it
prints something like:
[Multiboot-elf, <0x100000; 0x4e538:0xbe28  (and probably something
other
                                           which I've not caught
since
                                           RTEMS booted quickly)

So what's IMHO needed is just elf load such file and start it.
Perhaps here is possible to use em86/qemu's elfload functionality
and instead of linux-user more hook this into the system mode.

Any idea how to proceed? (or where exactly to start?)

Thanks!
Karel
--
Karel Gardas                  address@hidden
ObjectSecurity Ltd.           http://www.objectsecurity.com


_______________________________________________
Qemu-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/qemu-devel





_______________________________________________
Qemu-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/qemu-devel
------------ Output from gpg ------------
gpg: Signature made Sat 16 Jul 2005 02:57:02 AM CEST using DSA key ID BF3BA6E4
gpg: Can't check signature: public key not found


--
Karel Gardas                  address@hidden
ObjectSecurity Ltd.           http://www.objectsecurity.com

reply via email to

[Prev in Thread] Current Thread [Next in Thread]