From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.226]) by ozlabs.org (Postfix) with ESMTP id AC60CDE023 for ; Sat, 24 Jan 2009 12:07:43 +1100 (EST) Received: by rv-out-0506.google.com with SMTP id f6so5195960rvb.9 for ; Fri, 23 Jan 2009 17:07:42 -0800 (PST) MIME-Version: 1.0 Date: Fri, 23 Jan 2009 17:07:41 -0800 Message-ID: Subject: Ebony DTS compile error From: Rob Gubler To: linuxppc-dev@ozlabs.org Content-Type: multipart/alternative; boundary=000e0cd29bf0e2d5ee046130219d List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --000e0cd29bf0e2d5ee046130219d Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 --000e0cd29bf0e2d5ee046130219d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 bi= nary for dtc, but the command line arguments specided by the ELDK documenta= tion 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 b= est I can tell). So, I used only the arguments that were supported but was = unable to produce the dtb.

Here is the output:

# /opt/eld= k/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/eb= ony.dts"
syntax error at line 45
FATAL ERROR: Couldn't read input tree
# cat -n arch/powerpc/boot/dts/ebony.dts

...

  &nb= sp; 44          UIC0: interrup= t-controller0 {
    45      = ;            compati= ble =3D "ibm,uic-440gp", "ibm,uic";
    46         =          interrupt-controller;
&= nbsp;   47         &= nbsp;        cell-index =3D <0>;    48        &nbs= p;         dcr-reg =3D <0c0 009&= gt;;
    49       &nbs= p;          #address-cells =3D= <0>;
    50      &nb= sp;           #size-cells= =3D <0>;
    51         =          #interrupt-cells =3D <2= >;




At this point I went and downloaded the late= st version (DTC 1.2.0-gb2b4990b) of dtc from: git://www.jdl.com/software/dtc.git and tried compili= ng ebony.dts.  This time I was able to use all of the arguments specif= ied by the ELDK documents, but I also ran into problems.  This time dt= c complained about the opening bracket.  I read the dtc documentation = and it appears it should be treating ebony.dts as a "version 0" f= ile 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 &= gt; ~rob/ebony.dtb
DTC: dts->dtb  on file "arch/powerpc/boo= t/dts/ebony.dts"
Error: arch/powerpc/boot/dts/ebony.dts 14:0 - 1:0 syntax error
FATAL ERR= OR: Unable to parse input tree

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

...

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


Is anyone aware of a version o= f 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.&n= bsp; Any other suggestions would be great.  Thanks!

-Rob
 
--000e0cd29bf0e2d5ee046130219d--