How to Compile the dtb from kernel source instead of dtc

We have a custom Carrier board that does not have the USBC PD IC in the design. We need to enable the USB 3.0 on the USB3 port (the USB connected to the J507 connector on the NVIDIA carrier board) and SPI2 interface.
We modified the dts and used the dtc to compile it but the OS crashes every time as shown in the image below.

Therefore how would we go about Compiling the dtb from kernel source instead of dtc ?


You should have just needed to disable that device in the device tree for the platform.

builds the DTB and the kernel from the source tree.

Looking at your error, you might not have flashed the system correctly.
You need to flash the kernel, flash, the dtb, and flash the rootfs. The correct sequence in in the Tegra manual somewhere.

sudo ./ -k kernel jetson-xavier mmcblk0p1
sudo ./ -k kernel-dtb jetson-xavier mmcblk0p1
sudo ./ jetson-xavier mmcblk0p1