Missing modules folder during custom kernel build

I follow the build steps as described in L4T 34.1.1 developer guide in kernel customization section.

I reached this step:
5. Replace Linux_for_Tegra/rootfs/usr/lib/modules/$(uname -r)/kernel/drivers/gpu/nvgpu/nvgpu.ko with a copy of this file:

The problem is there is no modules folder inside Linux_for_Tegra/rootfs/usr/lib and there is no nvgpu.ko in the whole Linux_for_Tegra folder (the one inside $kernel_out exists indeed)

What I need to do now?


I’m not sure what is going on with the “/usr/lib/modules” location for modules, but the place the kernel looks for is “/lib/modules”. There is some “weirdness” going on which I’m not sure of the cause. Can you create or otherwise use just the “rootfs/lib/modules/” location without the “usr/” in it? Try that and see what happens.

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