qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [Bug 808737] [NEW] No option to load additional binary


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [Bug 808737] [NEW] No option to load additional binary files from command line in QEMU
Date: Mon, 11 Jul 2011 14:25:00 +0100

On Mon, Jul 11, 2011 at 12:41 PM, Anup Patel <address@hidden> wrote:
> Public bug reported:
>
> There is no command line option like -kerner, or -initrd to load an
> arbitrary binary file to a RAM location when launching QEMU.

It depends on your target (e.g. qemu-system-x86_64) but you can load
your own code as a bzImage or multiboot binary.  Both formats are
documented:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob_plain;f=Documentation/x86/boot.txt
http://www.gnu.org/software/grub/manual/multiboot/multiboot.html

The problem with loading binary code is that you quickly want some
options (is this real mode or protected mode code?, what address to
load at?, are there any modules/initrd extras elsewhere in memory?).
That's basically what multiboot is for.

Does multiboot do what you need?  If not, please be more specific and
describe your target machine and use case.

Stefan



reply via email to

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