I’m not able to answer, my past experience is with Fedora .rpm
files. I do find the question interesting though, so I looked at the control
file on an NX, and noticed something you might find useful (the NX has not been updated in some time, packages will differ from Nano, and won’t be up to date on the NX, but it will be very similar):
# dpkg -S /boot/Image
nvidia-l4t-kernel: /boot/Image
# apt show -a nvidia-l4t-kernel
Package: nvidia-l4t-kernel
Version: 4.9.140-tegra-32.4.4-20201027211332
Priority: standard
Section: kernel
Maintainer: NVIDIA Corporation
Installed-Size: 113 MB
Pre-Depends: nvidia-l4t-core (>> 32.4-0), nvidia-l4t-core (<< 32.5-0)
Homepage: http://developer.nvidia.com/jetson
Download-Size: 29.0 MB
APT-Sources: https://repo.download.nvidia.com/jetson/t194 r32.4/main arm64 Packages
Description: NVIDIA Kernel Package
Package: nvidia-l4t-kernel
Version: 4.9.140-tegra-32.4.4-20201016123640
Priority: standard
Section: kernel
Maintainer: NVIDIA Corporation
Installed-Size: 113 MB
Pre-Depends: nvidia-l4t-core (>> 32.4-0), nvidia-l4t-core (<< 32.5-0)
Homepage: http://developer.nvidia.com/jetson
Download-Size: 29.0 MB
APT-Sources: https://repo.download.nvidia.com/jetson/t194 r32.4/main arm64 Packages
Description: NVIDIA Kernel Package
Package: nvidia-l4t-kernel
Version: 4.9.140-tegra-32.4.3-20200924161919
Priority: standard
Section: kernel
Maintainer: NVIDIA Corporation
Installed-Size: 102 MB
Pre-Depends: nvidia-l4t-core (>> 32.4-0), nvidia-l4t-core (<< 32.5-0)
Homepage: http://developer.nvidia.com/jetson
Download-Size: 26.7 MB
APT-Sources: https://repo.download.nvidia.com/jetson/t194 r32.4/main arm64 Packages
Description: NVIDIA Kernel Package
Package: nvidia-l4t-kernel
Version: 4.9.140-tegra-32.4.3-20200625213407
Priority: standard
Section: kernel
Maintainer: NVIDIA Corporation
Installed-Size: 102 MB
Pre-Depends: nvidia-l4t-core (>> 32.4-0), nvidia-l4t-core (<< 32.5-0)
Homepage: http://developer.nvidia.com/jetson
Download-Size: 26.7 MB
APT-Manual-Installed: yes
APT-Sources: https://repo.download.nvidia.com/jetson/t194 r32.4/main arm64 Packages
Description: NVIDIA Kernel Package
Package: nvidia-l4t-kernel
Version: 4.9.140-tegra-32.4.2-20200428141701
Priority: standard
Section: kernel
Maintainer: NVIDIA Corporation
Installed-Size: 102 MB
Pre-Depends: nvidia-l4t-core (>> 32.4-0), nvidia-l4t-core (<< 32.5-0)
Homepage: http://developer.nvidia.com/jetson
Download-Size: 26.7 MB
APT-Sources: https://repo.download.nvidia.com/jetson/t194 r32.4/main arm64 Packages
Description: NVIDIA Kernel Package
Package: nvidia-l4t-kernel
Version: 4.9.140-tegra-32.4.2-20200408182620
Priority: standard
Section: kernel
Maintainer: NVIDIA Corporation
Installed-Size: 102 MB
Pre-Depends: nvidia-l4t-core (>> 32.4-0), nvidia-l4t-core (<< 32.5-0)
Homepage: http://developer.nvidia.com/jetson
Download-Size: 26.7 MB
APT-Sources: https://repo.download.nvidia.com/jetson/t194 r32.4/main arm64 Packages
Description: NVIDIA Kernel Package
# apt show -a nvidia-l4t-core
Package: nvidia-l4t-core
Version: 32.4.4-20201016123640
Priority: standard
Section: libs
Maintainer: NVIDIA Corporation
Installed-Size: 7,577 kB
Depends: libc6, libegl1, libexpat1, libgcc1, libstdc++6
Conflicts: nvidia-l4t-ccp-t186ref
Replaces: nvidia-l4t-ccp-t186ref
Homepage: http://developer.nvidia.com/jetson
Download-Size: 2,717 kB
APT-Sources: https://repo.download.nvidia.com/jetson/t194 r32.4/main arm64 Packages
Description: NVIDIA Core Package
Package: nvidia-l4t-core
Version: 32.4.3-20200625213407
Priority: standard
Section: libs
Maintainer: NVIDIA Corporation
Installed-Size: 7,577 kB
Depends: libc6, libegl1, libexpat1, libgcc1, libstdc++6
Conflicts: nvidia-l4t-ccp-t186ref
Replaces: nvidia-l4t-ccp-t186ref
Homepage: http://developer.nvidia.com/jetson
Download-Size: 2,723 kB
APT-Manual-Installed: yes
APT-Sources: https://repo.download.nvidia.com/jetson/t194 r32.4/main arm64 Packages
Description: NVIDIA Core Package
Package: nvidia-l4t-core
Version: 32.4.2-20200408182620
Priority: standard
Section: libs
Maintainer: NVIDIA Corporation
Installed-Size: 7,577 kB
Depends: libc6, libegl1, libexpat1, libgcc1, libstdc++6
Conflicts: nvidia-l4t-ccp-t186ref
Replaces: nvidia-l4t-ccp-t186ref
Homepage: http://developer.nvidia.com/jetson
Download-Size: 2,735 kB
APT-Sources: https://repo.download.nvidia.com/jetson/t194 r32.4/main arm64 Packages
Description: NVIDIA Core Package
In particular, note that I found the package owning “/boot/Image
” via “dpkg -S /boot/Image
”. Then I looked at the control file (a series since Image
has had updates) with “apt show -a nvidia-l4t-kernel
”. Following this I found the dependency at the top of the chain, which was “nvidia-l4t-core
” (and thus “apt show -a nvidia-l4t-core
”).
As a theme, look at the ones which supersede another version, such as this line in a control file:
Conflicts: nvidia-l4t-ccp-t186ref
Replaces: nvidia-l4t-ccp-t186ref
I’m thinking perhaps if you install a replacement “.deb
” for both “nvidia-l4t-kernel
” and “nvidia-l4t-core
” simultaneously, using a pair of “.deb
” files set to replace and conflict with the originals (and likely using a new name, e.g., “jjsalzano-l4t-core
” and “jjsalzano-l4t-kernel
”), then it might allow the replacement (I would have any preinstall script create a backup of the original Image and tree and an entry into “extlinux.conf
” to the backup). Keep in mind that you might find a chain of dependencies which in turn depend on the “nvidia-l4t-kernel
” (I’m not done this before, sorry, don’t know), and it might end up being an entire chain of dependencies. However, it doesn’t mean you couldn’t make exact duplicates of those other packages with nothing more changed than to name your version of the kernel package as the “Depends:
” line of the control
file.