Difference between revisions of "NVIDIA Jetson Orin/JetPack 5.0.2/Getting Started/Wizard Flashing"

From RidgeRun Developer Connection
Jump to: navigation, search
m
 
(38 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
{{NVIDIA Jetson Orin/Head|previous=JetPack_5.0/Getting_Started/Installing_Jetpack|next=JetPack_5.0/Getting_Started/Components|keywords=jetpack,configure,configuration,flashing,gui installer,flash}}
+
{{NVIDIA Jetson Orin/Head|previous=JetPack_5.0.2/Getting_Started/Installing_Jetpack|next=JetPack_5.0.2/Getting_Started/Components|metakeywords=jetpack, configure, configuration, flashing, GUI installer, flash, JetPack 5.0.2, Jetpack 5.0.1, Recovery Mode, JetPack 5.0.2 Wizard Flashing, Wizard Flashing}}
 
</noinclude>
 
</noinclude>
  
This section provides a guide to flash the Jetson AGX Orin developer kit through the following methods: eMMc, SD card, USB drive, NFS. This guide assumes that you already have followed through our [[NVIDIA_Jetson_Orin/JetPack_5.0/Getting_Started|Getting Started]] and [[NVIDIA_Jetson_Orin/JetPack_5.0/Getting_Started/Installing_Jetpack|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 guide, we follow three steps to flash the Orin.
+
{{DISPLAYTITLE:NVIDIA Jetson Orin - JetPack 5.0.2 Wizard Flashing|noerror}}
  
 +
This section provides a guide to flash the Jetson AGX Orin developer kit through the SDK Manager GUI. The Jetson Orin AGX can boot from one of the following devices: eMMc, NVMe, USB drive, or NFS (SD card not supported on Jetpack 5.0.1 DP release). If you wish to customize your OS components before flashing, check our [[NVIDIA_Jetson_Orin/JetPack_5.0.2/Compiling_Code|Compiling Source Code]] and [[NVIDIA_Jetson_Orin/JetPack_5.0.2/Flashing_Board|Flashing Board From Cmdline]] sections.
 +
<br>
  
= Step 1: Set Board in Recovery Mode =
+
This section assumes that you already have followed through our [[NVIDIA_Jetson_Orin/JetPack_5.0.2/Getting_Started|Getting Started]] and [[NVIDIA_Jetson_Orin/JetPack_5.0.2/Getting_Started/Installing_Jetpack|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.
 +
 
 +
__TOC__
 +
 
 +
== 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:
 
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:
Line 12: Line 18:
 
<!--Before setting the board in recovery mode is important to know that when the power supply is connected, the board will power on automatically.-->
 
<!--Before setting the board in recovery mode is important to know that when the power supply is connected, the board will power on automatically.-->
  
# Start with the Jetson Orin AGX devkit turned off and disconnected from the power supply
+
# Start with the Jetson Orin AGX devkit turned off and disconnected from the power supply.
# Get the USB-A to USB-C cable and connect the USB-A end to your host computer (the computer where you installed Jetpack).
+
# 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.
# Press and hold the FORCE RECOVERY button.
+
# Press and hold the FORCE RECOVERY button (B in Figure 1).
# While pressing the FORCE RECOVERY button, press and release the RESET button.
+
# While pressing the FORCE RECOVERY button, press and release the RESET button (C in Figure 1).  
# Check if the device is in recovery mode by using the lsusb command, a line similar to '''Bus 001 Device 011: ID 0955:7023 NVidia Corp''' will appear in a list on the host terminal.
 
  
 
{| class="wikitable" style="margin: auto;"
 
{| class="wikitable" style="margin: auto;"
 
|-
 
|-
 
|-
 
|-
| [[File:Orin agx devkit recovery mode.png|650px|thumb|center|Orin AGX Devkit: Recovery Mode Buttons]] || [[File:orin_agx_devkit_flashing_port.png|650px|thumb|center|Orin AGX Devkit: USB-C Port for Flashing]]
+
| [[File:Orin agx devkit recovery mode.png|700px|thumb|center|Figure 1: Recovery Mode Buttons]] || [[File:orin_agx_devkit_flashing_port.png|650px|thumb|center|Figure 2: USB-C Port for Flashing]]
 
|}
 
|}
  
  
 +
<br>
 +
At this point, the Orin should be in recovery mode. To verify, you can run the following command on your host computer:
 +
<pre>
 +
lsusb
 +
</pre>
  
= Step 2: Flash =
+
If the Orin is in recovery mode, you should see a line similar to the following among the command output:
 +
<pre>
 +
Bus 001 Device 011: ID 0955:7023 NVidia Corp
 +
</pre>
  
=== SDK Manager ===
+
<br>
 +
== Step 2: Flash ==
  
To flash with SDK Manager follow the steps in the next wiki:
+
Follow steps 1 through 3 of our [[NVIDIA_Jetson_Orin/JetPack_5.0.2/Getting_Started/Installing_Jetpack|Installing Jetpack]] section. If you already have Jetpack installed, this should be fairly quick.
 +
When you reach step 3-L, you should see a window similar to Figure 3.
 +
<br>
  
[[NVIDIA Jetson Orin/JetPack_5.0/Getting_Started/Installing_Jetpack | 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:
+
[[File:User set up when flashing with SDK Manager.png|500px|thumb|center|Figure 3: SDK Manager GUI Flash Configuration Window]]
 +
<br>
  
 +
Since you already have put the Orin in recovery mode, you should see that it is detected by the SDK Manager. Figure 4 shows the message displayed by the SDK Manager when the Orin is not being detected, and Figure 5 shows the expected message displayed when the Orin is detected. Make sure the Orin is successfully detected before continuing.
 +
<br>
  
  
[[File:User set up when flashing with SDK Manager.png|500px|thumb|center]]
+
{| class="wikitable" style="margin: auto;"
 
+
|-
Enter the new user name and the password, and click on the Flash Option.
+
|-
 
+
| [[File:Orin_not_detected_by_sdk_manager.png|950px|thumb|center|Figure 4: Orin not detected by the SDK Manager]] || [[File:Orin_detected_by_sdk_manager.png|450px|thumb|center|Figure 5: Orin detected by the SDK Manager]]
[[File:Flashing Jetson AGX Orin success .png|800px|thumb|center]]
+
|}
 
 
=== eMMc ===
 
 
 
{{review|why did we moved to cmdline scripts? Does the sdkmanager not support flashing the MMC? if so, please specify that.|mgruner}}
 
 
 
Before flashing the eMMC for the first time a new user must be set. You can do so by running:
 
 
 
{{review|Please parametrize commands. Instead of <user> use $USER and the variable set on top|mgruner}}
 
<syntaxhighlight lang=bash>
 
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>
 
</syntaxhighlight>
 
 
 
For example:
 
<syntaxhighlight lang=bash>
 
sudo ./l4t_create_default_user.sh -u nvidia -p nvidia
 
</syntaxhighlight>
 
 
 
After creating the user name, follow the next steps to flash the Orin with the flash script.
 
 
 
<syntaxhighlight lang=bash>
 
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
 
</syntaxhighlight>
 
 
 
=== 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:
 
 
 
<syntaxhighlight lang=bash>
 
/dev/sdd1 on /media/$USER/bde7a526-1b2d-4ad3-925f-4650b2563ab7 type ext4 (rw,nosuid,nodev,relatime,uhelper=udisks2)
 
</syntaxhighlight>
 
 
 
Format the USB drive in your PC
 
 
 
<syntaxhighlight lang=bash>
 
umount /dev/sdd1
 
sudo mkfs.ext4 /dev/sdd1
 
</syntaxhighlight>
 
 
 
Copy the filesystem to the USB drive. It takes a while, its size is around 6GB
 
  
<syntaxhighlight lang=bash>
+
<br>
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
 
</syntaxhighlight>
 
  
Umount the USB drive and remove it from your PC
+
Once your Orin has been detected, select the '''Manual Setup - Jetson AGX Orin''' in the dropdown list of window prompt 1, similar to Figure 3. Then you can select the OEM Configuration (prompt 7) and the Storage Device to be used (prompt 8).
 +
<br>
  
<syntaxhighlight lang=bash>
 
sudo umount $JETPACK_DIR/Linux_for_Tegra/tmp_system
 
</syntaxhighlight>
 
  
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:
+
For the OEM Configuration, you have two options:
 +
# '''Runtime''': If you choose this option, the username/password creation will be prompted when you boot the Orin after the flash.
 +
# '''Pre-Config''': With this option, you will create the username/password for the Orin before flashing.
 +
<br>
  
<syntaxhighlight lang=bash>
+
Figure 6 shows the username/password prompt that is shown when the user chooses the '''Pre-Config''' option for OEM Configuration.
cd $JETPACK_DIR/Linux_for_Tegra
+
<br>
sudo ./flash.sh jetson-agx-orin-devkit sda1 #it can be another mount point
 
</syntaxhighlight>
 
  
== 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.
+
[[File:Oem pre config.png|600px|thumb|center|Figure 6: User and Password prompt for OEM Pre-Config]]
 +
<br>
  
If the following command is running:
+
Finally, choose the Storage Device that you wish to boot from. When you are ready, click the Flash button at the bottom of the Window. The SDK Manager will proceed to flash, this can take a while. When the SDK Manager finishes, if the flash was successful, you should see the finalization window similar to Figure 7.
  
<syntaxhighlight lang=bash>
+
[[File:Flashing Jetson AGX Orin success .png|600px|thumb|center|Figure 7: SDK Manager Flash Success ]]
dmesg -w
+
<br>
</syntaxhighlight>
 
  
When the DisplayPort to HDMI cable is disconnected and connected, the log shows the following messages:
 
  
<syntaxhighlight lang=bash>
+
{{Ambox
[  299.546829] NVRM rpcRmApiControl_dce: NVRM_RPC_DCE: Failed RM ctrl call result 0xffff:
+
|type=notice
[  309.799053] NVRM rpcRmApiControl_dce: NVRM_RPC_DCE: Failed RM ctrl call result 0x25:
+
|small=left
</syntaxhighlight>
+
|issue='''Note about boot order: '''<u>Removable devices such as SD card and USB take precedence over non-removable devices such as eMMC, NvME, and NFS. The boot device selection and customization of the boot order can be performed from the UEFI menu.</u>
 +
|style=width:unset;
 +
}}
  
=== USB Driver ===
 
  
NVIDIA provides a guide for Flashing to a USB Drive in the following link:
+
==Step 3: Boot==
 +
After flashing, the Orin should boot automatically. Make sure to connect a Display to the Orin port J in Figure 8, a keyboard and mouse to the USB-A port I in Figure 8 and optionally you can connect the network cable to the ethernet port H.
 +
<br>
  
[https://docs.nvidia.com/jetson/archives/r34.1/DeveloperGuide/text/SD/FlashingSupport.html#to-set-up-a-flash-drive-manually-for-using-as-root-file-system Flashing to a USB Drive]
 
  
However, after following the next commands:
+
[[File:Orin devkit dp usba eth.png|600px|thumb|center|Figure 8: Connectors for Display, mouse, keyboard and ethernet]]
 
<syntaxhighlight lang=bash>
 
sudo mount bootloader/system.img.raw ./tmp_system
 
sudo rsync -axHAWX --numeric-ids --info=progress2 --exclude=/proc ./tmp_system/ /mnt
 
</syntaxhighlight>
 
  
The USB drive only has a directory name ''boot'' and does not have the filesystem.
+
<br>
  
 +
Once you have the display connected, you should see the Ubuntu login prompt (if you opted for OEM Pre-Config in Step 2) or the Ubuntu OEM Configuration prompt (if you opted for OEM Runtime in Step 2). Go through the steps to be able to log in for the first time and you are set up.
  
=Step 3: Boot=
+
<br>
  
 
<noinclude>
 
<noinclude>
{{NVIDIA Jetson Orin/Foot|JetPack_5.0/Getting_Started/Installing_Jetpack|JetPack_5.0/Getting_Started/Components}}
+
{{NVIDIA Jetson Orin/Foot|JetPack_5.0.2/Getting_Started/Installing_Jetpack|JetPack_5.0.2/Getting_Started/Components}}
 
</noinclude>
 
</noinclude>

Latest revision as of 12:34, 10 February 2023



Previous: JetPack_5.0.2/Getting_Started/Installing_Jetpack Index Next: JetPack_5.0.2/Getting_Started/Components


Nvidia-preferred-partner-badge-rgb-for-screen.png





This section provides a guide to flash the Jetson AGX Orin developer kit through the SDK Manager GUI. The Jetson Orin AGX can boot from one of the following devices: eMMc, NVMe, USB drive, or NFS (SD card not supported on Jetpack 5.0.1 DP release). 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:


  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).
Figure 1: Recovery Mode Buttons
Figure 2: USB-C Port for Flashing



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 a line similar to the following among the command output:

Bus 001 Device 011: ID 0955:7023 NVidia Corp


Step 2: Flash

Follow steps 1 through 3 of our Installing Jetpack section. If you already have Jetpack installed, this should be fairly quick. When you reach step 3-L, you should see a window similar to Figure 3.


Figure 3: SDK Manager GUI Flash Configuration Window


Since you already have put the Orin in recovery mode, you should see that it is detected by the SDK Manager. Figure 4 shows the message displayed by the SDK Manager when the Orin is not being detected, and Figure 5 shows the expected message displayed when the Orin is detected. Make sure the Orin is successfully detected before continuing.


Error creating thumbnail: Unable to save thumbnail to destination
Figure 4: Orin not detected by the SDK Manager
Figure 5: Orin detected by the SDK Manager


Once your Orin has been detected, select the Manual Setup - Jetson AGX Orin in the dropdown list of window prompt 1, similar to Figure 3. Then you can select the OEM Configuration (prompt 7) and the Storage Device to be used (prompt 8).


For the OEM Configuration, you have two options:

  1. Runtime: If you choose this option, the username/password creation will be prompted when you boot the Orin after the flash.
  2. Pre-Config: With this option, you will create the username/password for the Orin before flashing.


Figure 6 shows the username/password prompt that is shown when the user chooses the Pre-Config option for OEM Configuration.


Error creating thumbnail: Unable to save thumbnail to destination
Figure 6: User and Password prompt for OEM Pre-Config


Finally, choose the Storage Device that you wish to boot from. When you are ready, click the Flash button at the bottom of the Window. The SDK Manager will proceed to flash, this can take a while. When the SDK Manager finishes, if the flash was successful, you should see the finalization window similar to Figure 7.

Figure 7: SDK Manager Flash Success




Step 3: Boot

After flashing, the Orin should boot automatically. Make sure to connect a Display to the Orin port J in Figure 8, a keyboard and mouse to the USB-A port I in Figure 8 and optionally you can connect the network cable to the ethernet port H.


Figure 8: Connectors for Display, mouse, keyboard and ethernet


Once you have the display connected, you should see the Ubuntu login prompt (if you opted for OEM Pre-Config in Step 2) or the Ubuntu OEM Configuration prompt (if you opted for OEM Runtime in Step 2). Go through the steps to be able to log in for the first time and you are set up.




Previous: JetPack_5.0.2/Getting_Started/Installing_Jetpack Index Next: JetPack_5.0.2/Getting_Started/Components