cd <modules_install_path>
tar --owner root --group root -cjf kernel_supplements.tbz2 lib/modules
What should that modules install path be?
I have for now installed the modules from my kernel_out directory with modules_install from the Makefile from the kernel directory into the modules folder of my rootfs.
I am also missing the “extra” folder in the modules from my compiled kernel sources. Do I need to copy the extra folder AFTER calling apply_binaries.sh or is there any other source to compile/download them?
It seems like the guide wants me to replace the Linux_for_Tegra/kernel/kernel_supplements.tbz2 with the ones I got like this. I can’t figure how this could anyhow contain the extra folder if I did not run the apply_binaries.sh before?
Okay then how is that supposed to contain any data before the apply_binaries.sh is called? It contains just a base ubuntu image for me. I won’t get the rootfs/usr/lib/modules/5.10.65-tegra/extra folder like this?
I am just not sure if the order is correct here? The extra folder seems to be created from the Linux_for_Tegra/kernel/kernel_supplements.tbz2 which I am supposed to overwrite before they have been written ro the rootfs by apply_binaries.sh?
It seems like the supposed way to build a custom kernel and modules is:
apply_binaries.sh
compile kernel
copy Image, nvgpu.ko
copy modules from the kernel_out on top of the existing modules folder, while not removing the existing extra folder
create the kernel_supplements.tbz2 from the modules in the rootfs
But what am I creating the kernel supplements for if I have copied all required data to the rootfs already?