"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
Linux_for_Tegra/rootfs/usr/lib/modules/$(uname -r)/kernel/drivers/gpu/nvgpu/nvgpu.ko does not exist… I assume there are just missing instructions or something but if someone can guide me on what to do that would be great. I’ve extracted the example root fs (also not listed in instructions) to rootfs/ but the file is not in there.
you have to run sudo ./apply_binaries.sh afterwards. This will create the nvgpu.ko file you need to replace. Again, why this isn’t in the in custom kernel guide is beyond me.
“replace the files in Linux_for_Tegra/kernel/dtb/ with a copy from: $kernel_out/arch/arm64/boot/dts/nvidia/” is confusing and no idea why it’s phrased that way. It makes it seem like you should delete the files first before copying them over, but you just copy the files and there are some other files in Linux_for_Tegra/kernel/dtb/ which should not be modified.
These solutions are peppered throughout the forum but if someone is trying to build 5.1.2 if they do the three above things they should be able to compile the kernel and flash without any of the pitfalls I faced.
Hi
Many thanks for the sharing. We would expect the users have downloaded the system image and sample rootfs, to flash and booted the device. So the files should be there in Linux_for_Tegra. And furtherly go to do kernel customization section. We will check to add heads-up in later developer guide.