<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックRe: How to build dts file?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-build-dts-file/m-p/485604#M77598</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi yunbaekim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;utility called device tree compiler (DTC) is used to compile the DTS file into a &lt;/P&gt;&lt;P&gt;DTB file. DTC is part of the Linux source directory. Examples of usage one can find &lt;/P&gt;&lt;P&gt;on web, like :&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.freescale.com/external-link.jspa?url=http%3A%2F%2Fstackoverflow.com%2Fquestions%2F21670967%2Fcompiling-source-device-tree-file" rel="nofollow" target="_blank"&gt;http://stackoverflow.com/questions/21670967/compiling-source-device-tree-file&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.freescale.com/external-link.jspa?url=http%3A%2F%2Fxillybus.com%2Ftutorials%2Fdevice-tree-zynq-1" rel="nofollow" target="_blank"&gt;http://xillybus.com/tutorials/device-tree-zynq-1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 May 2016 13:04:46 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2016-05-19T13:04:46Z</dc:date>
    <item>
      <title>How to build dts file?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-build-dts-file/m-p/485603#M77597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello&lt;/P&gt;&lt;P&gt;I complete build full source.&lt;/P&gt;&lt;P style="font-size: 10.0pt;"&gt;&lt;SPAN style="color: #3334ca;"&gt;&lt;SPAN lang="ko" style="font-family: 'Malgun Gothic';"&gt;#MACHINE=&lt;/SPAN&gt;&lt;SPAN lang="en-US" style="font-family: '맑은 고딕';"&gt;'&lt;/SPAN&gt;&lt;SPAN lang="ko" style="font-family: 'Malgun Gothic';"&gt;imx6dlsabreauto&lt;/SPAN&gt;&lt;SPAN lang="en-US" style="font-family: '맑은 고딕';"&gt;' &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-family: '맑은 고딕'; font-size: 10.0pt;"&gt;&lt;SPAN style="color: #3334ca;"&gt;&lt;SPAN lang="en-US"&gt;#source &lt;/SPAN&gt;&lt;SPAN lang="ko"&gt;setup-environment build&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="en-US" style="font-family: '맑은 고딕'; font-size: 10.0pt;"&gt;&lt;SPAN style="color: #3334ca;"&gt;&lt;SPAN style="background: white;"&gt;#bitbake fsl-image-machine-test&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;And then I was modify '.dts' file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to build dts file simply ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;: imx6, sabreauto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 10:02:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-build-dts-file/m-p/485603#M77597</guid>
      <dc:creator>yunbaekim</dc:creator>
      <dc:date>2016-05-19T10:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to build dts file?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-build-dts-file/m-p/485604#M77598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi yunbaekim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;utility called device tree compiler (DTC) is used to compile the DTS file into a &lt;/P&gt;&lt;P&gt;DTB file. DTC is part of the Linux source directory. Examples of usage one can find &lt;/P&gt;&lt;P&gt;on web, like :&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.freescale.com/external-link.jspa?url=http%3A%2F%2Fstackoverflow.com%2Fquestions%2F21670967%2Fcompiling-source-device-tree-file" rel="nofollow" target="_blank"&gt;http://stackoverflow.com/questions/21670967/compiling-source-device-tree-file&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.freescale.com/external-link.jspa?url=http%3A%2F%2Fxillybus.com%2Ftutorials%2Fdevice-tree-zynq-1" rel="nofollow" target="_blank"&gt;http://xillybus.com/tutorials/device-tree-zynq-1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 13:04:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-build-dts-file/m-p/485604#M77598</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-05-19T13:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to build dts file?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-build-dts-file/m-p/485605#M77599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello igorpadykov&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I installed dtc&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#sudo apt-get install device-tree-compiler&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and moved to arch/arm/boot/dts folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#dtc -O dtb -o imx6dl-sabreauto-gpmi-weim.dtb imx6dl-sabreauto-gpmi-weim.dts&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DTC: dts-&amp;gt;dtb&amp;nbsp; on file "imx6dl-sabreauto-gpmi-weim.dts"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error: imx6dl-sabreauto-gpmi-weim.dts:9.1-2 syntax error&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FATAL ERROR: Unable to parse input tree&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2016 01:48:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-build-dts-file/m-p/485605#M77599</guid>
      <dc:creator>yunbaekim</dc:creator>
      <dc:date>2016-05-20T01:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to build dts file?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-build-dts-file/m-p/485606#M77600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please take a look at page 20 of the Massimo's presentation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-104818"&gt;Device Tree Made Easy&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Also, the following helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-329664"&gt;Basic Device Tree for the Udoo Board&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yuri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 02:31:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-build-dts-file/m-p/485606#M77600</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2016-05-23T02:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to build dts file?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-build-dts-file/m-p/485607#M77601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yunbaekim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had the same issue. I found out that the Yocto DTS files do not strictly follow the Device-Tree syntax as they include c/c++ pre-processors. The file(s) must first be "scrubbed", then run through the dtc compiler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found this to be useful:&lt;/P&gt;&lt;P&gt;&lt;A href="https://linux-sunxi.org/Device_Tree#Compiling_the_Device_Tree"&gt;https://linux-sunxi.org/Device_Tree#Compiling_the_Device_Tree&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case the link doesn't work, here's the gist:&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;$ IDE=&amp;lt;your-device-name&amp;gt;&lt;/P&gt;&lt;P&gt;$ SRC=$IDE.dts&lt;/P&gt;&lt;P&gt;$ TMP=$IDE.tmp.dts&lt;/P&gt;&lt;P&gt;$ DST=$IDE.dtb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ cpp -nostdinc -I include -undef -x assembler-with-cpp $SRC &amp;gt; $TMP&lt;/P&gt;&lt;P&gt;$ dtc -O dtb -b 0 -o $DST $TMP&lt;/P&gt;&lt;P&gt;$ rm $TMP&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 13:51:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-build-dts-file/m-p/485607#M77601</guid>
      <dc:creator>robertberringto</dc:creator>
      <dc:date>2016-06-13T13:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to build dts file?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-build-dts-file/m-p/485608#M77602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is very helpful. For my case of building the device tree, my procedure was as follows:&lt;/P&gt;&lt;P&gt;$ cd ...../arch/arm/boot/dts/&lt;/P&gt;&lt;P&gt;$ sh compileDeviceTree.sh&amp;nbsp;&lt;/P&gt;&lt;P&gt;where I simply put those commands into a script&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;#&lt;SPAN class="operator token"&gt;!&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;bin&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;sh
echo &lt;SPAN class="string token"&gt;"----compiling test device tree------"&lt;/SPAN&gt;
# replace abc &lt;SPAN class="keyword token"&gt;with&lt;/SPAN&gt; your file name
IDE&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;abc
SRC&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;$IDE&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dts
TMP&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;$IDE&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;tmp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dts
DST&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;$IDE&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dtb
cpp &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;nostdinc &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;I include &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;undef &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;x assembler&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;with&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;cpp $SRC &lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; $TMP
&lt;SPAN class="operator token"&gt;~&lt;/SPAN&gt;&lt;SPAN class="regex token"&gt;/bsp-root/&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;tmp&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;sysroots&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;x86_64&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;linux&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;usr&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;bin&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;dtc &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;O dtb &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;b &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;o $DST $TMP
rm $TMP&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 15:28:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-build-dts-file/m-p/485608#M77602</guid>
      <dc:creator>danmacdonald</dc:creator>
      <dc:date>2017-09-25T15:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to build dts file?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-build-dts-file/m-p/1159548#M162570</link>
      <description>&lt;P&gt;[posted in error, deleted]&lt;/P&gt;</description>
      <pubDate>Sat, 26 Sep 2020 00:29:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-build-dts-file/m-p/1159548#M162570</guid>
      <dc:creator>et0</dc:creator>
      <dc:date>2020-09-26T00:29:43Z</dc:date>
    </item>
  </channel>
</rss>

