Nvidia AGX Orin Flashing Issues

Software Version
DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other

Target Operating System
Linux
QNX
other

Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
DRIVE AGX Orin Developer Kit (not sure its number)
other

SDK Manager Version
1.9.0.10816
other

Host Machine Version
native Ubuntu Linux 20.04 Host installed with SDK Manager
native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other

Hi,

I am experiencing a new issue in flashing with SDKm, I attach the logs for your reference,

Kind regards
SDKM_logs_DRIVE_OS_6.0.5_SDK_Linux_for_DRIVE_AGX_Orin_DevKits_2023-01-09_19-02-48.zip (3.0 MB)

Hi @Leonardo-MAI
What’s different from Nvidia DRIVE AGX Orin Flash? Please refer to below from DRIVE OS 6.0.5 Linux Release Notes, especially the USB 2.0 port one.
image

In the meantime, please try flashing with docker (mentioned in Installation Methods) to exclude any your host environment problems.

I don’t have that error log saved, but actually using flashing with the docker worked fine so I assume it was an environment problem on my host machine as you said.

Thank you

According to your logs, the ADB connection is lost during the transfer.
We suspect it’s related to the USB 3.0 SS known issue but I have no idea why docker flashing worked for you.

[bootburnTegra-A]: [AdbPush(289)] : Push file via ADB to target destination^M
[bootburnTegra-A]: [executeShellCommand(149)] : command = /home/leonardo/nvidia/nvidia_sdk/DRIVE_OS_6.0.5_SDK_Linux_DRIVE_AGX_ORIN_DEVKITS/DRIVEOS/drive-foundation/tools/flashtools/flash/adb -s 8S2TQ815O000008FU0A0 push /home/leonardo/nvidia/nvidia_sdk/DRIVE_OS_6.0.5_SDK_Linux_DRIVE_AGX_ORIN_DEVKITS/DRIVEOS/drive-foundation/tools/flashtools/bootburn_t23x_py/__temp_t234/Tegra-A-d54eac7f704/flash-images/2500000.ufshci:0_127 /tmp^M
cwd = /home/leonardo/nvidia/nvidia_sdk/DRIVE_OS_6.0.5_SDK_Linux_DRIVE_AGX_ORIN_DEVKITS/DRIVEOS/drive-foundation/tools/flashtools/bootburn_t23x_py/__temp_t234/Tegra-A-d54eac7f704/flash-images^M
[bootburnTegra-A]: [executeShellCommand(156)] : ^M
[bootburnTegra-A]: [executeShellCommand(164)] : shell command – /home/leonardo/nvidia/nvidia_sdk/DRIVE_OS_6.0.5_SDK_Linux_DRIVE_AGX_ORIN_DEVKITS/DRIVEOS/drive-foundation/tools/flashtools/flash/adb -s 8S2TQ815O000008FU0A0 shell /tmp/wr_sh.sh /tmp/nvdd --inputbin=/tmp/3460000.sdhci_6 --partsize 10485760 --device /dev/block/3460000.sdhci --startoffset=30883184640 -a failed^M
[bootburnTegra-A]: [executeShellCommand(156)] : ^M
[bootburnTegra-A]: [executeShellCommand(164)] : shell command – /home/leonardo/nvidia/nvidia_sdk/DRIVE_OS_6.0.5_SDK_Linux_DRIVE_AGX_ORIN_DEVKITS/DRIVEOS/drive-foundation/tools/flashtools/flash/adb -s 8S2TQ815O000008FU0A0 push /home/leonardo/nvidia/nvidia_sdk/DRIVE_OS_6.0.5_SDK_Linux_DRIVE_AGX_ORIN_DEVKITS/DRIVEOS/drive-foundation/tools/flashtools/bootburn_t23x_py/__temp_t234/Tegra-A-d54eac7f704/flash-images/3460000.sdhci_8 /tmp failed^M
[bootburnTegra-A]: [AdbShell(277)] : ^M
[bootburnTegra-A]: [executeShellCommand(166)] : Output: b’adb: error: connect failed: closed\n’^M
[bootburnTegra-A]: [AdbShell(277)] : ^M
[bootburnTegra-A]: [executeShellCommand(166)] : Output: b’error: closed\n’^M
[bootburnTegra-A]: [executeShellCommand(164)] : shell command – /home/leonardo/nvidia/nvidia_sdk/DRIVE_OS_6.0.5_SDK_Linux_DRIVE_AGX_ORIN_DEVKITS/DRIVEOS/drive-foundation/tools/flashtools/flash/adb -s 8S2TQ815O000008FU0A0 push /home/leonardo/nvidia/nvidia_sdk/DRIVE_OS_6.0.5_SDK_Linux_DRIVE_AGX_ORIN_DEVKITS/DRIVEOS/drive-foundation/tools/flashtools/bootburn_t23x_py/__temp_t234/Tegra-A-d54eac7f704/flash-images/2500000.ufshci:0_127 /tmp failed^M
[bootburnTegra-A]: [AdbShell(280)] : EXITCODE = 0^M
[bootburnTegra-A]: [executeShellCommand(168)] : Return code: 1^M
[bootburnTegra-A]: [executeShellCommand(149)] : command = /home/leonardo/nvidia/nvidia_sdk/DRIVE_OS_6.0.5_SDK_Linux_DRIVE_AGX_ORIN_DEVKITS/DRIVEOS/drive-foundation/tools/flashtools/flash/adb -s 8S2TQ815O000008FU0A0 shell /tmp/wr_sh.sh rm /tmp/C_1_PT.bin^M
cwd = /home/leonardo/nvidia/nvidia_sdk/DRIVE_OS_6.0.5_SDK_Linux_DRIVE_AGX_ORIN_DEVKITS/DRIVEOS/drive-foundation/tools/flashtools/bootburn_t23x_py/__temp_t234/Tegra-A-d54eac7f704/flash-images^M
[bootburnTegra-A]: [executeShellCommand(166)] : Output: b’adb: error: connect failed: closed\n’^M
[bootburnTegra-A]: [AdbShell(280)] : EXITCODE = 0^M
[bootburnTegra-A]: [executeShellCommand(170)] : stdout: b’adb: error: connect failed: closed\n’^M
[bootburnTegra-A]: [executeShellCommand(168)] : Return code: 1^M
[bootburnTegra-A]: [executeShellCommand(172)] : stderr: None^M
[bootburnTegra-A]: [executeShellCommand(168)] : Return code: 1^M
[bootburnTegra-A]: [executeShellCommand(149)] : command = /home/leonardo/nvidia/nvidia_sdk/DRIVE_OS_6.0.5_SDK_Linux_DRIVE_AGX_ORIN_DEVKITS/DRIVEOS/drive-foundation/tools/flashtools/flash/adb -s 8S2TQ815O000008FU0A0 shell /tmp/wr_sh.sh rm /tmp/2500000.ufshci:0_125^M
cwd = /home/leonardo/nvidia/nvidia_sdk/DRIVE_OS_6.0.5_SDK_Linux_DRIVE_AGX_ORIN_DEVKITS/DRIVEOS/drive-foundation/tools/flashtools/bootburn_t23x_py/__temp_t234/Tegra-A-d54eac7f704/flash-images^M
[bootburnTegra-A]: [executeShellCommand(170)] : stdout: b’error: closed\n’^M
[bootburnTegra-A]: [AdbPush(301)] : [AdbPush] failed retrying…^M

If you are still able to reproduce the issue with sdkmanager, please replug in USB cable, share the log from host (below is an example for USB detected as 2.0) and flash again.

[3121318.444259] usb 1-9.3: Product: APX
[3121318.444264] usb 1-9.3: Manufacturer: NVIDIA Corp.
[3121321.959954] usb 1-9.3: USB disconnect, device number 27
[3121329.351151] usb 1-9.3: new high-speed USB device number 28 using xhci_hcd
[3121329.456856] usb 1-9.3: New USB device found, idVendor=0955, idProduct=7100, bcdDevice= 5.10
[3121329.456869] usb 1-9.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3

Here is the Error Log printed in the SDK Manager Terminal

10:54:41 SUMMARY: CUDA on Host - host: Install completed successfully.

10:54:41 SUMMARY: CUDA Cross-Compile for Linux - host: Install completed successfully.

10:54:41 SUMMARY: cuDNN x86 - host: Install completed successfully.

10:54:41 SUMMARY: cuDNN Cross-Compile for Linux - host: Install completed successfully.

10:54:41 SUMMARY: TensorRT x86 - host: Install completed successfully.

10:54:41 SUMMARY: TensorRT Cross-Compile for Linux - host: Install completed successfully.

10:54:41 SUMMARY: DriveWorks x86 - host: Install completed successfully.

10:54:41 SUMMARY: DriveWorks Cross-Compile for Linux - host: Install completed successfully.

10:54:41 SUMMARY: Nsight Graphics - host: Install completed successfully.

10:54:41 SUMMARY: Nsight Systems - host: Install completed successfully.

10:54:41 SUMMARY: DRIVE OS SDK Master Deb - target_image: Install completed successfully.

10:54:41 SUMMARY: 3663 Specific Package - target_image: Install completed successfully.

10:54:41 SUMMARY: Vulkan Packages - target_image: Install completed successfully.

10:54:41 SUMMARY: 3710 Specific Package - target_image: Install completed successfully.

10:54:41 SUMMARY: Flash Tools - target_image: Install completed successfully.

10:54:41 SUMMARY: File System - desktop - target_image: Install completed successfully.

10:54:43 SUMMARY: DRIVE Foundation OSS Packages - target_image: Install completed successfully.

11:04:18 ERROR: Flash DRIVE OS - flash: [bootburnTegra-A]: [executeShellCommand(166)] : Output: b'adb: error: connect failed: closed\n'

11:04:18 ERROR: Flash DRIVE OS - flash: [bootburnTegra-A]: [executeShellCommand(170)] : stdout: b'adb: error: connect failed: closed\n'

11:04:18 ERROR: Flash DRIVE OS - flash: [bootburnTegra-A]: [executeShellCommand(166)] : Output: b"adb: error: failed to get feature set: device '8S2TQ815O000008FU0A0' not found\n"

11:04:18 ERROR: Flash DRIVE OS - flash: [bootburnTegra-A]: [executeShellCommand(170)] : stdout: b"adb: error: failed to get feature set: device '8S2TQ815O000008FU0A0' not found\n"

11:04:19 ERROR: Flash DRIVE OS - flash: [bootburnTegra-A]: [executeShellCommand(166)] : Output: b"adb: error: failed to get feature set: device '8S2TQ815O000008FU0A0' not found\n"

11:04:19 ERROR: Flash DRIVE OS - flash: [bootburnTegra-A]: [executeShellCommand(170)] : stdout: b"adb: error: failed to get feature set: device '8S2TQ815O000008FU0A0' not found\n"

11:04:19 ERROR: Flash DRIVE OS - flash: command terminated with error

**11:04:19 SUMMARY: Flash DRIVE OS - flash: First Error: Installation failed.**

The exportable logs:
SDKM_logs_DRIVE_OS_6.0.5_SDK_Linux_for_DRIVE_AGX_Orin_DevKits_2023-01-11_10-54-38.zip (2.6 MB)

But using docker the flashing works.

Kind regards,
Leonardo

For reference, these are also the outputs from the docker flashing:

root@6.0.5.0-0003-build-linux-sdk:/drive# ./flash.sh /dev/ttyACM1 p3710
Executing bind + flash
[Tegra-A]: Flashing Images
Successfully flashed target
See full log here: /drive_flashing/log_1927248f7cc05f144d12a336424b5399.txt

And the log:
log_1927248f7cc05f144d12a336424b5399.txt (476.9 KB)

Thank you

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.