Hello,<br><br>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. <br><br>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.<br>
<br>Here is the output:<br><br><div style="margin-left: 40px;"># /opt/eldk/sbin/dtc -I dts -O dtb -f arch/powerpc/boot/dts/ebony.dts > ~rob/ebony.dtb<br>DTC: dts->dtb on file "arch/powerpc/boot/dts/ebony.dts"<br>
syntax error at line 45<br>FATAL ERROR: Couldn't read input tree<br><br># cat -n arch/powerpc/boot/dts/ebony.dts<br><br>...<br><br> 44 UIC0: interrupt-controller0 {<br> 45 compatible = "ibm,uic-440gp", "ibm,uic";<br>
46 interrupt-controller;<br> 47 cell-index = <0>;<br> 48 dcr-reg = <0c0 009>;<br> 49 #address-cells = <0>;<br> 50 #size-cells = <0>;<br>
51 #interrupt-cells = <2>;<br></div><br><br><br><br>At this point I went and downloaded the latest version (DTC 1.2.0-gb2b4990b) of dtc from: git://<a href="http://www.jdl.com/software/dtc.git">www.jdl.com/software/dtc.git</a> 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.<br>
<br>Here is the output<br><br><div style="margin-left: 40px;"># ~rob/dtc/dtc -b 0 -V 17 -p 0x1000 -I dts -O dtb -f arch/powerpc/boot/dts/ebony.dts > ~rob/ebony.dtb<br>DTC: dts->dtb on file "arch/powerpc/boot/dts/ebony.dts"<br>
Error: arch/powerpc/boot/dts/ebony.dts 14:0 - 1:0 syntax error<br>FATAL ERROR: Unable to parse input tree<br><br># cat -n arch/powerpc/boot/dts/ebony.dts<br><br>...<br><br> 12 */<br> 13<br> 14 / {<br> 15 #address-cells = <2>;<br>
16 #size-cells = <1>;<br></div><br><br>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!<br>
<br>-Rob<br> <br>