<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Device-Tree on Rootcommit WIP</title>
    <link>https://rootcommit.l0g.eu/tags/device-tree/</link>
    <description>Recent content in Device-Tree on Rootcommit WIP</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 21 Jul 2025 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://rootcommit.l0g.eu/tags/device-tree/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>See how U-Boot modifies your board device tree</title>
      <link>https://rootcommit.l0g.eu/2025/u-boot-dt-fixups/</link>
      <pubDate>Mon, 21 Jul 2025 00:00:00 +0000</pubDate>
      <guid>https://rootcommit.l0g.eu/2025/u-boot-dt-fixups/</guid>
      <description>&lt;p&gt;If you compare the device tree as loaded by Linux, available in &lt;code&gt;/sys/firmware/fdt&lt;/code&gt;, you will see that it differs from the one that you loaded in U-Boot. Taking the time to make the comparison is quite instructive.&lt;/p&gt;&#xA;&lt;p&gt;Let&amp;rsquo;s do this on my &lt;a href=&#34;https://developer.toradex.com/hardware/verdin-som-family/modules/verdin-imx8m-mini/&#34;&gt;Toradex Verdin iMX8M Mini&lt;/a&gt; SoM on the &lt;a href=&#34;https://developer.toradex.com/hardware/verdin-som-family/carrier-boards/dahlia-carrier-board&#34;&gt;Dahlia carrier board&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h3 id=&#34;decompiling-the-dtb&#34;&gt;Decompiling the DTB&lt;/h3&gt;&#xA;&lt;p&gt;It&amp;rsquo;s easy to decompile any Device Tree Binary (DTB) file using &lt;code&gt;dtc&lt;/code&gt;, the Device Tree Compiler.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Copy &lt;code&gt;/sys/firmware/fdt&lt;/code&gt; from your live Linux system to external storage (assuming your external storage is mounted on &lt;code&gt;/mnt/usb&lt;/code&gt;)&lt;br&gt;&#xA;&lt;code&gt;cp /sys/firmware/fdt /mnt/usb/linux.dtb&lt;/code&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
