Unable to Reset the Orin NX Module

I have a ZEDBox that uses the Orin NX 16GB module. I’m trying to manually reset the module, but when doing so, I run into issues. My host system is Ubuntu 20.04. I’m attaching the log here

************************************
*                                  *
*  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/thiru/Downloads/Linux_for_Tegra/flash.sh --no-flash --sign  -c p3509-a02+p3767-0000 internal

###############################################################################
# L4T BSP Information:
# R35 , REVISION: 3.1
# User release: 0.0
###############################################################################
copying emc_fuse_dev_params(/home/thiru/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-br-bct-diag-boot.dts)... done.
copying device_config(/home/thiru/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-device-p3767-0000.dts)... done.
copying misc_config(/home/thiru/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-misc-p3767-0000.dts)... done.
./tegraflash.py --chip 0x23 --applet "/home/thiru/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.0243 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   0.0262 ] File rcm_state open failed
[   0.0267 ] ERROR: failed to read rcm_state
[   0.0268 ] 
[   0.0296 ] tegrasign_v3.py --key None --getmode mode.txt
[   0.0300 ] Assuming zero filled SBK key
[   0.0277 ] Pre-processing config: tegra234-mb1-bct-device-p3767-0000.dts
[   0.1024 ] Pre-processing config: tegra234-mb1-bct-misc-p3767-0000.dts
[   0.1222 ] Parsing partition layout
[   0.1260 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[   0.1305 ] Kernel DTB used: None
[   0.1305 ] WARNING: dce base dtb is not provided

[   0.1305 ] Parsing partition layout
[   0.1329 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[   0.1358 ] Creating list of images to be signed
[   0.1388 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --list images_list.xml zerosbk
[   0.1410 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[   0.1441 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[   0.1445 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[   0.1563 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[   0.1572 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[   0.1659 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[   0.1664 ] adding BCH for mb2_t234_aligned.bin
[   0.1716 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[   0.1927 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[   0.1936 ] adding BCH for mb2_t234_aligned.bin
[   0.2186 ] Filling MB1 storage info
[   0.2186 ] Parsing dev params for multi chains
[   0.2336 ] Generating br-bct
[   0.2368 ] Updating dev and MSS params in BR BCT
[   0.2370 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[   0.2408 ] Updating bl info
[   0.2431 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin
[   0.2448 ] WARNING: boot chain is not completed. set to 0
[   0.2466 ] Generating signatures
[   0.2494 ] tegrasign_v3.py --key None --list images_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.2498 ] Assuming zero filled SBK key
[   0.2853 ] Warning: pub_key.key is not found
[   0.2832 ] Parsing dev params for multi chains
[   0.2832 ] Generating br-bct
[   0.2851 ] Updating dev and MSS params in BR BCT
[   0.2852 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[   0.2880 ] Updating bl info
[   0.2902 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[   0.2920 ] WARNING: boot chain is not completed. set to 0
[   0.2948 ] Get Signed section of bct
[   0.2971 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --listbct bct_list.xml
[   0.3003 ] Signing BCT
[   0.3032 ] tegrasign_v3.py --key None --list bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.3036 ] Assuming zero filled SBK key
[   0.3119 ] Sha saved in br_bct_BR.sha
[   0.3128 ] Warning: pub_key.key is not found
[   0.3101 ] Updating BCT with signature
[   0.3123 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesig bct_list_signed.xml
[   0.3144 ] Offset :4608 Len :3584
[   0.3156 ] Generating SHA2 Hash
[   0.3185 ] tegrasign_v3.py --key None --list bct_list.xml --sha sha512
[   0.3189 ] Assuming zero filled SBK key
[   0.3189 ] Assuming zero filled SBK key
[   0.3264 ] Sha saved in br_bct_BR.sha
[   0.3244 ] Updating BCT with SHA2 Hash
[   0.3269 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesha bct_list_signed.xml
[   0.3288 ] Offset :4608 Len :3584
[   0.3294 ] Offset :68 Len :8124
[   0.3302 ] Generating coldboot mb1-bct
[   0.3320 ] 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.3332 ] MB1-BCT version: 0.10
[   0.3334 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.3343 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.3346 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.3349 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.3352 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.3355 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.3358 ] ERROR: /misc/tsc_controls/tsc_locking_config is not supported
[   0.3361 ] ERROR: /misc/tsc_controls/tsc_locking_diff_configuration is not supported
[   0.3364 ] ERROR: /misc/tsc_controls/tsc_locking_ref_frequency_configuration is not supported
[   0.3368 ] ERROR: /misc/tsc_controls/tsc_locking_control is not supported
[   0.3368 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_configuration is not supported
[   0.3368 ] ERROR: /misc/tsc_controls/tsc_locking_fast_adjust_configuration is not supported
[   0.3368 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_delta_control is not supported
[   0.3368 ] ERROR: /misc/tsc_controls/tsc_capture_control_ptx is not supported
[   0.3368 ] ERROR: /misc/tsc_controls/tsc_capture_config_ptx is not supported
[   0.3368 ] ERROR: /misc/tsc_controls/tsc_stscrsr is not supported
[   0.3368 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_num_control is not supported
[   0.3368 ] 
[   0.3368 ] Parsing config file :tegra234-mb1-bct-device-p3767-0000_cpp.dtb 
[   0.3368 ] Added Platform Config 9 data with size :- 100
[   0.3369 ] 
[   0.3369 ] Updating mb1-bct with firmware information
[   0.3389 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_cold_boot_bct_MB1.bct --updatefwinfo readinfo_t234_min_prod.xml.bin
[   0.3429 ] tegrahost_v2 --chip 0x23 0 --align mb1_cold_boot_bct_MB1_aligned.bct
[   0.3467 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_cold_boot_bct_MB1_aligned.bct zerosbk
[   0.3484 ] adding BCH for mb1_cold_boot_bct_MB1_aligned.bct
[   0.3534 ] tegrasign_v3.py --key None --list mb1_cold_boot_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.3536 ] Assuming zero filled SBK key
[   0.3564 ] Warning: pub_key.key is not found
[   0.3555 ] 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.3590 ] Generating recovery mb1-bct
[   0.3610 ] 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.3626 ] MB1-BCT version: 0.10
[   0.3628 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.3634 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.3636 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.3639 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.3642 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.3645 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.3648 ] ERROR: /misc/tsc_controls/tsc_locking_config is not supported
[   0.3650 ] ERROR: /misc/tsc_controls/tsc_locking_diff_configuration is not supported
[   0.3654 ] ERROR: /misc/tsc_controls/tsc_locking_ref_frequency_configuration is not supported
[   0.3655 ] ERROR: /misc/tsc_controls/tsc_locking_control is not supported
[   0.3655 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_configuration is not supported
[   0.3655 ] ERROR: /misc/tsc_controls/tsc_locking_fast_adjust_configuration is not supported
[   0.3655 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_delta_control is not supported
[   0.3655 ] ERROR: /misc/tsc_controls/tsc_capture_control_ptx is not supported
[   0.3655 ] ERROR: /misc/tsc_controls/tsc_capture_config_ptx is not supported
[   0.3655 ] ERROR: /misc/tsc_controls/tsc_stscrsr is not supported
[   0.3655 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_num_control is not supported
[   0.3655 ] 
[   0.3655 ] Parsing config file :tegra234-mb1-bct-device-p3767-0000_cpp.dtb 
[   0.3655 ] Added Platform Config 9 data with size :- 100
[   0.3655 ] 
[   0.3657 ] Updating mb1-bct with firmware information
[   0.3672 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_bct_MB1.bct --recov --updatefwinfo readinfo_t234_min_prod.xml.bin
[   0.3694 ] tegrahost_v2 --chip 0x23 0 --align mb1_bct_MB1_aligned.bct
[   0.3730 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_bct_MB1_aligned.bct zerosbk
[   0.3748 ] adding BCH for mb1_bct_MB1_aligned.bct
[   0.3798 ] tegrasign_v3.py --key None --list mb1_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.3801 ] Assuming zero filled SBK key
[   0.3838 ] Warning: pub_key.key is not found
[   0.3836 ] tegrahost_v2 --chip 0x23 0 --updatesigheader mb1_bct_MB1_aligned_sigheader.bct.encrypt mb1_bct_MB1_aligned_sigheader.bct.hash zerosbk
[   0.3870 ] Error: Skip generating mem_bct because sdram_config is not defined
[   0.3870 ] Error: Skip generating mem_bct because sdram_config is not defined
[   0.3870 ] Copying signatures
[   0.3888 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[   0.3984 ] mb1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[   0.3991 ] psc_bl1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[   0.3991 ] Boot Rom communication
[   0.4015 ] 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.4038 ] BR_CID: 0x80012344705DD3408800000013010200
[   5.7644 ] Sending bct_br
[   8.8185 ] Sending mb1
[   8.8192 ] Sending psc_bl1
[   8.8288 ] Sending bct_mb1
[   8.8344 ] Boot Rom communication completed
[   8.8385 ] tegrahost_v2 --chip 0x23 0 --align applet_t234_aligned.bin
[   8.8432 ] tegrahost_v2 --chip 0x23 0 --magicid MB2A --appendsigheader applet_t234_aligned.bin zerosbk
[   8.8459 ] adding BCH for applet_t234_aligned.bin
[   8.8663 ] tegrasign_v3.py --key None --list applet_t234_aligned_sigheader.bin_list.xml --pubkeyhash pub_key.key --sha sha512
[   8.8667 ] Assuming zero filled SBK key
[   8.8726 ] Warning: pub_key.key is not found
[   8.8732 ] tegrahost_v2 --chip 0x23 0 --updatesigheader applet_t234_aligned_sigheader.bin.encrypt applet_t234_aligned_sigheader.bin.hash zerosbk
[   8.8794 ] Sending mb2_applet...

[   8.8817 ] tegrarcm_v2 --chip 0x23 0 --pollbl --download applet applet_t234_sigheader.bin.encrypt
[   8.8839 ] BL: version 0.32.0.0-t234-54845784-57325615 last_boot_error: 0
[  11.8311 ] Sending applet
[  14.7650 ] completed
[  14.7677 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[  14.7700 ] MB2 Applet version 01.00.0000
[  17.7990 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[  17.8014 ] MB2 Applet version 01.00.0000
[  20.8754 ] Retrieving board information
[  20.8776 ] tegrarcm_v2 --chip 0x23 0 --oem platformdetails chip chip_info.bin
[  20.8799 ] MB2 Applet version 01.00.0000
[  23.8965 ] Saved platform info in chip_info.bin
[  23.9020 ] Chip minor revision: 1
[  23.9021 ] Bootrom revision: 0x7
[  23.9022 ] Ram code: 0x0
[  23.9025 ] Chip sku: 0xd3
[  23.9025 ] Chip Sample: prod
[  23.9025 ] 
[  23.9032 ] Retrieving EEPROM data
[  23.9033 ] tegrarcm_v2 --oem platformdetails eeprom cvm /home/thiru/Downloads/Linux_for_Tegra/bootloader/cvm.bin --chip 0x23 0
[  23.9058 ] MB2 Applet version 01.00.0000
[  26.9002 ] Saved platform info in /home/thiru/Downloads/Linux_for_Tegra/bootloader/cvm.bin
[  26.9355 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[  26.9381 ] MB2 Applet version 01.00.0000
[  29.8236 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[  29.8258 ] MB2 Applet version 01.00.0000
[  35.0373 ] Dumping customer Info
[  35.0401 ] tegrarcm_v2 --chip 0x23 0 --oem dump bct tmp.bct
[  35.0421 ] MB2 Applet version 01.00.0000
[  41.3326 ] Saved bct in tmp.bct
[  41.3425 ] tegrabct_v2 --brbct tmp.bct --chip 0x23 0 --custinfo /home/thiru/Downloads/Linux_for_Tegra/bootloader/custinfo_out.bin
[  41.3449 ] C[  41.3455 ] ustomer data saved in /home/thiru/Downloads/Linux_for_Tegra/bootloader/custinfo_out.bin successfully
[  41.3457 ] Rebooting to recovery mode
[  41.3483 ] tegrarcm_v2 --chip 0x23 0 --ismb2
[  46.9876 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[  46.9903 ] MB2 Applet version 01.00.0000
[  54.4847 ] Booting to recovery mode
[  54.4871 ] tegrarcm_v2 --chip 0x23 0 --reboot recovery
[  54.4892 ] MB2 Applet version 01.00.0000
Board ID(3767) version(300) sku(0000) revision(J.1)
Chip SKU(00:00:00:D3) ramcode(00:00:00:00) fuselevel(fuselevel_production) board_FAB(300)
emc_opt_disable_fuse:(0)
Copy /home/thiru/Downloads/Linux_for_Tegra/kernel/dtb/tegra234-p3767-0000-p3509-a02.dtb to /home/thiru/Downloads/Linux_for_Tegra/kernel/dtb/tegra234-p3767-0000-p3509-a02.dtb.rec
Using UUID b39bbcbf-6a13-404a-85b3-5b93e4be8e71 for mounting root APP partition.
copying bctfile(/home/thiru/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-p3767-0000-sdram-l4t.dts)... done.
copying minratchet_config(/home/thiru/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-ratchet-p3767-0000.dts)... done.
copying device_config(/home/thiru/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-device-p3767-0000.dts)... done.
copying misc_config(/home/thiru/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-misc-p3767-0000.dts)... done.
copying pinmux_config(/home/thiru/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-pinmux-p3767-hdmi-a03.dtsi)... done.
copying gpioint_config(/home/thiru/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-gpioint-p3767-0000.dts)... done.
copying pmic_config(/home/thiru/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-pmic-p3767-0000-a02.dts)... done.
copying pmc_config(/home/thiru/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-padvoltage-p3767-hdmi-a03.dtsi)... done.
copying deviceprod_config(/home/thiru/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-cprod-p3767-0000.dts)... done.
copying prod_config(/home/thiru/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-prod-p3767-0000.dts)... done.
copying scr_config(/home/thiru/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb2-bct-scr-p3767-0000.dts)... done.
copying wb0sdram(/home/thiru/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-p3767-0000-wb0sdram-l4t.dts)... done.
copying bootrom_config(/home/thiru/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-reset-p3767-0000.dts)... done.
Existing uphylane_config(/home/thiru/Downloads/Linux_for_Tegra/bootloader/tegra234-mb1-bct-uphylane-si.dtsi) reused.
copying dev_params(/home/thiru/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-br-bct-p3767-0000-l4t.dts)... done.
copying dev_params_b(/home/thiru/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-br-bct_b-p3767-0000-l4t.dts)... done.
copying mb2bct_cfg(/home/thiru/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb2-bct-misc-p3767-0000.dts)... done.
Existing pscfwfile(/home/thiru/Downloads/Linux_for_Tegra/bootloader/pscfw_t234_prod.bin) reused.
Existing pscbl1file(/home/thiru/Downloads/Linux_for_Tegra/bootloader/psc_bl1_t234_prod.bin) reused.
Existing mtsmcefile(/home/thiru/Downloads/Linux_for_Tegra/bootloader/mce_flash_o10_cr_prod.bin) reused.
Existing mb2applet(/home/thiru/Downloads/Linux_for_Tegra/bootloader/applet_t234.bin) reused.
Existing bootloader(/home/thiru/Downloads/Linux_for_Tegra/bootloader/mb2_t234.bin) reused.
copying initrd(/home/thiru/Downloads/Linux_for_Tegra/bootloader/l4t_initrd.img)... done.
bl is uefi
Making Boot image... done.
Not signing of boot.img
Making recovery ramdisk for recovery image...
Re-generating recovery ramdisk for recovery image...
/home/thiru/Downloads/Linux_for_Tegra/bootloader/ramdisk_tmp /home/thiru/Downloads/Linux_for_Tegra/bootloader /home/thiru/Downloads/Linux_for_Tegra
39726 blocks

gzip: /home/thiru/Downloads/Linux_for_Tegra/kernel/Image: not in gzip format
_BASE_KERNEL_VERSION=5.10.104-tegra
56174 blocks
Making Recovery image...
copying recdtbfile(/home/thiru/Downloads/Linux_for_Tegra/kernel/dtb/tegra234-p3767-0000-p3509-a02.dtb.rec)... done.
20+0 records in
20+0 records out
20 bytes copied, 0.000352302 s, 56.8 kB/s
Existing sosfile(/home/thiru/Downloads/Linux_for_Tegra/bootloader/mb1_t234_prod.bin) reused.
Existing tegraboot(/home/thiru/Downloads/Linux_for_Tegra/bootloader/mb2_t234.bin) reused.
Existing cpu_bootloader(/home/thiru/Downloads/Linux_for_Tegra/bootloader/mb2_t234.bin) reused.
Existing mb2blfile(/home/thiru/Downloads/Linux_for_Tegra/bootloader/mb2_t234.bin) reused.
Existing xusbfile(/home/thiru/Downloads/Linux_for_Tegra/bootloader/xusb_t234_prod.bin) reused.
Existing dcefile(/home/thiru/Downloads/Linux_for_Tegra/bootloader/display-t234-dce.bin) reused.
Existing nvdecfile(/home/thiru/Downloads/Linux_for_Tegra/bootloader/nvdec_t234_prod.fw) reused.
Existing psc_rf(/home/thiru/Downloads/Linux_for_Tegra/bootloader/psc_rf_t234_prod.bin) reused.
Existing mb2_rf(/home/thiru/Downloads/Linux_for_Tegra/bootloader/mb2rf_t234.bin) reused.
Existing mb1file(/home/thiru/Downloads/Linux_for_Tegra/bootloader/mb1_t234_prod.bin) reused.
Existing bpffile(/home/thiru/Downloads/Linux_for_Tegra/bootloader/bpmp_t234-TE990M-A1_prod.bin) reused.
copying bpfdtbfile(/home/thiru/Downloads/Linux_for_Tegra/bootloader/t186ref/tegra234-bpmp-3767-0000-a02-3509-a02.dtb)... done.
Existing scefile(/home/thiru/Downloads/Linux_for_Tegra/bootloader/camera-rtcpu-sce.img) reused.
Existing camerafw(/home/thiru/Downloads/Linux_for_Tegra/bootloader/camera-rtcpu-t234-rce.img) reused.
Existing apefile(/home/thiru/Downloads/Linux_for_Tegra/bootloader/adsp-fw.bin) reused.
Existing spefile(/home/thiru/Downloads/Linux_for_Tegra/bootloader/spe_t234.bin) reused.
Existing wb0boot(/home/thiru/Downloads/Linux_for_Tegra/bootloader/sc7_t234_prod.bin) reused.
Existing tosfile(/home/thiru/Downloads/Linux_for_Tegra/bootloader/tos-optee_t234.img) reused.
Existing eksfile(/home/thiru/Downloads/Linux_for_Tegra/bootloader/eks_t234.img) reused.
copying dtbfile(/home/thiru/Downloads/Linux_for_Tegra/kernel/dtb/tegra234-p3767-0000-p3509-a02.dtb)... done.
Copying nv_boot_control.conf to rootfs
	populating kernel to rootfs... done.
	populating initrd to rootfs... done.
	populating kernel_tegra234-p3767-0000-p3509-a02.dtb to rootfs... done.
Making system.img... 
	Setting "FDT /boot/dtb/kernel_tegra234-p3767-0000-p3509-a02.dtb" successfully in the extlinux.conf...done.
	populating rootfs from /home/thiru/Downloads/Linux_for_Tegra/rootfs ... 	populating /boot/extlinux/extlinux.conf ... done.
	Sync'ing system.img ... done.
	Converting RAW image to Sparse image... done.
system.img built successfully. 
Not signing of kernel-dtb
Existing tbcfile(/home/thiru/Downloads/Linux_for_Tegra/bootloader/uefi_jetson.bin) reused.
131072+0 records in
131072+0 records out
67108864 bytes (67 MB, 64 MiB) copied, 0.824193 s, 81.4 MB/s
	Sync'ing esp.img ... done.
copying tbcdtbfile(/home/thiru/Downloads/Linux_for_Tegra/kernel/dtb/tegra234-p3767-0000-p3509-a02.dtb)... done.
copying cfgfile(/home/thiru/Downloads/Linux_for_Tegra/p3509-a02+p3767-0000) to flash.cfg... done.
Existing flashapp(/home/thiru/Downloads/Linux_for_Tegra/bootloader/tegraflash.py) reused.
copying overlay_dtb(/home/thiru/Downloads/Linux_for_Tegra/kernel/dtb/L4TConfiguration.dtbo)... done.
copying overlay_dtb(/home/thiru/Downloads/Linux_for_Tegra/kernel/dtb/tegra234-p3767-overlay.dtbo)... done.
./tegraflash.py  --bl uefi_jetson_with_dtb.bin  --odmdata gbe-uphy-config-8,hsstp-lane-map-3,hsio-uphy-config-0  --overlay_dtb L4TConfiguration.dtbo,tegra234-p3767-overlay.dtbo,  --bldtb tegra234-p3767-0000-p3509-a02.dtb --applet mb1_t234_prod.bin --cmd "sign"  --cfg flash.cfg --chip 0x23 --concat_cpubl_bldtb --cpubl uefi_jetson.bin --minratchet_config tegra234-mb1-bct-ratchet-p3767-0000.dts --device_config tegra234-mb1-bct-device-p3767-0000.dts --misc_config tegra234-mb1-bct-misc-p3767-0000.dts --pinmux_config tegra234-mb1-bct-pinmux-p3767-hdmi-a03.dtsi --gpioint_config tegra234-mb1-bct-gpioint-p3767-0000.dts --pmic_config tegra234-mb1-bct-pmic-p3767-0000-a02.dts --pmc_config tegra234-mb1-bct-padvoltage-p3767-hdmi-a03.dtsi --deviceprod_config tegra234-mb1-bct-cprod-p3767-0000.dts --prod_config tegra234-mb1-bct-prod-p3767-0000.dts --scr_config tegra234-mb2-bct-scr-p3767-0000.dts --wb0sdram_config tegra234-p3767-0000-wb0sdram-l4t.dts --br_cmd_config tegra234-mb1-bct-reset-p3767-0000.dts --uphy tegra234-mb1-bct-uphylane-si.dtsi --dev_params tegra234-br-bct-p3767-0000-l4t.dts,tegra234-br-bct_b-p3767-0000-l4t.dts --mb2bct_cfg tegra234-mb2-bct-misc-p3767-0000.dts  --bins "psc_fw pscfw_t234_prod.bin; mts_mce mce_flash_o10_cr_prod.bin; mb2_applet applet_t234.bin; mb2_bootloader mb2_t234.bin; xusb_fw xusb_t234_prod.bin; dce_fw display-t234-dce.bin; nvdec nvdec_t234_prod.fw; bpmp_fw bpmp_t234-TE990M-A1_prod.bin; bpmp_fw_dtb tegra234-bpmp-3767-0000-a02-3509-a02.dtb; sce_fw camera-rtcpu-sce.img; rce_fw camera-rtcpu-t234-rce.img; ape_fw adsp-fw.bin; spe_fw spe_t234.bin; tos tos-optee_t234.img; eks eks_t234.img"  --sdram_config tegra234-p3767-0000-sdram-l4t.dts  --cust_info custinfo_out.bin  --boot_chain A 
saving flash command in /home/thiru/Downloads/Linux_for_Tegra/bootloader/flashcmd.txt
saving Windows flash command to /home/thiru/Downloads/Linux_for_Tegra/bootloader/flash_win.bat
*** Sign and generate flashing ready partition images... *** 
Traceback (most recent call last):
  File "./tegraflash.py", line 1377, in <module>
    exports['--cfg'] = tegraflash_update_img_path(exports['--cfg'], exports['--image_dirs'])
  File "/home/thiru/Downloads/Linux_for_Tegra/bootloader/tegraflash_internal.py", line 4913, in tegraflash_update_img_path
    xml_tree = ElementTree.parse(file)
  File "/usr/lib/python3.8/xml/etree/ElementTree.py", line 1202, in parse
    tree.parse(source, parser)
  File "/usr/lib/python3.8/xml/etree/ElementTree.py", line 595, in parse
    self._root = parser._parse_whole(source)
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 1, column 1
Error: /home/thiru/Downloads/Linux_for_Tegra/bootloader/signed/flash.idx is not found
Error: failed to relocate images to /home/thiru/Downloads/Linux_for_Tegra/tools/kernel_flash/images
Cleaning up...

Before this, there was an error - I resolved it by creating the file ‘p3509-a02+p3767-0000’ which is simply the contents of the file ‘p3509-a02+p3767-0000.conf’.

Also, I have a flashed USB stick, using which I’m able to boot into the module. Using this, I rebooted the module into recovery mode before trying to flash.

Any help offered is welcome, thanks!

Hi thiruchl,

Are you using AGX Orin or Orin NX because your topic is in AGX Orin category?
It seems you are using the custom board.
Do you use the custom BSP package from your vendor to flash the board to reset?

Could you also share your flash command?
You may use p3509-a02+p3767-0000 in flash command but there should not be a file named p3509-a02+p3767-0000 and you would need p3509-a02+p3767-0000.conf instead.

What do you mean here?
Do you want to flash the image into the external USB storage?

Yes, sorry, the Orin NX.
No, I believe I’m using BSP provided by Nvidia. I followed what’s mentioned here

My flash command is

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, this running this without a p3509-a02+p3767-0000 file throws an error saying it’s not able to find that file. So, I simply made a copy of the .conf file, and removed the ‘.conf’ from the name of the file.

No, I just meant I used a flashed USB Stick to boot into the module and force it into forced-recovery mode. I did the process as described in the link above.

Thanks for your help again!

Additionally, here’s the log when I try to flash with just the p3509-a02+p3767-0000.conf file. It was after this, I added the p3509-a02+p3767-0000 file. And running again, I got the other error(the first log of this topic).

/home/thiru/stereolabs_usb_flash/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh --no-flash --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
************************************
*                                  *
*  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/thiru/stereolabs_usb_flash/Linux_for_Tegra/flash.sh --no-flash --sign  -c p3509-a02+p3767-0000 internal

###############################################################################
# L4T BSP Information:
# R35 , REVISION: 3.1
# User release: 0.0
###############################################################################
copying emc_fuse_dev_params(/home/thiru/stereolabs_usb_flash/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-br-bct-diag-boot.dts)... done.
copying device_config(/home/thiru/stereolabs_usb_flash/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-device-p3767-0000.dts)... done.
copying misc_config(/home/thiru/stereolabs_usb_flash/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-misc-p3767-0000.dts)... done.
./tegraflash.py --chip 0x23 --applet "/home/thiru/stereolabs_usb_flash/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.0275 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   0.0288 ] File rcm_state open failed
[   0.0293 ] ERROR: failed to read rcm_state
[   0.0293 ] 
[   0.0321 ] tegrasign_v3.py --key None --getmode mode.txt
[   0.0325 ] Assuming zero filled SBK key
[   0.0301 ] Pre-processing config: tegra234-mb1-bct-device-p3767-0000.dts
[   0.0425 ] Pre-processing config: tegra234-mb1-bct-misc-p3767-0000.dts
[   0.0613 ] Parsing partition layout
[   0.0632 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[   0.0663 ] Kernel DTB used: None
[   0.0663 ] WARNING: dce base dtb is not provided

[   0.0663 ] Parsing partition layout
[   0.0679 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[   0.0696 ] Creating list of images to be signed
[   0.0710 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --list images_list.xml zerosbk
[   0.0726 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[   0.0737 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[   0.0741 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[   0.0854 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[   0.0859 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[   0.0932 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[   0.0936 ] adding BCH for mb2_t234_aligned.bin
[   0.0972 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[   0.1176 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[   0.1182 ] adding BCH for mb2_t234_aligned.bin
[   0.1422 ] Filling MB1 storage info
[   0.1423 ] Parsing dev params for multi chains
[   0.1542 ] Generating br-bct
[   0.1561 ] Updating dev and MSS params in BR BCT
[   0.1562 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[   0.1585 ] Updating bl info
[   0.1601 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin
[   0.1619 ] WARNING: boot chain is not completed. set to 0
[   0.1630 ] Generating signatures
[   0.1659 ] tegrasign_v3.py --key None --list images_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.1661 ] Assuming zero filled SBK key
[   0.1840 ] Warning: pub_key.key is not found
[   0.1815 ] Parsing dev params for multi chains
[   0.1815 ] Generating br-bct
[   0.1828 ] Updating dev and MSS params in BR BCT
[   0.1830 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[   0.1846 ] Updating bl info
[   0.1864 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[   0.1880 ] WARNING: boot chain is not completed. set to 0
[   0.1893 ] Get Signed section of bct
[   0.1911 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --listbct bct_list.xml
[   0.1926 ] Signing BCT
[   0.1954 ] tegrasign_v3.py --key None --list bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.1956 ] Assuming zero filled SBK key
[   0.1997 ] Sha saved in br_bct_BR.sha
[   0.2000 ] Warning: pub_key.key is not found
[   0.1973 ] Updating BCT with signature
[   0.1984 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesig bct_list_signed.xml
[   0.1999 ] Offset :4608 Len :3584
[   0.2016 ] Generating SHA2 Hash
[   0.2044 ] tegrasign_v3.py --key None --list bct_list.xml --sha sha512
[   0.2048 ] Assuming zero filled SBK key
[   0.2048 ] Assuming zero filled SBK key
[   0.2106 ] Sha saved in br_bct_BR.sha
[   0.2087 ] Updating BCT with SHA2 Hash
[   0.2104 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesha bct_list_signed.xml
[   0.2116 ] Offset :4608 Len :3584
[   0.2122 ] Offset :68 Len :8124
[   0.2122 ] 
[   0.2124 ] Generating coldboot mb1-bct
[   0.2144 ] 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.2160 ] MB1-BCT version: 0.10
[   0.2162 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.2167 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.2170 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.2174 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.2177 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.2177 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.2177 ] ERROR: /misc/tsc_controls/tsc_locking_config is not supported
[   0.2177 ] ERROR: /misc/tsc_controls/tsc_locking_diff_configuration is not supported
[   0.2177 ] ERROR: /misc/tsc_controls/tsc_locking_ref_frequency_configuration is not supported
[   0.2177 ] ERROR: /misc/tsc_controls/tsc_locking_control is not supported
[   0.2177 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_configuration is not supported
[   0.2177 ] ERROR: /misc/tsc_controls/tsc_locking_fast_adjust_configuration is not supported
[   0.2177 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_delta_control is not supported
[   0.2177 ] ERROR: /misc/tsc_controls/tsc_capture_control_ptx is not supported
[   0.2177 ] ERROR: /misc/tsc_controls/tsc_capture_config_ptx is not supported
[   0.2177 ] ERROR: /misc/tsc_controls/tsc_stscrsr is not supported
[   0.2177 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_num_control is not supported
[   0.2177 ] 
[   0.2177 ] Parsing config file :tegra234-mb1-bct-device-p3767-0000_cpp.dtb 
[   0.2177 ] Added Platform Config 9 data with size :- 100
[   0.2177 ] 
[   0.2178 ] Updating mb1-bct with firmware information
[   0.2189 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_cold_boot_bct_MB1.bct --updatefwinfo readinfo_t234_min_prod.xml.bin
[   0.2234 ] tegrahost_v2 --chip 0x23 0 --align mb1_cold_boot_bct_MB1_aligned.bct
[   0.2262 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_cold_boot_bct_MB1_aligned.bct zerosbk
[   0.2273 ] adding BCH for mb1_cold_boot_bct_MB1_aligned.bct
[   0.2316 ] tegrasign_v3.py --key None --list mb1_cold_boot_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.2317 ] Assuming zero filled SBK key
[   0.2341 ] Warning: pub_key.key is not found
[   0.2328 ] 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.2348 ] Generating recovery mb1-bct
[   0.2365 ] 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.2376 ] MB1-BCT version: 0.10
[   0.2379 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.2384 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.2389 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.2395 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.2400 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.2404 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.2410 ] ERROR: /misc/tsc_controls/tsc_locking_config is not supported
[   0.2410 ] ERROR: /misc/tsc_controls/tsc_locking_diff_configuration is not supported
[   0.2410 ] ERROR: /misc/tsc_controls/tsc_locking_ref_frequency_configuration is not supported
[   0.2410 ] ERROR: /misc/tsc_controls/tsc_locking_control is not supported
[   0.2410 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_configuration is not supported
[   0.2410 ] ERROR: /misc/tsc_controls/tsc_locking_fast_adjust_configuration is not supported
[   0.2410 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_delta_control is not supported
[   0.2410 ] ERROR: /misc/tsc_controls/tsc_capture_control_ptx is not supported
[   0.2410 ] ERROR: /misc/tsc_controls/tsc_capture_config_ptx is not supported
[   0.2410 ] ERROR: /misc/tsc_controls/tsc_stscrsr is not supported
[   0.2410 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_num_control is not supported
[   0.2410 ] 
[   0.2410 ] Parsing config file :tegra234-mb1-bct-device-p3767-0000_cpp.dtb 
[   0.2410 ] Added Platform Config 9 data with size :- 100
[   0.2411 ] 
[   0.2411 ] Updating mb1-bct with firmware information
[   0.2428 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_bct_MB1.bct --recov --updatefwinfo readinfo_t234_min_prod.xml.bin
[   0.2464 ] tegrahost_v2 --chip 0x23 0 --align mb1_bct_MB1_aligned.bct
[   0.2497 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_bct_MB1_aligned.bct zerosbk
[   0.2509 ] adding BCH for mb1_bct_MB1_aligned.bct
[   0.2555 ] tegrasign_v3.py --key None --list mb1_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.2558 ] Assuming zero filled SBK key
[   0.2589 ] Warning: pub_key.key is not found
[   0.2579 ] tegrahost_v2 --chip 0x23 0 --updatesigheader mb1_bct_MB1_aligned_sigheader.bct.encrypt mb1_bct_MB1_aligned_sigheader.bct.hash zerosbk
[   0.2608 ] Error: Skip generating mem_bct because sdram_config is not defined
[   0.2608 ] Error: Skip generating mem_bct because sdram_config is not defined
[   0.2609 ] Copying signatures
[   0.2626 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[   0.2716 ] mb1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[   0.2720 ] psc_bl1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[   0.2721 ] Boot Rom communication
[   0.2739 ] 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.2755 ] BR_CID: 0x80012344705DD3408800000013010200
[   2.9927 ] Sending bct_br
[  10.2276 ] Sending mb1
[  10.2282 ] Sending psc_bl1
[  10.2370 ] Sending bct_mb1
[  10.2425 ] Boot Rom communication completed
[  10.2447 ] tegrahost_v2 --chip 0x23 0 --align applet_t234_aligned.bin
[  10.2481 ] tegrahost_v2 --chip 0x23 0 --magicid MB2A --appendsigheader applet_t234_aligned.bin zerosbk
[  10.2496 ] adding BCH for applet_t234_aligned.bin
[  10.2728 ] tegrasign_v3.py --key None --list applet_t234_aligned_sigheader.bin_list.xml --pubkeyhash pub_key.key --sha sha512
[  10.2731 ] Assuming zero filled SBK key
[  10.2780 ] Warning: pub_key.key is not found
[  10.2773 ] tegrahost_v2 --chip 0x23 0 --updatesigheader applet_t234_aligned_sigheader.bin.encrypt applet_t234_aligned_sigheader.bin.hash zerosbk
[  10.2807 ] Sending mb2_applet...

[  10.2824 ] tegrarcm_v2 --chip 0x23 0 --pollbl --download applet applet_t234_sigheader.bin.encrypt
[  10.2840 ] BL: version 0.32.0.0-t234-54845784-57325615 last_boot_error: 0
[  13.2241 ] Sending applet
[  16.3254 ] completed
[  16.3270 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[  16.3288 ] MB2 Applet version 01.00.0000
[  19.2395 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[  19.2415 ] MB2 Applet version 01.00.0000
[  22.2768 ] Retrieving board information
[  22.2790 ] tegrarcm_v2 --chip 0x23 0 --oem platformdetails chip chip_info.bin
[  22.2815 ] MB2 Applet version 01.00.0000
[  25.5014 ] Saved platform info in chip_info.bin
[  25.5066 ] Chip minor revision: 1
[  25.5068 ] Bootrom revision: 0x7
[  25.5069 ] Ram code: 0x0
[  25.5070 ] Chip sku: 0xd3
[  25.5074 ] Chip Sample: prod
[  25.5074 ] 
[  25.5081 ] Retrieving EEPROM data
[  25.5083 ] tegrarcm_v2 --oem platformdetails eeprom cvm /home/thiru/stereolabs_usb_flash/Linux_for_Tegra/bootloader/cvm.bin --chip 0x23 0
[  25.5101 ] MB2 Applet version 01.00.0000
[  28.4736 ] Saved platform info in /home/thiru/stereolabs_usb_flash/Linux_for_Tegra/bootloader/cvm.bin
[  28.5076 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[  28.5090 ] MB2 Applet version 01.00.0000
[  31.6271 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[  31.6286 ] MB2 Applet version 01.00.0000
[  36.1214 ] Dumping customer Info
[  36.1230 ] tegrarcm_v2 --chip 0x23 0 --oem dump bct tmp.bct
[  36.1252 ] MB2 Applet version 01.00.0000
[  39.1095 ] Saved bct in tmp.bct
[  39.1183 ] tegrabct_v2 --brbct tmp.bct --chip 0x23 0 --custinfo /home/thiru/stereolabs_usb_flash/Linux_for_Tegra/bootloader/custinfo_out.bin
[  39.1198 ] C[  39.1202 ] ustomer data saved in /home/thiru/stereolabs_usb_flash/Linux_for_Tegra/bootloader/custinfo_out.bin successfully
[  39.1202 ] Rebooting to recovery mode
[  39.1222 ] tegrarcm_v2 --chip 0x23 0 --ismb2
[  43.7876 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[  43.7896 ] MB2 Applet version 01.00.0000
[  46.7535 ] Booting to recovery mode
[  46.7553 ] tegrarcm_v2 --chip 0x23 0 --reboot recovery
[  46.7573 ] MB2 Applet version 01.00.0000
Board ID(3767) version(300) sku(0000) revision(J.1)
Chip SKU(00:00:00:D3) ramcode(00:00:00:00) fuselevel(fuselevel_production) board_FAB(300)
emc_opt_disable_fuse:(0)
Error: missing cfgfile (/home/thiru/stereolabs_usb_flash/Linux_for_Tegra/p3509-a02+p3767-0000).

Usage: sudo ./flash.sh [options] t186ref internal
    options:
        -c <cfgfile> ---------- Flash partition table config file.
        -d <dtbfile> ---------- device tree file.
        -f <flashapp> --------- Path to flash application (tegraflash.py)
        -h -------------------- print this message.
        -i <enc rfs key file>-- key for disk encryption support.
        -k <partition id> ----- partition name or number specified in flash.cfg.
        -m <mts preboot> ------ MTS preboot such as mts_preboot_si.
        -n <nfs args> --------- Static nfs network assignments
                                <Client IP>:<Server IP>:<Gateway IP>:<Netmask>
        -o <odmdata> ---------- ODM data.
        -r -------------------- skip building and reuse existing system.img.
        -t <tegraboot> -------- tegraboot binary such as nvtboot.bin
        -u <PKC key file>------ PKC key used for odm fused board.
        -v <SBK key file>------ Secure Boot Key (SBK) key used for ODM fused board.
        -w <wb0boot> ---------- warm boot binary such as nvtbootwb0.bin
        -x <tegraid> ---------- Tegra CHIPID.
        -B <boardid> ---------- BoardId.
        -C <cmdline> ---------- Kernel commandline arguments.
                                WARNING:
                                Each option in this kernel commandline gets
                                higher preference over the values set by
                                flash.sh. In case of NFS booting, this script
                                adds NFS booting related arguments, if -i option
                                is omitted.
        -F <flasher> ---------- Flash server such as cboot.bin.
        -G <file name> -------- Read partition and save image to file.
        -I <initrd> ----------- initrd file. Null initrd is default.
        -K <kernel> ----------- Kernel image file such as zImage or Image.
        -L <bootloader> ------- Bootloader such as cboot.bin or u-boot-dtb.bin.
        -M <mts boot> --------- MTS boot file such as mts_si.
        -N <nfsroot> ---------- i.e. <my IP addr>:/my/exported/nfs/rootfs.
        -R <rootfs dir> ------- Sample rootfs directory.
        -S <size> ------------- Rootfs size in bytes. Valid only for internal
                                rootdev. KiB, MiB, GiB short hands are allowed,
                                for example, 1GiB means 1024 * 1024 * 1024 bytes.
        -Z -------------------- Print configurations and then exit.
        --no-flash ------------ perform all steps except physically flashing the board.
                                This will create a system.img.
        --external-device------ Generate flash images for external devices
        --sparseupdate--------- only flash partitions that have changed. Currently only support SPI flash memory
        --no-systemimg -------- Do not create or re-create system.img.
        --bup ----------------- Generate bootloader update payload(BUP).
        --single-image-bup <part name> Generate specified single image BUP, this must work with --bup.
        --bup-type <type> ----- Generate specific type bootloader update payload(BUP), such as bl or kernel.
        --multi-spec----------- Enable support for building multi-spec BUP.
        --clean-up------------- Clean up BUP buffer when multi-spec is enabled.
        --usb-instance <id> --- Specify the USB instance to connect to;
                                <id> = USB port path (e.g. 3-14).
        --no-root-check ------- Typical usage of this script require root permissions.
                                Pass this option to allow running the script as a
                                regular user, in which case only specific combinations
                                of command-line options will be functional.
        --user_key <key_file>   User provided key file (16-byte) to encrypt user images,
                                like kernel, kernel-dtb and initrd.
                                If user_key is specified, SBK key (-v) has to be specified.
                                For now, user_key file must contain all 0's.
        --uefi-keys <keys_conf> Specify UEFI keys configuration file.
        --rcm-boot ------------ Do RCM boot instead of physically flashing the board.
        --sign ---------------- Sign images and store them under "bootloader/signed"
                                directory. The board will not be physically flashed.
        --image --------------- Specify the image to be written into board.
        --boot-chain-flash <c>  Flash only a specific boot chain (ex. "A, "B", "all").
                                Defaults to "all", inputs are case insensitive.
                                Not suitable for production.
        --boot-chain-select <c> Specify booting chain (ex. "A" or "B") after the board is flashed.
                                Defaults to "A", inputs are case insensitive.
        --pv-crt -------------- The certificate for the key that is used to sign cpu_bootloader


Error: failed to generate images
Cleaning up...

I’m also currently getting 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/thiru/Downloads/Linux_for_Tegra/flash.sh --no-flash --sign  -c p3509-a02+p3767-0000 internal

###############################################################################
# L4T BSP Information:
# R35 , REVISION: 3.1
# User release: 0.0
###############################################################################
copying emc_fuse_dev_params(/home/thiru/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-br-bct-diag-boot.dts)... done.
copying device_config(/home/thiru/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-device-p3767-0000.dts)... done.
copying misc_config(/home/thiru/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-misc-p3767-0000.dts)... done.
./tegraflash.py --chip 0x23 --applet "/home/thiru/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.0166 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   0.0177 ] File rcm_state open failed
[   0.0180 ] ERROR: failed to read rcm_state
[   0.0180 ] 
[   0.0199 ] tegrasign_v3.py --key None --getmode mode.txt
[   0.0200 ] Assuming zero filled SBK key
[   0.0184 ] Pre-processing config: tegra234-mb1-bct-device-p3767-0000.dts
[   0.0804 ] Pre-processing config: tegra234-mb1-bct-misc-p3767-0000.dts
[   0.0990 ] Parsing partition layout
[   0.1018 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[   0.1048 ] Kernel DTB used: None
[   0.1049 ] WARNING: dce base dtb is not provided

[   0.1049 ] Parsing partition layout
[   0.1066 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[   0.1083 ] Creating list of images to be signed
[   0.1106 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --list images_list.xml zerosbk
[   0.1121 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[   0.1143 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[   0.1149 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[   0.1237 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[   0.1241 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[   0.1294 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[   0.1298 ] adding BCH for mb2_t234_aligned.bin
[   0.1326 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[   0.1455 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[   0.1459 ] adding BCH for mb2_t234_aligned.bin
[   0.1602 ] Filling MB1 storage info
[   0.1603 ] Parsing dev params for multi chains
[   0.1714 ] Generating br-bct
[   0.1741 ] Updating dev and MSS params in BR BCT
[   0.1742 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[   0.1770 ] Updating bl info
[   0.1786 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin
[   0.1795 ] WARNING: boot chain is not completed. set to 0
[   0.1802 ] Generating signatures
[   0.1821 ] tegrasign_v3.py --key None --list images_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.1822 ] Assuming zero filled SBK key
[   0.2061 ] Warning: pub_key.key is not found
[   0.2045 ] Parsing dev params for multi chains
[   0.2045 ] Generating br-bct
[   0.2057 ] Updating dev and MSS params in BR BCT
[   0.2058 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[   0.2075 ] Updating bl info
[   0.2082 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[   0.2090 ] WARNING: boot chain is not completed. set to 0
[   0.2100 ] Get Signed section of bct
[   0.2112 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --listbct bct_list.xml
[   0.2130 ] Signing BCT
[   0.2150 ] tegrasign_v3.py --key None --list bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.2153 ] Assuming zero filled SBK key
[   0.2215 ] Sha saved in br_bct_BR.sha
[   0.2220 ] Warning: pub_key.key is not found
[   0.2202 ] Updating BCT with signature
[   0.2218 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesig bct_list_signed.xml
[   0.2232 ] Offset :4608 Len :3584
[   0.2240 ] Generating SHA2 Hash
[   0.2259 ] tegrasign_v3.py --key None --list bct_list.xml --sha sha512
[   0.2262 ] Assuming zero filled SBK key
[   0.2262 ] Assuming zero filled SBK key
[   0.2326 ] Sha saved in br_bct_BR.sha
[   0.2315 ] Updating BCT with SHA2 Hash
[   0.2333 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesha bct_list_signed.xml
[   0.2348 ] Offset :4608 Len :3584
[   0.2355 ] Offset :68 Len :8124
[   0.2358 ] Generating coldboot mb1-bct
[   0.2377 ] 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.2392 ] MB1-BCT version: 0.10
[   0.2396 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.2403 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.2409 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.2415 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.2421 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.2423 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.2424 ] ERROR: /misc/tsc_controls/tsc_locking_config is not supported
[   0.2424 ] ERROR: /misc/tsc_controls/tsc_locking_diff_configuration is not supported
[   0.2424 ] ERROR: /misc/tsc_controls/tsc_locking_ref_frequency_configuration is not supported
[   0.2424 ] ERROR: /misc/tsc_controls/tsc_locking_control is not supported
[   0.2424 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_configuration is not supported
[   0.2424 ] ERROR: /misc/tsc_controls/tsc_locking_fast_adjust_configuration is not supported
[   0.2424 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_delta_control is not supported
[   0.2424 ] ERROR: /misc/tsc_controls/tsc_capture_control_ptx is not supported
[   0.2424 ] ERROR: /misc/tsc_controls/tsc_capture_config_ptx is not supported
[   0.2424 ] ERROR: /misc/tsc_controls/tsc_stscrsr is not supported
[   0.2424 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_num_control is not supported
[   0.2424 ] 
[   0.2424 ] Parsing config file :tegra234-mb1-bct-device-p3767-0000_cpp.dtb 
[   0.2425 ] Added Platform Config 9 data with size :- 100
[   0.2425 ] 
[   0.2425 ] Updating mb1-bct with firmware information
[   0.2442 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_cold_boot_bct_MB1.bct --updatefwinfo readinfo_t234_min_prod.xml.bin
[   0.2469 ] tegrahost_v2 --chip 0x23 0 --align mb1_cold_boot_bct_MB1_aligned.bct
[   0.2492 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_cold_boot_bct_MB1_aligned.bct zerosbk
[   0.2503 ] adding BCH for mb1_cold_boot_bct_MB1_aligned.bct
[   0.2541 ] tegrasign_v3.py --key None --list mb1_cold_boot_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.2543 ] Assuming zero filled SBK key
[   0.2572 ] Warning: pub_key.key is not found
[   0.2574 ] 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.2596 ] Generating recovery mb1-bct
[   0.2607 ] 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.2618 ] MB1-BCT version: 0.10
[   0.2619 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.2623 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.2625 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.2627 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.2629 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.2630 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.2632 ] ERROR: /misc/tsc_controls/tsc_locking_config is not supported
[   0.2634 ] ERROR: /misc/tsc_controls/tsc_locking_diff_configuration is not supported
[   0.2635 ] ERROR: /misc/tsc_controls/tsc_locking_ref_frequency_configuration is not supported
[   0.2637 ] ERROR: /misc/tsc_controls/tsc_locking_control is not supported
[   0.2639 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_configuration is not supported
[   0.2640 ] ERROR: /misc/tsc_controls/tsc_locking_fast_adjust_configuration is not supported
[   0.2640 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_delta_control is not supported
[   0.2640 ] ERROR: /misc/tsc_controls/tsc_capture_control_ptx is not supported
[   0.2640 ] ERROR: /misc/tsc_controls/tsc_capture_config_ptx is not supported
[   0.2640 ] ERROR: /misc/tsc_controls/tsc_stscrsr is not supported
[   0.2640 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_num_control is not supported
[   0.2641 ] 
[   0.2641 ] Parsing config file :tegra234-mb1-bct-device-p3767-0000_cpp.dtb 
[   0.2641 ] Added Platform Config 9 data with size :- 100
[   0.2641 ] 
[   0.2641 ] Updating mb1-bct with firmware information
[   0.2654 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_bct_MB1.bct --recov --updatefwinfo readinfo_t234_min_prod.xml.bin
[   0.2682 ] tegrahost_v2 --chip 0x23 0 --align mb1_bct_MB1_aligned.bct
[   0.2709 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_bct_MB1_aligned.bct zerosbk
[   0.2725 ] adding BCH for mb1_bct_MB1_aligned.bct
[   0.2760 ] tegrasign_v3.py --key None --list mb1_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.2761 ] Assuming zero filled SBK key
[   0.2785 ] Warning: pub_key.key is not found
[   0.2788 ] tegrahost_v2 --chip 0x23 0 --updatesigheader mb1_bct_MB1_aligned_sigheader.bct.encrypt mb1_bct_MB1_aligned_sigheader.bct.hash zerosbk
[   0.2813 ] Error: Skip generating mem_bct because sdram_config is not defined
[   0.2813 ] Error: Skip generating mem_bct because sdram_config is not defined
[   0.2814 ] Copying signatures
[   0.2830 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[   0.2909 ] mb1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[   0.2910 ] psc_bl1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[   0.2910 ] Boot Rom communication
[   0.2918 ] 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.2924 ] BR_CID: 0x80012344705DD3408800000013010200
[   2.9627 ] Sending bct_br
[   5.9853 ] 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...

I’ve moved your topic to right category for Orin NX.
You would need to get custom BSP package from your vendor for the custom carrier board.

This command should find the p3509-a02+p3767-0000.conf under Linux_for_Tegra/.
and it seems you want to flash into an external NVMe drive, is it correct?

You don’t need to connect USB drive to enter force recovery state.
Just short REC/GND and power the board and it would enter into force recovery state.

First of all, please get the custom BSP package from your vendor for your customized board.

According to my vendor’s website, I’m supposed to be using Nvidia’s BSP directly.

Yes.

I don’t have access to any o the pins. The process to force into recovery mode was done as per vendor instructions.

My current status : log when trying to flash:

thiru@Thiru-ROG:~/Downloads/Linux_for_Tegra$ 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
/home/thiru/Downloads/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh --no-flash --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
************************************
*                                  *
*  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/thiru/Downloads/Linux_for_Tegra/flash.sh --no-flash --sign  -c p3509-a02+p3767-0000 internal

###############################################################################
# L4T BSP Information:
# R35 , REVISION: 3.1
# User release: 0.0
###############################################################################
copying emc_fuse_dev_params(/home/thiru/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-br-bct-diag-boot.dts)... done.
copying device_config(/home/thiru/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-device-p3767-0000.dts)... done.
copying misc_config(/home/thiru/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-misc-p3767-0000.dts)... done.
./tegraflash.py --chip 0x23 --applet "/home/thiru/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.0550 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   0.0561 ] File rcm_state open failed
[   0.0568 ] ERROR: failed to read rcm_state
[   0.0568 ] 
[   0.0588 ] tegrasign_v3.py --key None --getmode mode.txt
[   0.0592 ] Assuming zero filled SBK key
[   0.0577 ] Pre-processing config: tegra234-mb1-bct-device-p3767-0000.dts
[   0.0734 ] Pre-processing config: tegra234-mb1-bct-misc-p3767-0000.dts
[   0.0929 ] Parsing partition layout
[   0.0956 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[   0.0985 ] Kernel DTB used: None
[   0.0985 ] WARNING: dce base dtb is not provided

[   0.0985 ] Parsing partition layout
[   0.1000 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[   0.1023 ] Creating list of images to be signed
[   0.1046 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --list images_list.xml zerosbk
[   0.1065 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[   0.1085 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[   0.1088 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[   0.1191 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[   0.1194 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[   0.1247 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[   0.1250 ] adding BCH for mb2_t234_aligned.bin
[   0.1280 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[   0.1406 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[   0.1408 ] adding BCH for mb2_t234_aligned.bin
[   0.1557 ] Filling MB1 storage info
[   0.1557 ] Parsing dev params for multi chains
[   0.1649 ] Generating br-bct
[   0.1674 ] Updating dev and MSS params in BR BCT
[   0.1675 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[   0.1709 ] Updating bl info
[   0.1725 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin
[   0.1743 ] WARNING: boot chain is not completed. set to 0
[   0.1755 ] Generating signatures
[   0.1774 ] tegrasign_v3.py --key None --list images_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.1777 ] Assuming zero filled SBK key
[   0.2011 ] Warning: pub_key.key is not found
[   0.1994 ] Parsing dev params for multi chains
[   0.1994 ] Generating br-bct
[   0.2004 ] Updating dev and MSS params in BR BCT
[   0.2004 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[   0.2023 ] Updating bl info
[   0.2033 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[   0.2043 ] WARNING: boot chain is not completed. set to 0
[   0.2059 ] Get Signed section of bct
[   0.2072 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --listbct bct_list.xml
[   0.2085 ] Signing BCT
[   0.2104 ] tegrasign_v3.py --key None --list bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.2106 ] Assuming zero filled SBK key
[   0.2143 ] Sha saved in br_bct_BR.sha
[   0.2148 ] Warning: pub_key.key is not found
[   0.2129 ] Updating BCT with signature
[   0.2149 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesig bct_list_signed.xml
[   0.2165 ] Offset :4608 Len :3584
[   0.2171 ] Generating SHA2 Hash
[   0.2190 ] tegrasign_v3.py --key None --list bct_list.xml --sha sha512
[   0.2194 ] Assuming zero filled SBK key
[   0.2195 ] Assuming zero filled SBK key
[   0.2246 ] Sha saved in br_bct_BR.sha
[   0.2236 ] Updating BCT with SHA2 Hash
[   0.2251 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesha bct_list_signed.xml
[   0.2267 ] Offset :4608 Len :3584
[   0.2276 ] Offset :68 Len :8124
[   0.2279 ] Generating coldboot mb1-bct
[   0.2301 ] 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.2317 ] MB1-BCT version: 0.10
[   0.2321 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.2329 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.2335 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.2339 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.2343 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.2347 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.2347 ] ERROR: /misc/tsc_controls/tsc_locking_config is not supported
[   0.2347 ] ERROR: /misc/tsc_controls/tsc_locking_diff_configuration is not supported
[   0.2347 ] ERROR: /misc/tsc_controls/tsc_locking_ref_frequency_configuration is not supported
[   0.2347 ] ERROR: /misc/tsc_controls/tsc_locking_control is not supported
[   0.2347 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_configuration is not supported
[   0.2347 ] ERROR: /misc/tsc_controls/tsc_locking_fast_adjust_configuration is not supported
[   0.2347 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_delta_control is not supported
[   0.2347 ] ERROR: /misc/tsc_controls/tsc_capture_control_ptx is not supported
[   0.2347 ] ERROR: /misc/tsc_controls/tsc_capture_config_ptx is not supported
[   0.2347 ] ERROR: /misc/tsc_controls/tsc_stscrsr is not supported
[   0.2348 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_num_control is not supported
[   0.2348 ] 
[   0.2348 ] Parsing config file :tegra234-mb1-bct-device-p3767-0000_cpp.dtb 
[   0.2348 ] Added Platform Config 9 data with size :- 100
[   0.2348 ] 
[   0.2348 ] Updating mb1-bct with firmware information
[   0.2364 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_cold_boot_bct_MB1.bct --updatefwinfo readinfo_t234_min_prod.xml.bin
[   0.2404 ] tegrahost_v2 --chip 0x23 0 --align mb1_cold_boot_bct_MB1_aligned.bct
[   0.2437 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_cold_boot_bct_MB1_aligned.bct zerosbk
[   0.2452 ] adding BCH for mb1_cold_boot_bct_MB1_aligned.bct
[   0.2492 ] tegrasign_v3.py --key None --list mb1_cold_boot_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.2494 ] Assuming zero filled SBK key
[   0.2525 ] Warning: pub_key.key is not found
[   0.2524 ] 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.2553 ] Generating recovery mb1-bct
[   0.2563 ] 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.2572 ] MB1-BCT version: 0.10
[   0.2574 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.2580 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.2581 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.2583 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.2584 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.2586 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.2588 ] ERROR: /misc/tsc_controls/tsc_locking_config is not supported
[   0.2589 ] ERROR: /misc/tsc_controls/tsc_locking_diff_configuration is not supported
[   0.2590 ] ERROR: /misc/tsc_controls/tsc_locking_ref_frequency_configuration is not supported
[   0.2592 ] ERROR: /misc/tsc_controls/tsc_locking_control is not supported
[   0.2593 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_configuration is not supported
[   0.2595 ] ERROR: /misc/tsc_controls/tsc_locking_fast_adjust_configuration is not supported
[   0.2595 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_delta_control is not supported
[   0.2595 ] ERROR: /misc/tsc_controls/tsc_capture_control_ptx is not supported
[   0.2595 ] ERROR: /misc/tsc_controls/tsc_capture_config_ptx is not supported
[   0.2595 ] ERROR: /misc/tsc_controls/tsc_stscrsr is not supported
[   0.2595 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_num_control is not supported
[   0.2595 ] 
[   0.2595 ] Parsing config file :tegra234-mb1-bct-device-p3767-0000_cpp.dtb 
[   0.2595 ] Added Platform Config 9 data with size :- 100
[   0.2595 ] 
[   0.2595 ] Updating mb1-bct with firmware information
[   0.2606 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_bct_MB1.bct --recov --updatefwinfo readinfo_t234_min_prod.xml.bin
[   0.2636 ] tegrahost_v2 --chip 0x23 0 --align mb1_bct_MB1_aligned.bct
[   0.2658 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_bct_MB1_aligned.bct zerosbk
[   0.2669 ] adding BCH for mb1_bct_MB1_aligned.bct
[   0.2705 ] tegrasign_v3.py --key None --list mb1_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.2708 ] Assuming zero filled SBK key
[   0.2735 ] Warning: pub_key.key is not found
[   0.2735 ] tegrahost_v2 --chip 0x23 0 --updatesigheader mb1_bct_MB1_aligned_sigheader.bct.encrypt mb1_bct_MB1_aligned_sigheader.bct.hash zerosbk
[   0.2759 ] Error: Skip generating mem_bct because sdram_config is not defined
[   0.2759 ] Error: Skip generating mem_bct because sdram_config is not defined
[   0.2759 ] Copying signatures
[   0.2777 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[   0.2869 ] mb1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[   0.2870 ] psc_bl1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[   0.2870 ] Boot Rom communication
[   0.2884 ] 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.2900 ] BR_CID: 0x80012344705DD3408800000013010200
[   2.8352 ] Sending bct_br
[   5.7587 ] Sending mb1
[   5.7594 ] Sending psc_bl1
[   5.7691 ] Sending bct_mb1
[   5.7748 ] Boot Rom communication completed
[   5.7786 ] tegrahost_v2 --chip 0x23 0 --align applet_t234_aligned.bin
[   5.7826 ] tegrahost_v2 --chip 0x23 0 --magicid MB2A --appendsigheader applet_t234_aligned.bin zerosbk
[   5.7842 ] adding BCH for applet_t234_aligned.bin
[   5.7989 ] tegrasign_v3.py --key None --list applet_t234_aligned_sigheader.bin_list.xml --pubkeyhash pub_key.key --sha sha512
[   5.7991 ] Assuming zero filled SBK key
[   5.8027 ] Warning: pub_key.key is not found
[   5.8029 ] tegrahost_v2 --chip 0x23 0 --updatesigheader applet_t234_aligned_sigheader.bin.encrypt applet_t234_aligned_sigheader.bin.hash zerosbk
[   5.8067 ] Sending mb2_applet...

[   5.8082 ] tegrarcm_v2 --chip 0x23 0 --pollbl --download applet applet_t234_sigheader.bin.encrypt
[   5.8098 ] BL: version 0.32.0.0-t234-54845784-57325615 last_boot_error: 656573201
[   8.7185 ] Sending applet
[  11.7269 ] 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.
Error: failed to generate images
Cleaning up...

Thank you

I just checked the link you shared.
It seems your vendor instruct you to use default BSP package from NVIDIA, but there’re some steps you should do for the custom board.

Do you refer to the every steps here for your board?

Could you try to use another USB cable or port to flash the board?

Please also check if the following thread could help in your case.
Cannot flash Jetson AGX Orin (JetPack 5.1.1) - #15 by WayneWWW

and provide the serial console log during flash for further check.

Yes, I followed the steps carefully

Yes, I tried with different cables, ports and host systems

I already came across this, but didn’t help.

I checked, and I can see that the device isn’t registered as any /dev/ttyACMn or /dev/ttyUSBn. lsusb and dmesg detects the device, but it does not show up in tty.

I also tried using the SDKManager now. It failed too - here are the logs
SDKM_logs_JetPack_5.1.1_(rev._1)_Linux_for_Jetson_Orin_NX_modules_2023-07-19_21-06-03.zip (73.2 KB)

Since you are using the custom carrier board so that SDKM would flash failed as expected.

Could you share the full flash log when you follow these steps to flash your board?

Is there the debug UART port on your custom board?

Here’s the log through all the steps mentioned

thiru@Thiru-ROG:~$ tar xf Jetson_Linux_R35.3.1_aarch64.tbz2 
thiru@Thiru-ROG:~$ sudo tar xpf Tegra_Linux_Sample-Root-Filesystem_R35.3.1_aarch64.tbz2 -C Linux_for_Tegra/rootfs/
[sudo] password for thiru: 
thiru@Thiru-ROG:~$ cd Linux_for_Tegra/
thiru@Thiru-ROG:~/Linux_for_Tegra$ ./apply_binaries.sh 
This script requires root privilege
thiru@Thiru-ROG:~/Linux_for_Tegra$ sudo ./apply_binaries.sh 
Using rootfs directory of: /home/thiru/Linux_for_Tegra/rootfs
Installing extlinux.conf into /boot/extlinux in target rootfs
/home/thiru/Linux_for_Tegra/nv_tegra/nv-apply-debs.sh
Root file system directory is /home/thiru/Linux_for_Tegra/rootfs
Copying public debian packages to rootfs
Skipping installation of nvidia-l4t-dgpu-apt-source_35.3.1-20230319081403_arm64.deb ....
Skipping installation of nvidia-l4t-dgpu-config_35.3.1-20230319081403_arm64.deb ....
Start L4T BSP package installation
QEMU binary is not available, looking for QEMU from host system
Found /usr/bin/qemu-aarch64-static
Installing QEMU binary in rootfs
/home/thiru/Linux_for_Tegra/rootfs /home/thiru/Linux_for_Tegra
Installing BSP Debian packages in /home/thiru/Linux_for_Tegra/rootfs
Selecting previously unselected package nvidia-l4t-core.
(Reading database ... 123106 files and directories currently installed.)
Preparing to unpack .../nvidia-l4t-core_35.3.1-20230319081403_arm64.deb ...
Pre-installing... skip compatibility checking.
Unpacking nvidia-l4t-core (35.3.1-20230319081403) ...
Setting up nvidia-l4t-core (35.3.1-20230319081403) ...
Selecting previously unselected package jetson-gpio-common.
(Reading database ... 123164 files and directories currently installed.)
Preparing to unpack .../jetson-gpio-common_2.1.1ubuntu1_arm64.deb ...
Unpacking jetson-gpio-common (2.1.1ubuntu1) ...
Selecting previously unselected package python3-jetson-gpio.
Preparing to unpack .../python3-jetson-gpio_2.1.1ubuntu1_arm64.deb ...
Unpacking python3-jetson-gpio (2.1.1ubuntu1) ...
Selecting previously unselected package python-jetson-gpio.
Preparing to unpack .../python-jetson-gpio_2.1.1ubuntu1_arm64.deb ...
Unpacking python-jetson-gpio (2.1.1ubuntu1) ...
Selecting previously unselected package nvidia-l4t-3d-core.
Preparing to unpack .../nvidia-l4t-3d-core_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-3d-core (35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-apt-source.
Preparing to unpack .../nvidia-l4t-apt-source_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-apt-source (35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-camera.
Preparing to unpack .../nvidia-l4t-camera_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-camera (35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-configs.
Preparing to unpack .../nvidia-l4t-configs_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-configs (35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-cuda.
Preparing to unpack .../nvidia-l4t-cuda_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-cuda (35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-firmware.
Preparing to unpack .../nvidia-l4t-firmware_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-firmware (35.3.1-20230319081403) ...
Replacing files in old package linux-firmware (1.187.36) ...
Selecting previously unselected package nvidia-l4t-gbm.
Preparing to unpack .../nvidia-l4t-gbm_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-gbm (35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-graphics-demos.
Preparing to unpack .../nvidia-l4t-graphics-demos_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-graphics-demos (35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-gstreamer.
Preparing to unpack .../nvidia-l4t-gstreamer_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-gstreamer (35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-init.
Preparing to unpack .../nvidia-l4t-init_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-init (35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-initrd.
Preparing to unpack .../nvidia-l4t-initrd_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-initrd (35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-jetson-io.
Preparing to unpack .../nvidia-l4t-jetson-io_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-jetson-io (35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-jetsonpower-gui-tools.
Preparing to unpack .../nvidia-l4t-jetsonpower-gui-tools_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-jetsonpower-gui-tools (35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-libvulkan.
Preparing to unpack .../nvidia-l4t-libvulkan_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-libvulkan (35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-multimedia.
Preparing to unpack .../nvidia-l4t-multimedia_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-multimedia (35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-multimedia-utils.
Preparing to unpack .../nvidia-l4t-multimedia-utils_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-multimedia-utils (35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-nvfancontrol.
Preparing to unpack .../nvidia-l4t-nvfancontrol_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-nvfancontrol (35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-nvpmodel.
Preparing to unpack .../nvidia-l4t-nvpmodel_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-nvpmodel (35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-nvpmodel-gui-tools.
Preparing to unpack .../nvidia-l4t-nvpmodel-gui-tools_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-nvpmodel-gui-tools (35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-nvsci.
Preparing to unpack .../nvidia-l4t-nvsci_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-nvsci (35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-oem-config.
Preparing to unpack .../nvidia-l4t-oem-config_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-oem-config (35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-openwfd.
Preparing to unpack .../nvidia-l4t-openwfd_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-openwfd (35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-optee.
Preparing to unpack .../nvidia-l4t-optee_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-optee (35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-pva.
Preparing to unpack .../nvidia-l4t-pva_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-pva (35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-tools.
Preparing to unpack .../nvidia-l4t-tools_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-tools (35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-vulkan-sc.
Preparing to unpack .../nvidia-l4t-vulkan-sc_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-vulkan-sc (35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-vulkan-sc-dev.
Preparing to unpack .../nvidia-l4t-vulkan-sc-dev_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-vulkan-sc-dev (35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-vulkan-sc-samples.
Preparing to unpack .../nvidia-l4t-vulkan-sc-samples_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-vulkan-sc-samples (35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-vulkan-sc-sdk.
Preparing to unpack .../nvidia-l4t-vulkan-sc-sdk_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-vulkan-sc-sdk (35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-wayland.
Preparing to unpack .../nvidia-l4t-wayland_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-wayland (35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-weston.
Preparing to unpack .../nvidia-l4t-weston_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-weston (35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-x11.
Preparing to unpack .../nvidia-l4t-x11_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-x11 (35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-xusb-firmware.
Preparing to unpack .../nvidia-l4t-xusb-firmware_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-xusb-firmware (35.3.1-20230319081403) ...
Replacing files in old package linux-firmware (1.187.36) ...
Selecting previously unselected package nvidia-l4t-display-kernel.
Preparing to unpack .../nvidia-l4t-display-kernel_5.10.104-tegra-35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-display-kernel (5.10.104-tegra-35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-kernel.
Preparing to unpack .../nvidia-l4t-kernel_5.10.104-tegra-35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-kernel (5.10.104-tegra-35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-kernel-dtbs.
Preparing to unpack .../nvidia-l4t-kernel-dtbs_5.10.104-tegra-35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-kernel-dtbs (5.10.104-tegra-35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-kernel-headers.
Preparing to unpack .../nvidia-l4t-kernel-headers_5.10.104-tegra-35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-kernel-headers (5.10.104-tegra-35.3.1-20230319081403) ...
Selecting previously unselected package nvidia-l4t-bootloader.
Preparing to unpack .../nvidia-l4t-bootloader_35.3.1-20230319081403_arm64.deb ...
Unpacking nvidia-l4t-bootloader (35.3.1-20230319081403) ...
Setting up jetson-gpio-common (2.1.1ubuntu1) ...
Setting up python3-jetson-gpio (2.1.1ubuntu1) ...
Setting up python-jetson-gpio (2.1.1ubuntu1) ...
Setting up nvidia-l4t-apt-source (35.3.1-20230319081403) ...
Pre-installing... skip changing source list.
Setting up nvidia-l4t-configs (35.3.1-20230319081403) ...
Setting up nvidia-l4t-cuda (35.3.1-20230319081403) ...
Setting up nvidia-l4t-firmware (35.3.1-20230319081403) ...
Setting up nvidia-l4t-init (35.3.1-20230319081403) ...
Setting up nvidia-l4t-jetsonpower-gui-tools (35.3.1-20230319081403) ...
Setting up nvidia-l4t-libvulkan (35.3.1-20230319081403) ...
Setting up nvidia-l4t-multimedia-utils (35.3.1-20230319081403) ...
Setting up nvidia-l4t-nvfancontrol (35.3.1-20230319081403) ...
Setting up nvidia-l4t-nvpmodel (35.3.1-20230319081403) ...
Setting up nvidia-l4t-nvpmodel-gui-tools (35.3.1-20230319081403) ...
Setting up nvidia-l4t-nvsci (35.3.1-20230319081403) ...
Setting up nvidia-l4t-oem-config (35.3.1-20230319081403) ...
Setting up nvidia-l4t-openwfd (35.3.1-20230319081403) ...
Setting up nvidia-l4t-optee (35.3.1-20230319081403) ...
Setting up nvidia-l4t-pva (35.3.1-20230319081403) ...
Setting up nvidia-l4t-tools (35.3.1-20230319081403) ...
Setting up nvidia-l4t-vulkan-sc (35.3.1-20230319081403) ...
Setting up nvidia-l4t-vulkan-sc-dev (35.3.1-20230319081403) ...
Setting up nvidia-l4t-vulkan-sc-sdk (35.3.1-20230319081403) ...
Setting up nvidia-l4t-wayland (35.3.1-20230319081403) ...
Setting up nvidia-l4t-x11 (35.3.1-20230319081403) ...
Setting up nvidia-l4t-xusb-firmware (35.3.1-20230319081403) ...
Setting up nvidia-l4t-kernel (5.10.104-tegra-35.3.1-20230319081403) ...
Using the existing boot entry 'primary'
Pre-installing kernel package, skip flashing
Setting up nvidia-l4t-kernel-dtbs (5.10.104-tegra-35.3.1-20230319081403) ...
Pre-installing kernel-dtbs package, skip flashing
Setting up nvidia-l4t-kernel-headers (5.10.104-tegra-35.3.1-20230319081403) ...
Setting up nvidia-l4t-bootloader (35.3.1-20230319081403) ...
Pre-installing bootloader package, skip flashing
Setting up nvidia-l4t-3d-core (35.3.1-20230319081403) ...
Setting up nvidia-l4t-gbm (35.3.1-20230319081403) ...
Setting up nvidia-l4t-initrd (35.3.1-20230319081403) ...
Pre-installing initrd package, skip flashing
Setting up nvidia-l4t-jetson-io (35.3.1-20230319081403) ...
Setting up nvidia-l4t-multimedia (35.3.1-20230319081403) ...
Setting up nvidia-l4t-vulkan-sc-samples (35.3.1-20230319081403) ...
Setting up nvidia-l4t-weston (35.3.1-20230319081403) ...
Setting up nvidia-l4t-display-kernel (5.10.104-tegra-35.3.1-20230319081403) ...
Setting up nvidia-l4t-camera (35.3.1-20230319081403) ...
Setting up nvidia-l4t-graphics-demos (35.3.1-20230319081403) ...
Setting up nvidia-l4t-gstreamer (35.3.1-20230319081403) ...
Processing triggers for nvidia-l4t-kernel (5.10.104-tegra-35.3.1-20230319081403) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
/home/thiru/Linux_for_Tegra
Removing QEMU binary from rootfs
Removing stashed Debian packages from rootfs
L4T BSP package installation completed!
Disabling NetworkManager-wait-online.service
Disable the ondemand service by changing the runlevels to 'K'
Success!
thiru@Thiru-ROG:~/Linux_for_Tegra$ sudo ./tools/l4t_flash_prerequisites.sh 
Get:1 file:/var/cuda-repo-cross-aarch64-ubuntu2004-11-4-local  InRelease [1,575 B]
Get:2 file:/var/cuda-repo-ubuntu2004-11-4-local  InRelease [1,575 B]
0% [Connecting to security.ubuntu.com] [Connecting to packages.microsoft.com] [Connecting to b                                                                                              Get:1 file:/var/cuda-repo-cross-aarch64-ubuntu2004-11-4-local  InRelease [1,575 B]
0% [1 InRelease 0 B/1,575 B 0%] [Connecting to security.ubuntu.com] [Connecting to packages.mi0% [Connecting to security.ubuntu.com] [Connecting to packages.microsoft.com] [Connecting to b                                                                                              Get:2 file:/var/cuda-repo-ubuntu2004-11-4-local  InRelease [1,575 B]
0% [2 InRelease 0 B/1,575 B 0%] [Connecting to security.ubuntu.com] [Connecting to packages.mi0% [Connecting to security.ubuntu.com] [Connecting to packages.microsoft.com] [Connecting to b                                                                                              Hit:3 http://packages.ros.org/ros/ubuntu focal InRelease
0% [Connecting to in.archive.ubuntu.com] [Connecting to security.ubuntu.com (185.125.190.39)]                                                                                               Hit:4 http://packages.ros.org/ros2/ubuntu focal InRelease
0% [Connecting to in.archive.ubuntu.com (91.189.91.39)] [Connecting to security.ubuntu.com (18                                                                                              Hit:5 http://packages.microsoft.com/repos/code stable InRelease
0% [Connecting to in.archive.ubuntu.com (91.189.91.39)] [Connecting to security.ubuntu.com (18                                                                                              Hit:6 https://download.docker.com/linux/ubuntu focal InRelease
0% [Connecting to in.archive.ubuntu.com (91.189.91.39)] [Connecting to security.ubuntu.com (18                                                                                              Hit:7 http://dl.google.com/linux/chrome/deb stable InRelease
0% [Connecting to in.archive.ubuntu.com (91.189.91.39)] [Connecting to security.ubuntu.com (180% [Waiting for headers] [Connecting to security.ubuntu.com (185.125.190.39)] [Connected to pa                                                                                              Get:8 https://brave-browser-apt-release.s3.brave.com stable InRelease [7,547 B]
0% [Waiting for headers] [Connecting to security.ubuntu.com (185.125.190.39)] [Connected to pa0% [Waiting for headers] [Connecting to security.ubuntu.com (185.125.190.39)] [Connected to pa                                                                                              Hit:9 http://in.archive.ubuntu.com/ubuntu focal InRelease
0% [Connecting to security.ubuntu.com (185.125.190.39)] [Connected to packages.microsoft.com (                                                                                              Hit:10 http://in.archive.ubuntu.com/ubuntu focal-updates InRelease
                                                                                              Hit:11 https://packages.microsoft.com/repos/vscode stable InRelease 
Get:12 https://packages.microsoft.com/repos/ms-teams stable InRelease [5,931 B]           
0% [Waiting for headers] [Waiting for headers] [12 InRelease 5,931 B/5,931 B 100%] [Waiting fo                                                                                              Hit:13 http://in.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:14 http://security.ubuntu.com/ubuntu focal-security InRelease   
Hit:15 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal InRelease
Hit:16 http://ppa.launchpad.net/git-core/ppa/ubuntu focal InRelease
Hit:17 http://ppa.launchpad.net/tuxinvader/lts-mainline/ubuntu focal InRelease
Hit:18 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu focal InRelease
Get:19 https://brave-browser-apt-release.s3.brave.com stable/main amd64 Packages [4,548 B]
Fetched 18.0 kB in 3s (6,941 B/s)    
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'python-is-python2' instead of 'python'
cpp is already the newest version (4:9.3.0-1ubuntu2).
device-tree-compiler is already the newest version (1.5.1-1).
dosfstools is already the newest version (4.1-2).
whois is already the newest version (5.5.6).
abootimg is already the newest version (0.6-1build1).
binfmt-support is already the newest version (2.2.0-2).
lbzip2 is already the newest version (2.5-2).
python-is-python2 is already the newest version (2.7.17-4).
sshpass is already the newest version (1.06-1).
binutils is already the newest version (2.34-6ubuntu1.6).
cpio is already the newest version (2.13+dfsg-2ubuntu0.3).
libxml2-utils is already the newest version (2.9.10+dfsg-5ubuntu0.20.04.6).
nfs-kernel-server is already the newest version (1:1.3.4-2.5ubuntu3.4).
openssl is already the newest version (1.1.1f-1ubuntu2.19).
python3-yaml is already the newest version (5.3.1-1ubuntu0.1).
udev is already the newest version (245.4-4ubuntu3.22).
uuid-runtime is already the newest version (2.34-0.1ubuntu9.4).
qemu-user-static is already the newest version (1:4.2-3ubuntu6.27).
The following packages were automatically installed and are no longer required:
  gcc-11-base:i386 libpython2-dev python2-dev python2.7-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
lz4 is already the newest version (1.9.2-2ubuntu0.20.04.1).
The following packages were automatically installed and are no longer required:
  gcc-11-base:i386 libpython2-dev python2-dev python2.7-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
thiru@Thiru-ROG:~/Linux_for_Tegra$ lsusb
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 004: ID 8087:0029 Intel Corp. 
Bus 005 Device 002: ID 27c6:521d Shenzhen Goodix Technology Co.,Ltd. FingerPrint
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 0b05:193b ASUSTek Computer, Inc. ITE Device(8910)
Bus 003 Device 002: ID 0b05:1866 ASUSTek Computer, Inc. N-KEY Device
Bus 003 Device 043: ID 0955:7323 NVIDIA Corp. APX
Bus 003 Device 038: ID 25a7:fa67 CX 2.4G Receiver
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
thiru@Thiru-ROG:~/Linux_for_Tegra$ sed -i -- 's/cvb_eeprom_read_size = <0x100>;/cvb_eeprom_read_size = <0x0>;/g' \
> bootloader/t186ref/BCT/tegra234-mb2-bct-misc-p3767-0000.dts
thiru@Thiru-ROG:~/Linux_for_Tegra$ 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
/home/thiru/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh --no-flash --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
************************************
*                                  *
*  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/thiru/Linux_for_Tegra/flash.sh --no-flash --sign  -c p3509-a02+p3767-0000 internal

###############################################################################
# L4T BSP Information:
# R35 , REVISION: 3.1
# User release: 0.0
###############################################################################
copying emc_fuse_dev_params(/home/thiru/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-br-bct-diag-boot.dts)... done.
copying device_config(/home/thiru/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-device-p3767-0000.dts)... done.
copying misc_config(/home/thiru/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-misc-p3767-0000.dts)... done.
./tegraflash.py --chip 0x23 --applet "/home/thiru/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.0324 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   0.0344 ] File rcm_state open failed
[   0.0344 ] ERROR: failed to read rcm_state
[   0.0344 ] 
[   0.0419 ] tegrasign_v3.py --key None --getmode mode.txt
[   0.0422 ] Assuming zero filled SBK key
[   0.0351 ] Pre-processing config: tegra234-mb1-bct-device-p3767-0000.dts
[   0.1017 ] Pre-processing config: tegra234-mb1-bct-misc-p3767-0000.dts
[   0.1224 ] Parsing partition layout
[   0.1252 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[   0.1281 ] Kernel DTB used: None
[   0.1282 ] WARNING: dce base dtb is not provided

[   0.1282 ] Parsing partition layout
[   0.1304 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[   0.1327 ] Creating list of images to be signed
[   0.1352 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --list images_list.xml zerosbk
[   0.1364 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[   0.1384 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[   0.1389 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[   0.1499 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[   0.1504 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[   0.1553 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[   0.1556 ] adding BCH for mb2_t234_aligned.bin
[   0.1589 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[   0.1718 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[   0.1721 ] adding BCH for mb2_t234_aligned.bin
[   0.1880 ] Filling MB1 storage info
[   0.1880 ] Parsing dev params for multi chains
[   0.2001 ] Generating br-bct
[   0.2031 ] Updating dev and MSS params in BR BCT
[   0.2032 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[   0.2069 ] Updating bl info
[   0.2087 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin
[   0.2105 ] WARNING: boot chain is not completed. set to 0
[   0.2119 ] Generating signatures
[   0.2194 ] tegrasign_v3.py --key None --list images_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.2196 ] Assuming zero filled SBK key
[   0.2448 ] Warning: pub_key.key is not found
[   0.2377 ] Parsing dev params for multi chains
[   0.2377 ] Generating br-bct
[   0.2392 ] Updating dev and MSS params in BR BCT
[   0.2393 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[   0.2410 ] Updating bl info
[   0.2426 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[   0.2436 ] WARNING: boot chain is not completed. set to 0
[   0.2453 ] Get Signed section of bct
[   0.2468 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --listbct bct_list.xml
[   0.2487 ] Signing BCT
[   0.2561 ] tegrasign_v3.py --key None --list bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.2563 ] Assuming zero filled SBK key
[   0.2624 ] Sha saved in br_bct_BR.sha
[   0.2629 ] Warning: pub_key.key is not found
[   0.2556 ] Updating BCT with signature
[   0.2572 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesig bct_list_signed.xml
[   0.2585 ] Offset :4608 Len :3584
[   0.2594 ] Generating SHA2 Hash
[   0.2668 ] tegrasign_v3.py --key None --list bct_list.xml --sha sha512
[   0.2672 ] Assuming zero filled SBK key
[   0.2672 ] Assuming zero filled SBK key
[   0.2731 ] Sha saved in br_bct_BR.sha
[   0.2664 ] Updating BCT with SHA2 Hash
[   0.2681 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesha bct_list_signed.xml
[   0.2698 ] Offset :4608 Len :3584
[   0.2702 ] Offset :68 Len :8124
[   0.2706 ] Generating coldboot mb1-bct
[   0.2718 ] 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.2731 ] MB1-BCT version: 0.10
[   0.2733 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.2737 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.2742 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.2742 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.2742 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.2742 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.2742 ] ERROR: /misc/tsc_controls/tsc_locking_config is not supported
[   0.2742 ] ERROR: /misc/tsc_controls/tsc_locking_diff_configuration is not supported
[   0.2743 ] ERROR: /misc/tsc_controls/tsc_locking_ref_frequency_configuration is not supported
[   0.2743 ] ERROR: /misc/tsc_controls/tsc_locking_control is not supported
[   0.2743 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_configuration is not supported
[   0.2743 ] ERROR: /misc/tsc_controls/tsc_locking_fast_adjust_configuration is not supported
[   0.2743 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_delta_control is not supported
[   0.2743 ] ERROR: /misc/tsc_controls/tsc_capture_control_ptx is not supported
[   0.2743 ] ERROR: /misc/tsc_controls/tsc_capture_config_ptx is not supported
[   0.2743 ] ERROR: /misc/tsc_controls/tsc_stscrsr is not supported
[   0.2743 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_num_control is not supported
[   0.2743 ] 
[   0.2743 ] Parsing config file :tegra234-mb1-bct-device-p3767-0000_cpp.dtb 
[   0.2743 ] Added Platform Config 9 data with size :- 100
[   0.2744 ] 
[   0.2744 ] Updating mb1-bct with firmware information
[   0.2758 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_cold_boot_bct_MB1.bct --updatefwinfo readinfo_t234_min_prod.xml.bin
[   0.2798 ] tegrahost_v2 --chip 0x23 0 --align mb1_cold_boot_bct_MB1_aligned.bct
[   0.2830 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_cold_boot_bct_MB1_aligned.bct zerosbk
[   0.2839 ] adding BCH for mb1_cold_boot_bct_MB1_aligned.bct
[   0.2931 ] tegrasign_v3.py --key None --list mb1_cold_boot_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.2933 ] Assuming zero filled SBK key
[   0.2962 ] Warning: pub_key.key is not found
[   0.2909 ] 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.2941 ] Generating recovery mb1-bct
[   0.2958 ] 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.2975 ] MB1-BCT version: 0.10
[   0.2976 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.2984 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.2989 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.2995 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.3000 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.3008 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.3008 ] ERROR: /misc/tsc_controls/tsc_locking_config is not supported
[   0.3008 ] ERROR: /misc/tsc_controls/tsc_locking_diff_configuration is not supported
[   0.3008 ] ERROR: /misc/tsc_controls/tsc_locking_ref_frequency_configuration is not supported
[   0.3008 ] ERROR: /misc/tsc_controls/tsc_locking_control is not supported
[   0.3008 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_configuration is not supported
[   0.3008 ] ERROR: /misc/tsc_controls/tsc_locking_fast_adjust_configuration is not supported
[   0.3008 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_delta_control is not supported
[   0.3008 ] ERROR: /misc/tsc_controls/tsc_capture_control_ptx is not supported
[   0.3008 ] ERROR: /misc/tsc_controls/tsc_capture_config_ptx is not supported
[   0.3008 ] ERROR: /misc/tsc_controls/tsc_stscrsr is not supported
[   0.3008 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_num_control is not supported
[   0.3008 ] 
[   0.3008 ] Parsing config file :tegra234-mb1-bct-device-p3767-0000_cpp.dtb 
[   0.3009 ] Added Platform Config 9 data with size :- 100
[   0.3009 ] 
[   0.3009 ] Updating mb1-bct with firmware information
[   0.3026 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_bct_MB1.bct --recov --updatefwinfo readinfo_t234_min_prod.xml.bin
[   0.3063 ] tegrahost_v2 --chip 0x23 0 --align mb1_bct_MB1_aligned.bct
[   0.3097 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_bct_MB1_aligned.bct zerosbk
[   0.3110 ] adding BCH for mb1_bct_MB1_aligned.bct
[   0.3199 ] tegrasign_v3.py --key None --list mb1_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.3202 ] Assuming zero filled SBK key
[   0.3232 ] Warning: pub_key.key is not found
[   0.3177 ] tegrahost_v2 --chip 0x23 0 --updatesigheader mb1_bct_MB1_aligned_sigheader.bct.encrypt mb1_bct_MB1_aligned_sigheader.bct.hash zerosbk
[   0.3206 ] Error: Skip generating mem_bct because sdram_config is not defined
[   0.3207 ] Error: Skip generating mem_bct because sdram_config is not defined
[   0.3207 ] Copying signatures
[   0.3226 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[   0.3315 ] mb1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[   0.3319 ] psc_bl1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[   0.3319 ] Boot Rom communication
[   0.3337 ] 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.3354 ] BR_CID: 0x80012344705DD3408800000013010200
[   2.7983 ] Sending bct_br
[   2.8127 ] Sending mb1
[   2.8136 ] Sending psc_bl1
[   2.8237 ] Sending bct_mb1
[   2.8294 ] Boot Rom communication completed
[   2.8331 ] tegrahost_v2 --chip 0x23 0 --align applet_t234_aligned.bin
[   2.8365 ] tegrahost_v2 --chip 0x23 0 --magicid MB2A --appendsigheader applet_t234_aligned.bin zerosbk
[   2.8383 ] adding BCH for applet_t234_aligned.bin
[   2.8642 ] tegrasign_v3.py --key None --list applet_t234_aligned_sigheader.bin_list.xml --pubkeyhash pub_key.key --sha sha512
[   2.8645 ] Assuming zero filled SBK key
[   2.8688 ] Warning: pub_key.key is not found
[   2.8638 ] tegrahost_v2 --chip 0x23 0 --updatesigheader applet_t234_aligned_sigheader.bin.encrypt applet_t234_aligned_sigheader.bin.hash zerosbk
[   2.8687 ] Sending mb2_applet...

[   2.8708 ] tegrarcm_v2 --chip 0x23 0 --pollbl --download applet applet_t234_sigheader.bin.encrypt
[   2.8725 ] BL: version 0.32.0.0-t234-54845784-57325615 last_boot_error: 656573201
[   5.7141 ] Sending applet
[   8.6175 ] 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.
Error: failed to generate images
Cleaning up...

From what I understand, the UART of the Orin is exposed as Mini USB on my module - I’m not sure though. This is my source

Thanks

[   2.8725 ] BL: version 0.32.0.0-t234-54845784-57325615 last_boot_error: 656573201

Could you share your Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb2-bct-misc-p3767-0000.dts as file here?

the USB OTG port (same as used for flash) is a serial port for debug and “ssh”.
Do you see any /dev/tty* appear on you host PC after connecting USB cable?

I did check that, and No…the device doesn’t show up as ttyACMx or ttyUSBx.

Sure, here it is
tegra234-mb2-bct-misc-p3767-0000.dts (312 Bytes)

Thanks

You may need to ask your vendor for the usage of serial console.
Normally, it will appear the new /dev/tty* node on you host when you plug the cable (USB or serial soncole cable).

It seems the instruction from your vendor causing the duplicate definition for cvm_eeprom_read_size. Could you remove the following line and flash again?

	mb2-misc {
		eeprom {
			cvm_eeprom_i2c_instance = <0>;
			cvm_eeprom_i2c_slave_address = <0xa0>;
-			cvm_eeprom_read_size = <0x100>;
			cvb_eeprom_i2c_instance = <0x0>;
			cvb_eeprom_i2c_slave_address = <0xae>;
			cvb_eeprom_read_size = <0x0>;
		};
	};

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