NGC | Catalog
Welcome Guest
CatalogContainersJetPack Cross Compilation container

JetPack Cross Compilation container

For copy image paths and more information, please view on a desktop device.
Logo for JetPack Cross Compilation container

Description

JetPack cross compilation container can be used to cross compile various JetPack components on a x86 host machine. This container simplifies cross compilation and includes the needed cross compilation tools and build environment already setup within it.

Publisher

NVIDIA

Latest Tag

5.0.2

Modified

September 7, 2022

Compressed Size

20.11 GB

Multinode Support

No

Multi-Arch Support

No

5.0.2 (Latest) Scan Results

Linux / amd64

Overview of JetPack Cross Compilation Container

JetPack cross compilation container can be used to cross compile various JetPack components on a x86 host machine. This container simplifies cross compilation and includes the needed cross compilation tools and build environment already setup within it.

Using the JetPack Cross Compilation Container

Pull the container

Pull the corresponding JetPack Build docker image matching JetPack SDK version. For example use the docker image tagged by "5.0.2" for development with JetPack SDK 5.0.2 production release. Below th ${SW_VERSION} is used to represent the docker image tag and JetPack SDK version.

docker pull nvcr.io/nvidia/jetpack-linux-aarch64-crosscompile-x86:${SW_VERSION}

Run the container

Run the docker with the command on host:

docker run -it --privileged --net=host -v /dev/bus/usb:/dev/bus/usb -v ${WORKSPACE}:/workspace nvcr.io/nvidia/jetpack-linux-aarch64-crosscompile-x86:${SW_VERSION}

${WORKSPACE} is the path which includes the files one would like to use in the container.

Inside the container, extract the targetfs and toolchain:

cd /l4t
tar -I lbzip2 -xf targetfs.tbz2
mkdir toolchain
tar -C toolchain -xf toolchain.tar.gz

To cross compile L4T public sources

  1. Download L4T Driver Package (BSP) Sources which should be named as public_source.tbz2 from Jetson Linux page and place it under ${WORKSPACE} before starting the container.
  2. Inside the container run the commands below:
cd /workspace
tar -I lbzip2 -xf public_sources.tbz2
cd ./Linux_for_Tegra/source/public
CROSS_COMPILE_AARCH64=/l4t/toolchain/bin/aarch64-buildroot-linux-gnu- CROSS_COMPILE_AARCH64_PATH=/l4t/toolchain NV_TARGET_BOARD=t186ref ./nv_public_src_build.sh

To cross compile OP-TEE source

  1. Download L4T Driver Package (BSP) Sources which should be named as public_source.tbz2 from Jetson Linux page and place it under ${WORKSPACE}.
  2. Inside the container run the commands below:
cd /workspace
tar -I lbzip2 -xf public_sources.tbz2
cd ./Linux_for_Tegra/source/public
tar -I lbzip2 -xf nvidia-jetson-optee-source.tbz2

Use below command to cross compile for Jetson AGX Xavier series or Jetson Xavier NX series

CROSS_COMPILE_AARCH64=/l4t/toolchain/bin/aarch64-buildroot-linux-gnu- CROSS_COMPILE_AARCH64_PATH=/l4t/toolchain PYTHON3_PATH="/usr/bin/python3.8" ./optee_src_build.sh -p t194

Use below command to cross compile for Jetson AGX Orin series

CROSS_COMPILE_AARCH64=/l4t/toolchain/bin/aarch64-buildroot-linux-gnu- CROSS_COMPILE_AARCH64_PATH=/l4t/toolchain PYTHON3_PATH="/usr/bin/python3.8" ./optee_src_build.sh -p t234

To cross compile Jetson Multimedia API samples

  1. Inside the container run the commands below:
cd /l4t/targetfs/usr/src/jetson_multimedia_api
export CROSS_COMPILE=aarch64-linux-gnu-
export TARGET_ROOTFS=/l4t/targetfs/
make

To cross compile CUDA samples

  1. Inside the container run the commands below:
cd /l4t
/l4t/targetfs/usr/local/cuda/bin/cuda-install-samples-11.4.sh .
cd NVIDIA_CUDA-11.4_Samples
make TARGET_ARCH=aarch64 TARGET_OS=linux TARGET_FS=/l4t/targetfs/ SMS=${SOC_SMS}

${SOC_SMS} is 72 for Xavier iGPU, 75 for Xavier dGPU, and 87 for Orin iGPU.

To cross compile VPI samples

  1. Inside the container run the commands below:
cd /l4t
/opt/nvidia/vpi2/bin/vpi_install_samples.sh .
cd NVIDIA_VPI-2.1-samples/08-cross_aarch64_l4t/
cmake . -DCMAKE_TOOLCHAIN_FILE=Toolchain_aarch64_l4t.cmake
make

Documentation

License

The jetpack-linux-aarch64-crosscompile-x86 includes various software packages with their respective licenses included within the container. By pulling and using this container, you accept the terms and conditions of these licenses.

Technical Support

If you have any questions or need help, please visit the Jetson Developer Forums.