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.

Example to extract the TensorRT-toolkit-version:

nvidia@dl20-0441:/drive$ ls /drive/drive-linux/toolkits/tensorRT/nv-tensorrt* | sort

  /drive/drive-linux/toolkits/tensorRT/nv-tensorrt-repo-ubuntu2404-cuda12.8-trt10.10.10.3-d7l-target-ga-20250423_1-1_arm64.deb

The TensorRT-toolkit-version is 10.10.10.3.

  1. Export the TENSORRT_ENABLE variable:

    export TENSORRT_ENABLE=<TensorRT-toolkit-version>
    
  2. Build or rebuild the image:

    bitbake tegra-drive-os-av-image