Getting File rcm_staste open Failed when flashing Jetson Orin card from Ubuntu 20.4.4 standalone

I am getting the following log when trying to flash Jetson Orin Developer Kit with Nvidia card mounted. Same error with Ubuntu 22.04.4.

t@t-VivoBook-ASUSLaptop-M1603QA-M1603QA:~/Downloads/Linux_for_Tegra$ sudo ./flash.sh jetson-orin-nano-devkit-nvme internal
###############################################################################
# L4T BSP Information:
# R35 , REVISION: 3.1
# User release: 0.0
###############################################################################
# Target Board Information:
# Name: jetson-orin-nano-devkit-nvme, Board Family: t186ref, SoC: Tegra 234, 
# OpMode: production, Boot Authentication: NS, 
# Disk encryption: disabled ,
###############################################################################
copying emc_fuse_dev_params(/home/t/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-br-bct-diag-boot.dts)... done.
copying device_config(/home/traysa/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-device-p3767-0000.dts)... done.
copying misc_config(/home/t/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-misc-p3767-0000.dts)... done.
./tegraflash.py --chip 0x23 --applet "/home/t/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.0258 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   0.0263 ] File rcm_state open failed
[   0.0267 ] ERROR: failed to read rcm_state
[   0.0267 ] 
[   0.0300 ] tegrasign_v3.py --key None --getmode mode.txt
[   0.0302 ] Assuming zero filled SBK key
[   0.0270 ] Pre-processing config: tegra234-mb1-bct-device-p3767-0000.dts
[   0.0370 ] Pre-processing config: tegra234-mb1-bct-misc-p3767-0000.dts
[   0.0510 ] Parsing partition layout
[   0.0515 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[   0.0530 ] Kernel DTB used: None
[   0.0530 ] WARNING: dce base dtb is not provided

[   0.0530 ] Parsing partition layout
[   0.0535 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[   0.0544 ] Creating list of images to be signed
[   0.0550 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --list images_list.xml zerosbk
[   0.0554 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[   0.0589 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[   0.0592 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[   0.0657 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[   0.0664 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[   0.0728 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[   0.0732 ] adding BCH for mb2_t234_aligned.bin
[   0.0778 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[   0.0944 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[   0.0947 ] adding BCH for mb2_t234_aligned.bin
[   0.1154 ] Filling MB1 storage info
[   0.1154 ] Parsing dev params for multi chains
[   0.1262 ] Generating br-bct
[   0.1267 ] Updating dev and MSS params in BR BCT
[   0.1267 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[   0.1277 ] Updating bl info
[   0.1282 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin
[   0.1286 ] WARNING: boot chain is not completed. set to 0
[   0.1300 ] Generating signatures
[   0.1334 ] tegrasign_v3.py --key None --list images_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.1336 ] Assuming zero filled SBK key
[   0.1504 ] Warning: pub_key.key is not found
[   0.1473 ] Parsing dev params for multi chains
[   0.1474 ] Generating br-bct
[   0.1479 ] Updating dev and MSS params in BR BCT
[   0.1479 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[   0.1489 ] Updating bl info
[   0.1494 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[   0.1499 ] WARNING: boot chain is not completed. set to 0
[   0.1517 ] Get Signed section of bct
[   0.1522 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --listbct bct_list.xml
[   0.1531 ] Signing BCT
[   0.1564 ] tegrasign_v3.py --key None --list bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.1566 ] Assuming zero filled SBK key
[   0.1595 ] Sha saved in br_bct_BR.sha
[   0.1598 ] Warning: pub_key.key is not found
[   0.1564 ] Updating BCT with signature
[   0.1569 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesig bct_list_signed.xml
[   0.1573 ] Offset :4608 Len :3584
[   0.1581 ] Generating SHA2 Hash
[   0.1615 ] tegrasign_v3.py --key None --list bct_list.xml --sha sha512
[   0.1616 ] Assuming zero filled SBK key
[   0.1616 ] Assuming zero filled SBK key
[   0.1642 ] Sha saved in br_bct_BR.sha
[   0.1611 ] Updating BCT with SHA2 Hash
[   0.1615 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesha bct_list_signed.xml
[   0.1619 ] Offset :4608 Len :3584
[   0.1624 ] Offset :68 Len :8124
[   0.1627 ] Generating coldboot mb1-bct
[   0.1632 ] 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.1636 ] MB1-BCT version: 0.10
[   0.1641 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.1644 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.1647 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.1650 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.1654 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.1654 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.1654 ] ERROR: /misc/tsc_controls/tsc_locking_config is not supported
[   0.1654 ] ERROR: /misc/tsc_controls/tsc_locking_diff_configuration is not supported
[   0.1654 ] ERROR: /misc/tsc_controls/tsc_locking_ref_frequency_configuration is not supported
[   0.1654 ] ERROR: /misc/tsc_controls/tsc_locking_control is not supported
[   0.1654 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_configuration is not supported
[   0.1654 ] ERROR: /misc/tsc_controls/tsc_locking_fast_adjust_configuration is not supported
[   0.1654 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_delta_control is not supported
[   0.1654 ] ERROR: /misc/tsc_controls/tsc_capture_control_ptx is not supported
[   0.1654 ] ERROR: /misc/tsc_controls/tsc_capture_config_ptx is not supported
[   0.1654 ] ERROR: /misc/tsc_controls/tsc_stscrsr is not supported
[   0.1654 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_num_control is not supported
[   0.1654 ] 
[   0.1655 ] Parsing config file :tegra234-mb1-bct-device-p3767-0000_cpp.dtb 
[   0.1655 ] Added Platform Config 9 data with size :- 100
[   0.1655 ] 
[   0.1655 ] Updating mb1-bct with firmware information
[   0.1659 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_cold_boot_bct_MB1.bct --updatefwinfo readinfo_t234_min_prod.xml.bin
[   0.1673 ] tegrahost_v2 --chip 0x23 0 --align mb1_cold_boot_bct_MB1_aligned.bct
[   0.1684 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_cold_boot_bct_MB1_aligned.bct zerosbk
[   0.1688 ] adding BCH for mb1_cold_boot_bct_MB1_aligned.bct
[   0.1732 ] tegrasign_v3.py --key None --list mb1_cold_boot_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.1733 ] Assuming zero filled SBK key
[   0.1748 ] Warning: pub_key.key is not found
[   0.1720 ] 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.1732 ] Generating recovery mb1-bct
[   0.1737 ] 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.1741 ] MB1-BCT version: 0.10
[   0.1744 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.1749 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.1753 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.1756 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.1759 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.1761 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.1761 ] ERROR: /misc/tsc_controls/tsc_locking_config is not supported
[   0.1762 ] ERROR: /misc/tsc_controls/tsc_locking_diff_configuration is not supported
[   0.1762 ] ERROR: /misc/tsc_controls/tsc_locking_ref_frequency_configuration is not supported
[   0.1762 ] ERROR: /misc/tsc_controls/tsc_locking_control is not supported
[   0.1762 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_configuration is not supported
[   0.1762 ] ERROR: /misc/tsc_controls/tsc_locking_fast_adjust_configuration is not supported
[   0.1762 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_delta_control is not supported
[   0.1762 ] ERROR: /misc/tsc_controls/tsc_capture_control_ptx is not supported
[   0.1762 ] ERROR: /misc/tsc_controls/tsc_capture_config_ptx is not supported
[   0.1762 ] ERROR: /misc/tsc_controls/tsc_stscrsr is not supported
[   0.1762 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_num_control is not supported
[   0.1762 ] 
[   0.1762 ] Parsing config file :tegra234-mb1-bct-device-p3767-0000_cpp.dtb 
[   0.1762 ] Added Platform Config 9 data with size :- 100
[   0.1762 ] 
[   0.1762 ] Updating mb1-bct with firmware information
[   0.1766 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_bct_MB1.bct --recov --updatefwinfo readinfo_t234_min_prod.xml.bin
[   0.1783 ] tegrahost_v2 --chip 0x23 0 --align mb1_bct_MB1_aligned.bct
[   0.1793 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_bct_MB1_aligned.bct zerosbk
[   0.1796 ] adding BCH for mb1_bct_MB1_aligned.bct
[   0.1845 ] tegrasign_v3.py --key None --list mb1_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.1848 ] Assuming zero filled SBK key
[   0.1864 ] Warning: pub_key.key is not found
[   0.1836 ] tegrahost_v2 --chip 0x23 0 --updatesigheader mb1_bct_MB1_aligned_sigheader.bct.encrypt mb1_bct_MB1_aligned_sigheader.bct.hash zerosbk
[   0.1849 ] Error: Skip generating mem_bct because sdram_config is not defined
[   0.1849 ] Error: Skip generating mem_bct because sdram_config is not defined
[   0.1849 ] Copying signatures
[   0.1853 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[   0.1935 ] mb1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[   0.1937 ] psc_bl1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[   0.1937 ] Boot Rom communication
[   0.1942 ] 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.1947 ] BR_CID: 0x80012344705DE6C408000000060201C0
[   0.2585 ] Sending bct_br
[   0.3128 ] Sending mb1
[   0.3137 ] Sending psc_bl1
[   0.3253 ] Sending bct_mb1
[   0.3310 ] Boot Rom communication completed
[   0.3331 ] tegrahost_v2 --chip 0x23 0 --align applet_t234_aligned.bin
[   0.3344 ] tegrahost_v2 --chip 0x23 0 --magicid MB2A --appendsigheader applet_t234_aligned.bin zerosbk
[   0.3349 ] adding BCH for applet_t234_aligned.bin
[   0.3506 ] tegrasign_v3.py --key None --list applet_t234_aligned_sigheader.bin_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.3508 ] Assuming zero filled SBK key
[   0.3537 ] Warning: pub_key.key is not found
[   0.3511 ] tegrahost_v2 --chip 0x23 0 --updatesigheader applet_t234_aligned_sigheader.bin.encrypt applet_t234_aligned_sigheader.bin.hash zerosbk
[   0.3539 ] Sending mb2_applet...

[   0.3544 ] tegrarcm_v2 --chip 0x23 0 --pollbl --download applet applet_t234_sigheader.bin.encrypt
[   0.3548 ] BL: version 0.32.0.0-t234-54845784-57325615 last_boot_error: 3086855967
[   0.5419 ] Sending applet
[   0.6557 ] completed
[   0.6566 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   0.6571 ] MB2 Applet version 01.00.0000
[   0.8694 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   0.8699 ] MB2 Applet version 01.00.0000
[   0.9273 ] Retrieving board information
[   0.9278 ] tegrarcm_v2 --chip 0x23 0 --oem platformdetails chip chip_info.bin
[   0.9283 ] MB2 Applet version 01.00.0000
[   0.9865 ] Saved platform info in chip_info.bin
[   0.9926 ] Chip minor revision: 1
[   0.9928 ] Bootrom revision: 0x7
[   0.9930 ] Ram code: 0x0
[   0.9932 ] Chip sku: 0xd3
[   0.9932 ] Chip Sample: prod
[   0.9932 ] 
[   0.9936 ] Retrieving EEPROM data
[   0.9937 ] tegrarcm_v2 --oem platformdetails eeprom cvm /home/t/Downloads/Linux_for_Tegra/bootloader/cvm.bin --chip 0x23 0
[   0.9943 ] MB2 Applet version 01.00.0000
[   1.0585 ] Saved platform info in /home/traysa/Downloads/Linux_for_Tegra/bootloader/cvm.bin
[   1.0917 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   1.0922 ] MB2 Applet version 01.00.0000
[   1.1515 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   1.1523 ] MB2 Applet version 01.00.0000
[   1.2106 ] Dumping customer Info
[   1.2113 ] tegrarcm_v2 --chip 0x23 0 --oem dump bct tmp.bct
[   1.2118 ] MB2 Applet version 01.00.0000
[   1.2704 ] Saved bct in tmp.bct
[   1.2783 ] tegrabct_v2 --brbct tmp.bct --chip 0x23 0 --custinfo /home/t/Downloads/Linux_for_Tegra/bootloader/custinfo_out.bin
[   1.2788 ] Customer [   1.2793 ] data saved in /home/t/Downloads/Linux_for_Tegra/bootloader/custinfo_out.bin successfully
[   1.2794 ] Rebooting to recovery mode
[   1.2799 ] tegrarcm_v2 --chip 0x23 0 --ismb2
[   1.3391 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   1.3395 ] MB2 Applet version 01.00.0000
[   1.3983 ] Booting to recovery mode
[   1.3990 ] tegrarcm_v2 --chip 0x23 0 --reboot recovery
[   1.3995 ] MB2 Applet version 01.00.0000
./flash.sh: line 829: warning: command substitution: ignored null byte in input
Board ID(3767) version(500) sku(0000) revision()
Chip SKU(00:00:00:D3) ramcode(00:00:00:00) fuselevel(fuselevel_production) board_FAB(500)
emc_opt_disable_fuse:(0)
Copy /home/t/Downloads/Linux_for_Tegra/kernel/dtb/tegra234-p3767-0000-p3768-0000-a0.dtb to /home/traysa/Downloads/Linux_for_Tegra/kernel/dtb/tegra234-p3767-0000-p3768-0000-a0.dtb.rec
Using UUID 2a1c138c-0c10-4b70-928a-c934c5d94c85 for mounting root APP partition.
copying bctfile(/home/t/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-p3767-0000-sdram-l4t.dts)... done.
copying minratchet_config(/home/t/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-ratchet-p3767-0000.dts)... done.
copying device_config(/home/t/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-device-p3767-0000.dts)... done.
copying misc_config(/home/tDownloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-misc-p3767-0000.dts)... done.
copying pinmux_config(/home/t/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-pinmux-p3767-dp-a03.dtsi)... done.
copying gpioint_config(/home/t/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-gpioint-p3767-0000.dts)... done.
copying pmic_config(/home/t/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-pmic-p3767-0000-a02.dts)... done.
copying pmc_config(/home/tDownloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-padvoltage-p3767-dp-a03.dtsi)... done.
copying deviceprod_config(/home/traysa/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-cprod-p3767-0000.dts)... done.
copying prod_config(/home/t/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-prod-p3767-0000.dts)... done.
copying scr_config(/home/t/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb2-bct-scr-p3767-0000.dts)... done.
copying wb0sdram(/home/t/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-p3767-0000-wb0sdram-l4t.dts)... done.
copying bootrom_config(/home/t/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-reset-p3767-0000.dts)... done.
Existing uphylane_config(/home/t/Downloads/Linux_for_Tegra/bootloader/tegra234-mb1-bct-uphylane-si.dtsi) reused.
copying dev_params(/home/tDownloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-br-bct-p3767-0000-l4t.dts)... done.
copying dev_params_b(/home/t/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-br-bct_b-p3767-0000-l4t.dts)... done.
copying mb2bct_cfg(/home/t/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb2-bct-misc-p3767-0000.dts)... done.
Existing pscfwfile(/home/t/Downloads/Linux_for_Tegra/bootloader/pscfw_t234_prod.bin) reused.
Existing pscbl1file(/home/t/Downloads/Linux_for_Tegra/bootloader/psc_bl1_t234_prod.bin) reused.
Existing mtsmcefile(/home/t/Downloads/Linux_for_Tegra/bootloader/mce_flash_o10_cr_prod.bin) reused.
Existing mb2applet(/home/t/Downloads/Linux_for_Tegra/bootloader/applet_t234.bin) reused.
Existing bootloader(/home/t/Downloads/Linux_for_Tegra/bootloader/mb2_t234.bin) reused.
copying initrd(/home/t/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/t/Downloads/Linux_for_Tegra/bootloader/ramdisk_tmp /home/t/Downloads/Linux_for_Tegra/bootloader /home/t/Downloads/Linux_for_Tegra
39726 blocks

gzip: /home/traysa/Downloads/Linux_for_Tegra/kernel/Image: not in gzip format
/home/t/Downloads/Linux_for_Tegra/tools/ota_tools/version_upgrade/ota_make_recovery_img_dtb.sh: line 177: strings: command not found
ERROR: failed to get kernel version from /home/t/Downloads/Linux_for_Tegra/kernel/Image

The log already told you.

sudo apt update
sudo apt install binutils

Thanks! That worked.

1 Like

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