qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Grant Likely <grant.likely@secretlab.ca>
To: Peter Crosthwaite <peter.crosthwaite@petalogix.com>
Cc: Peter Maydell <peter.maydell@linaro.org>,
	qemu-devel@nongnu.org, Rob Herring <rob.herring@calxeda.com>,
	Paul Brook <paul@codesourcery.com>,
	"Edgar E. Iglesias" <edgar.iglesias@gmail.com>,
	Jeremy Kerr <jeremy.kerr@canonical.com>
Subject: Re: [Qemu-devel] [PATCH] arm: add device tree support
Date: Mon, 30 Jan 2012 06:40:25 -0700	[thread overview]
Message-ID: <20120130134025.GH28397@ponder.secretlab.ca> (raw)
In-Reply-To: <CAEgOgz4OX_cQkoQ5fMkmpFo_YZnJcyrQ+6LYQ+hPKaLCghTVTA@mail.gmail.com>

On Mon, Jan 30, 2012 at 09:54:45AM +1000, Peter Crosthwaite wrote:
> On Mon, Jan 30, 2012 at 6:42 AM, Edgar E. Iglesias <edgar.iglesias@gmail.com
> > On Sat, Jan 28, 2012 at 11:48:37AM -0700, Grant Likely wrote:
> > > On Fri, Jan 27, 2012 at 10:34:01PM +0000, Paul Brook wrote:
> Another major issue with that is DTBs have little bits of software in them
> as well, such as the "chosen" node, which would need to be populated before
> passing off to software. Coding these dtb properties into machine models
> would be sub-optimal, you would need some way of parameterizing certain dtb
> properties at boot time. The easiest approach to this is just passing in
> your own dtb file.

I wouldn't say it that way.  dtbs don't contain any sort of executable
code.  It is only data.  However, it is true that the bootloader is expected
to update properties in the /chosen node for the kernel command line and
initrd base address, to update the /memory node, and on some systems to
set the Ethernet mac address properties if that is not discoverable from
the simulated HW model.

Since that data is knowledge held by QEMU internally, it is appropriate
for QEMU to modify the dtb with that data, and this patch does exactly that.

g.

  reply	other threads:[~2012-01-30 13:40 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-27 21:53 [Qemu-devel] [PATCH] arm: add device tree support Grant Likely
2012-01-27 22:34 ` Paul Brook
2012-01-28 18:48   ` Grant Likely
2012-01-29 11:15     ` Paul Brook
2012-01-29 16:01       ` Grant Likely
2012-01-29 18:48         ` Andreas Färber
2012-01-29 21:29           ` Peter Maydell
2012-01-30 13:33             ` Grant Likely
2012-01-29 19:13         ` Peter Maydell
2012-01-29 20:36           ` Grant Likely
2012-01-30 11:36             ` Andreas Färber
2012-01-30 13:31               ` Grant Likely
2012-01-30  0:24           ` John Williams
2012-01-29 20:42     ` Edgar E. Iglesias
2012-01-29 23:54       ` Peter Crosthwaite
2012-01-30 13:40         ` Grant Likely [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-01-29  7:48 Peter Crosthwaite
2012-02-22 19:48 Peter Maydell
2012-02-27 17:38 Peter Maydell
2012-02-27 17:41 ` Anthony Liguori

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=20120130134025.GH28397@ponder.secretlab.ca \
    --to=grant.likely@secretlab.ca \
    --cc=edgar.iglesias@gmail.com \
    --cc=jeremy.kerr@canonical.com \
    --cc=paul@codesourcery.com \
    --cc=peter.crosthwaite@petalogix.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=rob.herring@calxeda.com \
    /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).