Sdkmanager downgrade to Drive 10.0 fails

Please provide the following info (check/uncheck the boxes after creating this topic):
Software Version
DRIVE OS Linux 5.2.6
DRIVE OS Linux 5.2.0
DRIVE OS Linux 5.2.0 and DriveWorks 3.5
NVIDIA DRIVE™ Software 10.0 (Linux)
NVIDIA DRIVE™ Software 9.0 (Linux)
other DRIVE OS version
other

Target Operating System
Linux
QNX
other

Hardware Platform
NVIDIA DRIVE™ AGX Xavier DevKit (E3550)
NVIDIA DRIVE™ AGX Pegasus DevKit (E3550)
other

SDK Manager Version
1.6.1.8175
1.6.0.8170
other

Host Machine Version
native Ubuntu 18.04
other

Hello,

I have a xavier board with 5.2.0 installed and I want to downgrade to 5.1.6.1. I have followed instructions to downgrade Aurix from this link and that seems to work fine, but when I try to flash board it fails building the system image. I have updated sdkmanager to latest 1.6.1.8175 which seems to have caused redownload of entire 5.1.6.1 code base (DRIVE_Software_10.0_Linux_OS_DRIVE_AGX_XAVIER), however the same PC used to work with flashing 5.1.6.1 before (using DRIVE_Software_10.0_Linux_OS_DDPX directory).

error screen

logs from ~/.nvsdkm
nvsdkm.tar.xz (1.4 MB)

Aurix console:

shell> version
Info: Executing cmd: version, argc: 0, args: 
SW Version: DRIVE-V5.1.6-E3550-EB-Aurix-With3LSS-ForHyperion-StepA-3.05.04
Compilation date: Jun 25 2019, 14:25:36
Command Executed

Dear @gordon1zrra,
I notice error: file downloaded with wrong checksum in the logs. Please uninstall old DRIVE SW using sdkmanager and remove ~/.nvsdkm folder. Please check fresh installation of DRIVE SW 10.0 and share the logs if you hit any issue.

Hi,
It’s strange, I don’t see the correct Drive SW in the Repair/Uninstall Menu.

From the Main screen, it shows Drive 10.0 rev2

But from Uninstall it shows Drive 10.0 rev1 but no rev2:

Is there a way to manually erase Drive 10.0 rev2?

Hi @gordon1zrra,

This looks correct.

I saw below messages in your latest log and it seems to fail in applying patches.
Please try “rm -rf /home/gordon/storage/nvidia_sdk/DRIVE_Software_10.0_Linux_OS_DRIVE_AGX_XAVIER/DRIVEOS” and then reinstall DRIVE Software 10 with SDK Manager.


18:48:13.107 - info: NV_DPX_PACKAGES_COMP@DDPX: change working directory to /home/gordon/storage/nvidia_sdk/DRIVE_Software_10.0_Linux_OS_DRIVE_AGX_XAVIER/DRIVEOS
18:48:13.107 - info: NV_DPX_PACKAGES_COMP@DDPX: .install/ folder from previously installed component exists and is being removed
8:48:13.111 - info: NV_DPX_PACKAGES_COMP@DDPX: exec_command: /home/gordon/storage/nvidia_download/drive-t186ref-linux-5.1.6.1-16911241-dpx-patch-v0.7.run

18:48:15.427 - info: NV_DPX_PACKAGES_COMP@DDPX: Linux/5.1.6.1_2144485.patch
18:48:15.445 - info: NV_DPX_PACKAGES_COMP@DDPX: patching file drive-t186ref-foundation/tools/host/flashtools/bootburn_t19x/bootburn.sh
18:48:15.445 - info: NV_DPX_PACKAGES_COMP@DDPX: Reversed (or previously applied) patch detected! Assume -R? [n]
18:48:15.446 - info: NV_DPX_PACKAGES_COMP@DDPX: Apply anyway? [n]
18:48:15.446 - info: NV_DPX_PACKAGES_COMP@DDPX: Skipping patch.
18:48:15.458 - info: NV_DPX_PACKAGES_COMP@DDPX: 13 out of 13 hunks ignored – saving rejects to file drive-t186ref-foundation/tools/host/flashtools/bootburn_t19x/bootburn.sh.rej
18:48:15.458 - info: NV_DPX_PACKAGES_COMP@DDPX: patching file drive-t186ref-foundation/tools/host/flashtools/bootburn_t19x/bootburn_lib.sh
18:48:15.459 - info: NV_DPX_PACKAGES_COMP@DDPX: Reversed (or previously applied) patch detected! Assume -R? [n]
18:48:15.459 - info: NV_DPX_PACKAGES_COMP@DDPX: Apply anyway? [n]
18:48:15.459 - info: NV_DPX_PACKAGES_COMP@DDPX: Skipping patch.
18:48:15.460 - info: NV_DPX_PACKAGES_COMP@DDPX: 14 out of 14 hunks ignored – saving rejects to file drive-t186ref-foundation/tools/host/flashtools/bootburn_t19x/bootburn_lib.sh.rej
18:48:15.460 - info: NV_DPX_PACKAGES_COMP@DDPX: patching file drive-t186ref-foundation/tools/host/flashtools/bootburn_t19x/create_bsp_images.sh
18:48:15.460 - info: NV_DPX_PACKAGES_COMP@DDPX: Reversed (or previously applied) patch detected! Assume -R? [n]
18:48:15.460 - info: NV_DPX_PACKAGES_COMP@DDPX: Apply anyway? [n]
18:48:15.461 - info: NV_DPX_PACKAGES_COMP@DDPX: Skipping patch.
18:48:15.461 - info: NV_DPX_PACKAGES_COMP@DDPX: 2 out of 2 hunks ignored – saving rejects to file drive-t186ref-foundation/tools/host/flashtools/bootburn_t19x/create_bsp_images.sh.rej
18:48:15.461 - info: NV_DPX_PACKAGES_COMP@DDPX: [ Package Install Finished with Error ]
18:48:15.462 - info: NV_DPX_PACKAGES_COMP@DDPX: [host] [ 44.00 KB used. Disk Avail: 70.98 GB ]
18:48:15.462 - info: NV_DPX_PACKAGES_COMP@DDPX: [ NV_DPX_PACKAGES_COMP Install took 2s ]
18:48:15.462 - error: NV_DPX_PACKAGES_COMP@DDPX: [error]: [exit_code]: 1: [exec_command]: /bin/bash -c /home/gordon/storage/nvidia_download/drive-t186ref-linux-5.1.6.1-16911241-dpx-patch-v0.7.run | tee -a /home/gordon/.nvsdkm/logs/DRIVE_Software_10.0_Linux_OS/NV_DPX_PACKAGES_COMP.log; exit ${PIPESTATUS[${#PIPESTATUS[@]}-2]}; [error_message]: No stderr available, the last line from stdout is: 2 out of 2 hunks ignored – saving rejects to file drive-t186ref-foundation/tools/host/flashtools/bootburn_t19x/create_bsp_images.sh.rej

Hi,

I removed the directory, and tried to flash after restarting PC and xavier, but getting similar error. Note, on Step 2 it still shows packages as already downloaded.

Log files:
nvsdkm.tar.xz (736.8 KB)

Hi,

I was trying to check the patch error, it seems when I deleted the DRIVEOS directory, during the re-install it did not unpack the drive-t186ref-foundation nor any other directories. I only see a .install directory and some patch files.

DRIVEOS$ pwd
/home/gordon/storage/nvidia_sdk/DRIVE_Software_10.0_Linux_OS_DRIVE_AGX_XAVIER/DRIVEOS
DRIVEOS$ ls -la
total 60
drwxr-xr-x 3 gordon gordon  4096 Sep 22  2019 .
drwxrwxr-x 4 gordon gordon  4096 Sep 14 10:38 ..
-rw-r--r-- 1 gordon gordon   789 Sep 14 10:56 5.1.6.1_2128000.patch
-rw-r--r-- 1 gordon gordon 20478 Sep 14 10:56 5.1.6.1_2139720.patch
-rw-r--r-- 1 gordon gordon  1338 Sep 14 10:56 5.1.6.1_2165317.patch
-rw-r--r-- 1 gordon gordon  6180 Sep 14 10:56 5.1.6.1_2166497.patch
-rw-r--r-- 1 gordon gordon  3909 Sep 14 10:56 5.1.6.1_2167188.patch
-rw-r--r-- 1 gordon gordon   661 Sep 14 10:56 5.1.6.1_2168250.patch
-rw-r--r-- 1 gordon gordon  1200 Sep 14 10:56 5.1.6.1_2189571.patch
drwxr-xr-x 3 gordon gordon  4096 Sep 22  2019 .install

Yeah, saw error still at 5.1.6.1_2144485.patch.

10:38:30.494 - info: NV_DPX_PACKAGES_COMP@DDPX: Linux/5.1.6.1_2144485.patch
10:38:30.511 - info: NV_DPX_PACKAGES_COMP@DDPX: can’t find file to patch at input line 5
10:38:30.511 - info: NV_DPX_PACKAGES_COMP@DDPX: Perhaps you used the wrong -p or --strip option?
10:38:30.511 - info: NV_DPX_PACKAGES_COMP@DDPX: The text leading up to this was:
10:38:30.511 - info: NV_DPX_PACKAGES_COMP@DDPX: --------------------------
10:38:30.511 - info: NV_DPX_PACKAGES_COMP@DDPX: |diff --git a/drive-t186ref-foundation/tools/host/flashtools/bootburn_t19x/bootburn.sh b/drive-t186ref-foundation/tools/host/flashtools/bootburn_t19x/bootburn.sh
10:38:30.511 - info: NV_DPX_PACKAGES_COMP@DDPX: |index a18a40b…22d0188 100755
10:38:30.511 - info: NV_DPX_PACKAGES_COMP@DDPX: |— a/drive-t186ref-foundation/tools/host/flashtools/bootburn_t19x/bootburn.sh
10:38:30.511 - info: NV_DPX_PACKAGES_COMP@DDPX: |+++ b/drive-t186ref-foundation/tools/host/flashtools/bootburn_t19x/bootburn.sh
10:38:30.511 - info: NV_DPX_PACKAGES_COMP@DDPX: --------------------------
10:38:30.511 - info: NV_DPX_PACKAGES_COMP@DDPX: File to patch:
10:38:30.511 - info: NV_DPX_PACKAGES_COMP@DDPX: Skip this patch? [y]
10:38:30.512 - info: NV_DPX_PACKAGES_COMP@DDPX: Skipping patch.
10:38:30.514 - info: NV_DPX_PACKAGES_COMP@DDPX: 13 out of 13 hunks ignored
10:38:30.514 - info: NV_DPX_PACKAGES_COMP@DDPX: can’t find file to patch at input line 232

Please rm -rf ~/.nvsdkm ~/nvidia/nvidia_sdk* and then try if installing to the default directory (~/nvidia/nvidia_sdk instead of /home/gordon/storage/nvidia_sdk) helps.

Hi,
It’s not really possible to install to default directory since I’m out of hard drive space. Would it work if I made it a symlink from ~/nvidia_sdk to ~/storage/nvidia_sdk?

Let’s focus on this now. I’ll check with our team and get back to you.

Hi,

Finally, some good news. After I made the symlink to ~/nvidia_sdk, the unpacking worked and the patch passed, however it failed prior to the flashing step a few times but eventually after a few retries it worked.

1 Like

Good to hear it was sovled.