Can't Flash Orin Production SoM

I am having trouble flashing a production Orin SoM in our custom carrier board. If I place the SoM in the dev kit, I can flash it without issue, but if I try and flash it while in our system, it fails as follows:

###############################################################################

L4T BSP Information:

R35 , REVISION: 4.1

User release: 0.0

###############################################################################

Target Board Information:

Name: auto2-gpgpu, Board Family: t186ref, SoC: Tegra 234,

OpMode: production, Boot Authentication: NS,

Disk encryption: disabled ,

###############################################################################
copying emc_fuse_dev_params(/home/jimmy/Downloads/nvidia/hw/Auto2/JetPack_5.1.2_Linux_JETSON_AGX_ORIN_TARGETS/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-br-bct-diag-boot.dts)… done.
copying device_config(/home/jimmy/Downloads/nvidia/hw/Auto2/JetPack_5.1.2_Linux_JETSON_AGX_ORIN_TARGETS/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-device-p3701-0000.dts)… done.
copying misc_config(/home/jimmy/Downloads/nvidia/hw/Auto2/JetPack_5.1.2_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/jimmy/Downloads/nvidia/hw/Auto2/JetPack_5.1.2_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.0208 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[ 0.0216 ] File rcm_state open failed
[ 0.0219 ] ERROR: failed to read rcm_state
[ 0.0219 ]
[ 0.0227 ] tegrasign_v3.py --key None --getmode mode.txt
[ 0.0230 ] Assuming zero filled SBK key
[ 0.0224 ] Pre-processing config: tegra234-mb1-bct-device-p3701-0000.dts
[ 0.0286 ] Pre-processing config: tegra234-mb1-bct-misc-p3701-0000.dts
[ 0.0385 ] Parsing partition layout
[ 0.0419 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[ 0.0450 ] Kernel DTB used: None
[ 0.0450 ] WARNING: dce base dtb is not provided

[ 0.0450 ] Parsing partition layout
[ 0.0479 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[ 0.0493 ] Creating list of images to be signed
[ 0.0505 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --list images_list.xml zerosbk
[ 0.0515 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[ 0.0528 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[ 0.0536 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[ 0.0592 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[ 0.0594 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[ 0.0655 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[ 0.0665 ] adding BCH for mb2_t234_aligned.bin
[ 0.0705 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[ 0.0879 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[ 0.0882 ] adding BCH for mb2_t234_aligned.bin
[ 0.1094 ] Filling MB1 storage info
[ 0.1095 ] Parsing dev params for multi chains
[ 0.1164 ] Generating br-bct
[ 0.1174 ] Updating dev and MSS params in BR BCT
[ 0.1175 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[ 0.1226 ] Updating bl info
[ 0.1274 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin
[ 0.1312 ] WARNING: boot chain is not completed. set to 0
[ 0.1333 ] Generating signatures
[ 0.1341 ] tegrasign_v3.py --key None --list images_list.xml --pubkeyhash pub_key.key --sha sha512
[ 0.1344 ] Assuming zero filled SBK key
[ 0.1534 ] Warning: pub_key.key is not found
[ 0.1531 ] Parsing dev params for multi chains
[ 0.1532 ] Generating br-bct
[ 0.1545 ] Updating dev and MSS params in BR BCT
[ 0.1546 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[ 0.1704 ] Updating bl info
[ 0.1715 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[ 0.1723 ] WARNING: boot chain is not completed. set to 0
[ 0.1735 ] Get Signed section of bct
[ 0.1751 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --listbct bct_list.xml
[ 0.1760 ] Signing BCT
[ 0.1768 ] tegrasign_v3.py --key None --list bct_list.xml --pubkeyhash pub_key.key --sha sha512
[ 0.1770 ] Assuming zero filled SBK key
[ 0.1793 ] Sha saved in br_bct_BR.sha
[ 0.1797 ] Warning: pub_key.key is not found
[ 0.1790 ] Updating BCT with signature
[ 0.1797 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesig bct_list_signed.xml
[ 0.1804 ] Offset :4608 Len :3584
[ 0.1825 ] Generating SHA2 Hash
[ 0.1833 ] tegrasign_v3.py --key None --list bct_list.xml --sha sha512
[ 0.1836 ] Assuming zero filled SBK key
[ 0.1836 ] Assuming zero filled SBK key
[ 0.1876 ] Sha saved in br_bct_BR.sha
[ 0.1873 ] Updating BCT with SHA2 Hash
[ 0.1882 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesha bct_list_signed.xml
[ 0.1892 ] Offset :4608 Len :3584
[ 0.1895 ] Offset :68 Len :8124
[ 0.1896 ]
[ 0.1896 ] Generating coldboot mb1-bct
[ 0.1906 ] 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.1915 ] MB1-BCT version: 0.10
[ 0.1916 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED1/ is not supported
[ 0.1920 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED1/ is not supported
[ 0.1924 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED1/ is not supported
[ 0.1927 ] ERROR: /misc/tsc_controls/tsc_locking_config is not supported
[ 0.1930 ] ERROR: /misc/tsc_controls/tsc_locking_diff_configuration is not supported
[ 0.1932 ] ERROR: /misc/tsc_controls/tsc_locking_ref_frequency_configuration is not supported
[ 0.1932 ] ERROR: /misc/tsc_controls/tsc_locking_control is not supported
[ 0.1932 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_configuration is not supported
[ 0.1932 ] ERROR: /misc/tsc_controls/tsc_locking_fast_adjust_configuration is not supported
[ 0.1932 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_delta_control is not supported
[ 0.1932 ] ERROR: /misc/tsc_controls/tsc_capture_control_ptx is not supported
[ 0.1932 ] ERROR: /misc/tsc_controls/tsc_capture_config_ptx is not supported
[ 0.1932 ] ERROR: /misc/tsc_controls/tsc_stscrsr is not supported
[ 0.1932 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_num_control is not supported
[ 0.1932 ]
[ 0.1932 ] Parsing config file :tegra234-mb1-bct-device-p3701-0000_cpp.dtb
[ 0.1932 ] Added Platform Config 9 data with size :- 100
[ 0.1933 ]
[ 0.1933 ] Updating mb1-bct with firmware information
[ 0.1943 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_cold_boot_bct_MB1.bct --updatefwinfo readinfo_t234_min_prod.xml.bin
[ 0.1976 ] tegrahost_v2 --chip 0x23 0 --align mb1_cold_boot_bct_MB1_aligned.bct
[ 0.2122 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_cold_boot_bct_MB1_aligned.bct zerosbk
[ 0.2145 ] adding BCH for mb1_cold_boot_bct_MB1_aligned.bct
[ 0.2146 ]
[ 0.2166 ] tegrasign_v3.py --key None --list mb1_cold_boot_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[ 0.2175 ] Assuming zero filled SBK key
[ 0.2204 ] Warning: pub_key.key is not found
[ 0.2229 ] 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.2276 ] Generating recovery mb1-bct
[ 0.2289 ] 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.2325 ] MB1-BCT version: 0.10
[ 0.2328 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED1/ is not supported
[ 0.2335 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED1/ is not supported
[ 0.2365 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED1/ is not supported
[ 0.2365 ] ERROR: /misc/tsc_controls/tsc_locking_config is not supported
[ 0.2365 ] ERROR: /misc/tsc_controls/tsc_locking_diff_configuration is not supported
[ 0.2365 ] ERROR: /misc/tsc_controls/tsc_locking_ref_frequency_configuration is not supported
[ 0.2365 ] ERROR: /misc/tsc_controls/tsc_locking_control is not supported
[ 0.2365 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_configuration is not supported
[ 0.2366 ] ERROR: /misc/tsc_controls/tsc_locking_fast_adjust_configuration is not supported
[ 0.2366 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_delta_control is not supported
[ 0.2366 ] ERROR: /misc/tsc_controls/tsc_capture_control_ptx is not supported
[ 0.2366 ] ERROR: /misc/tsc_controls/tsc_capture_config_ptx is not supported
[ 0.2366 ] ERROR: /misc/tsc_controls/tsc_stscrsr is not supported
[ 0.2366 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_num_control is not supported
[ 0.2366 ]
[ 0.2366 ] Parsing config file :tegra234-mb1-bct-device-p3701-0000_cpp.dtb
[ 0.2366 ] Added Platform Config 9 data with size :- 100
[ 0.2366 ]
[ 0.2367 ] Updating mb1-bct with firmware information
[ 0.2387 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_bct_MB1.bct --recov --updatefwinfo readinfo_t234_min_prod.xml.bin
[ 0.2412 ] tegrahost_v2 --chip 0x23 0 --align mb1_bct_MB1_aligned.bct
[ 0.2430 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_bct_MB1_aligned.bct zerosbk
[ 0.2439 ] adding BCH for mb1_bct_MB1_aligned.bct
[ 0.2463 ] tegrasign_v3.py --key None --list mb1_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[ 0.2469 ] Assuming zero filled SBK key
[ 0.2503 ] Warning: pub_key.key is not found
[ 0.2512 ] tegrahost_v2 --chip 0x23 0 --updatesigheader mb1_bct_MB1_aligned_sigheader.bct.encrypt mb1_bct_MB1_aligned_sigheader.bct.hash zerosbk
[ 0.2526 ] Error: Skip generating mem_bct because sdram_config is not defined
[ 0.2527 ] Error: Skip generating mem_bct because sdram_config is not defined
[ 0.2527 ] Copying signatures
[ 0.2536 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[ 0.2586 ] mb1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[ 0.2588 ] psc_bl1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[ 0.2588 ] Boot Rom communication
[ 0.2598 ] 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.2607 ] BR_CID: 0x80012344705DD5018000000009010080
[ 0.2892 ] Sending bct_br
[ 0.3327 ] Sending mb1
[ 0.3334 ] Sending psc_bl1
[ 0.3484 ] Sending bct_mb1
[ 0.3540 ] Boot Rom communication completed
[ 0.3574 ] tegrahost_v2 --chip 0x23 0 --align applet_t234_aligned.bin
[ 0.3756 ] tegrahost_v2 --chip 0x23 0 --magicid MB2A --appendsigheader applet_t234_aligned.bin zerosbk
[ 0.3766 ] adding BCH for applet_t234_aligned.bin
[ 0.3872 ] tegrasign_v3.py --key None --list applet_t234_aligned_sigheader.bin_list.xml --pubkeyhash pub_key.key --sha sha512
[ 0.3875 ] Assuming zero filled SBK key
[ 0.3908 ] Warning: pub_key.key is not found
[ 0.3956 ] tegrahost_v2 --chip 0x23 0 --updatesigheader applet_t234_aligned_sigheader.bin.encrypt applet_t234_aligned_sigheader.bin.hash zerosbk
[ 0.4066 ] Sending mb2_applet…

[ 0.4087 ] tegrarcm_v2 --chip 0x23 0 --pollbl --download applet applet_t234_sigheader.bin.encrypt
[ 0.4094 ] BL: version 1.2.0.0-t234-54845784-562369e5 last_boot_error: 3839622591
[ 0.5623 ] Sending applet
[ 0.5939 ] ERROR: might be timeout in USB write.
Error: Return value 3
Command tegrarcm_v2 --chip 0x23 0 --pollbl --download applet applet_t234_sigheader.bin.encrypt
Reading board information failed.

Is this because the production SoMs are initially blank?

Most likely hardware design issue.

If want to check software side, share your serial console log from UART during flash period.

But after it’s initially flashed, I can re-flash it without issue in our custom carrier board.

Above is what is displayed during flashing while in the custom carrier board.

You have been this forum for a while. Is there any problem in understanding " share your serial console log from UART"?

We won’t ask duplicated info if you already shared.

Sorry, ok. I dont have access to the UART, but I’ll try some things.

Also, your new comment brings another question.

Are you talking about you have lots of modules there and only fresh module could hit such issue?

Yes, only the fresh modules (unflashed) have this issue.

Ok. Still need the uart log to see what is going on.

How can I grab the Uart log from my flashing computer (Ubuntu 18.04.6 LTS)?
I can minicom into the production SoM from the flashing computer, but it doesn’t display any output during flashing (or anytime).

First, could you clarify if you can dump the log from NV devkit? I mean do you have the knowledge about how to dump it?

Second, I cannot answer how to dump uart log for your custom board because this is your board.

I do not have an external cable connected to the UART of the SoM, but I’ll see what I can figure out.

Are you talking about NV devkit case or you are talking about your own board?

My own board. I do not have an issue with the Orin AGX dev kit. If I replace the Orin production SoM into the dev kit, I can flash it and then place the flashed production SoM back into our board, and it works fine.

I didn’t know if I was missing something to actually flash the SoM in our board, instead of the dev kit.

Ok, then waiting for you to fix that UART console problem. If you cannot share the log, then nothing we can help here.

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