To prevent apt upgrade from unintentionally overriding your custom kernel, you need to rename the kernel and initramfs images, and then update extlinux.conf. You can do this either on the host or on the target.
Thank you for your reply. Currently, we are no longer using apt-get install for installation. Instead, we have placed the CUDA package in the file system in advance
Hello, we have encountered another issue: when installing other tools, most of the system tools and content were updated. Although we followed the method you provided to avoid updating the kernel Image and initrd, the device tree and some tools were still updated to version R38.2.1!
When installing libnvinfer-dev, the operations are as follows: