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.
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?
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.
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’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.
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?
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.
[ 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?
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?