Error flashing the Drive AGX

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.6 and DriveWorks 4.0
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.7.1.8928
other

Host Machine Version
native Ubuntu 18.04
other

Was trying to compile the leo-drive / Drivers / sekonix_camera · GitLab on target machine.

Had an issue of linking error /usr/lib/libgdal.so.20: undefined reference to `xercesc_3_2::XMLString::transcode(char16_t const*, xercesc_3_2::MemoryManager*)’

Based on the steps given by FabianWeise tried to remove gdal-bin which removed CUDA.

While re-flashing the target system, getting the error - ERROR: DRIVE AGX Packages - target_image: command terminated with error

Attached are the sdkm logs.
sdkm-2022-01-03-19-40-13.log.tar.gz (18.5 KB)

Hi, @hitesh.pandya1
The below snippet is from your log. It looks like some problems in applying patches.
Please try to install again after removing ~/nvidia/nvidia_sdk/DRIVE_Software_10.0_Linux_OS_DDPX directory.

19:41:14.075 - info: NV_DPX_PACKAGES_COMP@DDPX: exec_command: /home/hitesh/nvidia/downloads/sdkm_downloads/drive-t186ref-linux-5.1.6.1-16911241-dpx-patch-v0.7.run
...
19:41:16.233 - info: NV_DPX_PACKAGES_COMP@DDPX: Linux/5.1.6.1_2144485.patch     
19:41:16.235 - info: NV_DPX_PACKAGES_COMP@DDPX: patching file drive-t186ref-foundation/tools/host/flashtools/bootburn_t19x/bootburn.sh
19:41:16.235 - info: NV_DPX_PACKAGES_COMP@DDPX: Reversed (or previously applied) patch detected!  Assume -R? [n] 
19:41:16.235 - info: NV_DPX_PACKAGES_COMP@DDPX: Apply anyway? [n]               
19:41:16.236 - info: NV_DPX_PACKAGES_COMP@DDPX: Skipping patch.                 
19:41:16.236 - 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
19:41:16.236 - info: NV_DPX_PACKAGES_COMP@DDPX: patching file drive-t186ref-foundation/tools/host/flashtools/bootburn_t19x/bootburn_lib.sh
19:41:16.236 - info: NV_DPX_PACKAGES_COMP@DDPX: Reversed (or previously applied) patch detected!  Assume -R? [n] 
19:41:16.236 - info: NV_DPX_PACKAGES_COMP@DDPX: Apply anyway? [n]               
19:41:16.236 - info: NV_DPX_PACKAGES_COMP@DDPX: Skipping patch.                 
19:41:16.236 - 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
19:41:16.236 - info: NV_DPX_PACKAGES_COMP@DDPX: patching file drive-t186ref-foundation/tools/host/flashtools/bootburn_t19x/create_bsp_images.sh
19:41:16.236 - info: NV_DPX_PACKAGES_COMP@DDPX: Reversed (or previously applied) patch detected!  Assume -R? [n] 
19:41:16.236 - info: NV_DPX_PACKAGES_COMP@DDPX: Apply anyway? [n]               
19:41:16.236 - info: NV_DPX_PACKAGES_COMP@DDPX: Skipping patch.                 
19:41:16.236 - 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
19:41:16.238 - info: NV_DPX_PACKAGES_COMP@DDPX: [ Package Install Finished with Error ]
19:41:16.238 - info: NV_DPX_PACKAGES_COMP@DDPX: [host] [ 36.00 KB used. Disk Avail: 131.79 GB ]
19:41:16.238 - info: NV_DPX_PACKAGES_COMP@DDPX: [ NV_DPX_PACKAGES_COMP Install took 2s ]                                                                                                                                             
19:41:16.239 - error: cmd finished failure SDKM_END_CODE_FAILURE_e0b80906-4508-480e-9ae2-3f80d0ab1723_33
19:41:16.239 - error: command error code: 33                                    
19:41:16.239 - info: Event: NV_DPX_PACKAGES_COMP@DDPX - error code is: 1033     
19:41:16.239 - error: NV_DPX_PACKAGES_COMP@DDPX: command terminated with error  
19:41:16.239 - info: Event: NV_DPX_PACKAGES_COMP@DDPX - error is: command terminated with error
19:41:16.242 - info: Event: NV_DPX_PACKAGES_COMP@DDPX - install ended - failure 
19:41:16.242 - error: Session first failure occurred while Installing. Root cause component: NV_DPX_PACKAGES_COMP@DDPX. Root cause error code: (1033: RUN file ended with error)

Ok thanks VickNV. Works after removing the directory.

Good to hear that you solved the problem.