But there is no instruction for building linux header deb package, could you please share the reference document/instructions for building/generating linux headers ?
My topic is: how to gnerate/build “Linux_for_Tegra/kernel/nvidia-l4t-kernel-headers_5.15.136-tegra-36.3.0-20240506102626_arm64.deb” from kernel source code.
Duo to we built our own kernel, and cannot update “nvidia-l4t-kernel-headers_xxx_arm64.deb” with " nvdebrepack.sh".
We need the method for building “nvidia-l4t-kernel-headers_xxx_arm64.deb”.
I’m using custom board and with Jetson Orin NX SOM.
The JetPack version is 6.0.
I know repacking debian package can help me, but it is not a formal way.
The formal way is generating a linux headers debian package from kernel source code.
From Jetson Linux source code(https://developer.nvidia.com/downloads/embedded/l4t/r36_release_v3.0/sources/public_sources.tbz2), we can find that there is a folder named “debian.nvidia-tegra”, I guess that kernel packages(including linux headers package) should be built from it. May be it is not a official recommended way of NVIDIA, so I want to learn about the recommended way from NVIDIA to build kernel packages.
Please note that this debian package is included in BSP package by default.
The suggested method to update those debian package is to use nv_repackager.sh and nvdebrepack.sh and you can find the instruction in Repackaging Debian Packages.
Do you have the requirement to release your custom kernel debian package on server?
If not, you can refer to the steps in Kernel Customization to update the related kernel image/dtb which will include all you custom modifications. And you can use them to generate custom image-based OTA package to update the board.