From: Jerry Van Baren <gvb.linuxppc.dev@gmail.com>
To: Segher Boessenkool <segher@kernel.crashing.org>
Cc: linuxppc-dev <Linuxppc-dev@ozlabs.org>,
Paul Mackerras <paulus@samba.org>
Subject: Re: [PATCH 11/13] powerpc: Add DTS file for the Motorola PrPMC2800 platform
Date: Sun, 13 May 2007 08:50:21 -0400 [thread overview]
Message-ID: <4647098D.9050901@gmail.com> (raw)
In-Reply-To: <70c9e7f82599a85ba1ae974e11db1d8f@kernel.crashing.org>
Segher Boessenkool wrote:
>>>>> + partition-names = "FW Image A\0FW Config Data\0Kernel
>>>>> Image\0Filesystem\0FW Image B";
>>>> dtc now supports the syntax:
>>>> partition-names = "FW Image A", "FW Config Data", ...
>>>> for multi-string properties to make this sort of thing less ugly.
>>> Nice! Can you also concatenate different property
>>> encodings that way? Like,
>>> slot-names = <5>, "Slot A", "Slot C";
>>> or something like that?
>>> Segher
>>
>> Hi Segher,
>>
>> That doesn't make sense to me. It would be a bugger to understand the
>> value of "slot-names" since <5> is a number and the rest are strings.
>> How do you know it is a number? How do you know how big it is?
>
> You know that since it is how that particular property is
> defined: it is one integer (i.e., 32-bit big-endian),
> followed by a string (zero-terminated) for each set bit
> in the integer.
[snip]
> Not bad at all -- it is trivial to decode _if_ you know
> how it is encoded. You cannot tell by looking at the
> property data only. What is [44 54 53 00] -- just some
> bytes, or the integer 0x44545300, or the string "DTS"?
> You cannot tell.
OK. I was coming from the u-boot "fdt print" command. We do a pretty
good job of guessing the print format (byte/word/long/string/strings),
but this would fail the detection circuitry and be printed as a byte
array [00, 00, 00, 05, 44, 54, ...] (the default format) because it
takes a-priori knowledge to print it in the original input format. Not
quite as pretty, but NBD.
>> It seems to me that it would be much better as
>> slot-names = "5", "Slot A", "Slot C";
>> and do an atoi() conversion if you detect it is or expect it to be
>> numeric.
>
> Hey, I know! We could redefine OF to use XML instead!
> ;-)
Oooo Oooo Oooo. No wait, we're embedded, we march to the beat of a
different drummer. Nevermind. :-D
> Segher
Thanks,
gvb
next prev parent reply other threads:[~2007-05-13 12:50 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-10 20:02 [PATCH 0/13] powerpc: Add support for Marvell/mv64x60 and prpmc2800 Mark A. Greer
2007-05-10 20:04 ` [PATCH 1/13] powerpc: Add Makefile rules to wrap dts file in zImage Mark A. Greer
2007-05-10 23:29 ` David Gibson
2007-05-11 15:59 ` Mark A. Greer
2007-05-10 20:05 ` [PATCH 2/13] powerpc: Add bootwrapper support for Marvell/mv64x60 hostbridge Mark A. Greer
2007-05-10 20:05 ` [PATCH 3/13] powerpc: Add bootwrapper support for Marvell MPSC Mark A. Greer
2007-05-10 20:06 ` [PATCH 4/13] powerpc: Add bootwrapper support for Marvell/mv64x60 I2C Mark A. Greer
2007-05-10 20:06 ` [PATCH 5/13] powerpc: Add interrupt support for Marvell mv64x60 chips Mark A. Greer
2007-05-10 20:07 ` [PATCH 6/13] powerpc: Create Marvell mv64x60 MPSC (serial) platform_data Mark A. Greer
2007-05-10 20:07 ` [PATCH 7/13] powerpc: Create Marvell mv64x60 ethernet platform_data Mark A. Greer
2007-05-10 20:07 ` [PATCH 8/13] powerpc: Create Marvell mv64x60 I2C platform_data Mark A. Greer
2007-05-10 20:08 ` [PATCH 9/13] powerpc: Add Marvell mv64x60 PCI bridge support Mark A. Greer
2007-05-10 20:08 ` [PATCH 10/13] powerpc: check cache coherency of kernel vs firmware Mark A. Greer
2007-05-10 20:08 ` [PATCH 11/13] powerpc: Add DTS file for the Motorola PrPMC2800 platform Mark A. Greer
2007-05-10 21:44 ` Kumar Gala
2007-05-10 23:37 ` David Gibson
2007-05-12 11:59 ` Segher Boessenkool
2007-05-13 0:00 ` Jerry Van Baren
2007-05-13 0:21 ` Segher Boessenkool
2007-05-13 12:50 ` Jerry Van Baren [this message]
2007-05-13 14:45 ` Segher Boessenkool
2007-05-13 1:10 ` David Gibson
2007-05-10 20:09 ` [PATCH 12/13] powerpc: Add bootwrapper support for " Mark A. Greer
2007-05-10 20:09 ` [PATCH 13/13] powerpc: Add arch/powerpc support for the Motorola PrPMC2800 Mark A. Greer
2007-05-10 21:57 ` arch/powerpc/sysdev: dumping ground or only for shared drivers? Olof Johansson
2007-05-10 22:06 ` Kumar Gala
2007-05-11 1:00 ` Josh Boyer
2007-05-15 9:53 ` Christian Krafft
2007-05-10 22:40 ` David Gibson
2007-05-10 23:00 ` Mark A. Greer
2007-05-11 0:26 ` Paul Mackerras
2007-05-11 17:05 ` Linas Vepstas
2007-05-15 21:06 ` Kumar Gala
2007-05-15 22:06 ` Mark A. Greer
2007-05-15 22:19 ` Grant Likely
2007-05-15 22:25 ` Olof Johansson
2007-05-15 22:30 ` Kumar Gala
2007-05-15 23:56 ` Mark A. Greer
2007-05-16 0:32 ` Mark A. Greer
-- strict thread matches above, loose matches on Subject: below --
2007-05-12 0:46 [PATCH 0/13] powerpc: Add support for Marvell/mv64x60 and prpmc2800 Mark A. Greer
2007-05-12 0:57 ` [PATCH 11/13] powerpc: Add DTS file for the Motorola PrPMC2800 platform Mark A. Greer
2007-04-25 23:46 [PATCH 0/13] powerpc: Add support for Marvell/mv64x60 and prpmc2800 Mark A. Greer
2007-04-26 0:01 ` [PATCH 11/13] powerpc: Add DTS file for the Motorola PrPMC2800 platform Mark A. Greer
2007-04-26 16:42 ` Scott Wood
2007-04-26 23:34 ` Mark A. Greer
2007-04-26 23:37 ` David Gibson
2007-04-27 20:41 ` Mark A. Greer
2007-04-30 16:45 ` Jon Loeliger
2007-04-30 18:08 ` Mark A. Greer
2007-04-30 22:29 ` Mark A. Greer
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=4647098D.9050901@gmail.com \
--to=gvb.linuxppc.dev@gmail.com \
--cc=Linuxppc-dev@ozlabs.org \
--cc=paulus@samba.org \
--cc=segher@kernel.crashing.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 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.