Unable to flash my jetson orin Nano som from Ubuntu 20.04 PC

When i try to flash my orin nano using the below command
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -c tools/kernel_flash/flash_l4t_external.xml -p "-c bootloader/t186ref/cfg/flash_t234_qspi.xml" --showlogs --network usb0 jetson-orin-nano-devkit internal

i get the error shown below.

************************************
*                                  *
*  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/vkchlt0616/NVIDIA/FWSU_CSBD/Jetpack5.1.1/test/Linux_for_Tegra/flash.sh --no-flash --sign  -c bootloader/t186ref/cfg/flash_t234_qspi.xml jetson-orin-nano-devkit internal

###############################################################################
# L4T BSP Information:
# R35 , REVISION: 3.1
# User release: 0.0
/home/vkchlt0616/NVIDIA/FWSU_CSBD/Jetpack5.1.1/test/Linux_for_Tegra/flash.sh: line 1705: /home/vkchlt0616/NVIDIA/FWSU_CSBD/Jetpack5.1.1/test/Linux_for_Tegra/rootfs/etc/user_release_version: No such file or directory
###############################################################################
copying emc_fuse_dev_params(/home/vkchlt0616/NVIDIA/FWSU_CSBD/Jetpack5.1.1/test/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-br-bct-diag-boot.dts)... done.
copying device_config(/home/vkchlt0616/NVIDIA/FWSU_CSBD/Jetpack5.1.1/test/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-device-p3767-0000.dts)... done.
copying misc_config(/home/vkchlt0616/NVIDIA/FWSU_CSBD/Jetpack5.1.1/test/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-misc-p3767-0000.dts)... done.
./tegraflash.py --chip 0x23 --applet "/home/vkchlt0616/NVIDIA/FWSU_CSBD/Jetpack5.1.1/test/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.0116 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   0.0122 ] File rcm_state open failed
[   0.0124 ] ERROR: failed to read rcm_state
[   0.0124 ] 
[   0.0140 ] tegrasign_v3.py --key None --getmode mode.txt
[   0.0141 ] Assuming zero filled SBK key
[   0.0127 ] Pre-processing config: tegra234-mb1-bct-device-p3767-0000.dts
[   0.0197 ] Pre-processing config: tegra234-mb1-bct-misc-p3767-0000.dts
[   0.0296 ] Parsing partition layout
[   0.0302 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[   0.0313 ] Kernel DTB used: None
[   0.0313 ] WARNING: dce base dtb is not provided

[   0.0313 ] Parsing partition layout
[   0.0325 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[   0.0332 ] Creating list of images to be signed
[   0.0339 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --list images_list.xml zerosbk
[   0.0344 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[   0.0350 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[   0.0351 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[   0.0385 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[   0.0386 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[   0.0422 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[   0.0423 ] adding BCH for mb2_t234_aligned.bin
[   0.0440 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[   0.0524 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[   0.0526 ] adding BCH for mb2_t234_aligned.bin
[   0.0628 ] Filling MB1 storage info
[   0.0629 ] Parsing dev params for multi chains
[   0.0707 ] Generating br-bct
[   0.0718 ] Updating dev and MSS params in BR BCT
[   0.0718 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[   0.0732 ] Updating bl info
[   0.0739 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin
[   0.0744 ] WARNING: boot chain is not completed. set to 0
[   0.0749 ] Generating signatures
[   0.0764 ] tegrasign_v3.py --key None --list images_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.0766 ] Assuming zero filled SBK key
[   0.0855 ] Warning: pub_key.key is not found
[   0.0842 ] Parsing dev params for multi chains
[   0.0842 ] Generating br-bct
[   0.0849 ] Updating dev and MSS params in BR BCT
[   0.0850 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[   0.0857 ] Updating bl info
[   0.0862 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[   0.0867 ] WARNING: boot chain is not completed. set to 0
[   0.0873 ] Get Signed section of bct
[   0.0878 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --listbct bct_list.xml
[   0.0884 ] Signing BCT
[   0.0900 ] tegrasign_v3.py --key None --list bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.0901 ] Assuming zero filled SBK key
[   0.0920 ] Sha saved in br_bct_BR.sha
[   0.0923 ] Warning: pub_key.key is not found
[   0.0908 ] Updating BCT with signature
[   0.0914 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesig bct_list_signed.xml
[   0.0919 ] Offset :4608 Len :3584
[   0.0921 ] Generating SHA2 Hash
[   0.0936 ] tegrasign_v3.py --key None --list bct_list.xml --sha sha512
[   0.0938 ] Assuming zero filled SBK key
[   0.0938 ] Assuming zero filled SBK key
[   0.0957 ] Sha saved in br_bct_BR.sha
[   0.0944 ] Updating BCT with SHA2 Hash
[   0.0950 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesha bct_list_signed.xml
[   0.0955 ] Offset :4608 Len :3584
[   0.0957 ] Offset :68 Len :8124
[   0.0958 ] Generating coldboot mb1-bct
[   0.0964 ] 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.0968 ] MB1-BCT version: 0.10
[   0.0969 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.0973 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.0975 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.0977 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.0980 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.0981 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.0981 ] ERROR: /misc/tsc_controls/tsc_locking_config is not supported
[   0.0981 ] ERROR: /misc/tsc_controls/tsc_locking_diff_configuration is not supported
[   0.0981 ] ERROR: /misc/tsc_controls/tsc_locking_ref_frequency_configuration is not supported
[   0.0981 ] ERROR: /misc/tsc_controls/tsc_locking_control is not supported
[   0.0981 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_configuration is not supported
[   0.0981 ] ERROR: /misc/tsc_controls/tsc_locking_fast_adjust_configuration is not supported
[   0.0981 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_delta_control is not supported
[   0.0981 ] ERROR: /misc/tsc_controls/tsc_capture_control_ptx is not supported
[   0.0981 ] ERROR: /misc/tsc_controls/tsc_capture_config_ptx is not supported
[   0.0981 ] ERROR: /misc/tsc_controls/tsc_stscrsr is not supported
[   0.0982 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_num_control is not supported
[   0.0982 ] 
[   0.0982 ] Parsing config file :tegra234-mb1-bct-device-p3767-0000_cpp.dtb 
[   0.0982 ] Added Platform Config 9 data with size :- 100
[   0.0982 ] 
[   0.0982 ] Updating mb1-bct with firmware information
[   0.0987 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_cold_boot_bct_MB1.bct --updatefwinfo readinfo_t234_min_prod.xml.bin
[   0.1001 ] tegrahost_v2 --chip 0x23 0 --align mb1_cold_boot_bct_MB1_aligned.bct
[   0.1013 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_cold_boot_bct_MB1_aligned.bct zerosbk
[   0.1018 ] adding BCH for mb1_cold_boot_bct_MB1_aligned.bct
[   0.1039 ] tegrasign_v3.py --key None --list mb1_cold_boot_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.1042 ] Assuming zero filled SBK key
[   0.1077 ] Warning: pub_key.key is not found
[   0.1069 ] 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.1078 ] Generating recovery mb1-bct
[   0.1084 ] 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.1089 ] MB1-BCT version: 0.10
[   0.1090 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.1093 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.1095 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.1096 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.1098 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.1100 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.1102 ] ERROR: /misc/tsc_controls/tsc_locking_config is not supported
[   0.1103 ] ERROR: /misc/tsc_controls/tsc_locking_diff_configuration is not supported
[   0.1105 ] ERROR: /misc/tsc_controls/tsc_locking_ref_frequency_configuration is not supported
[   0.1105 ] ERROR: /misc/tsc_controls/tsc_locking_control is not supported
[   0.1105 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_configuration is not supported
[   0.1105 ] ERROR: /misc/tsc_controls/tsc_locking_fast_adjust_configuration is not supported
[   0.1105 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_delta_control is not supported
[   0.1105 ] ERROR: /misc/tsc_controls/tsc_capture_control_ptx is not supported
[   0.1105 ] ERROR: /misc/tsc_controls/tsc_capture_config_ptx is not supported
[   0.1105 ] ERROR: /misc/tsc_controls/tsc_stscrsr is not supported
[   0.1105 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_num_control is not supported
[   0.1105 ] 
[   0.1105 ] Parsing config file :tegra234-mb1-bct-device-p3767-0000_cpp.dtb 
[   0.1105 ] Added Platform Config 9 data with size :- 100
[   0.1105 ] 
[   0.1105 ] Updating mb1-bct with firmware information
[   0.1111 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_bct_MB1.bct --recov --updatefwinfo readinfo_t234_min_prod.xml.bin
[   0.1125 ] tegrahost_v2 --chip 0x23 0 --align mb1_bct_MB1_aligned.bct
[   0.1137 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_bct_MB1_aligned.bct zerosbk
[   0.1143 ] adding BCH for mb1_bct_MB1_aligned.bct
[   0.1164 ] tegrasign_v3.py --key None --list mb1_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.1165 ] Assuming zero filled SBK key
[   0.1177 ] Warning: pub_key.key is not found
[   0.1169 ] tegrahost_v2 --chip 0x23 0 --updatesigheader mb1_bct_MB1_aligned_sigheader.bct.encrypt mb1_bct_MB1_aligned_sigheader.bct.hash zerosbk
[   0.1178 ] Error: Skip generating mem_bct because sdram_config is not defined
[   0.1178 ] Error: Skip generating mem_bct because sdram_config is not defined
[   0.1178 ] Copying signatures
[   0.1183 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[   0.1216 ] mb1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[   0.1217 ] psc_bl1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[   0.1217 ] Boot Rom communication
[   0.1223 ] 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.1228 ] BR_CID: 0x80012344705DD4511400000016FF01C0
[   0.1236 ] Sending bct_br
[   0.1236 ] ERROR: might be timeout in USB write.
Error: Return value 3
Command tegrarcm_v2 --new_session --chip 0x23 0 --uid --download bct_br br_bct_BR.bct --download mb1 mb1_t234_prod_aligned_sigheader.bin.encrypt --download psc_bl1 psc_bl1_t234_prod_aligned_sigheader.bin.encrypt --download bct_mb1 mb1_bct_MB1_sigheader.bct.encrypt
Reading board information failed.
Error: failed to generate images
Cleaning up...

is it due to any missing dependencies

Nope, flashing is broken on Ubuntu 20. You have to use 18 or use the SD image and pivot the filesystem to the NVMe

Please help check if you can see any log when flash error happened with the serial console log.

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