Build dtb files for jetson nano

Hi,

I want to build a dtb file to update the pinmux/kernel of the Jetson Nano and copy it to the /boot folder and update the extlinux.conf.

I already build a kernel with an updated pinmux. The kernel is working but I want to be able to update the pinmux for other projects without having to rebuild the entire kernel every time.

Which steps needs to be taken to build/compile the dtb file starting from the dtsi files that are generated by the pinmux-excel.

Thanks in advance.

Kind regards
Dieter

FYI, there is a build target in the kernel source to build a device tree. This isn’t actually a kernel being built unless you build the kernel target (Image). The content of a device tree is more or less a list of arguments to pass to the kernel (mostly to drivers), and thus if your kernel source matches the system you are running, then the device tree produced will be for the correct drivers.

You could find a given device tree, decompile it to source code format, edit, and then recompile (preferably with a new name, then just use the new name in the “extlinux.conf” without removing the original entry…best to test with the original entry still available). Examples:

# Decompile a binary:
dtc -I dtb -O dts -o extracted.dts SomeOriginalTree.dtb
# Recompile:
dtc -I dts -O dtb -o ModifiedSomeOriginalTree.dtb extracted.dts

The “.dtsi” files are just pieces of content which might get passed to a device driver. When a kernel is configured (using Kconfig system), then it assembles all of the smaller fragments. The result is reversible via decompile.

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