linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Rob Gubler <rgubler@gmail.com>
To: linuxppc-dev@ozlabs.org
Subject: Ebony DTS compile error
Date: Fri, 23 Jan 2009 17:07:41 -0800	[thread overview]
Message-ID: <e4ef24880901231707y7baad5f6kc1f6bde2c30bf29f@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2306 bytes --]

Hello,

I'm an ELDK 4.2 user.  I'm trying to compile the ebony.dts file included in
the 2.6.24 kernel but the Device Tree Compiler, dtc, complains of a syntax
error.

ELDK provides me with a binary for dtc, but the command line arguments
specided by the ELDK documentation are not supported with the version of dtc
thats provided with ELDK 4.2. Unfortuntely whatever version of dtc is not
specified by the binary (as best I can tell). So, I used only the arguments
that were supported but was unable to produce the dtb.

Here is the output:

# /opt/eldk/sbin/dtc -I dts -O dtb -f arch/powerpc/boot/dts/ebony.dts  >
~rob/ebony.dtb
DTC: dts->dtb  on file "arch/powerpc/boot/dts/ebony.dts"
syntax error at line 45
FATAL ERROR: Couldn't read input tree

# cat -n arch/powerpc/boot/dts/ebony.dts

...

    44          UIC0: interrupt-controller0 {
    45                  compatible = "ibm,uic-440gp", "ibm,uic";
    46                  interrupt-controller;
    47                  cell-index = <0>;
    48                  dcr-reg = <0c0 009>;
    49                  #address-cells = <0>;
    50                  #size-cells = <0>;
    51                  #interrupt-cells = <2>;




At this point I went and downloaded the latest version (DTC 1.2.0-gb2b4990b)
of dtc from: git://www.jdl.com/software/dtc.git and tried compiling
ebony.dts.  This time I was able to use all of the arguments specified by
the ELDK documents, but I also ran into problems.  This time dtc complained
about the opening bracket.  I read the dtc documentation and it appears it
should be treating ebony.dts as a "version 0" file because "/dts-v1/;" is
not specified.

Here is the output

# ~rob/dtc/dtc -b 0 -V 17 -p 0x1000 -I dts -O dtb -f
arch/powerpc/boot/dts/ebony.dts > ~rob/ebony.dtb
DTC: dts->dtb  on file "arch/powerpc/boot/dts/ebony.dts"
Error: arch/powerpc/boot/dts/ebony.dts 14:0 - 1:0 syntax error
FATAL ERROR: Unable to parse input tree

# cat -n arch/powerpc/boot/dts/ebony.dts

...

    12   */
    13
    14  / {
    15          #address-cells = <2>;
    16          #size-cells = <1>;


Is anyone aware of a version of DTC that will compile the ebony.dts file
included with the 2.6.24 kernel?  Or, an updated ebony.dts file that works
with DTC 1.2.0-gb2b4990b.  Any other suggestions would be great.  Thanks!

-Rob

[-- Attachment #2: Type: text/html, Size: 3740 bytes --]

             reply	other threads:[~2009-01-24  1:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-24  1:07 Rob Gubler [this message]
2009-01-24  1:47 ` Ebony DTS compile error Wolfgang Denk
2009-01-26 23:20   ` David Gibson
2009-01-27 22:15     ` Rob Gubler
2009-01-27 23:26       ` Wolfgang Denk

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=e4ef24880901231707y7baad5f6kc1f6bde2c30bf29f@mail.gmail.com \
    --to=rgubler@gmail.com \
    --cc=linuxppc-dev@ozlabs.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).