Problem flashing AGX XAVIER

Hi,
I was trying to use SDK Manager 14.1.742 to flash OS images on AGX XAVIER. However, despite repeated attempts, the process gets stuck at the same point:

05:30:00 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 5.3789 ]
05:30:00 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 5.3790 ] Reading ramcode from backup chip_info.bin file
05:30:00 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 5.4011 ] RAMCODE Read from Device: 2
05:30:00 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 5.4014 ] Disabled BPMP dtb trim, using default dtb
05:30:00 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 5.4014 ]
05:30:00 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 5.4062 ] tegrahost_v2 --chip 0x19 --align mem_rcm.bct
05:30:00 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 5.4071 ]
05:30:00 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 5.4082 ] tegrahost_v2 --chip 0x19 0 --magicid MEMB --ratchet_blob ratchet_blob.bin --appendsigheader mem_rcm.bct zerosbk
05:30:00 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 5.4089 ] adding BCH for mem_rcm.bct
05:30:00 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 5.4098 ]
05:30:00 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 5.4106 ] tegrasign_v2 --key None --list mem_rcm_sigheader.bct_list.xml --pubkeyhash pub_key.key
05:30:00 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 5.4113 ] Assuming zero filled SBK key
05:30:00 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 5.4164 ]
05:30:00 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 5.4173 ] tegrahost_v2 --chip 0x19 0 --updatesigheader mem_rcm_sigheader.bct.encrypt mem_rcm_sigheader.bct.hash zerosbk
05:30:02 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 5.4186 ]
05:30:02 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 5.4207 ] Copying signatures
05:30:02 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 5.4218 ] tegrahost_v2 --chip 0x19 0 --partitionlayout flash.xml.bin --updatesig images_list_signed.xml
05:30:02 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 6.8219 ]
05:30:02 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 6.8219 ] Boot Rom communication
05:30:02 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 6.8229 ] tegrarcm_v2 --chip 0x19 0 --rcm rcm_list_signed.xml
05:30:02 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 6.8234 ] BR_CID: 0x88021911647076c20c00000015048100
05:30:02 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 7.0484 ] RCM version 0X190001
05:30:04 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 7.1629 ] Boot Rom communication completed
05:30:04 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 8.3317 ]
05:30:04 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 9.3327 ] tegrarcm_v2 --isapplet
05:30:05 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 9.3333 ] Applet version 01.00.0000
05:30:05 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 9.4777 ]
05:30:05 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 9.4777 ] Sending BCTs
05:30:05 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 9.4786 ] tegrarcm_v2 --download bct_bootrom br_bct_BR.bct --download bct_mb1 mb1_bct_MB1_sigheader.bct.encrypt --download bct_mem mem_rcm_sigheader.bct.encrypt
05:30:05 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 9.4792 ] Applet version 01.00.0000
05:30:05 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 9.6183 ] Sending bct_bootrom
05:30:05 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 9.6184 ] […] 100%
05:30:05 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 9.6542 ] Sending bct_mb1
05:30:05 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 9.6800 ] […] 100%
05:30:05 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 9.7130 ] Sending bct_mem
05:30:05 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 9.7819 ] […] 100%
05:30:05 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 9.9772 ]
05:30:05 INFO: Flash Jetson AGX Xavier 16GB/32GB: Error: Return value 8
05:30:05 INFO: Flash Jetson AGX Xavier 16GB/32GB: Command tegrarcm_v2 --download bct_bootrom br_bct_BR.bct --download bct_mb1 mb1_bct_MB1_sigheader.bct.encrypt --download bct_mem mem_rcm_sigheader.bct.encrypt
05:30:05 INFO: Flash Jetson AGX Xavier 16GB/32GB: Failed flashing t186ref.
05:30:05 INFO: Flash Jetson AGX Xavier 16GB/32GB: *** ERROR: flashing failed.
05:30:05 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ Component Install Finished with Error ]
05:30:06 INFO: Flash Jetson AGX Xavier 16GB/32GB: [host] [ 9.84 GB used. Disk Avail: 20.66 GB ]
05:30:06 INFO: Flash Jetson AGX Xavier 16GB/32GB: [ NV_L4T_FLASH_XAVIER_WITH_OS_IMAGE_COMP Install took 9m0s ]
05:30:06 ERROR: Flash Jetson AGX Xavier 16GB/32GB: [error]: : [exec_command]: /bin/bash -c /tmp/tmp_NV_L4T_FLASH_XAVIER_WITH_OS_IMAGE_COMP.sh; [error]:
05:30:06 ERROR: Flash Jetson AGX Xavier 16GB/32GB: command terminated with error
05:30:06 SUMMARY: Flash Jetson AGX Xavier 16GB/32GB: First Error: Installation failed.

Has anyone else encountered the same issue?
And can anyone help me in fixing this? I will be grateful for any help!

Thanks!

hello xykkndjq,

it shows flashing failed after sending BCTs.
for example,

[ 9.4777 ] Sending BCTs
[ 9.4786 ] tegrarcm_v2 --download bct_bootrom br_bct_BR.bct --download bct_mb1 mb1_bct_MB1_sigheader.bct.encrypt --download bct_mem mem_rcm_sigheader.bct.encrypt
...
Error: Return value 8
Failed flashing t186ref.
*** ERROR: flashing failed.

please try to use the flash script files for testing since SDKManager also installed JetPack release image to your local host machine,
the default path as following,
i.e. ~/nvidia/nvidia_sdk/JetPack_4.5_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra/

you might find the script file, flash.sh; please also refer to Basic Flash Script Usage for commands to flash the board,
you may gather complete flash messages for reference,
thanks

Thank you very much, @JerryChang
I followed your advice, use flash.sh to flash the board
“sudo ./flash.sh jetson-xavier mmcblk0p1”
The same failure appears to have occurred,

[   5.0497 ] tegrahost_v2 --chip 0x19 0 --updatesigheader mem_coldboot_sigheader.bct.encrypt mem_coldboot_sigheader.bct.hash zerosbk
[   5.0507 ] 
[   5.0508 ] Generating recovery mem-bct
[   5.0514 ] tegrabct_v2 --chip 0x19 0 --sdram /home/xy/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra/bootloader/93402/tmp5af0t4va1.cfg --membct /home/xy/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra/bootloader/93402/tmp5af0t4va1_1.bct /home/xy/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra/bootloader/93402/tmp5af0t4va1_2.bct /home/xy/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra/bootloader/93402/tmp5af0t4va1_3.bct /home/xy/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra/bootloader/93402/tmp5af0t4va1_4.bct
[   5.0519 ] Packing sdram param for instance[0]
[   5.1068 ] Packing sdram param for instance[1]
[   5.1073 ] Packing sdram param for instance[2]
[   5.1078 ] Packing sdram param for instance[3]
[   5.1083 ] Packing sdram param for instance[4]
[   5.1088 ] Packing sdram param for instance[5]
[   5.1093 ] Packing sdram param for instance[6]
[   5.1098 ] Packing sdram param for instance[7]
[   5.1102 ] Packing sdram param for instance[8]
[   5.1108 ] Packing sdram param for instance[9]
[   5.1112 ] Packing sdram param for instance[10]
[   5.1117 ] Packing sdram param for instance[11]
[   5.1122 ] Packing sdram param for instance[12]
[   5.1127 ] Packing sdram param for instance[13]
[   5.1132 ] Packing sdram param for instance[14]
[   5.1137 ] Packing sdram param for instance[15]
[   5.1276 ] 
[   5.1278 ] Reading ramcode from backup chip_info.bin file
[   5.1888 ] RAMCODE Read from Device: 2

[   5.1890 ] Disabled BPMP dtb trim, using default dtb
[   5.1890 ] 
[   5.1900 ] tegrahost_v2 --chip 0x19 --align mem_rcm.bct
[   5.1993 ] 
[   5.2001 ] tegrahost_v2 --chip 0x19 0 --magicid MEMB --ratchet_blob ratchet_blob.bin --appendsigheader mem_rcm.bct zerosbk
[   5.2009 ] adding BCH for mem_rcm.bct
[   5.2055 ] 
[   5.2066 ] tegrasign_v2 --key None --list mem_rcm_sigheader.bct_list.xml --pubkeyhash pub_key.key
[   5.2074 ] Assuming zero filled SBK key
[   5.2146 ] 
[   5.2156 ] tegrahost_v2 --chip 0x19 0 --updatesigheader mem_rcm_sigheader.bct.encrypt mem_rcm_sigheader.bct.hash zerosbk
[   5.2235 ] 
[   5.2236 ] Copying signatures
[   5.2242 ] tegrahost_v2 --chip 0x19 0 --partitionlayout flash.xml.bin --updatesig images_list_signed.xml
[   6.6810 ] 
[   6.6810 ] Boot Rom communication
[   6.6824 ] tegrarcm_v2 --chip 0x19 0 --rcm rcm_list_signed.xml
[   6.6831 ] BR_CID: 0x88021911647076c20c00000015048100
[   7.0357 ] RCM version 0X190001
[   7.1406 ] Boot Rom communication completed
[   8.1807 ] 
[   9.1834 ] tegrarcm_v2 --isapplet
[   9.1841 ] Applet version 01.00.0000
[   9.3390 ] 
[   9.3390 ] Sending BCTs
[   9.3399 ] tegrarcm_v2 --download bct_bootrom br_bct_BR.bct --download bct_mb1 mb1_bct_MB1_sigheader.bct.encrypt --download bct_mem mem_rcm_sigheader.bct.encrypt
[   9.3405 ] Applet version 01.00.0000
[   9.4835 ] Sending bct_bootrom
[   9.4836 ] [................................................] 100%
[   9.5194 ] Sending bct_mb1
[   9.5472 ] [................................................] 100%
[   9.5877 ] Sending bct_mem
[   9.6559 ] [................................................] 100%
[   9.8421 ] 
Error: Return value 8
Command tegrarcm_v2 --download bct_bootrom br_bct_BR.bct --download bct_mb1 mb1_bct_MB1_sigheader.bct.encrypt --download bct_mem mem_rcm_sigheader.bct.encrypt
Failed flashing t186ref.

Does that mean there’s a problem with the network?

hello xykkndjq,

see another user report the same here, UNable to flash NX.
we’ll check this internally, will update this after we come out conclusion.
thanks

Thanks for your help. Expect results soon.

hello xykkndjq,

I’m able to flash Jetson AGX Xavier and boot-up by using exactly same SDKManager version v1.4.1.7402 as yours.
however,
here’s RAMCODE from my test device.

[   4.7308 ] Reading ramcode from backup chip_info.bin file
[   4.7309 ] RAMCODE Read from Device: 0

the RAMCODE report by chip_info.bin as following of your platform.

INFO: Flash Jetson AGX Xavier 16GB/32GB: [ 5.4011 ] RAMCODE Read from Device: 2

am wondering which Jetson AGX Xavier you’re used,
you may also check What are the Part Numbers for Jetson products for reference,
thanks

Jetson AGX Xavier Developer Kit SKU:945-82972-0046-000

hello xykkndjq,

FYI,
we had test this again with Jetson Xavier-32GB, it’s confirmed we’re able to flash JetPack-4.5.1 through SDKManager.
for example,

###############################################################################
# L4T BSP Information:
# R32 , REVISION: 5.1
###############################################################################
# Target Board Information:
# Name: jetson-agx-xavier-devkit, Board Family: t186ref, SoC: Tegra 194, 
# OpMode: production, Boot Authentication: NS, 
# Disk encryption: disabled ,
###############################################################################
...

[   5.5202 ] Reading ramcode from backup chip_info.bin file
[   5.5203 ] RAMCODE Read from Device: 2

...

[ 275.9769 ] 
[ 275.9770 ] Flashing completed

[ 275.9771 ] Coldbooting the device
[ 275.9887 ] tegrarcm_v2 --ismb2
[ 275.9945 ] 
[ 275.9955 ] tegradevflash_v2 --reboot coldboot
[ 275.9966 ] Bootloader version 01.00.0000
[ 276.0029 ] 
*** The target t186ref has been flashed successfully. ***
Reset the board to boot from internal eMMC.

suggest you may re-install the JetPack OS image and try image flash again,
thanks

I have found the problem, because the power supply I am using is not the original power supply. The original power supply is 19V, while mine is 24V. Therefore, although I have entered the recovery mode, the working state of some components is not normal.

Thanks again