When I run odmfuse.sh, the shell is blocked and the log is as follows

dxj@dxj-VirtualBox:~/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra$ sudo ./odmfuse.sh -i 0x19 -k …/…/key/nvidia_rsa_3k_priv.pem --KEK2 …/…/key/key2.hex -S …/…/key/sbk.hex --disable-jtag --test jetson-xavier-nx-devkit-emmc
copying soft_fuses(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-soft-fuses-l4t.cfg)… done.
copying soft_fuses(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-soft-fuses-l4t.cfg)… done.
./tegraflash.py --chip 0x19 --applet “/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/mb1_t194_prod.bin” --skipuid --soft_fuses tegra194-mb1-soft-fuses-l4t.cfg --bins “mb2_applet nvtboot_applet_t194.bin” --cmd “dump eeprom boardinfo cvm.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.0081 ] Generating RCM messages
[ 0.0113 ] tegrahost_v2 --chip 0x19 0 --magicid MB1B --appendsigheader /home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/mb1_t194_prod.bin zerosbk
[ 0.0129 ] Header already present for /home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/mb1_t194_prod.bin
[ 0.0268 ]
[ 0.0319 ] tegrasign_v3.py --getmode mode.txt --key None
[ 0.0322 ] Assuming zero filled SBK key
[ 0.0358 ] tegrasign_v3.py --file /home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.bin --key None --length 1136 --offset 2960 --pubkeyhash pub_key.key
[ 0.0361 ] Assuming zero filled SBK key
[ 0.0452 ] tegrahost_v2 --chip 0x19 0 --updatesigheader /home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.bin /home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.hash zerosbk
[ 0.0501 ]
[ 0.0538 ] tegrabct_v2 --chip 0x19 0 --sfuse tegra194-mb1-soft-fuses-l4t.cfg.pdf sfuse.bin
[ 0.0557 ]
[ 0.0586 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x19 0 --sfuses sfuse.bin --download rcm /home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.bin 0 0
[ 0.0604 ] RCM 0 is saved as rcm_0.rcm
[ 0.0639 ] RCM 1 is saved as rcm_1.rcm
[ 0.0640 ] RCM 2 is saved as rcm_2.rcm
[ 0.0641 ] List of rcm files are saved in rcm_list.xml
[ 0.0643 ]
[ 0.0645 ] Signing RCM messages
[ 0.0690 ] tegrasign_v3.py --getmontgomeryvalues montgomery.bin --key None --list rcm_list.xml --pubkeyhash pub_key.key
[ 0.0693 ] Assuming zero filled SBK key
[ 0.0836 ] Copying signature to RCM mesages
[ 0.0871 ] tegrarcm_v2 --chip 0x19 0 --updatesig rcm_list_signed.xml
[ 0.0902 ]
[ 0.0904 ] Boot Rom communication
[ 0.0948 ] tegrarcm_v2 --chip 0x19 0 --rcm rcm_list_signed.xml --skipuid
[ 0.0967 ] RCM version 0X190001
[ 0.0996 ] Boot Rom communication completed
[ 1.1170 ]
[ 2.1234 ] tegrarcm_v2 --isapplet
[ 2.1292 ] Applet version 01.00.0000
[ 2.1654 ]
[ 2.1698 ] tegrarcm_v2 --ismb2
[ 2.1945 ]
[ 2.1991 ] tegrahost_v2 --chip 0x19 --align nvtboot_applet_t194.bin
[ 2.2015 ]
[ 2.2051 ] tegrahost_v2 --chip 0x19 0 --magicid PLDT --appendsigheader nvtboot_applet_t194.bin zerosbk
[ 2.2091 ] adding BCH for nvtboot_applet_t194.bin
[ 2.2165 ]
[ 2.2222 ] tegrasign_v3.py --key None --list nvtboot_applet_t194_sigheader.bin_list.xml --pubkeyhash pub_key.key
[ 2.2226 ] Assuming zero filled SBK key
[ 2.2324 ] tegrahost_v2 --chip 0x19 0 --updatesigheader nvtboot_applet_t194_sigheader.bin.encrypt nvtboot_applet_t194_sigheader.bin.hash zerosbk
[ 2.2371 ]
[ 2.2411 ] tegrarcm_v2 --download mb2 nvtboot_applet_t194_sigheader.bin.encrypt
[ 2.2500 ] Applet version 01.00.0000
[ 2.2735 ] Sending mb2
[ 2.2742 ] […] 100%
[ 2.2976 ]
[ 2.3017 ] tegrarcm_v2 --boot recovery
[ 2.3036 ] Applet version 01.00.0000
[ 2.3289 ]
[ 3.3377 ] tegrarcm_v2 --isapplet
[ 3.3758 ]
[ 3.3862 ] tegrarcm_v2 --ismb2
[ 3.3892 ] MB2 Applet version 01.00.0000
[ 3.4142 ]
[ 3.4181 ] tegrarcm_v2 --ismb2
[ 3.4199 ] MB2 Applet version 01.00.0000
[ 3.4395 ]
[ 3.4434 ] Retrieving board information
[ 3.4465 ] tegrarcm_v2 --oem platformdetails chip chip_info.bin
[ 3.4485 ] MB2 Applet version 01.00.0000
[ 3.4784 ] Saved platform info in chip_info.bin
[ 3.4862 ] Chip minor revision: 2
[ 3.4916 ] Bootrom revision: 0xf
[ 3.4918 ] Ram code: 0x0
[ 3.4932 ] Chip sku: 0xde
[ 3.4934 ] Chip Sample: non es
[ 3.4936 ]
[ 3.4941 ] Retrieving EEPROM data
[ 3.4944 ] tegrarcm_v2 --oem platformdetails eeprom cvm /home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/cvm.bin
[ 3.4958 ] MB2 Applet version 01.00.0000
[ 3.5220 ] Saved platform info in /home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/cvm.bin
[ 3.5755 ]
[ 3.5767 ] Rebooting to recovery mode
[ 3.5803 ] tegrarcm_v2 --ismb2
[ 3.5825 ] MB2 Applet version 01.00.0000
[ 3.6040 ]
[ 3.6041 ] Rebooting to recovery mode
[ 3.6075 ] tegrarcm_v2 --reboot recovery
[ 3.6109 ] MB2 Applet version 01.00.0000
[ 3.6453 ]
Board ID(3668) version(300) sku(0001) revision(B.0)
copying sdram_config(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-memcfg-p3668-0001-a00.cfg)… done.
copying sdram_config1(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-memcfg-sw-override.cfg)… done.
copying misc_config(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-misc-flash.cfg)… done.
copying pinmux_config(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-pinmux-p3668-a01.cfg)… done.
copying scr_config(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-scr-cbb-mini-p3668.cfg)… done.
copying scr_cold_boot_config(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-scr-cbb-mini-p3668.cfg)… done.
copying pmc_config(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-padvoltage-p3668-a01.cfg)… done.
copying pmic_config(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-pmic-p3668-0001-a00.cfg)… done.
copying br_cmd_config(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-reset-p3668-0001-a00.cfg)… done.
copying prod_config(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-prod-p3668-0001-a00.cfg)… done.
copying dev_params(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-br-bct-qspi.cfg)… done.
copying misc_cold_boot_config(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-misc-l4t.cfg)… done.
copying device_config(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-bct-device-qspi-p3668.cfg)… done.
copying minratchet_config(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-ratchet-p3668.cfg)… done.
copying gpioint_config(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-gpioint-p3668-0001-a00.cfg)… done.
copying soft_fuses(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-soft-fuses-l4t.cfg)… done.
Existing mb2_bootloader(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/nvtboot_recovery_t194.bin) reused.
Existing mts_preboot(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/preboot_c10_prod_cr.bin) reused.
Existing mts_mce(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/mce_c10_prod_cr.bin) reused.
Existing mts_proper(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/mts_c10_prod_cr.bin) reused.
copying bootloader_dtb(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/kernel/dtb/tegra194-p3668-all-p3509-0000.dtb)… done.
Existing bpmp_fw(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/bpmp_t194.bin) reused.
copying bpmp_fw_dtb(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/t186ref/tegra194-a02-bpmp-p3668-a00.dtb)… done.
Existing tlk(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/tos-trusty_t194.img) reused.
Existing eks(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/eks.img) reused.
Existing spe_fw(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/spe_t194.bin) reused.
Existing mb1file(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/mb1_t194_prod.bin) reused.
Existing spefile(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/spe_t194.bin) reused.
Existing tegraboot(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/nvtboot_t194.bin) reused.
Existing tbcfile(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/cboot_t194.bin) reused.
Existing scefile(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/camera-rtcpu-sce.img) reused.
Existing camerafw(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/camera-rtcpu-rce.img) reused.
Existing wb0boot(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/warmboot_t194_prod.bin) reused.
done.
Existing cfg(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/flash.xml) reused.
Existing bl(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/nvtboot_recovery_cpu_t194.bin) reused.
Existing applet(/home/dxj/nvidia-bak/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/mb1_t194_prod.bin) reused.
./tegraflash.py --sdram_config tegra194-mb1-bct-memcfg-p3668-0001-a00.cfg,tegra194-memcfg-sw-override.cfg --misc_config tegra194-mb1-bct-misc-flash.cfg --pinmux_config tegra19x-mb1-pinmux-p3668-a01.cfg --scr_config tegra194-mb1-bct-scr-cbb-mini-p3668.cfg --scr_cold_boot_config tegra194-mb1-bct-scr-cbb-mini-p3668.cfg --pmc_config tegra19x-mb1-padvoltage-p3668-a01.cfg --pmic_config tegra194-mb1-bct-pmic-p3668-0001-a00.cfg --br_cmd_config tegra194-mb1-bct-reset-p3668-0001-a00.cfg --prod_config tegra19x-mb1-prod-p3668-0001-a00.cfg --dev_params tegra194-br-bct-qspi.cfg --misc_cold_boot_config tegra194-mb1-bct-misc-l4t.cfg --device_config tegra19x-mb1-bct-device-qspi-p3668.cfg --minratchet_config tegra194-mb1-bct-ratchet-p3668.cfg --gpioint_config tegra194-mb1-bct-gpioint-p3668-0001-a00.cfg --soft_fuses tegra194-mb1-soft-fuses-l4t.cfg --bins “mb2_bootloader nvtboot_recovery_t194.bin; mts_preboot preboot_c10_prod_cr.bin; mts_mce mce_c10_prod_cr.bin; mts_proper mts_c10_prod_cr.bin; bootloader_dtb tegra194-p3668-all-p3509-0000.dtb; bpmp_fw bpmp_t194.bin; bpmp_fw_dtb tegra194-a02-bpmp-p3668-a00.dtb; tlk tos-trusty_t194.img; eks eks.img; kernel boot.img; kernel_dtb tegra194-p3668-all-p3509-0000.dtb; spe_fw spe_t194.bin” --cfg flash.xml --bl nvtboot_recovery_cpu_t194.bin --odmdata 0xB8190000 --chip 0x19 --applet mb1_t194_prod.bin --cmd “readfuses fuse_info.txt fuses_to_read.xml; 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.0159 ] Reading fuses
[ 0.0159 ] Generating RCM messages
[ 0.0191 ] tegrahost_v2 --chip 0x19 0 --magicid MB1B --appendsigheader mb1_t194_prod.bin zerosbk
[ 0.0209 ] Header already present for mb1_t194_prod.bin
[ 0.0270 ]
[ 0.0312 ] tegrasign_v3.py --getmode mode.txt --key None
[ 0.0314 ] Assuming zero filled SBK key
[ 0.0351 ] tegrasign_v3.py --file mb1_t194_prod_sigheader.bin --key None --length 1136 --offset 2960 --pubkeyhash pub_key.key
[ 0.0353 ] Assuming zero filled SBK key
[ 0.0415 ] tegrahost_v2 --chip 0x19 0 --updatesigheader mb1_t194_prod_sigheader.bin mb1_t194_prod_sigheader.hash zerosbk
[ 0.0471 ]
[ 0.0503 ] tegrabct_v2 --chip 0x19 0 --sfuse tegra194-mb1-soft-fuses-l4t.cfg sfuse.bin
[ 0.0520 ]
[ 0.0552 ] tegrabct_v2 --chip 0x19 0 --ratchet_blob ratchet_blob.bin --minratchet tegra194-mb1-bct-ratchet-p3668.cfg
[ 0.0575 ] FwIndex: 1, MinRatchetLevel: 0
[ 0.0594 ] FwIndex: 2, MinRatchetLevel: 0
[ 0.0595 ] FwIndex: 3, MinRatchetLevel: 0
[ 0.0596 ] FwIndex: 4, MinRatchetLevel: 0
[ 0.0597 ] FwIndex: 5, MinRatchetLevel: 0
[ 0.0599 ] FwIndex: 6, MinRatchetLevel: 0
[ 0.0600 ] FwIndex: 7, MinRatchetLevel: 0
[ 0.0601 ] FwIndex: 11, MinRatchetLevel: 0
[ 0.0602 ] FwIndex: 12, MinRatchetLevel: 0
[ 0.0603 ] FwIndex: 13, MinRatchetLevel: 0
[ 0.0605 ] FwIndex: 14, MinRatchetLevel: 0
[ 0.0606 ] FwIndex: 15, MinRatchetLevel: 0
[ 0.0608 ] FwIndex: 16, MinRatchetLevel: 0
[ 0.0609 ] FwIndex: 17, MinRatchetLevel: 0
[ 0.0610 ] FwIndex: 18, MinRatchetLevel: 0
[ 0.0611 ] FwIndex: 19, MinRatchetLevel: 0
[ 0.0612 ] FwIndex: 30, MinRatchetLevel: 0
[ 0.0613 ] FwIndex: 31, MinRatchetLevel: 0
[ 0.0614 ] FwIndex: 32, MinRatchetLevel: 0
[ 0.0614 ]
[ 0.0650 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x19 0 --sfuses sfuse.bin --download rcm mb1_t194_prod_sigheader.bin 0 0
[ 0.0665 ] RCM 0 is saved as rcm_0.rcm
[ 0.0713 ] RCM 1 is saved as rcm_1.rcm
[ 0.0714 ] RCM 2 is saved as rcm_2.rcm
[ 0.0715 ] List of rcm files are saved in rcm_list.xml
[ 0.0716 ]
[ 0.0719 ] Signing RCM messages
[ 0.0762 ] tegrasign_v3.py --getmontgomeryvalues montgomery.bin --key None --list rcm_list.xml --pubkeyhash pub_key.key
[ 0.0765 ] Assuming zero filled SBK key
[ 0.0890 ] Copying signature to RCM mesages
[ 0.0927 ] tegrarcm_v2 --chip 0x19 0 --updatesig rcm_list_signed.xml
[ 0.0955 ]
[ 0.0957 ] Boot Rom communication
[ 0.0991 ] tegrarcm_v2 --chip 0x19 0 --rcm rcm_list_signed.xml
[ 0.1006 ] BootRom is not running
[ 5.1646 ]
[ 6.1734 ] tegrarcm_v2 --isapplet

hello user121369,

are you running with virtual machine?
the device will be connect/disconnect several times during image flashing, and it usually the USB port forwarding issue with VMs.
you may try using native ubuntu-OS, or, please google it around for VM configuration to resolve device detection failure.
thanks

The problem is solved, thanks!