my ubuntu environment:
zdx@zdx-ThinkPad-T14-Gen-1:~/orin/Linux_for_Tegra$ uname -a
Linux zdx-ThinkPad-T14-Gen-1 5.15.0-89-generic #99~20.04.1-Ubuntu SMP Thu Nov 2 15:16:47 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
zdx@zdx-ThinkPad-T14-Gen-1:~/orin/Linux_for_Tegra$ uname -v
#99~20.04.1-Ubuntu SMP Thu Nov 2 15:16:47 UTC 2023
zdx@zdx-ThinkPad-T14-Gen-1:~/orin/Linux_for_Tegra$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.6 LTS
Release: 20.04
Codename: focal
log is :
zdx@zdx-ThinkPad-T14-Gen-1:~/orin/Linux_for_Tegra$ sudo ./flash.sh p3737-0000+p3701-0000 mmcblk0p1
###############################################################################
# L4T BSP Information:
# R35 , REVISION: 3.1
# User release: 0.0
###############################################################################
# Target Board Information:
# Name: p3737-0000+p3701-0000, Board Family: t186ref, SoC: Tegra 234,
# OpMode: production, Boot Authentication: NS,
# Disk encryption: disabled ,
###############################################################################
copying emc_fuse_dev_params(/home/zdx/orin/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-br-bct-diag-boot.dts)... done.
copying device_config(/home/zdx/orin/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-device-p3701-0000.dts)... done.
copying misc_config(/home/zdx/orin/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-misc-p3701-0000.dts)... done.
./tegraflash.py --chip 0x23 --applet "/home/zdx/orin/Linux_for_Tegra/bootloader/mb1_t234_prod.bin" --skipuid --cfg readinfo_t234_min_prod.xml --dev_params tegra234-br-bct-diag-boot.dts --device_config tegra234-mb1-bct-device-p3701-0000.dts --misc_config tegra234-mb1-bct-misc-p3701-0000.dts --bins "mb2_applet applet_t234.bin" --cmd "dump eeprom cvm cvm.bin; dump custinfo custinfo_out.bin; reboot recovery"
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands
[ 0.0151 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[ 0.0158 ] File rcm_state open failed
[ 0.0159 ] ERROR: failed to read rcm_state
[ 0.0159 ]
[ 0.0175 ] tegrasign_v3.py --key None --getmode mode.txt
[ 0.0177 ] Assuming zero filled SBK key
[ 0.0162 ] Pre-processing config: tegra234-mb1-bct-device-p3701-0000.dts
[ 0.0215 ] Pre-processing config: tegra234-mb1-bct-misc-p3701-0000.dts
[ 0.0295 ] Parsing partition layout
[ 0.0305 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[ 0.0322 ] Kernel DTB used: None
[ 0.0322 ] WARNING: dce base dtb is not provided
[ 0.0322 ] Parsing partition layout
[ 0.0336 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[ 0.0349 ] Creating list of images to be signed
[ 0.0356 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --list images_list.xml zerosbk
[ 0.0364 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[ 0.0371 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[ 0.0374 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[ 0.0422 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[ 0.0425 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[ 0.0471 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[ 0.0474 ] adding BCH for mb2_t234_aligned.bin
[ 0.0503 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[ 0.0629 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[ 0.0632 ] adding BCH for mb2_t234_aligned.bin
[ 0.0780 ] Filling MB1 storage info
[ 0.0780 ] Parsing dev params for multi chains
[ 0.0849 ] Generating br-bct
[ 0.0857 ] Updating dev and MSS params in BR BCT
[ 0.0858 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[ 0.0867 ] Updating bl info
[ 0.0875 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin
[ 0.0882 ] WARNING: boot chain is not completed. set to 0
[ 0.0888 ] Generating signatures
[ 0.0904 ] tegrasign_v3.py --key None --list images_list.xml --pubkeyhash pub_key.key --sha sha512
[ 0.0906 ] Assuming zero filled SBK key
[ 0.1004 ] Warning: pub_key.key is not found
[ 0.0990 ] Parsing dev params for multi chains
[ 0.0990 ] Generating br-bct
[ 0.0997 ] Updating dev and MSS params in BR BCT
[ 0.0998 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[ 0.1007 ] Updating bl info
[ 0.1015 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[ 0.1022 ] WARNING: boot chain is not completed. set to 0
[ 0.1027 ] Get Signed section of bct
[ 0.1034 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --listbct bct_list.xml
[ 0.1044 ] Signing BCT
[ 0.1060 ] tegrasign_v3.py --key None --list bct_list.xml --pubkeyhash pub_key.key --sha sha512
[ 0.1062 ] Assuming zero filled SBK key
[ 0.1088 ] Sha saved in br_bct_BR.sha
[ 0.1091 ] Warning: pub_key.key is not found
[ 0.1076 ] Updating BCT with signature
[ 0.1085 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesig bct_list_signed.xml
[ 0.1094 ] Offset :4608 Len :3584
[ 0.1097 ] Generating SHA2 Hash
[ 0.1113 ] tegrasign_v3.py --key None --list bct_list.xml --sha sha512
[ 0.1115 ] Assuming zero filled SBK key
[ 0.1115 ] Assuming zero filled SBK key
[ 0.1145 ] Sha saved in br_bct_BR.sha
[ 0.1133 ] Updating BCT with SHA2 Hash
[ 0.1140 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesha bct_list_signed.xml
[ 0.1147 ] Offset :4608 Len :3584
[ 0.1149 ] Offset :68 Len :8124
[ 0.1151 ] Generating coldboot mb1-bct
[ 0.1160 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_cold_boot_bct.cfg --misc tegra234-mb1-bct-misc-p3701-0000_cpp.dtb --device tegra234-mb1-bct-device-p3701-0000_cpp.dtb
[ 0.1169 ] MB1-BCT version: 0.10
[ 0.1170 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[ 0.1175 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[ 0.1178 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[ 0.1180 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[ 0.1183 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[ 0.1185 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[ 0.1185 ] ERROR: /misc/tsc_controls/tsc_locking_config is not supported
[ 0.1185 ] ERROR: /misc/tsc_controls/tsc_locking_diff_configuration is not supported
[ 0.1185 ] ERROR: /misc/tsc_controls/tsc_locking_ref_frequency_configuration is not supported
[ 0.1185 ] ERROR: /misc/tsc_controls/tsc_locking_control is not supported
[ 0.1185 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_configuration is not supported
[ 0.1185 ] ERROR: /misc/tsc_controls/tsc_locking_fast_adjust_configuration is not supported
[ 0.1185 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_delta_control is not supported
[ 0.1185 ] ERROR: /misc/tsc_controls/tsc_capture_control_ptx is not supported
[ 0.1185 ] ERROR: /misc/tsc_controls/tsc_capture_config_ptx is not supported
[ 0.1185 ] ERROR: /misc/tsc_controls/tsc_stscrsr is not supported
[ 0.1185 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_num_control is not supported
[ 0.1186 ]
[ 0.1186 ] Parsing config file :tegra234-mb1-bct-device-p3701-0000_cpp.dtb
[ 0.1186 ] Added Platform Config 9 data with size :- 100
[ 0.1186 ]
[ 0.1186 ] Updating mb1-bct with firmware information
[ 0.1194 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_cold_boot_bct_MB1.bct --updatefwinfo readinfo_t234_min_prod.xml.bin
[ 0.1213 ] tegrahost_v2 --chip 0x23 0 --align mb1_cold_boot_bct_MB1_aligned.bct
[ 0.1228 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_cold_boot_bct_MB1_aligned.bct zerosbk
[ 0.1235 ] adding BCH for mb1_cold_boot_bct_MB1_aligned.bct
[ 0.1258 ] tegrasign_v3.py --key None --list mb1_cold_boot_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[ 0.1260 ] Assuming zero filled SBK key
[ 0.1275 ] Warning: pub_key.key is not found
[ 0.1267 ] 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.1280 ] Generating recovery mb1-bct
[ 0.1287 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_bct.cfg --misc tegra234-mb1-bct-misc-p3701-0000_cpp.dtb --device tegra234-mb1-bct-device-p3701-0000_cpp.dtb
[ 0.1294 ] MB1-BCT version: 0.10
[ 0.1295 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[ 0.1299 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[ 0.1301 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[ 0.1303 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[ 0.1306 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[ 0.1309 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[ 0.1311 ] ERROR: /misc/tsc_controls/tsc_locking_config is not supported
[ 0.1311 ] ERROR: /misc/tsc_controls/tsc_locking_diff_configuration is not supported
[ 0.1311 ] ERROR: /misc/tsc_controls/tsc_locking_ref_frequency_configuration is not supported
[ 0.1312 ] ERROR: /misc/tsc_controls/tsc_locking_control is not supported
[ 0.1312 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_configuration is not supported
[ 0.1312 ] ERROR: /misc/tsc_controls/tsc_locking_fast_adjust_configuration is not supported
[ 0.1312 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_delta_control is not supported
[ 0.1312 ] ERROR: /misc/tsc_controls/tsc_capture_control_ptx is not supported
[ 0.1312 ] ERROR: /misc/tsc_controls/tsc_capture_config_ptx is not supported
[ 0.1312 ] ERROR: /misc/tsc_controls/tsc_stscrsr is not supported
[ 0.1312 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_num_control is not supported
[ 0.1312 ]
[ 0.1312 ] Parsing config file :tegra234-mb1-bct-device-p3701-0000_cpp.dtb
[ 0.1312 ] Added Platform Config 9 data with size :- 100
[ 0.1312 ]
[ 0.1312 ] Updating mb1-bct with firmware information
[ 0.1320 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_bct_MB1.bct --recov --updatefwinfo readinfo_t234_min_prod.xml.bin
[ 0.1337 ] tegrahost_v2 --chip 0x23 0 --align mb1_bct_MB1_aligned.bct
[ 0.1352 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_bct_MB1_aligned.bct zerosbk
[ 0.1360 ] adding BCH for mb1_bct_MB1_aligned.bct
[ 0.1385 ] tegrasign_v3.py --key None --list mb1_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[ 0.1386 ] Assuming zero filled SBK key
[ 0.1402 ] Warning: pub_key.key is not found
[ 0.1396 ] tegrahost_v2 --chip 0x23 0 --updatesigheader mb1_bct_MB1_aligned_sigheader.bct.encrypt mb1_bct_MB1_aligned_sigheader.bct.hash zerosbk
[ 0.1410 ] Error: Skip generating mem_bct because sdram_config is not defined
[ 0.1410 ] Error: Skip generating mem_bct because sdram_config is not defined
[ 0.1410 ] Copying signatures
[ 0.1419 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[ 0.1466 ] mb1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[ 0.1467 ] psc_bl1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[ 0.1467 ] Boot Rom communication
[ 0.1477 ] 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.1485 ] BR_CID: 0x80012344705DD2420C00000015008200
[ 0.1811 ] Sending bct_br
[ 0.2251 ] Sending mb1
[ 0.2260 ] Sending psc_bl1
[ 0.2367 ] Sending bct_mb1
[ 0.2429 ] Boot Rom communication completed
[ 0.2476 ] tegrahost_v2 --chip 0x23 0 --align applet_t234_aligned.bin
[ 0.2546 ] tegrahost_v2 --chip 0x23 0 --magicid MB2A --appendsigheader applet_t234_aligned.bin zerosbk
[ 0.2576 ] adding BCH for applet_t234_aligned.bin
[ 0.2897 ] tegrasign_v3.py --key None --list applet_t234_aligned_sigheader.bin_list.xml --pubkeyhash pub_key.key --sha sha512
[ 0.2900 ] Assuming zero filled SBK key
[ 0.2935 ] Warning: pub_key.key is not found
[ 0.2933 ] tegrahost_v2 --chip 0x23 0 --updatesigheader applet_t234_aligned_sigheader.bin.encrypt applet_t234_aligned_sigheader.bin.hash zerosbk
[ 0.2957 ] Sending mb2_applet...
[ 0.2967 ] tegrarcm_v2 --chip 0x23 0 --pollbl --download applet applet_t234_sigheader.bin.encrypt
[ 0.2977 ] BL: version 0.32.0.0-t234-54845784-57325615 last_boot_error: 0
[ 0.4514 ] Sending applet
[ 0.5762 ] completed
[ 0.5801 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[ 0.5831 ] MB2 Applet version 01.00.0000
[ 0.8110 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[ 0.8150 ] MB2 Applet version 01.00.0000
[ 0.8479 ] Retrieving board information
[ 0.8513 ] tegrarcm_v2 --chip 0x23 0 --oem platformdetails chip chip_info.bin
[ 0.8547 ] MB2 Applet version 01.00.0000
[ 0.8840 ] Saved platform info in chip_info.bin
[ 0.8900 ] Chip minor revision: 1
[ 0.8908 ] Bootrom revision: 0x7
[ 0.8908 ] Ram code: 0x0
[ 0.8908 ] Chip sku: 0xd2
[ 0.8909 ] Chip Sample: prod
[ 0.8909 ]
[ 0.8920 ] Retrieving EEPROM data
[ 0.8922 ] tegrarcm_v2 --oem platformdetails eeprom cvm /home/zdx/orin/Linux_for_Tegra/bootloader/cvm.bin --chip 0x23 0
[ 0.8965 ] MB2 Applet version 01.00.0000
[ 0.9270 ] Saved platform info in /home/zdx/orin/Linux_for_Tegra/bootloader/cvm.bin
[ 0.9636 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[ 0.9662 ] MB2 Applet version 01.00.0000
[ 1.0004 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[ 1.0039 ] MB2 Applet version 01.00.0000
[ 1.0358 ] Dumping customer Info
[ 1.0394 ] tegrarcm_v2 --chip 0x23 0 --oem dump bct tmp.bct
[ 1.0429 ] MB2 Applet version 01.00.0000
[ 1.0913 ] Saved bct in tmp.bct
[ 1.0996 ] tegrabct_v2 --brbct tmp.bct --chip 0x23 0 --custinfo /home/zdx/orin/Linux_for_Tegra/bootloader/custinfo_out.bin
[ 1.1004 ] C[ 1.1014 ] ustomer data saved in /home/zdx/orin/Linux_for_Tegra/bootloader/custinfo_out.bin successfully
[ 1.1015 ] Rebooting to recovery mode
[ 1.1029 ] tegrarcm_v2 --chip 0x23 0 --ismb2
[ 1.1403 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[ 1.1411 ] MB2 Applet version 01.00.0000
[ 1.1882 ] Booting to recovery mode
[ 1.1898 ] tegrarcm_v2 --chip 0x23 0 --reboot recovery
[ 1.1906 ] MB2 Applet version 01.00.0000
*Parsing board information failed.*