"read rcm_state" error while flashing jetson-agx-orin

******************************************
*                                        *
*  Step 1: Generate rcm boot commandline *
*                                        *
******************************************
/home/mm/Downloads/Linux_for_Tegra/flash.sh  --no-flash --rcm-boot jetson-agx-orin-devkit mmcblk0p1
###############################################################################
# L4T BSP Information:
# R35 , REVISION: 2.1
# User release: 0.0
###############################################################################
copying emc_fuse_dev_params(/home/mm/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-br-bct-diag-boot.dts)... done.
copying device_config(/home/mm/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-device-p3701-0000.dts)... done.
copying misc_config(/home/mm/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-misc-p3701-0000.dts)... done.
./tegraflash.py --chip 0x23 --applet "/home/mm/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-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.0098 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   0.0104 ] File rcm_state open failed
[   0.0104 ] ERROR: failed to read rcm_state
[   0.0104 ] 
[   0.0131 ] tegrasign_v3.py --key None --getmode mode.txt
[   0.0132 ] Assuming zero filled SBK key
[   0.0107 ] Pre-processing config: tegra234-mb1-bct-device-p3701-0000.dts
[   0.0165 ] Pre-processing config: tegra234-mb1-bct-misc-p3701-0000.dts
[   0.0225 ] Parsing partition layout
[   0.0238 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[   0.0249 ] Kernel DTB used: None
[   0.0249 ] WARNING: dce base dtb is not provided

[   0.0249 ] Parsing partition layout
[   0.0255 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[   0.0262 ] Creating list of images to be signed
[   0.0271 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --list images_list.xml zerosbk
[   0.0277 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[   0.0284 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[   0.0286 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[   0.0315 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[   0.0317 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[   0.0362 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[   0.0363 ] adding BCH for mb2_t234_aligned.bin
[   0.0384 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[   0.0467 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[   0.0469 ] adding BCH for mb2_t234_aligned.bin
[   0.0605 ] Filling MB1 storage info
[   0.0606 ] Parsing dev params for multi chains
[   0.0651 ] Generating br-bct
[   0.0663 ] Updating dev and MSS params in BR BCT
[   0.0664 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[   0.0676 ] Updating bl info
[   0.0681 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin
[   0.0686 ] WARNING: boot chain is not completed. set to 0
[   0.0692 ] Generating signatures
[   0.0718 ] tegrasign_v3.py --key None --list images_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.0719 ] Assuming zero filled SBK key
[   0.0822 ] Warning: pub_key.key is not found
[   0.0798 ] Parsing dev params for multi chains
[   0.0799 ] Generating br-bct
[   0.0805 ] Updating dev and MSS params in BR BCT
[   0.0805 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[   0.0812 ] Updating bl info
[   0.0818 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[   0.0823 ] WARNING: boot chain is not completed. set to 0
[   0.0829 ] Get Signed section of bct
[   0.0834 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --listbct bct_list.xml
[   0.0840 ] Signing BCT
[   0.0867 ] tegrasign_v3.py --key None --list bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.0868 ] Assuming zero filled SBK key
[   0.0886 ] Sha saved in br_bct_BR.sha
[   0.0888 ] Warning: pub_key.key is not found
[   0.0862 ] Updating BCT with signature
[   0.0868 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesig bct_list_signed.xml
[   0.0873 ] Offset :4608 Len :3584
[   0.0878 ] Generating SHA2 Hash
[   0.0905 ] tegrasign_v3.py --key None --list bct_list.xml --sha sha512
[   0.0906 ] Assuming zero filled SBK key
[   0.0906 ] Assuming zero filled SBK key
[   0.0979 ] Sha saved in br_bct_BR.sha
[   0.0956 ] Updating BCT with SHA2 Hash
[   0.0965 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesha bct_list_signed.xml
[   0.0971 ] Offset :4608 Len :3584
[   0.0973 ] Offset :68 Len :8124
[   0.0974 ] Generating coldboot mb1-bct
[   0.0980 ] 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.0986 ] MB1-BCT version: 0.9
[   0.0987 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.0991 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.0992 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.0994 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.0996 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.0998 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.0998 ] 
[   0.0998 ] Parsing config file :tegra234-mb1-bct-device-p3701-0000_cpp.dtb 
[   0.0998 ] Added Platform Config 9 data with size :- 100
[   0.0998 ] 
[   0.0999 ] Updating mb1-bct with firmware information
[   0.1005 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_cold_boot_bct_MB1.bct --updatefwinfo readinfo_t234_min_prod.xml.bin
[   0.1022 ] tegrahost_v2 --chip 0x23 0 --align mb1_cold_boot_bct_MB1_aligned.bct
[   0.1034 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_cold_boot_bct_MB1_aligned.bct zerosbk
[   0.1040 ] adding BCH for mb1_cold_boot_bct_MB1_aligned.bct
[   0.1071 ] tegrasign_v3.py --key None --list mb1_cold_boot_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.1072 ] Assuming zero filled SBK key
[   0.1083 ] Warning: pub_key.key is not found
[   0.1065 ] 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.1075 ] Generating recovery mb1-bct
[   0.1081 ] 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.1091 ] MB1-BCT version: 0.9
[   0.1093 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.1099 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.1103 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.1104 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.1104 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.1104 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.1104 ] 
[   0.1104 ] Parsing config file :tegra234-mb1-bct-device-p3701-0000_cpp.dtb 
[   0.1104 ] Added Platform Config 9 data with size :- 100
[   0.1104 ] 
[   0.1105 ] Updating mb1-bct with firmware information
[   0.1116 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_bct_MB1.bct --recov --updatefwinfo readinfo_t234_min_prod.xml.bin
[   0.1138 ] tegrahost_v2 --chip 0x23 0 --align mb1_bct_MB1_aligned.bct
[   0.1152 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_bct_MB1_aligned.bct zerosbk
[   0.1159 ] adding BCH for mb1_bct_MB1_aligned.bct
[   0.1191 ] tegrasign_v3.py --key None --list mb1_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.1192 ] Assuming zero filled SBK key
[   0.1205 ] Warning: pub_key.key is not found
[   0.1185 ] tegrahost_v2 --chip 0x23 0 --updatesigheader mb1_bct_MB1_aligned_sigheader.bct.encrypt mb1_bct_MB1_aligned_sigheader.bct.hash zerosbk
[   0.1194 ] Error: Skip generating mem_bct because sdram_config is not defined
[   0.1194 ] Error: Skip generating mem_bct because sdram_config is not defined
[   0.1194 ] Copying signatures
[   0.1200 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[   0.1230 ] mb1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[   0.1231 ] psc_bl1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[   0.1231 ] Boot Rom communication
[   0.1236 ] 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.1241 ] BR_CID: 0x80012344705DD6E17800000007FD0140
[   0.1250 ] Sending bct_br
[   0.1385 ] 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.
Cleaning up...

My Ubuntu 16.04 host flashed the orin successfully before. What can i do to solve this problem?

Hello,

Welcome to the NVIDIA Developer forums! Your topic will be best served in the Jetson category.

I will move this over for visibility.

Cheers,
Tom

please check

Q: I get a USB timeout error during flash Orin. How to resolve that?

I’ve tried this before, but unfortunately it did not work…

請注意一下你關掉host端的auto suspend之後Jetson端得重新進recovery mode + 重新插拔flash cable.

(base) mm@mm:~/Downloads/Linux_for_Tegra$ cat /sys/module/usbcore/parameters/autosuspend
-1

是的,我重启并重新进入恢复模式了,而且也重新插拔了数据线,但还是报了和之前同样的错误。。

那可能得換一台host測試了

另外請問一下你到底用什麼command進行燒錄?

sudo ./tools/backup_restore/l4t_backup_restore.sh -r jetson-agx-orin-devkit

一开始是想用以前备份的进行烧录,但是不起作用,所以又尝试了:

sudo ./flash.sh jetson-agx-orin-devkit internal

所以我现在只能换一台host尝试了?

只要你看到 " might be timeout in USB write." 是緊接在 "Sending bct_br"之後發生的, 基本上都是host那邊auto suspend的狀況

這個問題也不是第一次有人問. 如果不想換host的話可以多試幾次
比方說host也重新開機. Jetson也拔電重開

另外, 其實我們是沒有支援ubuntu16.04 host燒Orin的. 16.04有沒有其他問題我們不曉得

我现在更换了22.04的主机,看起来orin的信息已经读到了,但是依然有这些问题:

<%>- sudo ./flash.sh jetson-agx-orin-devkit internal
###############################################################################
# L4T BSP Information:
# R35 , REVISION: 2.1
# User release: 0.0
###############################################################################
# Target Board Information:
# Name: jetson-agx-orin-devkit, Board Family: t186ref, SoC: Tegra 234, 
# OpMode: production, Boot Authentication: NS, 
# Disk encryption: disabled ,
###############################################################################
copying emc_fuse_dev_params(/home/mm/下载/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-br-bct-diag-boot.dts)... done.
copying device_config(/home/mm/下载/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-device-p3701-0000.dts)... done.
copying misc_config(/home/mm/下载/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-misc-p3701-0000.dts)... done.
./tegraflash.py --chip 0x23 --applet "/home/mm/下载/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.0178 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   0.0180 ] File rcm_state open failed
[   0.0182 ] ERROR: failed to read rcm_state
[   0.0182 ] 
[   0.0235 ] tegrasign_v3.py --key None --getmode mode.txt
[   0.0236 ] Assuming zero filled SBK key
[   0.0184 ] Pre-processing config: tegra234-mb1-bct-device-p3701-0000.dts
[   0.0382 ] Pre-processing config: tegra234-mb1-bct-misc-p3701-0000.dts
[   0.0467 ] Parsing partition layout
[   0.0473 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[   0.0485 ] Kernel DTB used: None
[   0.0485 ] WARNING: dce base dtb is not provided

[   0.0485 ] Parsing partition layout
[   0.0489 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[   0.0494 ] Creating list of images to be signed
[   0.0497 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --list images_list.xml zerosbk
[   0.0499 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[   0.0509 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[   0.0512 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[   0.0554 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[   0.0557 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[   0.0587 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[   0.0590 ] adding BCH for mb2_t234_aligned.bin
[   0.0607 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[   0.0680 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[   0.0682 ] adding BCH for mb2_t234_aligned.bin
[   0.0777 ] Filling MB1 storage info
[   0.0778 ] Parsing dev params for multi chains
[   0.0825 ] Generating br-bct
[   0.0827 ] Updating dev and MSS params in BR BCT
[   0.0827 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[   0.0831 ] Updating bl info
[   0.0833 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin
[   0.0834 ] WARNING: boot chain is not completed. set to 0
[   0.0840 ] Generating signatures
[   0.0892 ] tegrasign_v3.py --key None --list images_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.0893 ] Assuming zero filled SBK key
[   0.0899 ] Warning: /home/mm/下载/Linux_for_Tegra/bootloader/v3_cmac_7148.out is not found
[   0.0903 ] Traceback (most recent call last):
  File "/home/mm/下载/Linux_for_Tegra/bootloader/tegrasign_v3.py", line 499, in tegrasign
    retVal = sign_files_in_list(p_keylist, internal)
  File "/home/mm/下载/Linux_for_Tegra/bootloader/tegrasign_v3_internal.py", line 287, in sign_files_in_list
    retVal = sign_files_internal(p_keylist, child, pkh, mont, sha_type, iv)
  File "/home/mm/下载/Linux_for_Tegra/bootloader/tegrasign_v3_internal.py", line 119, in sign_files_internal
    write_file(hash_fh, buff_hash)
  File "/home/mm/下载/Linux_for_Tegra/bootloader/tegrasign_v3_util.py", line 675, in write_file
    file_handle.write(data)
TypeError: a bytes-like object is required, not 'str'

[   0.0903 ] Encounter exception when signing
[   0.0903 ] a bytes-like object is required, not 'str'
[   0.0904 ] ********* Error. Quitting. *********
Traceback (most recent call last):
  File "/home/mm/下载/Linux_for_Tegra/bootloader/./tegraflash.py", line 1383, in <module>
    tegraflash_run_commands()
  File "/home/mm/下载/Linux_for_Tegra/bootloader/./tegraflash.py", line 1217, in tegraflash_run_commands
    interpreter.onecmd(command)
  File "/usr/lib/python3.10/cmd.py", line 217, in onecmd
    return func(arg)
  File "/home/mm/下载/Linux_for_Tegra/bootloader/./tegraflash.py", line 855, in do_dump
    self.chip_inst.tegraflash_dump(exports, args)
  File "/home/mm/下载/Linux_for_Tegra/bootloader/tegraflash_impl_t234.py", line 2379, in tegraflash_dump
    self.tegraflash_sign_images()
  File "/home/mm/下载/Linux_for_Tegra/bootloader/tegraflash_impl_t234.py", line 561, in tegraflash_sign_images
    dce_bin = self.get_file_name_from_images_list('dce_fw')
  File "/home/mm/下载/Linux_for_Tegra/bootloader/tegraflash_impl_t234.py", line 3195, in get_file_name_from_images_list
    with open(self.tegrahost_values['--signed_list'], 'r') as file:
FileNotFoundError: [Errno 2] No such file or directory: 'images_list_signed.xml'

路徑裡面不要有中文

似乎没有“might be timeout in USB write.”的问题了,但是有了新的问题:

-<%>- sudo ./flash.sh jetson-agx-orin-devkit internal
###############################################################################
# L4T BSP Information:
# R35 , REVISION: 2.1
# User release: 0.0
###############################################################################
# Target Board Information:
# Name: jetson-agx-orin-devkit, Board Family: t186ref, SoC: Tegra 234, 
# OpMode: production, Boot Authentication: NS, 
# Disk encryption: disabled ,
###############################################################################
copying emc_fuse_dev_params(/home/mm/orin_flash/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-br-bct-diag-boot.dts)... done.
copying device_config(/home/mm/orin_flash/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-device-p3701-0000.dts)... done.
copying misc_config(/home/mm/orin_flash/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-misc-p3701-0000.dts)... done.
./tegraflash.py --chip 0x23 --applet "/home/mm/orin_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-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.0056 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   0.0058 ] File rcm_state open failed
[   0.0060 ] ERROR: failed to read rcm_state
[   0.0061 ] 
[   0.0080 ] tegrasign_v3.py --key None --getmode mode.txt
[   0.0080 ] Assuming zero filled SBK key
[   0.0063 ] Pre-processing config: tegra234-mb1-bct-device-p3701-0000.dts
[   0.0105 ] Pre-processing config: tegra234-mb1-bct-misc-p3701-0000.dts
[   0.0173 ] Parsing partition layout
[   0.0176 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[   0.0182 ] Kernel DTB used: None
[   0.0182 ] WARNING: dce base dtb is not provided

[   0.0182 ] Parsing partition layout
[   0.0184 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[   0.0187 ] Creating list of images to be signed
[   0.0189 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --list images_list.xml zerosbk
[   0.0190 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[   0.0197 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[   0.0199 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[   0.0229 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[   0.0231 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[   0.0260 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[   0.0261 ] adding BCH for mb2_t234_aligned.bin
[   0.0285 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[   0.0367 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[   0.0369 ] adding BCH for mb2_t234_aligned.bin
[   0.0484 ] Filling MB1 storage info
[   0.0484 ] Parsing dev params for multi chains
[   0.0530 ] Generating br-bct
[   0.0533 ] Updating dev and MSS params in BR BCT
[   0.0533 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[   0.0537 ] Updating bl info
[   0.0538 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin
[   0.0539 ] WARNING: boot chain is not completed. set to 0
[   0.0544 ] Generating signatures
[   0.0563 ] tegrasign_v3.py --key None --list images_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.0563 ] Assuming zero filled SBK key
[   0.0613 ] Warning: pub_key.key is not found
[   0.0596 ] Parsing dev params for multi chains
[   0.0596 ] Generating br-bct
[   0.0597 ] Updating dev and MSS params in BR BCT
[   0.0598 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[   0.0601 ] Updating bl info
[   0.0604 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[   0.0605 ] WARNING: boot chain is not completed. set to 0
[   0.0610 ] Get Signed section of bct
[   0.0612 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --listbct bct_list.xml
[   0.0615 ] Signing BCT
[   0.0634 ] tegrasign_v3.py --key None --list bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.0635 ] Assuming zero filled SBK key
[   0.0644 ] Sha saved in br_bct_BR.sha
[   0.0645 ] Warning: pub_key.key is not found
[   0.0627 ] Updating BCT with signature
[   0.0628 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesig bct_list_signed.xml
[   0.0629 ] Offset :4608 Len :3584
[   0.0632 ] Generating SHA2 Hash
[   0.0650 ] tegrasign_v3.py --key None --list bct_list.xml --sha sha512
[   0.0651 ] Assuming zero filled SBK key
[   0.0651 ] Assuming zero filled SBK key
[   0.0660 ] Sha saved in br_bct_BR.sha
[   0.0642 ] Updating BCT with SHA2 Hash
[   0.0643 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesha bct_list_signed.xml
[   0.0645 ] Offset :4608 Len :3584
[   0.0647 ] Offset :68 Len :8124
[   0.0647 ] Generating coldboot mb1-bct
[   0.0649 ] 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.0650 ] MB1-BCT version: 0.9
[   0.0651 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.0655 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.0657 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.0659 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.0662 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.0664 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.0664 ] 
[   0.0664 ] Parsing config file :tegra234-mb1-bct-device-p3701-0000_cpp.dtb 
[   0.0664 ] Added Platform Config 9 data with size :- 100
[   0.0664 ] 
[   0.0664 ] Updating mb1-bct with firmware information
[   0.0666 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_cold_boot_bct_MB1.bct --updatefwinfo readinfo_t234_min_prod.xml.bin
[   0.0671 ] tegrahost_v2 --chip 0x23 0 --align mb1_cold_boot_bct_MB1_aligned.bct
[   0.0674 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_cold_boot_bct_MB1_aligned.bct zerosbk
[   0.0675 ] adding BCH for mb1_cold_boot_bct_MB1_aligned.bct
[   0.0699 ] tegrasign_v3.py --key None --list mb1_cold_boot_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.0699 ] Assuming zero filled SBK key
[   0.0704 ] Warning: pub_key.key is not found
[   0.0688 ] 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.0692 ] Generating recovery mb1-bct
[   0.0693 ] 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.0695 ] MB1-BCT version: 0.9
[   0.0696 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.0699 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.0702 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.0704 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.0706 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.0708 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported

[   0.0711 ] Parsing config file :tegra234-mb1-bct-device-p3701-0000_cpp.dtb 
[   0.0712 ] Added Platform Config 9 data with size :- 100
[   0.0712 ] 
[   0.0712 ] Updating mb1-bct with firmware information
[   0.0713 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_bct_MB1.bct --recov --updatefwinfo readinfo_t234_min_prod.xml.bin
[   0.0718 ] tegrahost_v2 --chip 0x23 0 --align mb1_bct_MB1_aligned.bct
[   0.0722 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_bct_MB1_aligned.bct zerosbk
[   0.0723 ] adding BCH for mb1_bct_MB1_aligned.bct
[   0.0746 ] tegrasign_v3.py --key None --list mb1_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.0747 ] Assuming zero filled SBK key
[   0.0753 ] Warning: pub_key.key is not found
[   0.0736 ] tegrahost_v2 --chip 0x23 0 --updatesigheader mb1_bct_MB1_aligned_sigheader.bct.encrypt mb1_bct_MB1_aligned_sigheader.bct.hash zerosbk
[   0.0741 ] Error: Skip generating mem_bct because sdram_config is not defined
[   0.0741 ] Error: Skip generating mem_bct because sdram_config is not defined
[   0.0741 ] Copying signatures
[   0.0743 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[   0.0774 ] mb1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[   0.0775 ] psc_bl1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[   0.0775 ] Boot Rom communication
[   0.0778 ] 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.0779 ] BR_CID: 0x80012344705DD6E17800000007FD0140
[   0.1093 ] Sending bct_br
[   0.1526 ] Sending mb1
[   0.1533 ] Sending psc_bl1
[   0.1626 ] Sending bct_mb1
[   0.1683 ] Boot Rom communication completed
[   0.1698 ] tegrahost_v2 --chip 0x23 0 --align applet_t234_aligned.bin
[   0.1714 ] tegrahost_v2 --chip 0x23 0 --magicid MB2A --appendsigheader applet_t234_aligned.bin zerosbk
[   0.1718 ] adding BCH for applet_t234_aligned.bin
[   0.1896 ] tegrasign_v3.py --key None --list applet_t234_aligned_sigheader.bin_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.1898 ] Assuming zero filled SBK key
[   0.1915 ] Warning: pub_key.key is not found
[   0.1901 ] tegrahost_v2 --chip 0x23 0 --updatesigheader applet_t234_aligned_sigheader.bin.encrypt applet_t234_aligned_sigheader.bin.hash zerosbk
[   0.1915 ] Sending mb2_applet...

[   0.1919 ] tegrarcm_v2 --chip 0x23 0 --pollbl --download applet applet_t234_sigheader.bin.encrypt
[   0.1923 ] BL: version 0.28.0.0-t234-54845784-ec016368 last_boot_error: 0
[   0.3649 ] Sending applet
[   0.4790 ] completed
[   0.4798 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   0.4806 ] MB2 Applet version 01.00.0000
[   0.6678 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   0.6686 ] MB2 Applet version 01.00.0000
[   0.7037 ] Retrieving board information
[   0.7039 ] tegrarcm_v2 --chip 0x23 0 --oem platformdetails chip chip_info.bin
[   0.7041 ] MB2 Applet version 01.00.0000
[   0.7511 ] Saved platform info in chip_info.bin
[   0.7564 ] Chip minor revision: 1
[   0.7566 ] Bootrom revision: 0x7
[   0.7568 ] Ram code: 0x3
[   0.7569 ] Chip sku: 0xd0
[   0.7572 ] Chip Sample: prod
[   0.7572 ] 
[   0.7576 ] Retrieving EEPROM data
[   0.7576 ] tegrarcm_v2 --oem platformdetails eeprom cvm /home/mm/orin_flash/Linux_for_Tegra/bootloader/cvm.bin --chip 0x23 0
[   0.7580 ] MB2 Applet version 01.00.0000
[   0.8067 ] Saved platform info in /home/mm/orin_flash/Linux_for_Tegra/bootloader/cvm.bin
[   0.8401 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   0.8407 ] MB2 Applet version 01.00.0000
[   0.8754 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   0.8759 ] MB2 Applet version 01.00.0000
[   0.9231 ] Dumping customer Info
[   0.9236 ] tegrarcm_v2 --chip 0x23 0 --oem dump bct tmp.bct
[   0.9238 ] MB2 Applet version 01.00.0000
[   0.9707 ] Saved bct in tmp.bct
[   0.9787 ] tegrabct_v2 --brbct tmp.bct --chip 0x23 0 --custinfo /home/mm/orin_flash/Linux_for_Tegra/bootloader/custinfo_out.bin
[   0.9793 ] Custom[   0.9799 ] er data saved in /home/mm/orin_flash/Linux_for_Tegra/bootloader/custinfo_out.bin successfully
[   0.9799 ] Rebooting to recovery mode
[   0.9806 ] tegrarcm_v2 --chip 0x23 0 --ismb2
[   1.0115 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   1.0121 ] MB2 Applet version 01.00.0000
[   1.0588 ] Booting to recovery mode
[   1.0596 ] tegrarcm_v2 --chip 0x23 0 --reboot recovery
[   1.0601 ] MB2 Applet version 01.00.0000
Parsing board information failed.

請問以前在rel-35.2.1有燒過同一顆module嗎

肯定是烧录过的。这里是sudo dmesg -w的输出,是否是硬件出现了异常呢?
error.log (142.0 KB)

燒錄失敗的時候抓一下serial console log.

我使用 sudo minicom -D /dev/ttyACM0 -8 -b 115200尝试抓包。
但使用 echo “test” | sudo tee /dev/ttyACM0 >/dev/null 也没有看到minicom有任何"test"相关的输出。

你可以試試看在非recovery mode的狀況下打開電源的話有沒有log嗎?

通常第一次抓uart log都是接錯port或是設定錯誤.

請注意一下如果你是devkit, 要接在micro usb port. 不能接type C.

嗯,我用的是micro usb,非recovery mode下确实是能看到log的。

而且我还看到部分错误日志:

[  318.701807] nvgpu: 17000000.ga10b                nvgpu_pmu_cmd_post:591  [ERR]  FBQ cmd setup failed
[  318.711219] nvgpu: 17000000.ga10b             nvgpu_pmu_rpc_execute:713  [ERR]  Failed to execute RPC status=0xfffffff4, func=0x3
[  318.723218] nvgpu: 17000000.ga10b gv100_pmu_lsfm_bootstrap_ls_falcon:95   [ERR]  Failed to execute RPC, status=0xfffffff4
[  318.734499] nvgpu: 17000000.ga10b nvgpu_pmu_lsfm_bootstrap_ls_falcon:128  [ERR]  LSF Load failed
[  318.743531] nvgpu: 17000000.ga10b nvgpu_gr_falcon_load_secure_ctxsw_ucode:714  [ERR]  Unable to recover GR falcon
[  318.754096] nvgpu: 17000000.ga10b        nvgpu_gr_falcon_init_ctxsw:159  [ERR]  fail
[  318.762072] nvgpu: 17000000.ga10b nvgpu_cic_mon_report_err_safety_services:92   [ERR]  Error reporting is not supported in this platform
[  318.774679] nvgpu: 17000000.ga10b      gr_init_ctxsw_falcon_support:833  [ERR]  FECS context switch init error
[  318.784956] nvgpu: 17000000.ga10b            nvgpu_finalize_poweron:1010 [ERR]  Failed initialization for: g->ops.gr.gr_init_support
[  318.823454] nvgpu: 17000000.ga10b                 gk20a_power_write:127  [ERR]  power_node_write failed at busy
[  318.889905] nvgpu: 17000000.ga10b                nvgpu_pmu_cmd_post:591  [ERR]  FBQ cmd setup failed
[  318.899344] nvgpu: 17000000.ga10b             nvgpu_pmu_rpc_execute:713  [ERR]  Failed to execute RPC status=0xfffffff4, func=0x3
[  318.911340] nvgpu: 17000000.ga10b gv100_pmu_lsfm_bootstrap_ls_falcon:95   [ERR]  Failed to execute RPC, status=0xfffffff4
[  318.922617] nvgpu: 17000000.ga10b nvgpu_pmu_lsfm_bootstrap_ls_falcon:128  [ERR]  LSF Load failed
[  318.931654] nvgpu: 17000000.ga10b nvgpu_gr_falcon_load_secure_ctxsw_ucode:714  [ERR]  Unable to recover GR falcon
[  318.942220] nvgpu: 17000000.ga10b        nvgpu_gr_falcon_init_ctxsw:159  [ERR]  fail
[  318.950198] nvgpu: 17000000.ga10b nvgpu_cic_mon_report_err_safety_services:92   [ERR]  Error reporting is not supported in this platform
[  318.962810] nvgpu: 17000000.ga10b      gr_init_ctxsw_falcon_support:833  [ERR]  FECS context switch init error
[  318.973109] nvgpu: 17000000.ga10b            nvgpu_finalize_poweron:1010 [ERR]  Failed initialization for: g->ops.gr.gr_init_support
[  319.011648] nvgpu: 17000000.ga10b                 gk20a_power_write:127  [ERR]  power_node_write failed at busy
[  319.321998] nvgpu: 17000000.ga10b                nvgpu_pmu_cmd_post:591  [ERR]  FBQ cmd setup failed
[  319.331410] nvgpu: 17000000.ga10b             nvgpu_pmu_rpc_execute:713  [ERR]  Failed to execute RPC status=0xfffffff4, func=0x3
[  319.343428] nvgpu: 17000000.ga10b gv100_pmu_lsfm_bootstrap_ls_falcon:95   [ERR]  Failed to execute RPC, status=0xfffffff4
[  319.354700] nvgpu: 17000000.ga10b nvgpu_pmu_lsfm_bootstrap_ls_falcon:128  [ERR]  LSF Load failed
[  319.363737] nvgpu: 17000000.ga10b nvgpu_gr_falcon_load_secure_ctxsw_ucode:714  [ERR]  Unable to recover GR falcon
[  319.374307] nvgpu: 17000000.ga10b        nvgpu_gr_falcon_init_ctxsw:159  [ERR]  fail
[  319.382283] nvgpu: 17000000.ga10b nvgpu_cic_mon_report_err_safety_services:92   [ERR]  Error reporting is not supported in this platform
[  319.394912] nvgpu: 17000000.ga10b      gr_init_ctxsw_falcon_support:833  [ERR]  FECS context switch init error
[  319.405211] nvgpu: 17000000.ga10b            nvgpu_finalize_poweron:1010 [ERR]  Failed initialization for: g->ops.gr.gr_init_support
[  319.442096] nvgpu: 17000000.ga10b                 gk20a_power_write:127  [ERR]  power_node_write failed at busy
[  319.506054] nvgpu: 17000000.ga10b                nvgpu_pmu_cmd_post:591  [ERR]  FBQ cmd setup failed
[  319.515466] nvgpu: 17000000.ga10b             nvgpu_pmu_rpc_execute:713  [ERR]  Failed to execute RPC status=0xfffffff4, func=0x3
[  319.527462] nvgpu: 17000000.ga10b gv100_pmu_lsfm_bootstrap_ls_falcon:95   [ERR]  Failed to execute RPC, status=0xfffffff4
[  319.538740] nvgpu: 17000000.ga10b nvgpu_pmu_lsfm_bootstrap_ls_falcon:128  [ERR]  LSF Load failed
[  319.547776] nvgpu: 17000000.ga10b nvgpu_gr_falcon_load_secure_ctxsw_ucode:714  [ERR]  Unable to recover GR falcon
[  319.558345] nvgpu: 17000000.ga10b        nvgpu_gr_falcon_init_ctxsw:159  [ERR]  fail
[  319.566317] nvgpu: 17000000.ga10b nvgpu_cic_mon_report_err_safety_services:92   [ERR]  Error reporting is not supported in this platform
[  319.578932] nvgpu: 17000000.ga10b      gr_init_ctxsw_falcon_support:833  [ERR]  FECS context switch init error
[  319.589237] nvgpu: 17000000.ga10b            nvgpu_finalize_poweron:1010 [ERR]  Failed initialization for: g->ops.gr.gr_init_support
[  319.628270] nvgpu: 17000000.ga10b                 gk20a_power_write:127  [ERR]  power_node_write failed at busy