Hello,
I work with Xavied NX and Orin NX platforms. I try to build the kernel 5.10 and can’t find the nvbuild.sh file in the JetPack 5.1.2 or the source files from the GIT. Accroding to procedure the file could be copied from the tar file 35.4.1, but this file belongs to kernel 4.9 and doesn’t work. What can I do to build the kernel?
Regards, Vladimir
Hi,
I don’t know what you mean here. Why kernel 4.9? K.49 was used backed in the JetPack 4 era, and we use K5.10 for JetPack 5.
Please just download the kernel source at:
Hi,
I tried to download the “public_sources.tbz2” and compile the kernel with the toolchain specified in the procedure from the following document
[Kernel Customization — Jetson Linux Developer Guide documentation]
The build failed due to the missing files.
I try to get the kernel from a GIT, according to the same procedure.
The problem is the “TAG”, which have to be set for the download.
the command
$ git tag -l tegra-l4t*
is not working due to not specified repository.
Could I get the relevant tag for the kernel 5.10 or the way to get repository access to extact the tags by myself?
Best regards, Vladimir.
What kind of error are you getting?
I just tried building kernel again a few days ago, and there was no error reported.
Hi,
The error during execution of “nvbuild.sh” is following
scripts/sign-file.c:25:10: fatal error: openssl/opensslv.h: No such file or directory
** 25 | include <openssl/opensslv.h>**
** | ^~~~~~~~~~~~~~~~~~~~**
compilation terminated.
make[1]: *** [scripts/Makefile.host:95: scripts/sign-file] Error 1
make[1]: *** Waiting for unfinished jobs…
Do you know how can I get “tag” for git and wher is the repository?
Vladimir
Do you have OpenSSL installed on the system?
They are specified in release notes.
For example, jetson_35.4.1 for L4T 35.4.1.
You should be aware that there should be no difference between kernel sources packed in kernel_src.tbz2 and the one you get from git repo, so compilation issues still persist before you fix them.
Thanks,
How can I fix it?
Apparently you should install OpenSSL in case you haven’t.
Hi,
the openssl is installed.
The openssl include files located in the folder:
./home/vladimir/nvidia/kernel_git/sources/tegra/optee-src/nv-optee/optee/optee_test/host/openssl/include/openssl/opensslv.h
But. there are absent in the sources from the tar file.
/home/vladimir/nvidia/nvidia_35.4.1/Linux_for_Tegra/source/public
Where the nvbuild.sh locates.
The complete build log is following (the openssl include files batch can’t find). Which script has to be corrected?
vladimir@vladimir-ub-2:~/nvidia/nvidia_35.4.1/Linux_for_Tegra/source/public$ ./nvbuild.sh
Building kernel-5.10 sources
make: Entering directory ‘/home/vladimir/nvidia/nvidia_35.4.1/Linux_for_Tegra/source/public/kernel/kernel-5.10’
#
# No change to .config
#
make: Leaving directory ‘/home/vladimir/nvidia/nvidia_35.4.1/Linux_for_Tegra/source/public/kernel/kernel-5.10’
** HOSTCC scripts/sign-file**
scripts/sign-file.c:25:10: fatal error: openssl/opensslv.h: No such file or directory
** 25 | include <openssl/opensslv.h>**
** | ^~~~~~****
compilation terminated.
make[1]: *** [scripts/Makefile.host:95: scripts/sign-file] Error 1
make[1]: *** Waiting for unfinished jobs…
** HOSTCC scripts/extract-cert**
scripts/extract-cert.c:21:10: fatal error: openssl/bio.h: No such file or directory
** 21 | include <openssl/bio.h>**
** | ^
compilation terminated.
make[1]: *** [scripts/Makefile.host:95: scripts/extract-cert] Error 1
make: *** [Makefile:1231: scripts] Error 2
Vladimir
These header files should be taken from somewhere like /usr/include/
on your host, but not from the kernel source folder.
Make you you are installing libssl-dev; openssl alone is not enough.
Dave,
thank you, the build has been started!
Vladimir.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.