I can’t perform the recovery procedure

"I have a ZedBox Orin NX 16GB and I can’t complete the recovery procedure even though I follow the steps in the guide; at the end I get ‘flash failed’. What should I do

Please follow the Troubleshooting guide.

If you still experience issues, please send the full log.

I followed the steps from the Troubleshooting guide, but in the end I get the message 'recovery failed

We need the FULL LOG to understand the cause of the error

\[   5.8837 \] tegraparser_v2 --pt flash.xml.bin --generateflashindex /home/andrei/zedbox_flash/stereolabs_bsp/Linux_for_Tegra/bootloader/signed/flash.xml.tmp flash.idx
Using bpmp-dtb concatenated with odmdata in blob for t23x
./tegraflash.py --bl uefi_jetson_minimal_with_dtb_sigheader.bin.encrypt --bct br_bct_BR.bct --securedev  --bldtb tegra234-p3768-0000+p3767-0000-nv.dtb --applet rcm_2_encrypt.rcm --applet_softfuse rcm_1_encrypt.rcm --cmd “rcmboot”  --cfg secureflash.xml --chip 0x23 --mb1_bct mb1_bct_MB1_sigheader.bct.encrypt --mem_bct mem_rcm_sigheader.bct.encrypt --mb1_cold_boot_bct mb1_cold_boot_bct_MB1_sigheader.bct.encrypt --mb1_bin mb1_t234_prod_aligned_sigheader.bin.encrypt --psc_bl1_bin psc_bl1_t234_prod_aligned_sigheader.bin.encrypt --mem_bct_cold_boot mem_coldboot_sigheader.bct.encrypt  --bins “psc_fw pscfw_t234_prod_sigheader.bin.encrypt; mts_mce mce_flash_o10_cr_prod_sigheader.bin.encrypt; tsec_fw tsec_t234_sigheader.bin.encrypt; mb2_applet applet_t234_sigheader.bin.encrypt; mb2_bootloader mb2_t234_with_mb2_cold_boot_bct_MB2_sigheader.bin.encrypt; xusb_fw xusb_t234_prod_sigheader.bin.encrypt; pva_fw nvpva_020_sigheader.fw.encrypt; dce_fw display-t234-dce_sigheader.bin.encrypt; nvdec nvdec_t234_prod_sigheader.fw.encrypt; bpmp_fw bpmp_t234-TE980M-A1_prod_sigheader.bin.encrypt; bpmp_fw_dtb tegra234-bpmp-3767-0000-a02-3509-a02_with_odm_sigheader.dtb.encrypt; rce_fw camera-rtcpu-t234-rce_sigheader.img.encrypt; ape_fw adsp-fw_sigheader.bin.encrypt; spe_fw spe_t234_sigheader.bin.encrypt; tos tos-optee_t234_sigheader.img.encrypt; eks eks_t234_sigheader.img.encrypt; kernel boot.img; kernel_dtb tegra234-p3768-0000+p3767-0000-nv.dtb”    --bct_backup
saving flash command in flashcmd.txt
no_flash …; prepare rcmboot_blob …
flashcmd with --no_flash:
./tegraflash.py --bl uefi_jetson_minimal_with_dtb_sigheader.bin.encrypt --bct br_bct_BR.bct --securedev  --bldtb tegra234-p3768-0000+p3767-0000-nv.dtb --applet rcm_2_encrypt.rcm --applet_softfuse rcm_1_encrypt.rcm --cmd “rcmboot”  --cfg secureflash.xml --chip 0x23 --mb1_bct mb1_bct_MB1_sigheader.bct.encrypt --mem_bct mem_rcm_sigheader.bct.encrypt --mb1_cold_boot_bct mb1_cold_boot_bct_MB1_sigheader.bct.encrypt --mb1_bin mb1_t234_prod_aligned_sigheader.bin.encrypt --psc_bl1_bin psc_bl1_t234_prod_aligned_sigheader.bin.encrypt --mem_bct_cold_boot mem_coldboot_sigheader.bct.encrypt  --bins “psc_fw pscfw_t234_prod_sigheader.bin.encrypt; mts_mce mce_flash_o10_cr_prod_sigheader.bin.encrypt; tsec_fw tsec_t234_sigheader.bin.encrypt; mb2_applet applet_t234_sigheader.bin.encrypt; mb2_bootloader mb2_t234_with_mb2_cold_boot_bct_MB2_sigheader.bin.encrypt; xusb_fw xusb_t234_prod_sigheader.bin.encrypt; pva_fw nvpva_020_sigheader.fw.encrypt; dce_fw display-t234-dce_sigheader.bin.encrypt; nvdec nvdec_t234_prod_sigheader.fw.encrypt; bpmp_fw bpmp_t234-TE980M-A1_prod_sigheader.bin.encrypt; bpmp_fw_dtb tegra234-bpmp-3767-0000-a02-3509-a02_with_odm_sigheader.dtb.encrypt; rce_fw camera-rtcpu-t234-rce_sigheader.img.encrypt; ape_fw adsp-fw_sigheader.bin.encrypt; spe_fw spe_t234_sigheader.bin.encrypt; tos tos-optee_t234_sigheader.img.encrypt; eks eks_t234_sigheader.img.encrypt; kernel boot.img; kernel_dtb tegra234-p3768-0000+p3767-0000-nv.dtb”    --bct_backup  --no_flash
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands

Entering RCM boot

\[   0.0105 \] mb1_t234_prod_aligned_sigheader.bin.encrypt filename is from --mb1_bin
\[   0.0105 \] psc_bl1_t234_prod_aligned_sigheader.bin.encrypt filename is from --psc_bl1_bin
\[   0.0105 \] rcm boot with presigned binaries
\[   0.0110 \] Generating blob for T23x
\[   0.0119 \] tegrahost_v2 --chip 0x23 0 --generateblob blob.xml blob.bin
\[   0.0123 \] The number of images in blob is 19
\[   0.0127 \] blobsize is 81813887
\[   0.0127 \] Added binary blob_uefi_jetson_minimal_with_dtb_sigheader.bin.encrypt of size 2060352
\[   0.0364 \] Added binary blob_pscfw_t234_prod_sigheader.bin.encrypt of size 310768
\[   0.0366 \] Added binary blob_mce_flash_o10_cr_prod_sigheader.bin.encrypt of size 187120
\[   0.0368 \] Added binary blob_tsec_t234_sigheader.bin.encrypt of size 176128
\[   0.0370 \] Added binary blob_applet_t234_sigheader.bin.encrypt of size 279808
\[   0.0372 \] Not supported type: mb2_applet
\[   0.0372 \] Added binary blob_mb2_t234_with_mb2_cold_boot_bct_MB2_sigheader.bin.encrypt of size 440944
\[   0.0375 \] Added binary blob_xusb_t234_prod_sigheader.bin.encrypt of size 164864
\[   0.0376 \] Added binary blob_nvpva_020_sigheader.fw.encrypt of size 2164640
\[   0.0386 \] Added binary blob_display-t234-dce_sigheader.bin.encrypt of size 12071168
\[   0.0439 \] Added binary blob_nvdec_t234_prod_sigheader.fw.encrypt of size 294912
\[   0.0451 \] Added binary blob_bpmp_t234-TE980M-A1_prod_sigheader.bin.encrypt of size 1027008
\[   0.0456 \] Added binary blob_tegra234-bpmp-3767-0000-a02-3509-a02_with_odm_sigheader.dtb.encrypt of size 383296
\[   0.0459 \] Added binary blob_camera-rtcpu-t234-rce_sigheader.img.encrypt of size 458096
\[   0.0462 \] Added binary blob_adsp-fw_sigheader.bin.encrypt of size 415008
\[   0.0465 \] Added binary blob_spe_t234_sigheader.bin.encrypt of size 270336
\[   0.0467 \] Added binary blob_tos-optee_t234_sigheader.img.encrypt of size 1887312
\[   0.0476 \] Added binary blob_eks_t234_sigheader.img.encrypt of size 9232
\[   0.0477 \] Added binary blob_boot.img of size 58961920
\[   0.0717 \] Added binary blob_tegra234-p3768-0000+p3767-0000-nv.dtb of size 249871
\[   0.1310 \] All RCM required files are saved in rcmboot_blob folder
rcmboot_blob generated.

\*\*\* no-flash flag enabled. Exiting now… \*\*\*

User can run above saved command in factory environment without
providing pkc and sbk keys to flash a device

Example:

'''
$ cd bootloader 
$ sudo bash ./flashcmd.txt
'''

Save initrd flashing command parameters to /home/andrei/zedbox_flash/stereolabs_bsp/Linux_for_Tegra/tools/kernel_flash/initrdflashparam.txt
/tmp/tmp.jml1C7uXUX /home/andrei/zedbox_flash/stereolabs_bsp/Linux_for_Tegra
writing boot image config in bootimg.cfg
extracting kernel in zImage
extracting ramdisk in initrd.img
/tmp/tmp.jml1C7uXUX/initrd /tmp/tmp.jml1C7uXUX /home/andrei/zedbox_flash/stereolabs_bsp/Linux_for_Tegra
96395 blocks
148371 blocks
/tmp/tmp.jml1C7uXUX /home/andrei/zedbox_flash/stereolabs_bsp/Linux_for_Tegra
flashimg0=boot0.img
/home/andrei/zedbox_flash/stereolabs_bsp/Linux_for_Tegra
Success
Cleaning up…
Finish generating flash package.

# Entry added by NVIDIA initrd flash tool

/home/andrei/zedbox_flash/stereolabs_bsp/Linux_for_Tegra/tools/kernel_flash/tmp 127.0.0.1(rw,nohide,insecure,no_subtree_check,async,no_root_squash)
rpcbind: another rpcbind is already running. Aborting
Export list for localhost:
/home/andrei/zedbox_flash/stereolabs_bsp/Linux_for_Tegra/tools/kernel_flash/tmp 127.0.0.1
/home/andrei/zedbox_flash/stereolabs_bsp/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh --network usb0 --usb-instance 3-1 --device-instance 0 --flash-only --external-device nvme0n1p1 -c “tools/kernel_flash/flash_l4t_external.xml” --network usb0 p3509-a02-p3767-0000 internal

---

* '''
                                         *
  '''

* Step 1: Build the flashing environment    \*

* '''
                                         *
  '''

---

Create flash environment 0
/home/andrei/zedbox_flash/stereolabs_bsp/Linux_for_Tegra/bootloader /home/andrei/zedbox_flash/stereolabs_bsp/Linux_for_Tegra
/home/andrei/zedbox_flash/stereolabs_bsp/Linux_for_Tegra
Finish creating flash environment 0.

---

* '''
                                               *
  '''

* Step 2: Boot the device with flash initrd image \*

* '''
                                               *
  '''

---

/home/andrei/zedbox_flash/stereolabs_bsp/Linux_for_Tegra/temp_initrdflash/bootloader0 /home/andrei/zedbox_flash/stereolabs_bsp/Linux_for_Tegra
./tegraflash.py --bl uefi_jetson_minimal_with_dtb_sigheader.bin.encrypt --bct br_bct_BR.bct --securedev  --bldtb tegra234-p3768-0000+p3767-0000-nv.dtb --applet rcm_2_encrypt.rcm --applet_softfuse rcm_1_encrypt.rcm --instance 3-1 --cmd “rcmboot”  --cfg secureflash.xml --chip 0x23 --mb1_bct mb1_bct_MB1_sigheader.bct.encrypt --mem_bct mem_rcm_sigheader.bct.encrypt --mb1_cold_boot_bct mb1_cold_boot_bct_MB1_sigheader.bct.encrypt --mb1_bin mb1_t234_prod_aligned_sigheader.bin.encrypt --psc_bl1_bin psc_bl1_t234_prod_aligned_sigheader.bin.encrypt --mem_bct_cold_boot mem_coldboot_sigheader.bct.encrypt  --bins “psc_fw pscfw_t234_prod_sigheader.bin.encrypt; mts_mce mce_flash_o10_cr_prod_sigheader.bin.encrypt; tsec_fw tsec_t234_sigheader.bin.encrypt; mb2_applet applet_t234_sigheader.bin.encrypt; mb2_bootloader mb2_t234_with_mb2_cold_boot_bct_MB2_sigheader.bin.encrypt; xusb_fw xusb_t234_prod_sigheader.bin.encrypt; pva_fw nvpva_020_sigheader.fw.encrypt; dce_fw display-t234-dce_sigheader.bin.encrypt; nvdec nvdec_t234_prod_sigheader.fw.encrypt; bpmp_fw bpmp_t234-TE980M-A1_prod_sigheader.bin.encrypt; bpmp_fw_dtb tegra234-bpmp-3767-0000-a02-3509-a02_with_odm_sigheader.dtb.encrypt; rce_fw camera-rtcpu-t234-rce_sigheader.img.encrypt; ape_fw adsp-fw_sigheader.bin.encrypt; spe_fw spe_t234_sigheader.bin.encrypt; tos tos-optee_t234_sigheader.img.encrypt; eks eks_t234_sigheader.img.encrypt; kernel boot0.img; kernel_dtb tegra234-p3768-0000+p3767-0000-nv.dtb”    --bct_backup
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands

Entering RCM boot

\[   0.0146 \] mb1_t234_prod_aligned_sigheader.bin.encrypt filename is from --mb1_bin
\[   0.0146 \] psc_bl1_t234_prod_aligned_sigheader.bin.encrypt filename is from --psc_bl1_bin
\[   0.0146 \] rcm boot with presigned binaries
\[   0.0152 \] tegrarcm_v2 --instance 3-1 --new_session --chip 0x23 0 --uid --download bct_br br_bct_BR.bct --download mb1 mb1_t234_prod_aligned_sigheader.bin.encrypt --download psc_bl1 psc_bl1_t234_prod_aligned_sigheader.bin.encrypt --download bct_mb1 mb1_bct_MB1_sigheader.bct.encrypt
\[   0.0155 \] BR_CID: 0x80012344705E01895000000018000000
\[   0.0263 \] Sending bct_br
\[   0.0332 \] ERROR: might be timeout in USB write.
Error: Return value 3
Command tegrarcm_v2 --instance 3-1 --new_session --chip 0x23 0 --uid --download bct_br br_bct_BR.bct --download mb1 mb1_t234_prod_aligned_sigheader.bin.encrypt --download psc_bl1 psc_bl1_t234_prod_aligned_sigheader.bin.encrypt --download bct_mb1 mb1_bct_MB1_sigheader.bct.encrypt
Cleaning up…
FLASH FAILED.

This is a typical USB connection issue.
You must retry until the procedure is successful.
I recommend you try to use a shorter cable and to change the USB3 port on the host.