I downloaded the relevant file packages using the SDK tool and then followed the official steps to start the operation. The link is:
https://docs.nvidia.com/jetson/archives/r35.3.1/DeveloperGuide/text/SD/Kernel/KernelCustomization.html
- Extract the .tbz2 file:
$ tar -xjf public_sources.tbz2 - Extract the kernel source file:
$ cd Linux_for_Tegra/source/public
$ tar –xjf kernel_src.tbz2
Question 1::But in the second step, Linux_for_Tegra/source/public does not want to have a public directory
Building the Kernel
execute cmd: $ ./nvbuild.sh -o $HOME/kernel_output
Partial printing information is as follows:
LD [M] sound/soc/tegra/snd-soc-tegra210-dmic.ko
LD [M] sound/soc/tegra/snd-soc-tegra210-i2s.ko
LD [M] sound/soc/tegra/snd-soc-tegra210-mixer.ko
LD [M] sound/soc/tegra/snd-soc-tegra210-mvc.ko
LD [M] sound/soc/tegra/snd-soc-tegra210-ope.ko
LD [M] sound/soc/tegra/snd-soc-tegra210-sfc.ko
Kernel Image: /home/xuhaiyang/kernel_output/kernel/kernel-jammy-src/arch/arm64/boot/Image
Kernel sources compiled successfully.
make: Leaving directory ‘/home/xuhaiyang/kernel_output/kernel’
Kernel sources compiled successfully.
Directory “nvgpu” is not found, exiting…
Question 2::
why Directory “nvgpu” is not found, exiting…???