qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Andreas Färber" <afaerber@suse.de>
To: "Peter A. G. Crosthwaite" <peter.crosthwaite@petalogix.com>
Cc: Peter Maydell <peter.maydell@linaro.org>,
	monstr@monstr.eu, edgar.iglesias@petalogix.com,
	qemu-devel@nongnu.org, duyl@xilinx.com, linnj@xilinx.com,
	john.williams@petalogix.com
Subject: Re: [Qemu-devel] [RFC PATCH 5/7] vl.c: added -kerndtb option
Date: Tue, 24 Jan 2012 08:22:49 +0100	[thread overview]
Message-ID: <4F1E5C49.4030604@suse.de> (raw)
In-Reply-To: <75020d27a76d9b884a9c40d8c6ec81b525ab96a9.1327302677.git.peter.crosthwaite@petalogix.com>

Am 23.01.2012 08:20, schrieb Peter A. G. Crosthwaite:
> 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 <peter.crosthwaite@petalogix.com>
> ---
>  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)

We should probably call it -kernel-dtb. If there's some strncmp() from
-kernel interfering, we should fix that instead.

I don't see this variable being used anywhere in this series though.
Would it have been in the missing zynq machine of 7/7?

Andreas

> +
>  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;

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg

  reply	other threads:[~2012-01-24  7:25 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-23  7:20 [Qemu-devel] [RFC PATCH 0/7] Zynq-7000 EPP platform model Peter A. G. Crosthwaite
     [not found] ` <cover.1327302677.git.peter.crosthwaite@petalogix.com>
2012-01-23  7:20   ` [Qemu-devel] [RFC PATCH 1/7] cadence_uart: first revision Peter A. G. Crosthwaite
2012-01-24  2:02     ` John Linn
2012-01-24  8:07     ` Andreas Färber
2012-01-23  7:20   ` [Qemu-devel] [RFC PATCH 2/7] cadence ttc: " Peter A. G. Crosthwaite
2012-01-24  2:03     ` John Linn
2012-01-23  7:20   ` [Qemu-devel] [RFC PATCH 3/7] cadence_wdt: " Peter A. G. Crosthwaite
2012-01-24  2:03     ` John Linn
2012-01-23  7:20   ` [Qemu-devel] [RFC PATCH 4/7] cadence_gem: " Peter A. G. Crosthwaite
2012-01-24  2:05     ` John Linn
2012-01-23  7:20   ` [Qemu-devel] [RFC PATCH 5/7] vl.c: added -kerndtb option Peter A. G. Crosthwaite
2012-01-24  7:22     ` Andreas Färber [this message]
2012-01-24  7:35       ` Peter Crosthwaite
2012-01-24  7:50         ` Andreas Färber
2012-01-24 18:23       ` Stefan Weil
2012-01-26 19:34         ` Scott Wood
2012-01-26 21:27           ` Eric Blake
2012-01-27  8:25             ` Markus Armbruster
2012-01-29  6:51               ` Peter Crosthwaite
2012-01-30  0:28                 ` John Williams
2012-01-30  0:33                   ` John Williams
2012-01-30  2:11                   ` Anthony Liguori
2012-01-30  2:19                     ` John Williams
2012-01-30  2:28                       ` Anthony Liguori
2012-01-30  2:41                         ` John Williams
2012-01-30  2:48                           ` Anthony Liguori
2012-02-01  2:06                             ` John Williams
2012-01-30  2:10         ` Anthony Liguori
2012-01-26 19:40     ` Peter Maydell
2012-01-23  7:20   ` [Qemu-devel] [RFC PATCH 6/7] arm_boot: added initrd address override Peter A. G. Crosthwaite
2012-01-23  7:20   ` [Qemu-devel] [RFC PATCH 7/7] xilinx_zynq: machine model first revision Peter A. G. Crosthwaite
2012-01-23  8:00     ` Michal Simek
2012-01-23  8:22       ` Peter Crosthwaite

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F1E5C49.4030604@suse.de \
    --to=afaerber@suse.de \
    --cc=duyl@xilinx.com \
    --cc=edgar.iglesias@petalogix.com \
    --cc=john.williams@petalogix.com \
    --cc=linnj@xilinx.com \
    --cc=monstr@monstr.eu \
    --cc=peter.crosthwaite@petalogix.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).