From: David Gibson <david@gibson.dropbear.id.au>
To: Timur Tabi <timur@freescale.com>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: [dtc] Add support for flat device tree format version 17
Date: Thu, 15 Mar 2007 10:07:12 +1100 [thread overview]
Message-ID: <20070314230712.GA12573@localhost.localdomain> (raw)
In-Reply-To: <45F8671D.1010905@freescale.com>
On Wed, Mar 14, 2007 at 04:20:29PM -0500, Timur Tabi wrote:
> Jerry Van Baren wrote:
>
> > The best solution, which I'm making progress on but slowly, is to pull
> > David Gibson's libfdt utilities into u-boot and use them to manipulate
> > the tree.
>
> I don't think that will help, because the problem is how do you
> update a device tree that you don't know everything about?
>
> > I very much want v17 blobs because that removes my
> > "write-in-place" restrictions on changing the properties.
>
> Another idea which just came to light is to have the compatibility
> field be only useful to code that just *reads* the DTB. Any code
> that *writes* the DTB should look it.
Yes, that's always been true for the compatibility version field
(version 3 had exactly the same problem, for example). Code which
writes the dtb has to understand everything it writes. Or to put it
another way, the 'version' field records the version of the writer,
'last_comp_version' field records the version of the reader.
But a program which manipulates a tree, like u-boot is both a reader
and a writer. It *can* take in a higher compatible version and alter
it as long as it downgrades the version on its output to the highest
thing it fully understands.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
next prev parent reply other threads:[~2007-03-14 23:07 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-13 6:22 [dtc] Add support for flat device tree format version 17 David Gibson
2007-03-13 21:10 ` Mark A. Greer
2007-03-14 0:02 ` David Gibson
2007-03-14 21:06 ` Timur Tabi
2007-03-14 21:11 ` Jerry Van Baren
2007-03-14 21:20 ` Timur Tabi
2007-03-14 23:07 ` David Gibson [this message]
2007-03-14 21:41 ` Timur Tabi
2007-03-15 1:32 ` Jerry Van Baren
2007-03-15 1:37 ` Timur Tabi
2007-03-15 2:49 ` Jerry Van Baren
2007-03-15 1:38 ` David Gibson
-- strict thread matches above, loose matches on Subject: below --
2007-03-14 0:02 David Gibson
2007-03-14 15:32 ` Timur Tabi
2007-03-14 20:41 ` Jon Loeliger
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=20070314230712.GA12573@localhost.localdomain \
--to=david@gibson.dropbear.id.au \
--cc=linuxppc-dev@ozlabs.org \
--cc=timur@freescale.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).