I am trying to install the drivers for NVIDIA Jetson™ Linux version 35.1 GA .
While going through the user manual , i cam across this step where we got to build the kernel .
To Build the Real-Time Kernel
Apply RT patches to the kernel:
./kernel-5.10/scripts/rt-patch.sh apply-patches
I tried to do it but the patches are no where to be found . How do i resolve this ?
Additionally
Another step which is :
" For the device tree, replace the files in Linux_for_Tegra/kernel/dtb/ with a copy from:
$kernel_out/arch/arm64/boot/dts/nvidia/ "
there wasnt any dts file present as well . Only the dtb file was present ?
I am fairly new to this .
Hello
Due to the image booting problems in the latest version , i intend to compare it with the 35.1 .
Yes i did install the kernel tarball.
the path until the ./kernel-5.10 exists. Inside the kernel-5.10 there are two files :
kernel_supplements.tbz2
.git file
the kernel_supplements.tbz2 file is empty . What is the reason for that ?
Jetson_Linux_R35.1.0_aarch64/Linux_for_Tegra/sources/kernel/kernel-5.10 this is the path for the above mentioned file
In another path which is Jetson_Linux_R35.1.0_aarch64/Linux_for_Tegra/kernel ,kernel_supplements.tbz2 contains some lib folder.There isnt any rt patch available when i searched
. Should i copy these files into the path where the kernel_supplements.tbz2 is empty ?
And also the dtb (from which we are supposed to be copying had two files ) and the destination had about 10 files . Again am i doing something wrong in this ?
Please go with 35.5.
We won’t fix it even if there is any issue with 35.1.
I don’t really know what you did.
You are not supposed to get kernel_supplements.tbz2 under the kernel source folder.
You only get it after you compile all the kernel modules and make a tarball out of it.
The target dtb featured about 70 files with the extension of .dtbo &.dtb as the extension attached to each one of them .The files that are to be copied from the boot folder (it is supposed to be dts but there is only the dtb file that is present and it contains dtbo.sig and a dtb file . So replacing those 70+ files with those 2 files am i doing it right ?
Also kernel_supplements.tbz2 this is an empty file . The other boot file (which is the source ) contains the kernel_supplements.tbz2 file and has some content .
Are the rt patch files present in the source files
Driver Package (BSP) Sources & Sample Root Filesystem Sources?
and in the $kernel_out/arch/arm64/boot/dts/nvidia/ (in the instruction manual it is given as dts but only dtb is present as discussed earlier ), there are only two files this is shown below
The corresponding steps were in the reference manual were
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
Replace Linux_for_Tegra/kernel/Image with a copy of this file:
$kernel_out/arch/arm64/boot/Image
It was throughthe above files as indicated in the pictures that i replaced the files and sought to do the same with the dtb files
I do not know how possibly to set the $kernel_out environment variable .
Can you guide me on this ? I didnt know that until it was specifically pointed out in this thread
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
I dont seem to find the nvgpu.ko file
instead i find three folders that go by the name
1.common
2.hal
3. os
The nvgpu.ko though is present in another file (Desktop/32 GB Volume/lib/modules/4.9.253-tegra/kernel/drivers/gpu/nvgpu) which is not the kernel_out file .
any solution to this ?
additionally when perfoming this step
$ ./nvbuild.sh -o $PWD/kernel_out
i get indicated of warning being read out as erros.I sthat a problem ?
make[1]: Leaving directory ‘/home/dnc/Downloads/35.3.1/public_sources/Linux_for_Tegra/source/public/kernel_out’
make: Leaving directory ‘/home/dnc/Downloads/35.3.1/public_sources/Linux_for_Tegra/source/public/kernel/kernel-5.10’
make[1]: Entering directory ‘/home/dnc/Downloads/35.3.1/public_sources/Linux_for_Tegra/source/public/kernel_out’
GEN Makefile
make[1]: Leaving directory ‘/home/dnc/Downloads/35.3.1/public_sources/Linux_for_Tegra/source/public/kernel_out’
CALL /home/dnc/Downloads/35.3.1/public_sources/Linux_for_Tegra/source/public/kernel/kernel-5.10/scripts/atomic/check-atomics.sh
CALL /home/dnc/Downloads/35.3.1/public_sources/Linux_for_Tegra/source/public/kernel/kernel-5.10/scripts/checksyscalls.sh
CHK include/generated/compile.h
CC drivers/media/platform/tegra/camera/csi/csi2_fops.o
/home/dnc/Downloads/35.3.1/public_sources/Linux_for_Tegra/source/public/kernel/nvidia/drivers/media/platform/tegra/camera/csi/csi2_fops.c: In function ‘csi2_start_streaming’:
/home/dnc/Downloads/35.3.1/public_sources/Linux_for_Tegra/source/public/kernel/nvidia/drivers/media/platform/tegra/camera/csi/csi2_fops.c:295:25: error: this ‘if’ clause does not guard… [-Werror=misleading-indentation]
295 | if (err)
| ^~
/home/dnc/Downloads/35.3.1/public_sources/Linux_for_Tegra/source/public/kernel/nvidia/drivers/media/platform/tegra/camera/csi/csi2_fops.c:298:33: note: …this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
298 | cil_settletime = 0;
| ^~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[7]: *** [/home/dnc/Downloads/35.3.1/public_sources/Linux_for_Tegra/source/public/kernel/kernel-5.10/scripts/Makefile.build:281: drivers/media/platform/tegra/camera/csi/csi2_fops.o] Error 1
make[6]: *** [/home/dnc/Downloads/35.3.1/public_sources/Linux_for_Tegra/source/public/kernel/kernel-5.10/scripts/Makefile.build:498: drivers/media/platform/tegra/camera/csi] Error 2
make[6]: *** Waiting for unfinished jobs…
CC drivers/media/platform/tegra/camera/camera_gpio.o
CC drivers/media/platform/tegra/camera/nvcsi/csi5_fops.o
AR drivers/media/platform/tegra/camera/nvcsi/built-in.a
CC drivers/media/platform/tegra/camera/camera_version_utils.o
CC drivers/media/platform/tegra/camera/sensor_common.o
CC drivers/media/platform/tegra/camera/camera_common.o
CC drivers/media/platform/tegra/camera/tegracam_ctrls.o
make[5]: *** [/home/dnc/Downloads/35.3.1/public_sources/Linux_for_Tegra/source/public/kernel/kernel-5.10/scripts/Makefile.build:498: drivers/media/platform/tegra/camera] Error 2
make[4]: *** [/home/dnc/Downloads/35.3.1/public_sources/Linux_for_Tegra/source/public/kernel/kernel-5.10/scripts/Makefile.build:498: drivers/media/platform/tegra] Error 2
make[3]: *** [/home/dnc/Downloads/35.3.1/public_sources/Linux_for_Tegra/source/public/kernel/kernel-5.10/scripts/Makefile.build:498: drivers/media/platform] Error 2
make[2]: *** [/home/dnc/Downloads/35.3.1/public_sources/Linux_for_Tegra/source/public/kernel/kernel-5.10/scripts/Makefile.build:498: drivers/media] Error 2
make[2]: *** Waiting for unfinished jobs…