NVIDIA Jetson Orin/Flashing commands for emulation

From RidgeRun Developer Wiki
Revision as of 20:32, 18 October 2022 by Msanchez (talk | contribs) (Created page with "There are six available possible configurations that the NVIDIA Jetson AGX Orin can run. There is the original configuration which is the Jetson AGX Orin of 64 GB, and then th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

There are six available possible configurations that the NVIDIA Jetson AGX Orin can run. There is the original configuration which is the Jetson AGX Orin of 64 GB, and then the other five configurations are for the platforms that you can emulate on the Jetson AGX Orin of 64 GB hardware. These configurations are:

1. Jetson AGX Orin 32GB.

2. Jetson Orin NX 16GB.

3. Jetson Orin NX 8GB.

4. Jetson Orin Nano 8GB.

5. Jetson Orin Nano 4GB.

There are flashing scripts that come with the installation of NVIDIA JetPack 5.0.2 that you can use to flash the board with the configuration of your choice. Follow the instructions below to flash the board from command line.

Flashing the board

1. Go to the NVIDIA SDK installation folder.

cd $HOME/nvidia/nvidia_sdk/JetPack_5.0.2_DP_Linux_JETSON_AGX_ORIN_TARGETS/Linux_for_Tegra

In there you will have the flashing scripts for the emulation of the NVIDIA Jetson AGX Orin 32 GB, NVIDIA Jetson AGX Orin NX 16 GB, NVIDIA Jetson AGX Orin NX 8 GB. For the NVIDIA Jetson AGX Orin Nano there extra steps that are listed later in the article.

2. Put the board on recovery mode and make sure that the PC recognizes the board.

3. Select a configuration and chose the appropriate flashing command from the table below.

Jetson Orin Module Flashing Command
Jetson AGX Orin 64GB sudo ./flash.sh jetson-agx-orin-devkit mmcblk0p1
Jetson AGX Orin 32GB sudo ./flash.sh jetson-agx-orin-devkit-as-jao-32gb mmcblk0p
Jetson Orin NX 16GB sudo ./flash.sh jetson-agx-orin-devkit-as-nx16gb mmcblk0p1
Jetson Orin NX 8GB sudo ./flash.sh jetson-agx-orin-devkit-as-nx8gb mmcblk0p1

4. After the flashing is finished, the board will boot up automatically and you can setup the initial configuration. To install the remaining NVIDIA Jetson packages, run the following command:

sudo apt update
sudo apt install nvidia-jetpack

Emulating for NVIDIA Jetson Orin Nano

The flashing scripts for Jetson Orin Nano are not yet included in NVIDIA JetPack 5.0.2. So, follow these instructions to download the necessary files and flash the Jetson Orin as Jetson Orin Nano:

1. Download the orin-nano-overlay-351.tbz2 tarball from this link.

2. Download L4T Driver Package (BSP):

wget https://developer.nvidia.com/embedded/l4t/r35_release_v1.0/release/jetson_linux_r35.1.0_aarch64.tbz2

3. Download Ubuntu 20.04 "Sample Root Filesystem"

wget https://developer.nvidia.com/embedded/l4t/r35_release_v1.0/release/tegra_linux_sample-root-filesystem_r35.1.0_aarch64.tbz2

4. Extract Jetson Linux 35.1 BSP Drivers Package:

sudo tar -xpf jetson_linux_r35.1.0_aarch64.tbz2

5. Extract Ubuntu 20.04 "Sample Root Filesystem"

cd Linux_for_Tegra/rootfs
sudo tar -xpf <path-to-root-filesystem>/tegra_linux_sample-root-filesystem_r35.1.0_aarch64.tbz2

6. Apply host and target overlay packages

cd ../
sudo ./apply_binaries.sh

7. Extract Orin Nano Emulation Overlay tarball

cd ../
sudo tar -xpf <path-to-orin-nano-overlay>/Orin_Nano_Overlay_35.1.tbz2

8. Select a configuration and chose the appropriate flashing command from the table below.

Jetson Orin Module Flashing Command
Jetson Orin Nano 8GB sudo ./flash.sh jetson-agx-orin-devkit-as-nano8gb mmcblk0p1
Jetson Orin Nano 4GB sudo ./flash.sh jetson-agx-orin-devkit-as-nano4gb mmcblk0p1