NVIDIA Jetson Orin NX
The NVIDIA Jetson Orin NX documentation from RidgeRun is presently being developed. |
This section provides a guide to flash the Jetson Orin NX OS components from the host computer command line. Flashing is the process of copying the files required into the selected storage from which the Orin NX is going to boot. In the flashing process, we use the host computer and the Orin NX.
This section assumes that you already have followed through our Getting Started and Installing Jetpack sections.
Assumptions
1. You have JetPack 6.1 installed on your host computer in the default path ($HOME/nvidia/nvidia_sdk/JetPack_6.1_Linux_JETSON_ORIN_NX_TARGETS/
Linux_for_Tegra
). If your JetPack installation used a different path, make sure to modify accordingly the DEVDIR
environment variable in Step 1.
2. The OS components to be installed in the Orin NX are stored in the default locations expected by the JetPack flash script.
Step 1: Define the Environment Variables
Make sure to run the following commands in the terminal that you will use to flash the Orin NX.
export DEVDIR=$HOME/nvidia/nvidia_sdk/JetPack_6.1_Linux_JETSON_ORIN_NX_TARGETS/Linux_for_Tegra
Step 2: Set Board in Recovery Mode
In order to flash the Orin, we must set it in recovery mode so that it can accept the files. The procedure to put the Orin in recovery mode is:
- Turned off and disconnected from the power supply the Jetson Orin NX - Nano devkit.
- Get the USB-A to USB-C or USB-C to USB-C cable and connect the the USB-C end to your Orin NX and the USB-A or USB-C end to your computer (the computer where you installed Jetpack)
- Connect a jumper between FC-REC pin and any GND pin as shown in figure 1.
- Connect the power supply.

At this point, the Orin NX should be in recovery mode. To verify, you can run the following command on your host computer:
lsusb
If the Orin is in recovery mode, you should see a line similar to the following among the command output:
Bus 001 Device 011: ID 0955:7023 NVidia Corp
Step 3: Apply Binaries
Before flashing, you must install NVIDIA’s proprietary drivers and firmware into the root filesystem. This step ensures that your Jetson device has GPU drivers, multimedia libraries, CUDA components, and other binaries required for a functional system. The script also prepares the flashing environment by setting up prerequisites.
Run the following commands:
cd $DEVDIR sudo ./apply_binaries.sh sudo ./tools/l4t_flash_prerequisites.sh
Step 4 (Optional): Create a Default User
The default user/password can be configured after flashing if you can connect a display, keyboard, and mouse to the Orin NX to complete the OEM configuration during the first boot. If you wish to save time and create a default user/password for your Orin NX before flashing, you can execute the commands below, make sure to replace <user_name> and <password> with a username and password of your choice.
cd $DEVDIR/tools sudo ./l4t_create_default_user.sh -u <user_name> -p <password>
Step 5: Execute the Flash Script
NVIDIA provides a script for flashing the Orin NX in the JetPack directory. This script takes two arguments, the target board, and the root device:
cd $DEVDIR sudo ./flash.sh <target board> <rootdev>
The target board for the Orin NX is:
- jetson-orin-nano-devkit: Configuration for Jetson Orin NX and Orin Nano Devkits.
The root device indicates the storage that will be used to boot the Orin NX. Available options are:
- eMMC
- USB Drive
- NVMe
- SD Card
Option #1: eMMC
cd $DEVDIR sudo ./flash.sh jetson-orin-nano-devkit mmcblk0p1
Option #2: USB Drive
To boot from USB, you must first prepare the filesystem on the USB drive. See NVIDIA_Jetson_Orin_NX/JetPack_6.1/Flashing_Board/Flash_Filesystem for detailed instructions.
cd $DEVDIR sudo ./flash.sh jetson-orin-nano-devkit sda1
Option #3: NVMe
To boot from NVMe, you must first prepare the filesystem on the NVMe device. See NVIDIA_Jetson_Orin_NX/JetPack_6.1/Flashing_Board/Flash_Filesystem for detailed instructions.
cd $DEVDIR sudo ./flash.sh jetson-orin-nano-devkit nvme0n1p1
Option #4: SD Card
To boot from SD Card (supported for Orin NX), you must first prepare the filesystem on the card. See NVIDIA_Jetson_Orin_NX/JetPack_6.1/Flashing_Board/Flash_Filesystem for detailed instructions.
cd $DEVDIR sudo ./flash.sh jetson-orin-nano-devkit mmcblk1p1
Advanced Flashing Options
Flashing with Initrd
cd $DEVDIR sudo ./l4t_initrd_flash.sh --external-device nvme0n1p1 -c bootloader/flash.xml \ --showlogs --network usb0 jetson-orin-nano-devkit mmcblk0p1
Flashing by UUID
cd $DEVDIR sudo ./flash.sh --reuse-uuid jetson-orin-nano-devkit mmcblk0p1
Flashing by Partition Name
cd $DEVDIR sudo ./flash.sh jetson-orin-nano-devkit sda1
Flash Script Options
NVIDIA provides several scripts to help generate the images and flash the resulting images. The main script is flash.sh
. Run the following command to see all supported arguments:
cd $DEVDIR ./flash.sh -h