How to recreate debian packages for Jetpack5?

Hi,

We’re trying to roll our own SD card image from scratch and have some changes done to the kernel.
We would very much prefer to pack it as Debian packages, and distribute trough or own channel.

But I can’t find any information how to create/recreate the following packages:
nvidia-l4t-display-kernel_5.10.65-tegra-34.1.1-20220516211757_arm64.deb
nvidia-l4t-kernel_5.10.65-tegra-34.1.1-20220516211757_arm64.deb
nvidia-l4t-kernel-dtbs_5.10.65-tegra-34.1.1-20220516211757_arm64.deb
nvidia-l4t-kernel-headers_5.10.65-tegra-34.1.1-20220516211757_arm64.deb

Trying to do it “the debian way” fails as the dtbs_install target is faulty in your kernel release, and is needed by bindeb-pkg target.

Where can I find more information? And if you can’t provide that information, how are we supposed to use custom kernel packaged straight into the SD-card image? The packaging solution provided overwrites anything written to rootfs/boot/

Please advice.

I am not experienced in building packages, but anything from Ubuntu docs would provide the basic information. If you have the “.deb” file, then you can easily use dpkg to show you what is in that file. This is one article I found related to finding out what is in a “.deb” package:
https://linoxide.com/list-files-deb-package-before-installing/

Some related useful content here:
https://superuser.com/questions/82923/how-to-list-files-of-a-debian-package-without-install

After you have this you probably would want to unpack it:
https://www.cyberciti.biz/faq/how-to-extract-a-deb-file-without-opening-it-on-debian-or-ubuntu-linux/

After that it is in the realm of “.deb” creation tutorials. Example tutorials:

The gist is that I’d start with the existing package, edit this, and create a new (from edits) package which supercedes the original package.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.