How to build nvidia-l4t-kernel-headers_arm64.deb

Please provide the following info (tick the boxes after creating this topic):
Software Version
DRIVE OS 6.0.0

Target Operating System
Linux

Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-300)
Please paste the complete application log here. If there are multiple logs, please use multiple text box
how to build nvidia-l4t-kernel-headers jetson36.3,I didn’t find it in the official website description document。

Hi,
If the device cannot be flashed/booted, please refer to the page to get uart log from the device:
Jetson/General debug - eLinux.org
And get logs of host PC and Jetson device for reference. If you are using custom board, you can compare uart log of developer kit and custom board to get more information.
Also please check FAQs:
Jetson AGX Orin FAQ
If possible, we would suggest follow quick start in developer guide to re-flash the system:
Quick Start — NVIDIA Jetson Linux Developer Guide 1 documentation
And see if the issue still persists on a clean-flashed system.
Thanks!

HI
我想知道nvidia-l4t-kernel-headers_arm64.deb,这个deb包的相关文件从编译到打包的命令。
但是我没有在
Quick Start — NVIDIA Jetson Linux Developer Guide 1 documentation这个手册里面找到。能给我一个相关描述的链接吗?

Hi qqqqq1,
You could try to refer this doc Software Packages and the Update Mechanism

Hi DavidLLL
我仔细阅读这个链接 Software Packages and the Update Mechanism,但是很抱歉,没有我需要的信息。我需要的是如何编译nvidia-l4t-kernel-headers这个模块,以及打包成deb。
我在您给的文档中查看到的信息如下:
nvdebrepack.sh 这个是在现有的包中打入需要更新的文件
nv_repackager.sh 这个脚本是把deb文件转化为tar文件

您好,
想要確認一下我是否理解您的問題。
您已經打開nvidia-l4t-kernel-headers_arm64.deb deb package且更改它,是想詢問如何重新打包您已更改的deb嗎?
如果是這樣,
不知道Linux_for_Tegra/tools/Debian/nvdebrepack.txt 中的指令是否符合您的需求
如果不是,
請再詳述您的需求。

HI DavidLLL
您说的是重新打包这个deb,但是我更想知道他这个deb包中的
/usr/src/linux-headers-5.15.136-tegra-ubuntu22.04_aarch64文件夹里面的内容编译方法?

Hi qqqqq1,
/usr/src/linux-headers-5.15.136-tegra-ubuntu22.04_aarch64中的source都是從linux kernel source來的,如果您是想要全部且編譯可以參考 Kernel Customization.
如果不是,想請問您是想要在board上編譯還是在host上編譯呢?

在host上编译
很抱歉我之前没有描述清楚,我给您说一下,我的需求背景吧,
我希望自己在在host上编译编译我们 Real-Time升级包,也就是说我想编译这几个升级包的内容
nvidia-l4t-rt-kernel nvidia-l4t-rt-kernel-headers nvidia-l4t-rt-kernel-oot-modules nvidia-l4t-display-rt-kernel

但是我按照 Kernel Customization的方式编译RT内核,发现其他三个deb包的内容都可以找到,但是nvidia-l4t-rt-kernel-headers.deb内容在Linux_for_Tegra/rootfs/usr/src路径下没有生成linux-headers-5.15.136-rt-tegra-ubuntu22.04_aarch64/这个文件夹。

然后我尝试编译普通的内核,修改了一下sources/nvidia-oot/include/media/max9296.h的注释内容
发现编译后没有把最新的文件更新到Linux_for_Tegra/rootfs/usr/src/linux-headers-5.15.136-tegra-ubuntu22.04_aarch64这个文件夹,所以我怀疑我没有编译到这个文件夹,想尝试找到这个文件夹的编译方法。
以及 Linux_for_Tegra/rootfs/usr/src/linux-headers-5.15.136-rt-tegra-ubuntu22.04_aarch64生成的方法

This directory is generated when you run sudo ./apply_binaries.sh.
It will unpack the deb under <Linux_for_Tegra>/kernel/

There’s no linux-headers-5.15.136-rt-tegra-ubuntu22.04_aarch64 as expected.

Let’s back to your original requirement to generate nvidia-l4t-rt-kernel-headers.deb
It should be the right one script(nvdebrepack.sh) David has suggested.
Please use -i and -f to specify the file you want to modify and repack deb.

It should be included in nvidia-l4t-kernel-oot-headers_XXXX_arm64.deb.
Please just use nvdebrepack.sh to update this file in deb.