Download Jetpack SDK
This article will guide you to install JetPack SDK and check the installation.
install JetPack SDK
$ sudo apt update
$ sudo apt install nvidia-jetpack
$ apt depends nvidia-jetpack | awk '{print $2}' | xargs -I {} sudo apt install -y {}
( option ) update Jetpack to newer version
$ sudo apt dist-upgrade
$ sudo apt install --fix-broken -o Dpkg::Options::="--force-overwrite"
install jetson-stats to manage package version
$ sudo apt-get install python3-pip
$ sudo -H pip install -U jetson-stats
config cuDNN env
$ echo ' ' >> ~/.bashrc
$ echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64' >> ~/.bashrc
$ echo 'export PATH=$PATH:/usr/local/cuda/bin' >> ~/.bashrc
$ echo 'export CUDA_HOME=$CUDA_HOME:/usr/local/cuda' >> ~/.bashrc
$ source ~/.bashrc
$ sudo apt-get install zlib1g libfreeimage3 libfreeimage-dev
restart docker service
We have installed the nvidia-container, need to restart the docker service to import the config
$ systemctl restart docker
test/ check the package
check Jetpack version
$ sudo apt show nvidia-jetpack
-8b5b2cc14fb83ebeeba1c696f2b91e6c.png)
check jetson_release
$ sudo jetson_release
-aa05d7c007e8c5b4011d2cc631102c19.png)
test cuDNN
$ nvcc -V
-8d19fce7f17d85b6c83aaa2f84904c61.png)
Building a cuDNN Dependent Program
$ sudo cp -rv /usr/src/cudnn_samples_v8 ~/
$ cd ~/cudnn_samples_v8/mnistCUDNN/
$ sudo chmod 777 ~/cudnn_samples_v8/
$ sudo make clean && sudo make
$ ./mnistCUDNN
-048a1a1d7b08970e9f1eb4a48ba7bc30.png)
prepare jetson-containers
$ git clone https://github.com/dusty-nv/jetson-containers
patch for
jetson-containersLots of the AI demo need jetson-containers to prepare environment.
But currently, the containers can't support the MIPI camera.
Please download the patch, and run the below command.
$ cd jetson-containers
$ git apply 0001-add-v4l-subdev-vi-capture-channel-media-devices.patch
$ cd ../
$ bash jetson-containers/install.sh
Reference:
How to Install JetPack
jetson-stats
cuDNN
FreeImage is not set up correctly. Please ensure FreeImae is set up correctly