DRIVE Orin DevKit SDK manager flashing failed to version DRIVE OS 6.0.4

Please provide the following info (tick the boxes after creating this topic):
Software Version
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.8.2.10409
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

Log attached. Error message snippet as follows.
SDKM_logs_DRIVE_OS_6.0.4_SDK_Linux_for_DRIVE_AGX_Orin_DevKits_2022-09-12_12-06-49.zip (174.5 KB)

14:12:59 ERROR: Flash DRIVE OS - flash: sed: can’t read ./driveinstaller/manifests/install_pdk_config/av_orin_p3710_driveos_linux_tegraA_install_config.json: No such file or directory

14:12:59 INFO: Flash DRIVE OS - flash: [ Component Install Finished with Error ]

14:12:59 INFO: Flash DRIVE OS - flash: [host] [ 4.00 KB used. Disk Avail: 185.92 GB ]

14:12:59 INFO: Flash DRIVE OS - flash: [ NV_DRIVE_FLASH_DRIVE_COMP Install took 0s ]

14:12:59 ERROR: Flash DRIVE OS - flash: command terminated with error

14:12:59 SUMMARY: Flash DRIVE OS - flash: First Error: No such file or directory

Hi @yao.rong
In the below post, the developer solved the same issue. Please see if what information shared helps with your issue. Thanks.

BTW, may I know if you have used the same host system to install any DRIVE OS previously? Which version? I’m trying to understand what causes the issue.

Yes. Confirmed that the same host system was used to installed 6.0.3 with Debian packages.

I removed ~/Downloads/nvidia/sdkm_downloads and retry. Still the same error persists. I’ll wait for further instruction. Please don’t resolve this post.

I’m still waiting for the developer sharing back.

In the meantime please try the below steps (from “Uninstall Steps for Local Repo Debian Packages” section of Debian Package Installation Guide) before installing DRIVE OS 6.0.4 with SDK Manager.

$ sudo -E apt-get -y --purge remove nv-driveos*
$ sudo apt-get -y autoremove
$ sudo rm -rf $NV_WORKSPACE

Followed the instruction and failed at the same location with the same symptom.

After the steps of my previous post, please check if the output of the below command is empty to make sure uninstallation is successful.

$ dpkg -l | grep driveos

Confirmed that after the steps of the previous steps, the dpkg | grep driveos is empty

/tmp$ dpkg -l | grep driveos
/tmp$

Please try to exit sdkmanager, remove the sdkmangaer directory with the below command, and then relaunch sdkmanager to install.

$ rm -rf ~/.nvsdkm/

Removed ~/.nvsdkm/, reopened SDK manager. Failed with the same first-time error.

12:00:48 INFO: Flash DRIVE OS - flash: 'utf-8' codec can't decode byte 0x94 in position 56: invalid start byte
12:00:48 INFO: Flash DRIVE OS - flash: driveinstaller cannot continue! Check the log file for details: /home/werider/.nvsdkm/driveinstaller.log
12:00:49 INFO: Flash DRIVE OS - flash: [ Component Install Finished with Error ]
12:00:49 INFO: Flash DRIVE OS - flash: [host] [ 93.73 MB used. Disk Avail: 172.55 GB ]
12:00:49 INFO: Flash DRIVE OS - flash: [ NV_DRIVE_FLASH_DRIVE_COMP Install took 4m51s ]
12:00:49 ERROR: Flash DRIVE OS - flash: command terminated with error
12:00:49 SUMMARY: Flash DRIVE OS - flash: First Error: Installation failed.

But you don’t see the error anymore, right?
Please share the latest logs for my analysis.

also, make sure to meet System Requirements.

Should have clarified. My apology. I always tried twice and the error signatures are always the same. The earlier snippet is the first time error. The following snippet is the 2nd time error.

12:55:17 INFO: Flash DRIVE OS - flash: **********************
12:55:17 INFO: Flash DRIVE OS - flash: exec_command: /tmp/tmp_NV_DRIVE_FLASH_DRIVE_COMP.sh
12:55:17 INFO: Flash DRIVE OS - flash: The user `werider' is already a member of `dialout'.
12:55:17 ERROR: Flash DRIVE OS - flash: sed: can't read ./driveinstaller/manifests/install_pdk_config/av_orin_p3710_driveos_linux_tegraA_install_config.json: No such file or directory
12:55:17 INFO: Flash DRIVE OS - flash: [ Component Install Finished with Error ]
12:55:17 INFO: Flash DRIVE OS - flash: [host] [ 12.00 KB used. Disk Avail: 198.08 GB ]
12:55:17 INFO: Flash DRIVE OS - flash: [ NV_DRIVE_FLASH_DRIVE_COMP Install took 0s ]
12:55:17 ERROR: Flash DRIVE OS - flash: command terminated with error
12:55:17 SUMMARY: Flash DRIVE OS - flash: First Error: No such file or directory

Full log attached here.
SDKM_logs_DRIVE_OS_6.0.4_SDK_Linux_for_DRIVE_AGX_Orin_DevKits_2022-09-13_12-50-29.zip (115.6 KB)

Confirmed that full requirements matched on the host system.

I’ll check the latest logs you provided with our team and get back to you. Thanks a lot.

In the meantime, please see if How to clean userdata after upgrade the DriveOS from6.0.3 to 6.0.4 - #11 by yilin.shen helps. Thanks.

For the two things listed in that post. The 2nd is the same as this following recommendation.

I have tried both but they showed the same error/s.

@yao.rong I’ve come across the issue you’re having. It happens after a failed flash through SDK manager.

First time it generates files necessary for flashing. But if flash fails, the files are left in ~/nvidia/nvidia_sdk/…

If that happens and you use retry or just try too start installing to target again via the wizard, the file generation process proceeds rather quickly and without error. This is not because it doesn’t need to regenerate files, it’s because files have been deleted and SDK manager refuses to re-generate those files.

To solve this, I had to use SDK manager to uninstall packages for the target, then run through the wizard again which installs them again. Then flash files will generate. But again, if the flash fails, you’re back to square one, which is what we’re facing here: DriveOS 6.0.4 Flashing Failures

Above is repeatable. We’ve been doing this over a few different days of troubleshooting. Have uninstalled/reinstalled a dozen times because of failed flashing. I’m curious if we have a similar issue.

@yao.rong
Please try if DRIVE OS Docker Containers installation method mentioned in DRIVE OS 6.0 Installation Guide for NVIDIA Developers will help get rid of the current issue.