From patchwork Mon Jan 23 07:20:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peter A. G. Crosthwaite" X-Patchwork-Id: 137287 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 2AD6DB6F71 for ; Mon, 23 Jan 2012 19:32:43 +1100 (EST) Received: from localhost ([::1]:59281 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpFKQ-0002Rx-QT for incoming@patchwork.ozlabs.org; Mon, 23 Jan 2012 03:32:38 -0500 Received: from eggs.gnu.org ([140.186.70.92]:45049) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpECC-0000zR-Vc for qemu-devel@nongnu.org; Mon, 23 Jan 2012 02:20:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RpECB-0004WZ-LN for qemu-devel@nongnu.org; Mon, 23 Jan 2012 02:20:04 -0500 Received: from mail-gy0-f173.google.com ([209.85.160.173]:47766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpECB-0004WD-Fl for qemu-devel@nongnu.org; Mon, 23 Jan 2012 02:20:03 -0500 Received: by ghbg20 with SMTP id g20so1365490ghb.4 for ; Sun, 22 Jan 2012 23:20:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.236.181.136 with SMTP id l8mr8865801yhm.103.1327303203059; Sun, 22 Jan 2012 23:20:03 -0800 (PST) Received: from localhost ([124.148.20.9]) by mx.google.com with ESMTPS id y14sm32590299anm.10.2012.01.22.23.19.58 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 22 Jan 2012 23:20:02 -0800 (PST) From: "Peter A. G. Crosthwaite" To: qemu-devel@nongnu.org, monstr@monstr.eu, john.williams@petalogix.com, peter.crosthwaite@petalogix.com, edgar.iglesias@petalogix.com, duyl@xilinx.com, linnj@xilinx.com Date: Mon, 23 Jan 2012 17:20:32 +1000 Message-Id: <75020d27a76d9b884a9c40d8c6ec81b525ab96a9.1327302677.git.peter.crosthwaite@petalogix.com> X-Mailer: git-send-email 1.7.3.2 In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQnfO+Vs55GEO5e5KvPfo1aY7NY1bBc+flyynJXePq0JCqguXXCmTVV/+tz0G1m/bddD16Vc X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.173 X-Mailman-Approved-At: Mon, 23 Jan 2012 03:32:22 -0500 Subject: [Qemu-devel] [RFC PATCH 5/7] vl.c: added -kerndtb option X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Added linux specific kernel dtb option. This option can be specified to inject an argument device tree blob (dtb) into linux. Signed-off-by: Peter A. G. Crosthwaite --- qemu-options.hx | 3 +++ vl.c | 4 ++++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index 6295cde..43cddff 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -1931,6 +1931,9 @@ ETEXI DEF("kernel", HAS_ARG, QEMU_OPTION_kernel, \ "-kernel bzImage use 'bzImage' as kernel image\n", QEMU_ARCH_ALL) +DEF("kern-dtb", HAS_ARG, QEMU_OPTION_kerndtb, \ + "-kern-dtb dtb device tree blob passed to kernel boot\n", QEMU_ARCH_ALL) + STEXI @item -kernel @var{bzImage} @findex -kernel diff --git a/vl.c b/vl.c index d5868b1..75246f8 100644 --- a/vl.c +++ b/vl.c @@ -233,6 +233,7 @@ int boot_menu; uint8_t *boot_splash_filedata; int boot_splash_filedata_size; uint8_t qemu_extra_params_fw[2]; +const char *qemu_kerndtb = NULL; typedef struct FWBootEntry FWBootEntry; @@ -2437,6 +2438,9 @@ int main(int argc, char **argv, char **envp) case QEMU_OPTION_kernel: kernel_filename = optarg; break; + case QEMU_OPTION_kerndtb: + qemu_kerndtb = optarg; + break; case QEMU_OPTION_append: kernel_cmdline = optarg; break;