Kernal Custumisation for Jetson Linux 35.3.1 - unable to find "modules"folder in rootfs

Hello all,

I am trying to compile the kernel of Jetson Linux 35.3.1 for the Jetson Orin Dev Kit. I got the sources from here: Jetson Linux R35.3.1.

I have downloaded and extracted the “Jetson_Linux_R35.3.1_aarch64.tbz2” file and the “Tegra_Linux_Sample-Root-Filesystem_R35.3.1_aarch64.tbz2” file into the rootfs folder.

Following the instructions from NVIDIA’s Developer Guide, I have successfully completed the following steps:

  1. Ran ./source_sync.sh -k -t jetson_35.3.1
  2. Installed build essentials
  3. Set the environment variables
    also copies the file nvbuild.sh from kernel_src.tbz2 then
  4. Successfully compiled the kernel with the command ./nvbuild.sh -o $PWD/kernel_out

However, when proceeding to the next step: “Replace Linux_for_Tegra/rootfs/usr/lib/modules/$(uname -r)/kernel/drivers/gpu/nvgpu/nvgpu.ko with a copy of this file: $kernel_out/drivers/gpu/nvgpu/nvgpu.ko”, I am unable to find the modules/$(uname -r)/kernel/drivers/gpu/nvgpu/nvgpu.ko file, specifically the “modules” folder.

What could be the reason for this? Am I missing any steps?

Additionally, is there a proper guide to build and install the kernel including headers? If so, please share the details.

Thank you.

Yes the steps are missing.

https://docs.nvidia.com/jetson/archives/r35.3.1/DeveloperGuide/text/IN/QuickStart.html#to-flash-the-jetson-developer-kit-operating-software

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