Issue flashing Orin NX

Hello,

I am having trouble following the instructions here for flashing a Jetson Orin NX.

https://docs.nvidia.com/jetson/archives/r35.2.1/DeveloperGuide/text/IN/QuickStart.html#to-flash-the-jetson-developer-kit-operating-software

Setup: Jetson Orin NX is nested in a Jetson Xavier NX carrier board, with an NVMe inserted. Running Jetpack 5.1

NB. That all cables, carrier board, etc. have been used to successfully flash a Jetson Xavier NX on countless occasions.

Running a lsusb yields:

Bus 001 Device 011: ID 0955:7323 NVIDIA Corp. APX

So I am satisfied that the Orin is in recovery mode.

I have run the following commands:

sudo ./apply_binaries.sh
sudo ./tools/l4t_flash_prerequisites.sh

And confirmed that the rootfs has been populated.

Finally I ran:

sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 \
  -c tools/kernel_flash/flash_l4t_external.xml -p "-c bootloader/t186ref/cfg/flash_t234_qspi.xml" \
  --showlogs --network usb0 p3509-a02+p3767-0000 internal

But obtained this error:

************************************
*                                  *
*  Step 1: Generate flash packages *
*                                  *
************************************
Create folder to store images to flash
Generate image for internal storage devices
Generate images to be flashed
ADDITIONAL_DTB_OVERLAY=""  /home/chris/Downloads/nvidia/sdkm_downloads/Linux_for_Tegra/flash.sh --no-flash --sign  -c bootloader/t186ref/cfg/flash_t234_qspi.xml p3509-a02+p3767-0000 internal

###############################################################################
# L4T BSP Information:
# R35 , REVISION: 2.1
# User release: 0.0
###############################################################################
copying emc_fuse_dev_params(/home/chris/Downloads/nvidia/sdkm_downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-br-bct-diag-boot.dts)... done.
copying device_config(/home/chris/Downloads/nvidia/sdkm_downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-device-p3767-0000.dts)... done.
copying misc_config(/home/chris/Downloads/nvidia/sdkm_downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-misc-p3767-0000.dts)... done.
./tegraflash.py --chip 0x23 --applet "/home/chris/Downloads/nvidia/sdkm_downloads/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-p3767-0000.dts --misc_config tegra234-mb1-bct-misc-p3767-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.0648 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   0.0657 ] File rcm_state open failed
[   0.0657 ] ERROR: failed to read rcm_state
[   0.0657 ] 
[   0.1024 ] tegrasign_v3.py --key None --getmode mode.txt
[   0.1027 ] Assuming zero filled SBK key
[   0.0661 ] Pre-processing config: tegra234-mb1-bct-device-p3767-0000.dts
[   0.1257 ] Pre-processing config: tegra234-mb1-bct-misc-p3767-0000.dts
[   0.1368 ] Parsing partition layout
[   0.1400 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[   0.1461 ] Kernel DTB used: None
[   0.1461 ] WARNING: dce base dtb is not provided

[   0.1461 ] Parsing partition layout
[   0.1474 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[   0.1485 ] Creating list of images to be signed
[   0.1513 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --list images_list.xml zerosbk
[   0.1522 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[   0.1895 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[   0.1899 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[   0.1979 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[   0.2111 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[   0.2572 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[   0.2592 ] adding BCH for mb2_t234_aligned.bin
[   0.2910 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[   0.3255 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[   0.3327 ] adding BCH for mb2_t234_aligned.bin
[   0.4076 ] Filling MB1 storage info
[   0.4077 ] Parsing dev params for multi chains
[   0.4142 ] Generating br-bct
[   0.4276 ] Updating dev and MSS params in BR BCT
[   0.4276 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[   0.4539 ] Updating bl info
[   0.4581 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin
[   0.4619 ] WARNING: boot chain is not completed. set to 0
[   0.4654 ] Generating signatures
[   0.5023 ] tegrasign_v3.py --key None --list images_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.5031 ] Assuming zero filled SBK key
[   0.5589 ] Warning: pub_key.key is not found
[   0.5225 ] Parsing dev params for multi chains
[   0.5226 ] Generating br-bct
[   0.5240 ] Updating dev and MSS params in BR BCT
[   0.5242 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[   0.5554 ] Updating bl info
[   0.5566 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[   0.5576 ] WARNING: boot chain is not completed. set to 0
[   0.5897 ] Get Signed section of bct
[   0.5909 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --listbct bct_list.xml
[   0.5935 ] Signing BCT
[   0.6302 ] tegrasign_v3.py --key None --list bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.6305 ] Assuming zero filled SBK key
[   0.6383 ] Sha saved in br_bct_BR.sha
[   0.6387 ] Warning: pub_key.key is not found
[   0.6021 ] Updating BCT with signature
[   0.6033 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesig bct_list_signed.xml
[   0.6044 ] Offset :4608 Len :3584
[   0.6049 ] Generating SHA2 Hash
[   0.6417 ] tegrasign_v3.py --key None --list bct_list.xml --sha sha512
[   0.6419 ] Assuming zero filled SBK key
[   0.6420 ] Assuming zero filled SBK key
[   0.6454 ] Sha saved in br_bct_BR.sha
[   0.6092 ] Updating BCT with SHA2 Hash
[   0.6103 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesha bct_list_signed.xml
[   0.6115 ] Offset :4608 Len :3584
[   0.6118 ] Offset :68 Len :8124
[   0.6406 ] Generating coldboot mb1-bct
[   0.6427 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_cold_boot_bct.cfg --misc tegra234-mb1-bct-misc-p3767-0000_cpp.dtb --device tegra234-mb1-bct-device-p3767-0000_cpp.dtb
[   0.6445 ] MB1-BCT version: 0.9
[   0.6447 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.6457 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.6463 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.6469 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.6476 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.6479 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.6479 ] ERROR: /misc/vmon/vdd_soc/int/ is not supported
[   0.6479 ] ERROR: /misc/vmon/vdd_soc/int/ is not supported
[   0.6479 ] ERROR: /misc/vmon/vdd_cpu/int/ is not supported
[   0.6479 ] ERROR: /misc/vmon/vdd_cpu/int/ is not supported
[   0.6479 ] 
[   0.6479 ] Parsing config file :tegra234-mb1-bct-device-p3767-0000_cpp.dtb 
[   0.6479 ] Added Platform Config 9 data with size :- 100
[   0.6479 ] 
[   0.6480 ] Updating mb1-bct with firmware information
[   0.6502 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_cold_boot_bct_MB1.bct --updatefwinfo readinfo_t234_min_prod.xml.bin
[   0.6558 ] tegrahost_v2 --chip 0x23 0 --align mb1_cold_boot_bct_MB1_aligned.bct
[   0.6608 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_cold_boot_bct_MB1_aligned.bct zerosbk
[   0.6630 ] adding BCH for mb1_cold_boot_bct_MB1_aligned.bct
[   0.7016 ] tegrasign_v3.py --key None --list mb1_cold_boot_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.7021 ] Assuming zero filled SBK key
[   0.7064 ] Warning: pub_key.key is not found
[   0.6724 ] 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.6765 ] Generating recovery mb1-bct
[   0.6788 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_bct.cfg --misc tegra234-mb1-bct-misc-p3767-0000_cpp.dtb --device tegra234-mb1-bct-device-p3767-0000_cpp.dtb
[   0.6811 ] MB1-BCT version: 0.9
[   0.6815 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.6831 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.6846 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.6846 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.6846 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.6846 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.6846 ] ERROR: /misc/vmon/vdd_soc/int/ is not supported
[   0.6847 ] ERROR: /misc/vmon/vdd_soc/int/ is not supported
[   0.6847 ] ERROR: /misc/vmon/vdd_cpu/int/ is not supported
[   0.6847 ] ERROR: /misc/vmon/vdd_cpu/int/ is not supported
[   0.6847 ] 
[   0.6847 ] Parsing config file :tegra234-mb1-bct-device-p3767-0000_cpp.dtb 
[   0.6847 ] Added Platform Config 9 data with size :- 100
[   0.6847 ] 
[   0.6848 ] Updating mb1-bct with firmware information
[   0.6873 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_bct_MB1.bct --recov --updatefwinfo readinfo_t234_min_prod.xml.bin
[   0.6932 ] tegrahost_v2 --chip 0x23 0 --align mb1_bct_MB1_aligned.bct
[   0.6971 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_bct_MB1_aligned.bct zerosbk
[   0.6985 ] adding BCH for mb1_bct_MB1_aligned.bct
[   0.7851 ] tegrasign_v3.py --key None --list mb1_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.7853 ] Assuming zero filled SBK key
[   0.7871 ] Warning: pub_key.key is not found
[   0.7515 ] tegrahost_v2 --chip 0x23 0 --updatesigheader mb1_bct_MB1_aligned_sigheader.bct.encrypt mb1_bct_MB1_aligned_sigheader.bct.hash zerosbk
[   0.7529 ] Error: Skip generating mem_bct because sdram_config is not defined
[   0.7530 ] Error: Skip generating mem_bct because sdram_config is not defined
[   0.7530 ] Copying signatures
[   0.7539 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[   0.8111 ] mb1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[   0.8117 ] psc_bl1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[   0.8118 ] Boot Rom communication
[   0.8168 ] tegrarcm_v2 --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.8222 ] BR_CID: 0x80012344705DD2C10C00000004010200
[   0.8519 ] Sending bct_br
[   0.8956 ] ERROR: might be timeout in USB write.
Error: Return value 3
Command tegrarcm_v2 --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
Reading board information failed.
Error: failed to generate images
Cleaning up...

Also note that when I tried using sdkmanager, the on screen icon said

Could not detect a board

Even though lsusb does still detect it as I showed above.

please help setup the serial console log and check if anything got printed during the flash process.

BTW, is this a ubuntu 20.04 host PC? Non-VM?

Hi @Cecelia

Your problem is different one. Please file a new topic for your issue.

https://forums.developer.nvidia.com/t/jetson-orin-nx-35-2-1-program-on-3509-carrier/246276
I republished the forum

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.