NVIDIA JetPack 6 Flashing the Board from Cmdline

From RidgeRun Developer Wiki

This section offers instructions for flashing the Jetson Orin OS components directly from the command line of the host computer. Flashing involves transferring the necessary files to the chosen storage medium from which the Orin will boot. This process utilizes both the host computer and the Orin itself.


Extract the Jetson BSP:

mkdir ${HOME}/nvidia-jetson
tar xf Jetson_Linux_R36.0.0_aarch64.tbz2 -C ${HOME}/nvidia-jetson/
sudo tar xpf Tegra_Linux_Sample-Root-Filesystem_R36.0.0_aarch64.tbz2 -C \
${HOME}/nvidia-jetson/Linux_for_Tegra/rootfs

Execute the apply_binaries.sh script

cd ${HOME}/nvidia-jetson/Linux_for_Tegra
sudo ./apply_binaries.sh
sudo ./tools/l4t_flash_prerequisites.sh

(Optional) Create a Default User

 sudo ./tools/l4t_create_default_user.sh -u <user_name> -p <password>


Place the device in recovery mode.

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:

1. Start with the Jetson Orin AGX devkit turned off and disconnected from the power supply.

2. Get the USB-A to USB-C cable and connect the USB-A end to your host computer (the computer where you installed Jetpack) and the USB-C end to the Orin type C port L, shown in Figure 2.

3. Press and hold the FORCE RECOVERY button (B in Figure 1).

4. While pressing the FORCE RECOVERY button, press and release the RESET button (C in Figure 1).

Flash the device

# Jetson AGX Orin Industrial
sudo ./flash jetson-agx-orin-devkit-industrial internal

# Jetson AGX Orin
sudo ./flash jetson-agx-orin-devkit internal

#Jetson Orin Nano Developer Kit (NVMe)
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -c tools/kernel_flash/flash_l4t_external.xml -p "-c bootloader/generic/cfg/flash_t234_qspi.xml" --showlogs --network usb0 jetson-orin-nano-devkit internal

#Jetson Orin Nano Developer Kit (USB)
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device sda1 -c tools/kernel_flash/flash_l4t_external.xml -p "-c bootloader/generic/cfg/flash_t234_qspi.xml"  --showlogs --network usb0 jetson-orin-nano-devkit internal

#Jetson Orin Nano Developer Kit (SD Card)
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device mmcblk0p1 -c tools/kernel_flash/flash_l4t_external.xml -p "-c bootloader/generic/cfg/flash_t234_qspi.xml" --showlogs --network usb0 jetson-orin-nano-devkit internal

Install compute stack

The NVIDIA compute stack can be installed on a Jetson system by running the following command:

sudo apt install nvidia-jetpack