Nvidia,dtsfilename

Hello I have just flashed my Orin Nano Developer kit (JP 6.0.0 Rev 2) I have some software running on the device that needs to query what type of carrier board is being used. In the past on other Jetson devices on JP 5, to find the carrier board I use the command:

cat /proc/device-tree/nvidia,dtsfilename

On the Orin Nano Developer kit this file does not exist, My question is why is this file now missing, And is there an alternative way to query what type of carrier board
is in use

Here is what I have in the /proc/device-tree dir

In JetPack 5, we had a dedicated kernel driver displaying the kernel and device tree source files being used now in dmesg.
In JetPack 6, we deprecated that driver because it was not worth it using a kernel driver just to show some log in dmesg, so the related entry in device tree source is also removed.

However, you can still add this line back to the kernel DTS and compile it, so you can see that info under /proc/device-tree/:

nvidia,dtsfilename = __FILE__;

Thank you for your response. I am using the ORIN NANO DEVKIT MODULE: P3767-0005 on the Carrier board: P3768-0000.

In my directory /Linux_for_Tegra/kernel/dtb I have following files:

tegra234-p3768-0000+p3767-0005.dtb
tegra234-p3768-0000+p3767-0005-nv.dtb
  • Do I need to convert the dtb file to dts, make the changes you mentioned above and then re convert back to dtb?

  • Do you know what is the difference between these two files, why is one .dtb and the other one nv.dtb? What one should I use and why?

You should modify the DTS source that is included in the kernel source code tarball because dtc does not understand what __FILE__ is.

Use the one with -nv suffix.
The one without the suffix is what we push to the upstream kernel source tree, and the one with the suffix contains stuff that cannot be upstreamed, which is the complete one that you should be using.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.