While trying to build the DTBS and the Kernel for JetPack 5.0 DP, we stumbled across two errors.
make dtbs fails with the error below. As we are building the device-tree for AGX Xavier, we commented out the builds for the Orin as a workaround.
fatal error: t234-common-cvm/tegra234-cvm-p3701.dtsi: No such file or directory
We try to build the kernel with the following steps:
a. export ARCH=arm64
b. export CROSS_COMPILE=/home/netipc/nvidia/nvidia_sdk/toolchain/l4t-gcc/bin/aarch64-buildroot-linux-gnu-
c. make LOCALVERSION=-tegra tegra_defconfig
d. make LOCALVERSION=-tegra
This gives the following error:
In file included from /home/netipc/nvidia/nvidia_sdk/JetPack_5.0_DP_Linux_DP_JETSON_AGX_XAVIER_TARGETS/Linux_for_Tegra/sources/kernel/nvidia/drivers/net/ethernet/nvidia/nvethernet/ether_linux.c:19:
/home/netipc/nvidia/nvidia_sdk/JetPack_5.0_DP_Linux_DP_JETSON_AGX_XAVIER_TARGETS/Linux_for_Tegra/sources/kernel/nvidia/drivers/net/ethernet/nvidia/nvethernet/ether_linux.h:62:10: fatal error: osi_core.h: No such file or directory
62 | #include <osi_core.h>
| ^~~~~~~~~~~~
compilation terminated.
Are we doing something wrong? With older JetPack Versions, we had no problems compiling the Kernel with the above steps.
Thank you.
Even with the symlink added, I’m hitting the missing dtsi error. Is there a t23x dtsi fix in the works?
DTC arch/arm64/boot/dts/ddot/ddot/ddot/ddot/ddot/ddot/hardware/nvidia/platform/t23x/concord/kernel-dts/tegra234-p3701-0000-as-p3701-0004-p3737-0000.dtb
In file included from /disk1/nvidia/nvidia_5.0_preview/kernel-5.10-src/kernel/kernel-5.10/arch/arm64/boot/dts/…/…/…/…/…/…/hardware/nvidia/platform/t23x/concord/kernel-dts/tegra234-p3701-0000-as-p3701-0004-p3737-0000.dts:17:
/disk1/nvidia/nvidia_5.0_preview/kernel-5.10-src/kernel/kernel-5.10/arch/arm64/boot/dts/…/…/…/…/…/…/hardware/nvidia/platform/t23x/concord/kernel-dts/cvm/tegra234-p3701-0000.dtsi:19:10: fatal error: t234-common-cvm/tegra234-cvm-p3701.dtsi: No such file or directory
19 | #include <t234-common-cvm/tegra234-cvm-p3701.dtsi>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Regarding the DTSI error: The Jetpack 5.0 DP as-released hardware source tree (directory structure) doesn’t match the Makefile DTC_INCLUDE path for t23x. Either the hardware source tree needs to be restructured or DTC Makefile needs to be tweaked. Nvidia needs to release a patch.