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

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.

@yao.rong
The reflash issue was fixed in SDK Manager 1.8.3.
Please download the latest NVIDIA SDK Manager and try it. Thanks.

Upgraded to version 1.8.3 but failed with the same error.

Screenshot_2022-09-20_11-18-48

11:18:07 INFO: Flash DRIVE OS - flash: **********************

11:18:07 INFO: Flash DRIVE OS - flash: exec_command: /tmp/tmp_NV_DRIVE_FLASH_DRIVE_COMP.sh

11:18:07 INFO: Flash DRIVE OS - flash: The user `werider' is already a member of `dialout'.

11:18:07 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

11:18:07 INFO: Flash DRIVE OS - flash: [ Component Install Finished with Error ]

11:18:07 INFO: Flash DRIVE OS - flash: [host] [ 12.00 KB used. Disk Avail: 197.55 GB ]

11:18:07 INFO: Flash DRIVE OS - flash: [ NV_DRIVE_FLASH_DRIVE_COMP Install took 0s ]

11:18:07 ERROR: Flash DRIVE OS - flash: command terminated with error

**11:18:07 SUMMARY: Flash DRIVE OS - flash: First Error: No such file or directory**

Full log exported and attached here
SDKM_logs_DRIVE_OS_6.0.4_SDK_Linux_for_DRIVE_AGX_Orin_DevKits_2022-09-20_11-17-36.zip (54.4 KB)

Thanks for providing the logs. We will check them and update you on this. Thanks.

@yao.rong
Please provide the complete sdkmanager logs under ~/.nvsdkm folder for our further analysis.

In the meantime, from the current logs, we could see that your environment is not cleaned before installation. Please

  • uninstall DRIVE 6.0.4 with SDKM first.
  • make sure dpkg -l | grep driveos output is empty.
  • then reinstall DRIVE 6.0.4 with SDKM.

The issue fixed in SDKM client 1.8.3 is that: clicking Retry button now does not remove the target image directory. However, we should still make sure the first installation starts with a clean environment. Thanks.

I tried the Docker Container installation method and I was able to flash to 6.0.4 successfully.

One thing to note is that I had to manually create the sshd config under /etc/ssh/sshd_config and /etc/ssh/sshd_config.d to enable sshd.

Can you please share the procedure to uninstall DRIVEOS 6.0.4 with SDKM? I didn’t find a way in the GUI. I still have another system at version 6.0.3. I can test the SDKM method with that machine.

Is this specific to the target system flashed with the dcoker container? Please also share your commands for manually creating them. Thanks.

Please refer to Repair and Uninstall. Please let us know the result of trying on another system. Thanks.