NVIDIA Jetson Orin - JetPack 5.0.2 - Getting Started - Wizard Flashing
This section provides a guide to flash the Jetson AGX Orin developer kit through the SDK Manager GUI in order to boot from one of the following devices: eMMc, SD card, USB drive, or NFS. If you wish to customize your OS components before flashing, check our Compiling Source Code and Flashing Board From Cmdline sections.
This section assumes that you already have followed through our Getting Started and Installing Jetpack sections. Flashing is the process of getting all the files required into the selected storage from which the Orin is going to boot. In this section, we follow three steps to flash the Orin.
Step 1: 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:
A. Start with the Jetson Orin AGX devkit turned off and disconnected from the power supply.
B. 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.
C. Press and hold the FORCE RECOVERY button (B in Figure 1).
D. While pressing the FORCE RECOVERY button, press and release the RESET button (C in Figure 1).
At this point, the Orin 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 that a line similar to the following among the command output:
Bus 001 Device 011: ID 0955:7023 NVidia Corp
Step 2: Flash
SDK Manager
To flash with SDK Manager follow the steps in the next wiki:
NVIDIA Orin - JetPack 5 - Getting Started - Installing Jetpack
In step 7, with the board connected in recovery mode, the SDK Manager will show a window like the following:
Enter the new user name and the password, and click on the Flash Option.
eMMc
mgruner: why did we moved to cmdline scripts? Does the sdkmanager not support flashing the MMC? if so, please specify that. (please remove this box when addressed) |
Before flashing the eMMC for the first time a new user must be set. You can do so by running:
mgruner: Please parametrize commands. Instead of <user> use $USER and the variable set on top (please remove this box when addressed) |
JETPACK_DIR=/home/$USER/nvidia/nvidia_sdk/JetPack_5.0_DP_Linux_DP_JETSON_AGX_ORIN_TARGETS/ cd $JETPACK_DIR/Linux_for_Tegra/tools sudo ./l4t_create_default_user.sh -u <user_name> -p <password>
For example:
sudo ./l4t_create_default_user.sh -u nvidia -p nvidia
After creating the user name, follow the next steps to flash the Orin with the flash script.
JETPACK_DIR=/home/$USER/nvidia/nvidia_sdk/JetPack_5.0_DP_Linux_DP_JETSON_AGX_ORIN_TARGETS/ cd $JETPACK_DIR/Linux_for_Tegra/ sudo ./flash.sh jetson-agx-orin-devkit mmcblk0p1
USB Driver
To flash the filesystem to USB you need to put the filesystem on the USB first.
Insert your USB flash/drive in your PC and check where it was mounted:
/dev/sdd1 on /media/$USER/bde7a526-1b2d-4ad3-925f-4650b2563ab7 type ext4 (rw,nosuid,nodev,relatime,uhelper=udisks2)
Format the USB drive in your PC
umount /dev/sdd1 sudo mkfs.ext4 /dev/sdd1
Copy the filesystem to the USB drive. It takes a while, its size is around 6GB
JETPACK_DIR=/home/$USER/nvidia/nvidia_sdk/JetPack_5.0_DP_Linux_DP_JETSON_AGX_ORIN_TARGETS cd $JETPACK_DIR/Linux_for_Tegra sudo mkdir tmp_system sudo mount /dev/sdd1 $JETPACK_DIR/Linux_for_Tegra/tmp_system cd rootfs/ sudo cp -a * $JETPACK_DIR/Linux_for_Tegra/tmp_system && sync
Umount the USB drive and remove it from your PC
sudo umount $JETPACK_DIR/Linux_for_Tegra/tmp_system
Finally, connect the USB drive to the Jetson AGX Orin board and put it in recovery mode. Then, flash the board to look for the filesystem on the USB port:
cd $JETPACK_DIR/Linux_for_Tegra sudo ./flash.sh jetson-agx-orin-devkit sda1 #it can be another mount point
Known Issues
The board does not provide a display interface DisplayPort output. Only shows the NVIDIA Logo before booting, and also shows the BIOS interface if the Escape key is pressed.
If the following command is running:
dmesg -w
When the DisplayPort to HDMI cable is disconnected and connected, the log shows the following messages:
[ 299.546829] NVRM rpcRmApiControl_dce: NVRM_RPC_DCE: Failed RM ctrl call result 0xffff: [ 309.799053] NVRM rpcRmApiControl_dce: NVRM_RPC_DCE: Failed RM ctrl call result 0x25:
USB Driver
NVIDIA provides a guide for Flashing to a USB Drive in the following link:
However, after following the next commands:
sudo mount bootloader/system.img.raw ./tmp_system sudo rsync -axHAWX --numeric-ids --info=progress2 --exclude=/proc ./tmp_system/ /mnt
The USB drive only has a directory name boot and does not have the filesystem.
Step 3: Boot