From: Anthony Liguori <anthony@codemonkey.ws>
To: Stefan Weil <sw@weilnetz.de>
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
monstr@monstr.eu, duyl@xilinx.com, qemu-devel@nongnu.org,
"Peter A. G. Crosthwaite" <peter.crosthwaite@petalogix.com>,
edgar.iglesias@petalogix.com, linnj@xilinx.com,
"Andreas Färber" <afaerber@suse.de>,
john.williams@petalogix.com
Subject: Re: [Qemu-devel] [RFC PATCH 5/7] vl.c: added -kerndtb option
Date: Sun, 29 Jan 2012 20:10:47 -0600 [thread overview]
Message-ID: <4F25FC27.1090807@codemonkey.ws> (raw)
In-Reply-To: <4F1EF705.30900@weilnetz.de>
On 01/24/2012 12:23 PM, Stefan Weil wrote:
> Am 24.01.2012 08:22, schrieb Andreas Färber:
>> 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
>
> I'd prefer a different solution. As far as I have understood,
> the dtb is only useful with a kernel, so it could be handled
> as an optional attribute to the -kernel parameter:
>
> -kernel IMAGE[,dtb=DTB]
If it looks like a device, acts like a device, and smells like a device...
The best thing to do here is to make an arm-kernel-loader device that hangs off
of sysbus and takes four string properties.
I was going to do this shortly for PC anyway.
BTW, for unknown command line options, we should probably assume they are
-device and treat accordingly. So -arm-kernel-loader
dtb=DTB,kernel=/path/to/vmlinux would Just Work.
Regards,
Anthony Liguori
>
> Of course the same applies to -append, but that's a different issue.
>
> Regards,
> Stefan
>
>
next prev parent reply other threads:[~2012-01-30 2:10 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
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 [this message]
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=4F25FC27.1090807@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=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 \
--cc=sw@weilnetz.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.