To build TensorRT with tegra-drive-os-av-image

Note: Before building TensorRT with Yocto, you must install and enable CUDA and CuDNN on the host.

For the supported TensorRT toolkit version, see the product Release Notes.

Extract <TensorRT-toolkit-version> from TensorRT debian : nv-tensorrt-repo-ubuntu2004-cuda${CUDA_VER}trt<TensorRT-toolkit-version>-d6l-target-ga<BUILD_ID>-1_arm64.deb

For example: nv-tensorrt-repo-ubuntu2004-cuda11.4-trt8.6.11.4-d6l-target-ga-20230615_1-1_arm64.deb, <TensorRT-toolkit-version> is 8.6.11.4

  1. Export the TENSORRT_ENABLE variable:
    export TENSORRT_ENABLE=<TensorRT-toolkit-version>
  2. Build or rebuild the image:
    bitbake tegra-drive-os-av-image