214
edits
Line 42: | Line 42: | ||
Enter the following command to compile the DTS source file into an overlay file: | Enter the following command to compile the DTS source file into an overlay file: | ||
<source lang="bash"> | <source lang="bash"> | ||
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 files is not listed | ||
<source lang="bash"> | <source lang="bash"> | ||
sudo cp my-overlay.dtbo /boot | |||
sudo /opt/nvidia/jetson-io/config-by-hardware.py -l | |||
</source> | </source> | ||
Configuration listed from Xavier NX | Configuration listed from Xavier NX | ||
Line 60: | Line 60: | ||
<source lang="bash"> | <source lang="bash"> | ||
sudo /opt/nvidia/jetson-io/config-by-hardware.py -n "My Jetson Overlay example" | |||
</source> | |||
To apply the changes is required to reboot the board. after reboot the board you can read the new property defined in the device tree using the DT overlay. | |||
<source lang="bash"> | |||
cat /proc/device-tree/my-custom-property | |||
</source> | |||
Output: | |||
<source lang="bash"> | |||
This Is My Overlay | |||
</source> | </source> | ||
Support for hardware modules is handled by device tree overlay files (.dtbo files). | Support for hardware modules is handled by device tree overlay files (.dtbo files). |
edits