DRIVE OS Version: 6.0.10.0-36101120
Hardware: Nvidia Drive AGX Orin (p3710)
Yocto linux: 3.1 (dunfell)
Kernel version: 5.15.122-rt-tegra
Issue Description:
I am trying to build a DRIVE AGX Orin Yocto (dunfell) image using a non-prebuilt kernel.
I have set the following parameters in my distro configuration:
PREFERRED_PROVIDER_virtual/kernel = “linux-nvidia”
PREFERRED_PROVIDER_kernel = “linux-nvidia”
Additionally, I had to add a packagegroup-bsp.bbappend file in my custom layer to set the BSP_KERNEL value to kernel-modules.
However, when I use the non-prebuilt kernel, the Yocto build does not compile or include CUDA and NVIDIA-related components in the image.
When using the prebuilt kernel, these components are built and included correctly.
I have checked the kernel configuration, and it is the same for both builds. The only difference is the GCC version: the prebuilt kernel uses GCC 9.3, while the custom-built kernel uses GCC 9.5.
I cannot switch to GCC 9.3 because Dunfell only supports GCC 9.5.
Do you have any idea how I can fix the kernel build version to support NVIDIA-related components?