Failure in creating release image

Jetpack 5.1.1
R335.3.1
Im not able to create release image
Manufacturing_testing_image_v1.1 internal is softlinked

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" --no-flash --massflash 1 --network usb0 Manufacturing_testing_image_v1.1 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/orin/orin_nano/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/flash.sh --no-flash --sign  -c bootloader/t186ref/cfg/flash_t234_qspi.xml Manufacturing_testing_image_v1.1 internal

###############################################################################
# L4T BSP Information:
# R35 , REVISION: 3.1
# User release: 0.0
###############################################################################
copying emc_fuse_dev_params(/home/orin/orin_nano/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-br-bct-diag-boot.dts)... done.
copying device_config(/home/orin/orin_nano/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-device-p3767-0000.dts)... done.
copying misc_config(/home/orin/orin_nano/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-misc-p3767-0000.dts)... done.
./tegraflash.py --chip 0x23 --applet "/home/orin/orin_nano/Jetson_Linux_R35.3.1_aarch64/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.0229 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   0.0241 ] File rcm_state open failed
[   0.0241 ] ERROR: failed to read rcm_state
[   0.0241 ] 
[   0.0261 ] tegrasign_v3.py --key None --getmode mode.txt
[   0.0264 ] Assuming zero filled SBK key
[   0.0247 ] Pre-processing config: tegra234-mb1-bct-device-p3767-0000.dts
[   0.0550 ] Pre-processing config: tegra234-mb1-bct-misc-p3767-0000.dts
[   0.0755 ] Parsing partition layout
[   0.0772 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[   0.0800 ] Kernel DTB used: None
[   0.0800 ] WARNING: dce base dtb is not provided

[   0.0800 ] Parsing partition layout
[   0.0821 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[   0.0841 ] Creating list of images to be signed
[   0.0858 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --list images_list.xml zerosbk
[   0.0880 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[   0.0896 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[   0.0902 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[   0.0950 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[   0.0961 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[   0.1009 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[   0.1014 ] adding BCH for mb2_t234_aligned.bin
[   0.1041 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[   0.1186 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[   0.1190 ] adding BCH for mb2_t234_aligned.bin
[   0.1348 ] Filling MB1 storage info
[   0.1349 ] Parsing dev params for multi chains
[   0.1427 ] Generating br-bct
[   0.1440 ] Updating dev and MSS params in BR BCT
[   0.1441 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[   0.1481 ] Updating bl info
[   0.1497 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin
[   0.1507 ] WARNING: boot chain is not completed. set to 0
[   0.1527 ] Generating signatures
[   0.1547 ] tegrasign_v3.py --key None --list images_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.1549 ] Assuming zero filled SBK key
[   0.2571 ] Warning: pub_key.key is not found
[   0.2564 ] Parsing dev params for multi chains
[   0.2564 ] Generating br-bct
[   0.2600 ] Updating dev and MSS params in BR BCT
[   0.2605 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[   0.2647 ] Updating bl info
[   0.2683 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[   0.2719 ] WARNING: boot chain is not completed. set to 0
[   0.2745 ] Get Signed section of bct
[   0.2770 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --listbct bct_list.xml
[   0.2789 ] Signing BCT
[   0.2809 ] tegrasign_v3.py --key None --list bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.2812 ] Assuming zero filled SBK key
[   0.2863 ] Sha saved in br_bct_BR.sha
[   0.2871 ] Warning: pub_key.key is not found
[   0.2853 ] Updating BCT with signature
[   0.2873 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesig bct_list_signed.xml
[   0.2891 ] Offset :4608 Len :3584
[   0.2901 ] Generating SHA2 Hash
[   0.2920 ] tegrasign_v3.py --key None --list bct_list.xml --sha sha512
[   0.2924 ] Assuming zero filled SBK key
[   0.2924 ] Assuming zero filled SBK key
[   0.2960 ] Sha saved in br_bct_BR.sha
[   0.2947 ] Updating BCT with SHA2 Hash
[   0.2958 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesha bct_list_signed.xml
[   0.2968 ] Offset :4608 Len :3584
[   0.2973 ] Offset :68 Len :8124
[   0.2974 ] 
[   0.2975 ] Generating coldboot mb1-bct
[   0.2987 ] 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.2998 ] MB1-BCT version: 0.10
[   0.3000 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.3007 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.3013 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.3018 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.3024 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.3024 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.3024 ] ERROR: /misc/tsc_controls/tsc_locking_config is not supported
[   0.3024 ] ERROR: /misc/tsc_controls/tsc_locking_diff_configuration is not supported
[   0.3024 ] ERROR: /misc/tsc_controls/tsc_locking_ref_frequency_configuration is not supported
[   0.3024 ] ERROR: /misc/tsc_controls/tsc_locking_control is not supported
[   0.3024 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_configuration is not supported
[   0.3024 ] ERROR: /misc/tsc_controls/tsc_locking_fast_adjust_configuration is not supported
[   0.3024 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_delta_control is not supported
[   0.3024 ] ERROR: /misc/tsc_controls/tsc_capture_control_ptx is not supported
[   0.3024 ] ERROR: /misc/tsc_controls/tsc_capture_config_ptx is not supported
[   0.3024 ] ERROR: /misc/tsc_controls/tsc_stscrsr is not supported
[   0.3024 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_num_control is not supported
[   0.3024 ] 
[   0.3024 ] Parsing config file :tegra234-mb1-bct-device-p3767-0000_cpp.dtb 
[   0.3025 ] Added Platform Config 9 data with size :- 100
[   0.3025 ] 
[   0.3025 ] Updating mb1-bct with firmware information
[   0.3036 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_cold_boot_bct_MB1.bct --updatefwinfo readinfo_t234_min_prod.xml.bin
[   0.3068 ] tegrahost_v2 --chip 0x23 0 --align mb1_cold_boot_bct_MB1_aligned.bct
[   0.3090 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_cold_boot_bct_MB1_aligned.bct zerosbk
[   0.3100 ] adding BCH for mb1_cold_boot_bct_MB1_aligned.bct
[   0.3128 ] tegrasign_v3.py --key None --list mb1_cold_boot_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.3131 ] Assuming zero filled SBK key
[   0.3152 ] Warning: pub_key.key is not found
[   0.3148 ] 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.3169 ] Generating recovery mb1-bct
[   0.3187 ] 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.3207 ] MB1-BCT version: 0.10
[   0.3210 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.3216 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.3221 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.3225 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.3230 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.3235 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.3235 ] ERROR: /misc/tsc_controls/tsc_locking_config is not supported
[   0.3235 ] ERROR: /misc/tsc_controls/tsc_locking_diff_configuration is not supported
[   0.3235 ] ERROR: /misc/tsc_controls/tsc_locking_ref_frequency_configuration is not supported
[   0.3235 ] ERROR: /misc/tsc_controls/tsc_locking_control is not supported
[   0.3235 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_configuration is not supported
[   0.3235 ] ERROR: /misc/tsc_controls/tsc_locking_fast_adjust_configuration is not supported
[   0.3236 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_delta_control is not supported
[   0.3236 ] ERROR: /misc/tsc_controls/tsc_capture_control_ptx is not supported
[   0.3236 ] ERROR: /misc/tsc_controls/tsc_capture_config_ptx is not supported
[   0.3236 ] ERROR: /misc/tsc_controls/tsc_stscrsr is not supported
[   0.3236 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_num_control is not supported
[   0.3236 ] 
[   0.3236 ] Parsing config file :tegra234-mb1-bct-device-p3767-0000_cpp.dtb 
[   0.3236 ] Added Platform Config 9 data with size :- 100
[   0.3236 ] 
[   0.3237 ] Updating mb1-bct with firmware information
[   0.3249 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_bct_MB1.bct --recov --updatefwinfo readinfo_t234_min_prod.xml.bin
[   0.3280 ] tegrahost_v2 --chip 0x23 0 --align mb1_bct_MB1_aligned.bct
[   0.3305 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_bct_MB1_aligned.bct zerosbk
[   0.3315 ] adding BCH for mb1_bct_MB1_aligned.bct
[   0.3344 ] tegrasign_v3.py --key None --list mb1_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.3346 ] Assuming zero filled SBK key
[   0.3367 ] Warning: pub_key.key is not found
[   0.3362 ] tegrahost_v2 --chip 0x23 0 --updatesigheader mb1_bct_MB1_aligned_sigheader.bct.encrypt mb1_bct_MB1_aligned_sigheader.bct.hash zerosbk
[   0.3378 ] Error: Skip generating mem_bct because sdram_config is not defined
[   0.3378 ] Error: Skip generating mem_bct because sdram_config is not defined
[   0.3378 ] Copying signatures
[   0.3389 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[   0.3453 ] mb1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[   0.3456 ] psc_bl1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[   0.3456 ] Boot Rom communication
[   0.3471 ] 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.3486 ] BR_CID: 0x80012344705DE5032C00000004028240
[   0.3776 ] Sending bct_br
[   0.4202 ] Sending mb1
[   0.4210 ] Sending psc_bl1
[   0.4327 ] Sending bct_mb1
[   0.4393 ] Boot Rom communication completed
[   0.4454 ] tegrahost_v2 --chip 0x23 0 --align applet_t234_aligned.bin
[   0.4560 ] tegrahost_v2 --chip 0x23 0 --magicid MB2A --appendsigheader applet_t234_aligned.bin zerosbk
[   0.4641 ] adding BCH for applet_t234_aligned.bin
[   0.4843 ] tegrasign_v3.py --key None --list applet_t234_aligned_sigheader.bin_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.4846 ] Assuming zero filled SBK key
[   0.4880 ] Warning: pub_key.key is not found
[   0.4885 ] tegrahost_v2 --chip 0x23 0 --updatesigheader applet_t234_aligned_sigheader.bin.encrypt applet_t234_aligned_sigheader.bin.hash zerosbk
[   0.5152 ] Sending mb2_applet...

[   0.5197 ] tegrarcm_v2 --chip 0x23 0 --pollbl --download applet applet_t234_sigheader.bin.encrypt
[   0.5249 ] BL: version 0.32.0.0-t234-54845784-57325615 last_boot_error: 0
[   0.6504 ] Sending applet
[   0.7632 ] completed
[   0.7677 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   0.7716 ] MB2 Applet version 01.00.0000
[   0.9837 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   0.9876 ] MB2 Applet version 01.00.0000
[   1.0221 ] Retrieving board information
[   1.0241 ] tegrarcm_v2 --chip 0x23 0 --oem platformdetails chip chip_info.bin
[   1.0260 ] MB2 Applet version 01.00.0000
[   1.0706 ] Saved platform info in chip_info.bin
[   1.0760 ] Chip minor revision: 1
[   1.0762 ] Bootrom revision: 0x7
[   1.0766 ] Ram code: 0x2
[   1.0766 ] Chip sku: 0xd5
[   1.0766 ] Chip Sample: prod
[   1.0766 ] 
[   1.0770 ] Retrieving EEPROM data
[   1.0770 ] tegrarcm_v2 --oem platformdetails eeprom cvm /home/orin/orin_nano/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/cvm.bin --chip 0x23 0
[   1.0787 ] MB2 Applet version 01.00.0000
[   1.1268 ] Saved platform info in /home/orin/orin_nano/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/cvm.bin
[   1.1603 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   1.1619 ] MB2 Applet version 01.00.0000
[   1.1917 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   1.1929 ] MB2 Applet version 01.00.0000
[   1.2473 ] Dumping customer Info
[   1.2510 ] tegrarcm_v2 --chip 0x23 0 --oem dump bct tmp.bct
[   1.2544 ] MB2 Applet version 01.00.0000
[   1.3001 ] Saved bct in tmp.bct
[   1.3107 ] tegrabct_v2 --brbct tmp.bct --chip 0x23 0 --custinfo /home/orin/orin_nano/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/custinfo_out.bin
[   1.3146 ] C[   1.3157 ] ustomer data saved in /home/orin/orin_nano/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/custinfo_out.bin successfully
[   1.3161 ] Rebooting to recovery mode
[   1.3210 ] tegrarcm_v2 --chip 0x23 0 --ismb2
[   1.3591 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   1.3626 ] MB2 Applet version 01.00.0000
[   1.4150 ] Booting to recovery mode
[   1.4195 ] tegrarcm_v2 --chip 0x23 0 --reboot recovery
[   1.4236 ] MB2 Applet version 01.00.0000
Parsing board information failed.
Error: failed to generate images
Cleaning up...```

Do you have any existing Orin board connected and in recovery mode?

yes , it is in recovery mode

Run this command and see if you get the same error:

sudo ./flash.sh --no-systemimg -c bootloader/t186ref/cfg/flash_t234_qspi.xml <board name> internal