Received: from eggs.gnu.org ([140.186.70.92]:57528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgHQm-0001Cq-5D for qemu-devel@nongnu.org; Mon, 11 Jul 2011 10:25:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QgHQj-0003ZW-Cc for qemu-devel@nongnu.org; Mon, 11 Jul 2011 10:25:51 -0400 Received: from adelie.canonical.com ([91.189.90.139]:59110) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgHQj-0003Z4-2G for qemu-devel@nongnu.org; Mon, 11 Jul 2011 10:25:49 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1QgHQh-0005UD-3c for ; Mon, 11 Jul 2011 14:25:47 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id F36162EA8E1 for ; Mon, 11 Jul 2011 14:25:46 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Mon, 11 Jul 2011 14:17:33 -0000 From: Anup Patel <808737@bugs.launchpad.net> Sender: bounces@canonical.com References: <20110711114151.19872.43356.malonedeb@wampee.canonical.com> Message-Id: <20110711141733.14801.80552.malone@soybean.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 808737] Re: No option to load additional binary files from command line in QEMU Reply-To: Bug 808737 <808737@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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_in= fo *info) info->smp_loader_start); } info->initrd_size =3D initrd_size; + } else { + initrd_size =3D load_image_targphys("arm_test.bin", 0x100000, 0x10= 00000); + if (initrd_size < 0) { + fprintf(stderr, "qemu: could not load arm test code '%s'\n", + "arm_test.bin"); + exit(1); + } } info->is_linux =3D 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