Hi, Im trying to build the kernal source as mentioned in this page : Kernal Customization
But Im getting this error, I tried with L4T version supported for jetson nano (jetpack 4.6.6 and older L4t ) eg, L4T R32.4.3.
Error message : Error: Missing kernel image /home/naveen/Downloads/Linux_for_Tegra/source/public/kernel_out/arch/arm64/boot/Image
This error occours after running $ ./nvbuild.sh -o $PWD/kernel_out
It is possible that the location you unpacked from differs from where that script is wired to look. Normally this would exist due to a combination of the particular L4T release installed by JetPack/SDK Manager and JetPack/SDKM itself. Some notes:
public_sources.tbz2 is an archive of many things, one of which is the kernel itself…in the form of yet another archive. Check content with “tar -tvf public_sources.tbz2”.
To extract single file (in this case a file which is a set of files in an archive…substitute the name you are using), the basic command is “tar -xvfj public_sources.tbz2 file/path/from/previous/listing”. This is a bit confusing, but the “-j” option is for bzip2 compression, and the “path” is the path listed for some file earlier (which would be the kernel source archive within the public_sources archive).
Once you have manually unpacked the kernel source you are interested in, use the listing command at the start to see the content. You’ll find it has prefix subdirectories which unpack with it. Compare this to the location where the nvbuild.sh script was expecting to find this so that you can cause the unpack to end up where the script wants it.