Given a TX2 board, there is no way to check which JetPack version it is flashed with. You can only check its L4T info. For example, cat /etc/nv_tegra_release on board.
FYI, JetPack never installs to the Jetson. Only L4T or packages, so there isn’t any JetPack version associated with the Jetson other than possibly the install GUI front end was JetPack of a certain version. On the other hand, so far as I know, there is only one L4T version associated with each JetPack release.
JetPack 3.2.1 L4T R28.2.1 cuDNN v7.0.5 TensorRT 3.0 GA
JetPack 3.2 L4T R28.2
JetPack 3.3 L4T R28.2.1 cuDNN v7.1.5 TensorRT 4.0 GA YES
##############################################
how to find the version of cudnn
I am looking for the same Information on the Jetson Nano Board. I think I use Jetpack 4.2 but I want to be sure. Unfortunatly the path /etc/nv_tegra_release is not existing in my nano build. Our image is from this Link [url]https://developer.nvidia.com/jetson-nano-sd-card-image-r322[/url] and I am to 99% sure it is the Jetpack 4.2 but still want to test it.
There is no /etc/nv_tegra_release in JetPack 4.2.x images.
May I suggest that future JetPack images come with a simple file somewhere that contains the JetPack version. Seems like a pretty straightforward thing to add to your (NVIDIA’s) build process.