[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [Bug 808737] Re: No option to load additional binary files
From: |
Anup Patel |
Subject: |
[Qemu-devel] [Bug 808737] Re: No option to load additional binary files from command line in QEMU |
Date: |
Mon, 11 Jul 2011 14:17:33 -0000 |
Just to add to my use case.
Currently, to load a test binary called "arm_test.bin.patched" i have
hacked QEMU in the following manner:
diff --git a/hw/arm_boot.c b/hw/arm_boot.c
index bfac982..e4873d4 100644
--- a/hw/arm_boot.c
+++ b/hw/arm_boot.c
@@ -280,6 +280,13 @@ void arm_load_kernel(CPUState *env, struct arm_boot_info
*info)
info->smp_loader_start);
}
info->initrd_size = initrd_size;
+ } else {
+ initrd_size = load_image_targphys("arm_test.bin", 0x100000, 0x1000000);
+ if (initrd_size < 0) {
+ fprintf(stderr, "qemu: could not load arm test code '%s'\n",
+ "arm_test.bin");
+ exit(1);
+ }
}
info->is_linux = is_linux;
--Anup
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/808737
Title:
No option to load additional binary files from command line in QEMU
Status in QEMU:
New
Bug description:
There is no command line option like -kerner, or -initrd to load an
arbitrary binary file to a RAM location when launching QEMU.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/808737/+subscriptions
[Prev in Thread] |
Current Thread |
[Next in Thread] |