Problems Building Jetson_35.4.1 (Jetpack 5.1.2)

I need to rebuild a kernel using JetPack 5.1.2 (Jetson Linux 35.4.1).and update a pinmux config. I used the SDKM to successfully download and install JetPack 5.1.2 Linux. but source_sync.sh failed to access any repos.

It turns out that the repo paths now include a “/r/” component (e.g.: “https://nv-tegra.nvidia.com/r/plugins/gitiles/linux-5.10/+/refs/tags/jetson_35.4.1” and no backward compatibility - nice), but even after that, files like …/kernel/kernel-5.10/include/linux/tegra_prod.h and …/kernel/kernel-5.10/include/linux/tegra_profiler.h are missing and the build fails.

There are also issues with some Kconfig files referencing nonexistent paths/files with “tegra” in them like …/kernel/kernel-5.10drivers/platform/tegra/Kconfig.

I pulled down the public sources and just about every tarball that I could find related to 5.1.2/35.4.1 and still cannot find those files. They are not even on the repo available at: include/linux - linux-5.10 - Gitiles.

I found some discussion on the forums about how the config was derived from “kernel 4.9, which is used by L4T 32.x and JetPack 4” and some things need to be removed from a few KConfig files, but I am still having issues.

Is there a completely corrected, buildable version of the 5.1.2/35.4.1 files somewhere that can be obtained somewhere? Something that should work out of the box? Or at the very least, a comprehensive and tested list of what changes are necessary?

This is my first time needing to rebuild a kernel for the Jetson platform. It might be worth mentioning that this is a cross-compile configuration (X86_64 to aarch64).

Hi,
Please confirm which platform you are using. This topic is in TX2 category but TX2 series are not supported on Jetpack 5. It is a bit confusing.

My apologies, it is NX. Perhaps a wider view would help: are the issues I described familiar or known and if so, what is their resolution, regardless of target platform? This is happening before deployment so the issue is whether or not the SDKM and source_sync script are doing what they need to do or not.

If there are known problems and they are target specific, that too is useful information and this is as good a place as any to specify them.

-=- James.

Hi,
Just to clarify. We have TX2 NX, Xavier NX and Orin NX… so maybe you still need to clarify what “NX” you are using here..

Xavier NX.

Is the problem I described known to exist on ANY platform with “NX” in its name?

Thanks in advance for a speedy response to the above question.

SDKM seems to indicate this is a valid configuration, BTW:

I am not sure why you keep showing up sdkmanager GUI. That sounds not related to the problem. But anyway.

What error did you see from the source_sync.sh?

The second image shows that the configuration I am seemingly trying to use is something that is (supposedly) supported and the first shows a correct installation of Jetpack 5.1.2. As I said earlier: “This is my first time needing to rebuild a kernel for the Jetson platform” and the diagnostics I have available to me (the SDKM GUI) say I have not done anything wrong.

Now you know why.

Unless I am using the wrong thing for status/diagnostics? If so, please tell me what I should be looking at.

Oh, and anything on this being a known issue or not? It seems like that question is getting dodged for some reason; a very simple yes or no will do fine.


I do not have the output from my original run, so I copied the
JetPack_5.1.2_Linux* directories, cleared out the sources directory and ran it again. This is what I get executing source_sync -t jetson_35.4.1:

Downloading default kernel/kernel-5.10 source...
Cloning into '/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/kernel/kernel-5.10'...
fatal: unable to connect to nv-tegra.nvidia.com:
nv-tegra.nvidia.com[0: 35.82.181.43]: errno=Connection timed out
nv-tegra.nvidia.com[1: 34.216.216.36]: errno=Connection timed out

/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/kernel/kernel-5.10 source sync failed!


Downloading default kernel/nvgpu source...
Cloning into '/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/kernel/nvgpu'...
fatal: unable to connect to nv-tegra.nvidia.com:
nv-tegra.nvidia.com[0: 35.82.181.43]: errno=Connection timed out
nv-tegra.nvidia.com[1: 34.216.216.36]: errno=Connection timed out

/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/kernel/nvgpu source sync failed!


Directory for kernel/nvidia, /home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/kernel/nvidia, already exists!
fatal: not a git repository (or any of the parent directories): .git
But the directory is not a git repository -- clean it up first


Downloading default kernel/nvidia/drivers/net/ethernet/nvidia/nvethernet/nvethernetrm source...
Cloning into '/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/kernel/nvidia/drivers/net/ethernet/nvidia/nvethernet/nvethernetrm'...

Some directories are created under “sources” like JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/kernel/nvidia/drivers/net/ethernet/nvidia/nvethernet but they are empty

If you need the complete output, it will be available in about another 30 minutes or so as it takes each item in the “list” in the script takes 3+ minutes to fail.

Has anyone actually tried this recently? it might be better to see firsthand if any problems exist.

We are still checking the issue you are talking about.
So there is no “yes” or “no” answer to you for now. There were no other users reporting this recently either.

Need your patience for this moment.

Thank you, “recently” tells me enough about this issue given the age of the this Jetpack release.

As I alluded to in my initial message, I can get things to clone correctly. It requires a few modifications to the source_sync.sh script. First, in the array in the script, remove .git from the lines and add the missing /r/: k:kernel/kernel-5.10:nv-tegra.nvidia.com/linux-5.10.git becomes k:kernel/kernel-5.10:nv-tegra.nvidia.com/r/linux-5.10.
Then change the generated URL scheme from git:// to https://:

#DownloadAndSync $WHAT ${LDK_DIR}/${WHAT} git://${REPO} ${TAG} ${OPT}
DownloadAndSync $WHAT ${LDK_DIR}/${WHAT} https://${REPO} ${TAG} ${OPT}

After that, the tag will download correctly; at least no errors will be reported. but then I am left in the position I wrote about above where files/paths are being used in the build that do not exist in the downloaded files or anywhere in the tagged repo.


Complete log JIC anyone asks for it:

Downloading default kernel/kernel-5.10 source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/kernel/kernel-5.10’…
fatal: unable to connect to nv-tegra.nvidia.com:
nv-tegra.nvidia.com[0: 34.216.216.36]: errno=Connection timed out
nv-tegra.nvidia.com[1: 35.82.181.43]: errno=Connection timed out

/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/kernel/kernel-5.10 source sync failed!

Downloading default kernel/nvgpu source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/kernel/nvgpu’…
fatal: unable to connect to nv-tegra.nvidia.com:
nv-tegra.nvidia.com[0: 35.82.181.43]: errno=Connection timed out
nv-tegra.nvidia.com[1: 34.216.216.36]: errno=Connection timed out

/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/kernel/nvgpu source sync failed!

Directory for kernel/nvidia, /home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/kernel/nvidia, already exists!
fatal: not a git repository (or any of the parent directories): .git
But the directory is not a git repository – clean it up first

Downloading default kernel/nvidia/drivers/net/ethernet/nvidia/nvethernet/nvethernetrm source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/kernel/nvidia/drivers/net/ethernet/nvidia/nvethernet/nvethernetrm’…
fatal: unable to connect to nv-tegra.nvidia.com:
nv-tegra.nvidia.com[0: 35.82.181.43]: errno=Connection timed out
nv-tegra.nvidia.com[1: 34.216.216.36]: errno=Connection timed out

/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/kernel/nvidia/drivers/net/ethernet/nvidia/nvethernet/nvethernetrm source sync failed!

Downloading default hardware/nvidia/platform/tegra/common source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/hardware/nvidia/platform/tegra/common’…
fatal: unable to connect to nv-tegra.nvidia.com:
nv-tegra.nvidia.com[0: 34.216.216.36]: errno=Connection timed out
nv-tegra.nvidia.com[1: 35.82.181.43]: errno=Connection timed out

/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/hardware/nvidia/platform/tegra/common source sync failed!

Downloading default hardware/nvidia/soc/t19x source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/hardware/nvidia/soc/t19x’…
fatal: unable to connect to nv-tegra.nvidia.com:
nv-tegra.nvidia.com[0: 35.82.181.43]: errno=Connection timed out
nv-tegra.nvidia.com[1: 34.216.216.36]: errno=Connection timed out

/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/hardware/nvidia/soc/t19x source sync failed!

Downloading default hardware/nvidia/platform/t19x/common source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/hardware/nvidia/platform/t19x/common’…
fatal: unable to connect to nv-tegra.nvidia.com:
nv-tegra.nvidia.com[0: 35.82.181.43]: errno=Connection timed out
nv-tegra.nvidia.com[1: 34.216.216.36]: errno=Connection timed out

/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/hardware/nvidia/platform/t19x/common source sync failed!

Downloading default hardware/nvidia/platform/t19x/galen/kernel-dts source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/hardware/nvidia/platform/t19x/galen/kernel-dts’…
fatal: unable to connect to nv-tegra.nvidia.com:
nv-tegra.nvidia.com[0: 34.216.216.36]: errno=Connection timed out
nv-tegra.nvidia.com[1: 35.82.181.43]: errno=Connection timed out

/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/hardware/nvidia/platform/t19x/galen/kernel-dts source sync failed!

Downloading default hardware/nvidia/platform/t19x/jakku/kernel-dts source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/hardware/nvidia/platform/t19x/jakku/kernel-dts’…
fatal: unable to connect to nv-tegra.nvidia.com:
nv-tegra.nvidia.com[0: 35.82.181.43]: errno=Connection timed out
nv-tegra.nvidia.com[1: 34.216.216.36]: errno=Connection timed out

/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/hardware/nvidia/platform/t19x/jakku/kernel-dts source sync failed!

Downloading default hardware/nvidia/platform/t19x/mccoy/kernel-dts source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/hardware/nvidia/platform/t19x/mccoy/kernel-dts’…
fatal: unable to connect to nv-tegra.nvidia.com:
nv-tegra.nvidia.com[0: 35.82.181.43]: errno=Connection timed out
nv-tegra.nvidia.com[1: 34.216.216.36]: errno=Connection timed out

/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/hardware/nvidia/platform/t19x/mccoy/kernel-dts source sync failed!

Downloading default hardware/nvidia/platform/t19x/galen-industrial/kernel-dts source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/hardware/nvidia/platform/t19x/galen-industrial/kernel-dts’…
fatal: unable to connect to nv-tegra.nvidia.com:
nv-tegra.nvidia.com[0: 34.216.216.36]: errno=Connection timed out
nv-tegra.nvidia.com[1: 35.82.181.43]: errno=Connection timed out

/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/hardware/nvidia/platform/t19x/galen-industrial/kernel-dts source sync failed!

Downloading default hardware/nvidia/platform/t23x/common/kernel-dts source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/hardware/nvidia/platform/t23x/common/kernel-dts’…
fatal: unable to connect to nv-tegra.nvidia.com:
nv-tegra.nvidia.com[0: 34.216.216.36]: errno=Connection timed out
nv-tegra.nvidia.com[1: 35.82.181.43]: errno=Connection timed out

/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/hardware/nvidia/platform/t23x/common/kernel-dts source sync failed!

Downloading default hardware/nvidia/platform/t23x/p3768/kernel-dts source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/hardware/nvidia/platform/t23x/p3768/kernel-dts’…
fatal: unable to connect to nv-tegra.nvidia.com:
nv-tegra.nvidia.com[0: 35.82.181.43]: errno=Connection timed out
nv-tegra.nvidia.com[1: 34.216.216.36]: errno=Connection timed out

/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/hardware/nvidia/platform/t23x/p3768/kernel-dts source sync failed!

Downloading default hardware/nvidia/platform/t23x/concord/kernel-dts source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/hardware/nvidia/platform/t23x/concord/kernel-dts’…
fatal: unable to connect to nv-tegra.nvidia.com:
nv-tegra.nvidia.com[0: 35.82.181.43]: errno=Connection timed out
nv-tegra.nvidia.com[1: 34.216.216.36]: errno=Connection timed out

/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/hardware/nvidia/platform/t23x/concord/kernel-dts source sync failed!

Downloading default hardware/nvidia/platform/t23x/prometheus/kernel-dts source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/hardware/nvidia/platform/t23x/prometheus/kernel-dts’…
fatal: unable to connect to nv-tegra.nvidia.com:
nv-tegra.nvidia.com[0: 34.216.216.36]: errno=Connection timed out
nv-tegra.nvidia.com[1: 35.82.181.43]: errno=Connection timed out

/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/hardware/nvidia/platform/t23x/prometheus/kernel-dts source sync failed!

Downloading default hardware/nvidia/soc/t23x source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/hardware/nvidia/soc/t23x’…
fatal: unable to connect to nv-tegra.nvidia.com:
nv-tegra.nvidia.com[0: 34.216.216.36]: errno=Connection timed out
nv-tegra.nvidia.com[1: 35.82.181.43]: errno=Connection timed out

/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/hardware/nvidia/soc/t23x source sync failed!

Downloading default hardware/nvidia/soc/tegra source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/hardware/nvidia/soc/tegra’…
fatal: unable to connect to nv-tegra.nvidia.com:
nv-tegra.nvidia.com[0: 35.82.181.43]: errno=Connection timed out
nv-tegra.nvidia.com[1: 34.216.216.36]: errno=Connection timed out

/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/hardware/nvidia/soc/tegra source sync failed!

Downloading default tegra/kernel-src/nv-kernel-display-driver source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/kernel-src/nv-kernel-display-driver’…
fatal: unable to connect to nv-tegra.nvidia.com:
nv-tegra.nvidia.com[0: 35.82.181.43]: errno=Connection timed out
nv-tegra.nvidia.com[1: 34.216.216.36]: errno=Connection timed out

/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/kernel-src/nv-kernel-display-driver source sync failed!

Downloading default 3rdparty/dtc source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/3rdparty/dtc’…
fatal: unable to connect to nv-tegra.nvidia.com:
nv-tegra.nvidia.com[0: 34.216.216.36]: errno=Connection timed out
nv-tegra.nvidia.com[1: 35.82.181.43]: errno=Connection timed out

/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/3rdparty/dtc source sync failed!

Downloading default 3rdparty/libnl/3.5.0 source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/3rdparty/libnl/3.5.0’…
fatal: unable to connect to nv-tegra.nvidia.com:
nv-tegra.nvidia.com[0: 34.216.216.36]: errno=Connection timed out
nv-tegra.nvidia.com[1: 35.82.181.43]: errno=Connection timed out

/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/3rdparty/libnl/3.5.0 source sync failed!

Downloading default tegra/argus-cam-libav/argus_cam_libavencoder source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/argus-cam-libav/argus_cam_libavencoder’…
fatal: unable to connect to nv-tegra.nvidia.com:
nv-tegra.nvidia.com[0: 35.82.181.43]: errno=Connection timed out
nv-tegra.nvidia.com[1: 34.216.216.36]: errno=Connection timed out

/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/argus-cam-libav/argus_cam_libavencoder source sync failed!

Downloading default tegra/cuda-src/nvsample_cudaprocess source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/cuda-src/nvsample_cudaprocess’…
fatal: unable to connect to nv-tegra.nvidia.com:
nv-tegra.nvidia.com[0: 34.216.216.36]: errno=Connection timed out
nv-tegra.nvidia.com[1: 35.82.181.43]: errno=Connection timed out

/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/cuda-src/nvsample_cudaprocess source sync failed!

Downloading default tegra/gfx-src/nv-xconfig source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/gfx-src/nv-xconfig’…
fatal: unable to connect to nv-tegra.nvidia.com:
nv-tegra.nvidia.com[0: 34.216.216.36]: errno=Connection timed out
nv-tegra.nvidia.com[1: 35.82.181.43]: errno=Connection timed out

/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/gfx-src/nv-xconfig source sync failed!

Downloading default tegra/gst-src/gst-egl source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/gst-src/gst-egl’…
fatal: unable to connect to nv-tegra.nvidia.com:
nv-tegra.nvidia.com[0: 35.82.181.43]: errno=Connection timed out
nv-tegra.nvidia.com[1: 34.216.216.36]: errno=Connection timed out

/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/gst-src/gst-egl source sync failed!

Downloading default tegra/gst-src/gst-jpeg source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/gst-src/gst-jpeg’…
fatal: unable to connect to nv-tegra.nvidia.com:
nv-tegra.nvidia.com[0: 34.216.216.36]: errno=Connection timed out
nv-tegra.nvidia.com[1: 35.82.181.43]: errno=Connection timed out

/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/gst-src/gst-jpeg source sync failed!

Downloading default tegra/gst-src/gst-nvarguscamera source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/gst-src/gst-nvarguscamera’…
fatal: unable to connect to nv-tegra.nvidia.com:
nv-tegra.nvidia.com[0: 35.82.181.43]: errno=Connection timed out
nv-tegra.nvidia.com[1: 34.216.216.36]: errno=Connection timed out

/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/gst-src/gst-nvarguscamera source sync failed!

Downloading default tegra/gst-src/gst-nvcompositor source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/gst-src/gst-nvcompositor’…
fatal: unable to connect to nv-tegra.nvidia.com:
nv-tegra.nvidia.com[0: 35.82.181.43]: errno=Connection timed out
nv-tegra.nvidia.com[1: 34.216.216.36]: errno=Connection timed out

/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/gst-src/gst-nvcompositor source sync failed!

Downloading default tegra/gst-src/gst-nvtee source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/gst-src/gst-nvtee’…
fatal: unable to connect to nv-tegra.nvidia.com:
nv-tegra.nvidia.com[0: 34.216.216.36]: errno=Connection timed out
nv-tegra.nvidia.com[1: 35.82.181.43]: errno=Connection timed out

/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/gst-src/gst-nvtee source sync failed!

Downloading default tegra/gst-src/gst-nvv4l2camera source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/gst-src/gst-nvv4l2camera’…
fatal: unable to connect to nv-tegra.nvidia.com:
nv-tegra.nvidia.com[0: 34.216.216.36]: errno=Connection timed out
nv-tegra.nvidia.com[1: 35.82.181.43]: errno=Connection timed out

/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/gst-src/gst-nvv4l2camera source sync failed!

Downloading default tegra/gst-src/gst-nvvidconv source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/gst-src/gst-nvvidconv’…
fatal: unable to connect to nv-tegra.nvidia.com:
nv-tegra.nvidia.com[0: 34.216.216.36]: errno=No route to host
nv-tegra.nvidia.com[1: 35.82.181.43]: errno=No route to host

/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/gst-src/gst-nvvidconv source sync failed!

Downloading default tegra/gst-src/gst-nvvideo4linux2 source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/gst-src/gst-nvvideo4linux2’…
fatal: Unable to look up nv-tegra.nvidia.com (port 9418) (Name or service not known)
/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/gst-src/gst-nvvideo4linux2 source sync failed!

Downloading default tegra/gst-src/nvgstapps source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/gst-src/nvgstapps’…
fatal: Unable to look up nv-tegra.nvidia.com (port 9418) (Name or service not known)
/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/gst-src/nvgstapps source sync failed!

Downloading default tegra/gst-src/libgstnvcustomhelper source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/gst-src/libgstnvcustomhelper’…
fatal: Unable to look up nv-tegra.nvidia.com (port 9418) (Name or service not known)
/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/gst-src/libgstnvcustomhelper source sync failed!

Downloading default tegra/gst-src/libgstnvdrmvideosink source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/gst-src/libgstnvdrmvideosink’…
fatal: Unable to look up nv-tegra.nvidia.com (port 9418) (Name or service not known)
/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/gst-src/libgstnvdrmvideosink source sync failed!

Downloading default tegra/gst-src/libgstnvvideosinks source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/gst-src/libgstnvvideosinks’…
fatal: Unable to look up nv-tegra.nvidia.com (port 9418) (Name or service not known)
/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/gst-src/libgstnvvideosinks source sync failed!

Downloading default tegra/v4l2-src/libv4l2_nvargus source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/v4l2-src/libv4l2_nvargus’…
fatal: Unable to look up nv-tegra.nvidia.com (port 9418) (Name or service not known)
/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/v4l2-src/libv4l2_nvargus source sync failed!

Downloading default tegra/nv-sci-src/nvsci_headers source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/nv-sci-src/nvsci_headers’…
fatal: Unable to look up nv-tegra.nvidia.com (port 9418) (Name or service not known)
/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/nv-sci-src/nvsci_headers source sync failed!

Downloading default tegra/optee-src/atf source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/optee-src/atf’…
fatal: Unable to look up nv-tegra.nvidia.com (port 9418) (Name or service not known)
/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/optee-src/atf source sync failed!

Downloading default tegra/optee-src/nv-optee source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/optee-src/nv-optee’…
fatal: Unable to look up nv-tegra.nvidia.com (port 9418) (Name or service not known)
/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/optee-src/nv-optee source sync failed!

Downloading default tegra/v4l2-src/v4l2_libs source…
Cloning into ‘/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/v4l2-src/v4l2_libs’…
fatal: Unable to look up nv-tegra.nvidia.com (port 9418) (Name or service not known)
/home/vadmin/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/sources/tegra/v4l2-src/v4l2_libs source sync failed!

Edit: I just noticed that my VM lost connectivity toward the end of execution but rest assured that the outcome is the same as the previous clone attempts.

We tried the same command as “$ ./source_sync.sh -t jetson_35.4.1” on our side but didn’t hit any timeout error. Also, we didn’t modify anything in the source_sync script.

Thank you. What was the complete sequence of operations, please? I presume this was done on a clean system, meaning no previous versions of Jetpack installed? Nothing done with the SDKM?

The missing files (e.g. tegra_profiler.h) seemed to exist in previous versions, so this is necessary to ensure that any old “trash” is not affecting things.

Sdkmanager shall download the same file as what I am using now to your host PC.

Also, another alternative is download those packages manually from the website.

For manual setup, the steps from this document would help.

These two methods shall give you the totally same source_sync.sh. If you still hit that timeout error from these source_sync.sh, then it means some other causes there.

Thank you. I did previously download everything as specified (“I pulled down the public sources and just about every tarball that I could find related to 5.1.2/35.4.1”) but still have the problem of the missing files. That is why I asked if this was done on a clean system or not, otherwise it is not a valid test environment that matches mine.
Edit: This is where I got most of the stuff from: Jetson Linux 35.4.1 | NVIDIA Developer, which is where your link eventually takes me to.

So, was this done on a clean system or not? Oh, and did the build actually work or did it complain about missing files? it fails rather early in the build process.

Could you provide the exact build steps and build error you saw there?

Just to clarify. We don’t hit any “timeout error” and also didn’t hit any missing file during build.

So actually the first thing we are discussing is already different. Something go wrong after that timeout error from your side and we should check why that happened first.

And actually I am not sure what does “clean system” mean here. These two could be downloaded multiple times to different directories each time and they will not affect each other. So whether a system is “clean” or not does not matter.

For example, I download it to path1 first, sync the code and build. I can still download it to path2 again and sync code + build. These two won’t affect each other.

But not if the proposed solution is to download manually, which I previously did thinking that the script did not pull everything down. Attempting to build still yielded errors for that tegra_profiler.h file, and since it was not part of repo I presumed that something was wrong. Simply googling for " tegra_profiler.h" will show results where others had similar problems (which you should know already, right?).

From the different things I have tried, I am unable to pull an accurate set of steps. Pulling history is not good enough because I used multiple terminals.

I would think that the idea of a “clean” system should be pretty standard in the development community. The reason I bring it up is because the dev that used to build the Jetson kernels and FS for us has an environment with JetPack versions 4.5.1 and 4.6.2 on his system and he was able to build with the same steps I followed. My system does NOT have this prior “experience” and it is the only thing that is different. so far. Googling for " tegra_profiler.h" and noting the configuration (read: past JetPack history) of systems that also experience this problem should prove enlightening.

Oh, can you please post a part of the “list” from the source_sync.sh script you used? I am interested how it overcame the addition of the /r/ in the repo paths. And the version of “git” that is installed on your system?

No, it sounds like you don’t get my point.

I am talking about you you could either let sdkmanager download “source_sync.sh” or your just download the “source_sync.sh” manually by yourself.

We are all talking about “source_sync.sh” tool itself. But not the source code.

If you want to download the source code itself manually, then that L4T archive page has it too.

image

And back to the " tegra_profiler.h " things that you keep mentioning.

I notice one problem here that it seems you are looking for this file in a wrong location.

tegra_profiler.h is not in k5.10 but “nvidia” repo.

kernel\nvidia\include\linux\tegra_profiler.h

Your source sync didn’t sync everything out here and that may be the reason you couldn’t find it.

Yes, I had the path wrong, sorry. The header file in question is deployed by the nvidia-l4t-kernel-headers_5.10.120-tegra-35.4.1-20230801124926_arm64.deb package, which is how I got around that first issue. The second one with the Kconfig files still happened, with them including paths to locations that did not exist, and the only way I could have gotten those Kconfiig files was from the script by the downloaded packages. There is where I stopped and what brought me here. There was no reason I would have incorrect Kconfig files, unless something was wrong with what I downloaded.

There is a reason I am asking the questions I am asking, or asking to google what I googled and helping see where things went wrong. Answering those questions and/or doing the same searches before adding any other information would be most beneficial.

So far what I have gotten from this is that the script works and the kernel builds on your machine, whose configuration is unknown to me – essentially “it works on my machine.” :) So if I cannot get you to reproduce on a “clean” system, the onus is now on me to match your environment. Which is why I asked about the contents of the script for starters. Next will be knowing what other JetPack versions are installed.