Jump to content

NVIDIA Jetson - Device Tree Overlay: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 20: Line 20:
===Creating a Simple Device Tree Overlay===
===Creating a Simple Device Tree Overlay===


To create a simple device tree overlay to add a new custom property for Jetson Xavier NX Developer Kit and attach it to the 40‑pin expansion header, create a file named my-overlay.dts on the target platform with the following contents:
To create a simple device tree overlay to add a new custom property for Jetson Xavier NX Developer Kit and attach it to the 40‑pin expansion header, create a file named my-overlay.dts on the target platform with the following contents:


<source lang="c">
<source lang="c">
Line 44: Line 44:
dtc -O dtb -o my-overlay.dtbo -@ my-overlay.dts
dtc -O dtb -o my-overlay.dtbo -@ my-overlay.dts
</source>
</source>
After you copy the new overlay file to the /boot directory, Jetson‑IO finds the overlay file and allows you to apply it, If you use an incorrect compatible value, the files is not listed
After you copy the new overlay file to the /boot directory, Jetson‑IO finds the overlay file and allows you to apply it, If you use an incorrect compatible value, the DT overlay is not listed
<source lang="bash">
<source lang="bash">
sudo cp my-overlay.dtbo /boot
sudo cp my-overlay.dtbo /boot
Line 74: Line 74:
===Remove overlay changes applied===
===Remove overlay changes applied===


The changes of the DT overlay are applied over the DT original and is created a new device tree. The name of the resulting device tree combines the original DT name and the overlay name.
The changes of the DT overlay are applied over the DT original and is created a new device tree. The name of the resulting device tree combines the original DT name and the overlay name. <code>/boot/kernel_tegra194-p3668-all-p3509-0000-my-jetson-overlay-example.dtb</code>


<source>
To use the new DT, Jetson‑IO creates a new entry in <code>/boot/extlinux/extlinux.conf</code>
/boot/kernel_tegra194-p3668-all-p3509-0000-my-jetson-overlay-example.dtb
</source>
 
To use the new DT creates a new entry in <code>/boot/extlinux/extlinux.conf</code>


This is the new entry added when is added the overlay:
This is the new entry added when is added the overlay:
214

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.