We need instructions on how to compile the Device Tree for a Jetson Xavier NX board with Jetpack 5 installed, Kernel 5.10.104-tegra.
We do not wish to flash the board, we are looking for a way to modify the pinmux, generate a new Devicetree DTB file, and use it on the Jetson, preferably using the extlinux.conf changes.
If there are specific instructions for Jetpack 5 that will help, the instructions we have are for Jetpack 4.9 but these do not work on Jetpack 5.
Thanks,
Also, your “how to compile a device tree” does not match your “pinmux support” topic. Device tree is just a format. Not 100% related to pinmux.
Please elaborate what you want to ask first. If you don’t know what you are trying to ask, then please tell us what you want to do so that we can explain.
When we power up the Jetson NX Xavier board, the UART0 RTS PIN is HIGH all the time, we need that pin to be LOW all the time and not show boot messages.
UEFI chooses the DTB for kernel in the following order:
FDT tag in /boot/extlinux/extlinux.conf file in rootfs can specify the DTB to be passed to the
kernel.
If 1. is absent or cannot be used, DTB for kernel is loaded from the respective A/B kernel-dtb
partition on boot device.
If both 1. and 2. are absent or cannot be used, UEFI passes the DTB used by UEFI itself to kernel.
My idea was to change the RTS to LOW using the dtsi file generated from the pinmux excel sheet, then include that .dtsi in the main .dts file in the source file, recompile and just copy the new recompiled DTB to the Jetson and place it in /boot/ , then reference it in extlinux.conf, no need to reflash.
My point is did you ever try that on jp4 before? Your comment sounds like you did that on jp4 before but you failed on jp5.
Your understanding is partially correct. “Kernel dtb” could be read from the path indicated by extlinux.conf. But actually the pinmux is handled in bootloader. And that requires flash.
I haven’t attempted reflash, I was following the instructions from the guide that was for Linux 4.9.
Since I saw a .dtsi file I assumed the reflash was optional when using extlinux.conf, but now I understand better.
Can you share how to change the pin from HIGH to LOW? At this moment I have three .dtsi files generated from the excel sheet on my computer and need next steps instructions on where to go from here.
Is there any way to get the current configuration of a PIN from the Jetson itself?
We are using a signal analyzer to know but we would like to also get it from the OS.