Missing modules folder during custom kernel build

I am trying to build the kernel from Jetson Linux 35.4.1 source, with reference page of Kernel Customization — Jetson Linux Developer Guide documentation

I could not find the modules as mentioned in step 5 as below,

  • 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 found out this comment(Missing modules folder during custom kernel build) is interesting and tried that. But still I could not find the lib/modules directory too. Even if I create the modules directory, how about the other kernel modules. I suspect, There should be a step before Step 5. Please advise how to proceed further after step 4. That helps a lot.

Please ask in the jetson forums:
https://forums.developer.nvidia.com/c/agx-autonomous-machines/jetson-embedded-systems/70

1 Like

Sure, I can do that. Thanks.