Hello,<br><br>I&#39;m an ELDK 4.2 user.&nbsp; I&#39;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.&nbsp; <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&nbsp; &gt; ~rob/ebony.dtb<br>DTC: dts-&gt;dtb&nbsp; on file &quot;arch/powerpc/boot/dts/ebony.dts&quot;<br>
syntax error at line 45<br>FATAL ERROR: Couldn&#39;t read input tree<br><br># cat -n arch/powerpc/boot/dts/ebony.dts<br><br>...<br><br>&nbsp;&nbsp;&nbsp; 44&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UIC0: interrupt-controller0 {<br>&nbsp;&nbsp;&nbsp; 45&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; compatible = &quot;ibm,uic-440gp&quot;, &quot;ibm,uic&quot;;<br>
&nbsp;&nbsp;&nbsp; 46&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; interrupt-controller;<br>&nbsp;&nbsp;&nbsp; 47&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cell-index = &lt;0&gt;;<br>&nbsp;&nbsp;&nbsp; 48&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dcr-reg = &lt;0c0 009&gt;;<br>&nbsp;&nbsp;&nbsp; 49&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #address-cells = &lt;0&gt;;<br>&nbsp;&nbsp;&nbsp; 50&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #size-cells = &lt;0&gt;;<br>
&nbsp;&nbsp;&nbsp; 51&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #interrupt-cells = &lt;2&gt;;<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.&nbsp; This time I was able to use all of the arguments specified by the ELDK documents, but I also ran into problems.&nbsp; This time dtc complained about the opening bracket.&nbsp; I read the dtc documentation and it appears it should be treating ebony.dts as a &quot;version 0&quot; file because &quot;/dts-v1/;&quot; 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 &gt; ~rob/ebony.dtb<br>DTC: dts-&gt;dtb&nbsp; on file &quot;arch/powerpc/boot/dts/ebony.dts&quot;<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>&nbsp;&nbsp;&nbsp; 12&nbsp;&nbsp; */<br>&nbsp;&nbsp;&nbsp; 13<br>&nbsp;&nbsp;&nbsp; 14&nbsp; / {<br>&nbsp;&nbsp;&nbsp; 15&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #address-cells = &lt;2&gt;;<br>
&nbsp;&nbsp;&nbsp; 16&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #size-cells = &lt;1&gt;;<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?&nbsp; Or, an updated ebony.dts file that works with DTC 1.2.0-gb2b4990b.&nbsp; Any other suggestions would be great.&nbsp; Thanks!<br>
<br>-Rob<br>&nbsp; <br>