Jetson AGX Orin 32GB flash failed

when we flash The Jetson AGX Orin 32GB failed with sdkmansger



Find if your target is Recovery status or not with this command:
$ sdkmanager --listconnected

IF YES, move into L4T directory and then run flash.sh
$ sudo ./flash.sh jetson-agx-orin-devkit mmcblk0p1

L4T flashing is done successfully, run sdkmanager again to install other pkgs.

1 Like
$ sdkmanager --listconnected
Jetson:
Device Name          | USB Port | USB Bus/Device | Network Interface | MAC Address | Status  
---------------------------------------------------------------------------------------------
Jetson AGX Orin 32GB | 1-1      | 001/002        | null              | null        | Recovery

liyanhou@liyanhou-pc:~$ cd nvidia/nvidia_sdk/JetPack_5.0.1_DP_Linux_JETSON_AGX_ORIN_TARGETS/Linux_for_Tegra/
liyanhou@liyanhou-pc:~/nvidia/nvidia_sdk/JetPack_5.0.1_DP_Linux_JETSON_AGX_ORIN_TARGETS/Linux_for_Tegra$ ls
apply_binaries.sh                       jetson-agx-orin-devkit-as-nx-8gb.conf  jetson-xavier-nx-devkit.conf       nvmassflashgen.sh                 p2972-0000.conf.common                p3509-0000+p3668-0001-qspi-emmc.conf      README_Autoflash.txt
bootloader                              jetson-agx-orin-devkit.conf            jetson-xavier-nx-devkit-emmc.conf  nvsdkmanager_flash.sh             p2972-0000-devkit-maxn.conf           p3668.conf.common                         README_Massflash.txt
build_l4t_bup.sh                        jetson-agx-orin-devkit-maxn.conf       jetson-xavier-nx-devkit-qspi.conf  nv_tegra                          p2972-0000-devkit-slvs-ec.conf        p3701.conf.common                         rootfs
clara-agx-xavier-devkit.conf            jetson-agx-xavier-devkit.conf          jetson-xavier-slvs-ec.conf         nv_tools                          p2972.conf                            p3737-0000+p3701-0000-as-p3701-0004.conf  source
e3900-0000+p2888-0004-b00.conf          jetson-agx-xavier-ind-noecc.conf       kernel                             p2822-0000+p2888-0001.conf        p3449-0000+p3668-0000-qspi-sd.conf    p3737-0000+p3701-0000-as-p3767-0000.conf  source_sync.sh
flash.sh                                jetson-agx-xavier-industrial.conf      l4t_generate_soc_bup.sh            p2822-0000+p2888-0004.conf        p3449-0000+p3668-0001-qspi-emmc.conf  p3737-0000+p3701-0000-as-p3767-0010.conf  tools
jetson-agx-orin-devkit-as-jao-40w.conf  jetson-xavier.conf                     l4t_sign_image.sh                  p2822-0000+p2888-0008.conf        p3509-0000+p3668-0000-qspi.conf       p3737-0000+p3701-0000.conf
jetson-agx-orin-devkit-as-nx-16gb.conf  jetson-xavier-maxn.conf                nvautoflash.sh                     p2822-0000+p2888-0008-noecc.conf  p3509-0000+p3668-0000-qspi-sd.conf    p3737-0000+p3701-0000-maxn.conf
liyanhou@liyanhou-pc:~/nvidia/nvidia_sdk/JetPack_5.0.1_DP_Linux_JETSON_AGX_ORIN_TARGETS/Linux_for_Tegra$ sudo ./flash.sh jetson-agx-orin-devkit mmcblk0p1
[sudo] liyanhou 的密码: 
###############################################################################
# L4T BSP Information:
# R34 , REVISION: 1.1
###############################################################################
# Target Board Information:
# Name: jetson-agx-orin-devkit, Board Family: t186ref, SoC: Tegra 234, 
# OpMode: production, Boot Authentication: NS, 
# Disk encryption: disabled ,
###############################################################################
copying emc_fuse_dev_params(/home/liyanhou/nvidia/nvidia_sdk/JetPack_5.0.1_DP_Linux_JETSON_AGX_ORIN_TARGETS/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-br-bct-diag-boot.dts)... done.
copying device_config(/home/liyanhou/nvidia/nvidia_sdk/JetPack_5.0.1_DP_Linux_JETSON_AGX_ORIN_TARGETS/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-device-p3701-0000.dts)... done.
copying misc_config(/home/liyanhou/nvidia/nvidia_sdk/JetPack_5.0.1_DP_Linux_JETSON_AGX_ORIN_TARGETS/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-misc-p3701-0000.dts)... done.
./tegraflash.py --chip 0x23 --applet "/home/liyanhou/nvidia/nvidia_sdk/JetPack_5.0.1_DP_Linux_JETSON_AGX_ORIN_TARGETS/Linux_for_Tegra/bootloader/mb1_t234_prod.bin" --skipuid --cfg readinfo_t234_min_prod.xml --dev_params tegra234-br-bct-diag-boot.dts --device_config tegra234-mb1-bct-device-p3701-0000.dts --misc_config tegra234-mb1-bct-misc-p3701-0000.dts --bins "mb2_applet applet_t234.bin" --cmd "dump eeprom cvm cvm.bin; dump custinfo custinfo_out.bin; reboot recovery" 
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands
 
[   0.0116 ] tegrarcm_v2 --chip 0x23 --ismb2applet
[   0.0124 ] File rcm_state open failed
[   0.0125 ] ERROR: failed to read rcm_state
[   0.0126 ] 
[   0.0149 ] tegrasign_v3.py --key None --getmode mode.txt
[   0.0151 ] Assuming zero filled SBK key
[   0.0130 ] Pre-processing config: tegra234-mb1-bct-device-p3701-0000.dts
[   0.0959 ] Pre-processing config: tegra234-br-bct-diag-boot.dts
[   0.1020 ] Pre-processing config: tegra234-mb1-bct-misc-p3701-0000.dts
[   0.1120 ] Parsing partition layout
[   0.1145 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[   0.1245 ] 
[   0.1255 ] Parsing partition layout
[   0.1278 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[   0.1381 ] 
[   0.1383 ] Creating list of images to be signed
[   0.1424 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --list images_list.xml zerosbk
[   0.1440 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[   0.1468 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[   0.1476 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[   0.1514 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[   0.1526 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[   0.1632 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[   0.1643 ] adding BCH for mb2_t234_aligned.bin
[   0.1690 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[   0.1798 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[   0.1808 ] adding BCH for mb2_t234_aligned.bin
[   0.2023 ] 
[   0.2023 ] Generating signatures
[   0.2046 ] tegrasign_v3.py --key None --list images_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.2049 ] Assuming zero filled SBK key
[   0.2647 ] Warning: pub_key.key is not found
[   0.2627 ] Generating br-bct
[   0.2650 ] Updating dev and MSS params in BR BCT
[   0.2653 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[   0.2710 ] 
[   0.2711 ] Updating bl info
[   0.2721 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[   0.2731 ] WARNING: boot chain is not completed. set to 0
[   0.2751 ] 
[   0.2752 ] Get Signed section of bct
[   0.2775 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --listbct bct_list.xml
[   0.2906 ] 
[   0.2908 ] Signing BCT
[   0.2931 ] tegrasign_v3.py --key None --list bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.2936 ] Assuming zero filled SBK key
[   0.2988 ] Sha saved in br_bct_BR.sha
[   0.2993 ] Warning: pub_key.key is not found
[   0.2972 ] Updating BCT with signature
[   0.2982 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesig bct_list_signed.xml
[   0.2997 ] 
[   0.2998 ] Generating SHA2 Hash
[   0.3021 ] tegrasign_v3.py --key None --list bct_list.xml --sha sha512
[   0.3024 ] Assuming zero filled SBK key
[   0.3024 ] Assuming zero filled SBK key
[   0.3068 ] Sha saved in br_bct_BR.sha
[   0.3055 ] Updating BCT with SHA2 Hash
[   0.3083 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 --updatesha bct_list_signed.xml
[   0.3109 ] Offset :68 Len :8124
[   0.3117 ] 
[   0.3117 ] Generating coldboot mb1-bct
[   0.3126 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_cold_boot_bct.cfg --misc tegra234-mb1-bct-misc-p3701-0000_cpp.dtb --device tegra234-mb1-bct-device-p3701-0000_cpp.dtb
[   0.3134 ] MB1-BCT version: 0.7
[   0.3138 ] ERROR: /misc/axi_ap_virtual_client is not supported

[   0.3149 ] Parsing config file :tegra234-mb1-bct-device-p3701-0000_cpp.dtb 
[   0.3151 ] Added Platform Config 9 data with size :- 80
[   0.3151 ] 
[   0.3152 ] Updating mb1-bct with firmware information
[   0.3160 ] tegrabct_v2 --chip 0x23 --mb1bct mb1_cold_boot_bct_MB1.bct --updatefwinfo readinfo_t234_min_prod.xml.bin
[   0.3176 ] 
[   0.3197 ] tegrahost_v2 --chip 0x23 --align mb1_cold_boot_bct_MB1_aligned.bct
[   0.3278 ] 
[   0.3299 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_cold_boot_bct_MB1_aligned.bct zerosbk
[   0.3310 ] adding BCH for mb1_cold_boot_bct_MB1_aligned.bct
[   0.3315 ] 
[   0.3341 ] tegrasign_v3.py --key None --list mb1_cold_boot_bct_MB1_aligned_sigheader.bct_list.xml --sha sha512
[   0.3342 ] Assuming zero filled SBK key
[   0.3344 ] tegrahost_v2 --chip 0x23 0 --updatesigheader mb1_cold_boot_bct_MB1_aligned_sigheader.bct.encrypt mb1_cold_boot_bct_MB1_aligned_sigheader.bct.hash zerosbk
[   0.3356 ] 
[   0.3358 ] Generating recovery mb1-bct
[   0.3366 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_bct.cfg --misc tegra234-mb1-bct-misc-p3701-0000_cpp.dtb --device tegra234-mb1-bct-device-p3701-0000_cpp.dtb
[   0.3375 ] MB1-BCT version: 0.7
[   0.3388 ] ERROR: /misc/axi_ap_virtual_client is not supported
[   0.3405 ] 
[   0.3406 ] Parsing config file :tegra234-mb1-bct-device-p3701-0000_cpp.dtb 
[   0.3406 ] Added Platform Config 9 data with size :- 80
[   0.3406 ] 
[   0.3407 ] Updating mb1-bct with firmware information
[   0.3467 ] tegrabct_v2 --chip 0x23 --mb1bct mb1_bct_MB1.bct --recov --updatefwinfo readinfo_t234_min_prod.xml.bin
[   0.3486 ] 
[   0.3504 ] tegrahost_v2 --chip 0x23 --align mb1_bct_MB1_aligned.bct
[   0.3628 ] 
[   0.3642 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_bct_MB1_aligned.bct zerosbk
[   0.3663 ] adding BCH for mb1_bct_MB1_aligned.bct
[   0.3672 ] 
[   0.3701 ] tegrasign_v3.py --key None --list mb1_bct_MB1_aligned_sigheader.bct_list.xml --sha sha512
[   0.3703 ] Assuming zero filled SBK key
[   0.3707 ] tegrahost_v2 --chip 0x23 0 --updatesigheader mb1_bct_MB1_aligned_sigheader.bct.encrypt mb1_bct_MB1_aligned_sigheader.bct.hash zerosbk
[   0.3720 ] 
[   0.3723 ] Error: Skip generating mem_bct because sdram_config is not defined
[   0.3723 ] Error: Skip generating mem_bct because sdram_config is not defined
[   0.3724 ] Copying signatures
[   0.3755 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[   0.3995 ] 
[   0.4007 ] Boot Rom communication
[   0.4024 ] tegrarcm_v2 --new_session --chip 0x23 --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.4038 ] BR_CID: 0x80012344705DD34C300000000EFF8240
[   0.4095 ] Sending bct_br
[   0.4099 ] ERROR: might be timeout in USB write.
[   5.4549 ] 
Error: Return value 3
Command tegrarcm_v2 --new_session --chip 0x23 --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
Reading board information failed.

I tested it with following envs:

1. Ubuntu 20.04 host 
2. JetPack 5.0.1 GA v2, not sdkmanager

I used Ubuntu 18.04
and How to download 5.0.1 GA v2