Failed to build the NVIDIA Out-of-Tree Modules

Help Needed: Custom Kernel Build Issue for Nvidia Orin NX 16GB

Hi everyone,

I’m working on building a custom kernel for my Nvidia Orin NX 16GB module, following the instructions in Nvidia’s documentation. While I successfully completed the initial steps upto the building the Jetson linux kernel, I’m running into errors at Building the NVIDIA Out-of-Tree Modules.

System Details:

  • Jetson Module: Nvidia Orin NX 16GB
  • Host PC OS: Ubuntu 22.04

Issue:

The process fails during step-3 make modules. I’ve attached the error logs and a screenshot to provide more context.
buildlog.log (78.8 KB)

If anyone has experience with this or suggestions on how to resolve it, I’d greatly appreciate your help!

Thanks in advance! Please let me know if you need more information.

What’s the BSP version to build?

We don’t have problem to build r36.4

List the steps for reference:
Building the Jetson Linux Kernel:

$ tar xpvf kernel_src.tbz2 
$ tar xpvf kernel_oot_modules_src.tbz2 
$ tar xpvf nvidia_kernel_display_driver_source.tbz2 
$ cd <install-path>/Linux_for_Tegra/source
$ ./generic_rt_build.sh "enable"
$ export CROSS_COMPILE=/home/carol/Toolchain_gcc_11.3/aarch64--glibc--stable-2022.08-1/bin/aarch64-buildroot-linux-gnu-
$ make -C kernel

NVIDIA Out-of-Tree Modules:

$ export IGNORE_PREEMPT_RT_PRESENCE=1
$ export CROSS_COMPILE=/home/carol/Toolchain_gcc_11.3/aarch64--glibc--stable-2022.08-1/bin/aarch64-buildroot-linux-gnu-
$ export KERNEL_HEADERS=$PWD/kernel/kernel-jammy-src
$ make modules

Thanks. I have managed to successfully follow this instruction and complete the flashing with customization. Looks like I had permission issue in my host PC for the toolchain and source dir.

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