Fail to flash L4T R28.2.1 to eMMC by return value 4

Hi all,

I would like to flash L4T R28.2.1 to eMMC on JetsonTX2, but it failed by return code 4.
I have to use this version for our development, not latest version.

My environment is,

  • PC : VirtualBox 6.0.14 r133895
  • OS : Ubuntu 16.04.6 LTS

And I operated flash command according to URL in below.
https://docs.nvidia.com/jetson/archives/l4t-archived/l4t-282/index.html#page/Tegra%2520Linux%2520Driver%2520Package%2520Development%2520Guide%2Fflashing.html

Actually, I have done following,

mkdir -p /opt/l4t
cd /opt/l4t
sudo tar xpf Tegra186_Linux_R28.2.1_aarch64.tbz2
cd Linux_for_Tegra/rootfs
sudo tar xpf Tegra_Linux_Sample-Root-Filesystem_R28.2.1_aarch64.tbz2
cd ..
sudo ./apply_binaries.sh
sudo ./flash.sh jetson-tx2 mmcblk0p1

But the result is failed by return code 4.

How to flash R28.2.1 to JetsonTX2 successfully ?
JetsonTX2 cannot be flashed through VirtualBox ?

‘flash.sh’ log is below,

###############################################################################
# L4T BSP Information:
# R28 (release), REVISION: 2.1, GCID: 11272647, BOARD: t186ref, EABI: aarch64, 
# DATE: Thu May 17 07:29:06 UTC 2018
###############################################################################
# Target Board Information:
# Name: jetson-tx2, Board Family: t186ref, SoC: Tegra 186, 
# OpMode: production, Boot Authentication: , 
###############################################################################
./tegraflash.py --chip 0x18 --applet "/opt/l4t/Linux_for_Tegra/bootloader/mb1_recovery_prod.bin" --cmd "dump eeprom boardinfo cvm.bin" --skipuid 
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.0027 ] Generating RCM messages
[   0.0041 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x18 --download rcm /opt/l4t/Linux_for_Tegra/bootloader/mb1_recovery_prod.bin 0 0
[   0.0052 ] RCM 0 is saved as rcm_0.rcm
[   0.0061 ] RCM 1 is saved as rcm_1.rcm
[   0.0061 ] List of rcm files are saved in rcm_list.xml
[   0.0061 ] 
[   0.0061 ] Signing RCM messages
[   0.0079 ] tegrasign_v2 --key None --list rcm_list.xml --pubkeyhash pub_key.key
[   0.0091 ] Assuming zero filled SBK key
[   0.0125 ] 
[   0.0126 ] Copying signature to RCM mesages
[   0.0140 ] tegrarcm_v2 --chip 0x18 --updatesig rcm_list_signed.xml
[   0.0158 ] 
[   0.0159 ] Boot Rom communication
[   0.0168 ] tegrarcm_v2 --chip 0x18 --rcm rcm_list_signed.xml --skipuid
[   0.0177 ] RCM version 0X180001
[   0.0190 ] Boot Rom communication completed
[   1.0353 ] 
[   1.0364 ] tegrarcm_v2 --isapplet
[   1.0372 ] USB communication failed.Check if device is in recovery
[   1.8039 ] 
[   1.8049 ] tegradevflash_v2 --iscpubl
[   1.8057 ] CPU Bootloader is not running on device.
[   1.8231 ] 
[   2.8339 ] Retrieving EEPROM data
[   2.8340 ] tegrarcm_v2 --oem platformdetails eeprom cvm /opt/l4t/Linux_for_Tegra/bootloader/cvm.bin
[   2.8349 ] Applet version 01.00.0000
[   2.8402 ] Saved platform info in /opt/l4t/Linux_for_Tegra/bootloader/cvm.bin
[   2.9307 ] 
Board ID(3310) version(B02) 
copying bctfile(/opt/l4t/Linux_for_Tegra/bootloader/t186ref/BCT/P3310_A00_8GB_Samsung_8GB_lpddr4_204Mhz_A02_l4t.cfg)... done.
copying misc_config(/opt/l4t/Linux_for_Tegra/bootloader/t186ref/BCT/tegra186-mb1-bct-misc-si-l4t.cfg)... done.
copying pinmux_config(/opt/l4t/Linux_for_Tegra/bootloader/t186ref/BCT/tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg)... done.
copying pmic_config(/opt/l4t/Linux_for_Tegra/bootloader/t186ref/BCT/tegra186-mb1-bct-pmic-quill-p3310-1000-c04.cfg)... done.
copying pmc_config(/opt/l4t/Linux_for_Tegra/bootloader/t186ref/BCT/tegra186-mb1-bct-pad-quill-p3310-1000-c03.cfg)... done.
copying prod_config(/opt/l4t/Linux_for_Tegra/bootloader/t186ref/BCT/tegra186-mb1-bct-prod-quill-p3310-1000-c03.cfg)... done.
copying scr_config(/opt/l4t/Linux_for_Tegra/bootloader/t186ref/BCT/minimal_scr.cfg)... done.
copying scr_cold_boot_config(/opt/l4t/Linux_for_Tegra/bootloader/t186ref/BCT/mobile_scr.cfg)... done.
copying bootrom_config(/opt/l4t/Linux_for_Tegra/bootloader/t186ref/BCT/tegra186-mb1-bct-bootrom-quill-p3310-1000-c03.cfg)... done.
copying dev_params(/opt/l4t/Linux_for_Tegra/bootloader/t186ref/BCT/emmc.cfg)... done.
Existing bootloader(/opt/l4t/Linux_for_Tegra/bootloader/nvtboot_cpu.bin) reused.
	populating kernel to rootfs... done.
	populating initrd to rootfs... done.
	populating extlinux.conf.emmc to rootfs... done.
	populating /opt/l4t/Linux_for_Tegra/kernel/dtb/tegra186-quill-p3310-1000-c03-00-base.dtb to rootfs... done.
done.
Making Boot image... done.
Existing sosfile(/opt/l4t/Linux_for_Tegra/bootloader/mb1_recovery_prod.bin) reused.
copying tegraboot(/opt/l4t/Linux_for_Tegra/bootloader/t186ref/nvtboot.bin)... done.
Existing mb2blfile(/opt/l4t/Linux_for_Tegra/bootloader/nvtboot_recovery.bin) reused.
Existing mtspreboot(/opt/l4t/Linux_for_Tegra/bootloader/preboot_d15_prod_cr.bin) reused.
Existing mts(/opt/l4t/Linux_for_Tegra/bootloader/mce_mts_d15_prod_cr.bin) reused.
Existing mb1file(/opt/l4t/Linux_for_Tegra/bootloader/mb1_prod.bin) reused.
Existing bpffile(/opt/l4t/Linux_for_Tegra/bootloader/bpmp.bin) reused.
copying bpfdtbfile(/opt/l4t/Linux_for_Tegra/bootloader/t186ref/tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2.dtb)... done.
Existing scefile(/opt/l4t/Linux_for_Tegra/bootloader/camera-rtcpu-sce.bin) reused.
Existing spefile(/opt/l4t/Linux_for_Tegra/bootloader/spe.bin) reused.
copying wb0boot(/opt/l4t/Linux_for_Tegra/bootloader/t186ref/warmboot.bin)... done.
Existing tosfile(/opt/l4t/Linux_for_Tegra/bootloader/tos.img) reused.
Existing eksfile(/opt/l4t/Linux_for_Tegra/bootloader/eks.img) reused.
copying dtbfile(/opt/l4t/Linux_for_Tegra/kernel/dtb/tegra186-quill-p3310-1000-c03-00-base.dtb)... done.
Making system.img... 
	populating rootfs from /opt/l4t/Linux_for_Tegra/rootfs ... done.
	Sync'ing system.img ... done.
	Converting RAW image to Sparse image... 

---- Raw to Sparse Image Converter v1.0 ----------------------------
  0: RAW:     4239360(   1035 blks) ==>          28:4239372
  1: SKP:       24576(      6 blks) ==>     4239400:12
  2: RAW:        4096(      1 blks) ==>     4239412:4108

...

2932: RAW:    10485760(   2560 blks) ==>  3487869324:10485772
2933: SKP:  1902116864( 464384 blks) ==>  3498355096:12
-- Total: ---------------------------------------------------
2934 CHUNK 30064771072(7340032 blks) ==>  3498355108(854082 blks)

done.
system.img built successfully. 
Existing tbcfile(/opt/l4t/Linux_for_Tegra/bootloader/cboot.bin) reused.
copying tbcdtbfile(/opt/l4t/Linux_for_Tegra/kernel/dtb/tegra186-quill-p3310-1000-c03-00-base.dtb)... done.
copying cfgfile(/opt/l4t/Linux_for_Tegra/bootloader/t186ref/cfg/flash_l4t_t186.xml) to flash.xml... done.
Existing flasher(/opt/l4t/Linux_for_Tegra/bootloader/nvtboot_recovery_cpu.bin) reused.
Existing flashapp(/opt/l4t/Linux_for_Tegra/bootloader/tegraflash.py) reused.
./tegraflash.py --bl nvtboot_recovery_cpu.bin --sdram_config P3310_A00_8GB_Samsung_8GB_lpddr4_204Mhz_A02_l4t.cfg --odmdata 0x1090000 --applet mb1_recovery_prod.bin --cmd "flash; reboot"  --cfg flash.xml --chip 0x18 --misc_config tegra186-mb1-bct-misc-si-l4t.cfg --pinmux_config tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg --pmic_config tegra186-mb1-bct-pmic-quill-p3310-1000-c04.cfg --pmc_config tegra186-mb1-bct-pad-quill-p3310-1000-c03.cfg --prod_config tegra186-mb1-bct-prod-quill-p3310-1000-c03.cfg --scr_config minimal_scr.cfg --scr_cold_boot_config mobile_scr.cfg --br_cmd_config tegra186-mb1-bct-bootrom-quill-p3310-1000-c03.cfg --dev_params emmc.cfg  --bins "mb2_bootloader nvtboot_recovery.bin; mts_preboot preboot_d15_prod_cr.bin; mts_bootpack mce_mts_d15_prod_cr.bin; bpmp_fw bpmp.bin; bpmp_fw_dtb tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2.dtb; tlk tos.img; eks eks.img; bootloader_dtb tegra186-quill-p3310-1000-c03-00-base.dtb"  
saving flash command in /opt/l4t/Linux_for_Tegra/bootloader/flashcmd.txt
./tegraflash.py --bl nvtboot_recovery_cpu.bin --sdram_config P3310_A00_8GB_Samsung_8GB_lpddr4_204Mhz_A02_l4t.cfg --odmdata 0x1090000 --applet mb1_recovery_prod.bin --cmd "flash; reboot"  --cfg flash.xml --chip 0x18 --misc_config tegra186-mb1-bct-misc-si-l4t.cfg --pinmux_config tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg --pmic_config tegra186-mb1-bct-pmic-quill-p3310-1000-c04.cfg --pmc_config tegra186-mb1-bct-pad-quill-p3310-1000-c03.cfg --prod_config tegra186-mb1-bct-prod-quill-p3310-1000-c03.cfg --scr_config minimal_scr.cfg --scr_cold_boot_config mobile_scr.cfg --br_cmd_config tegra186-mb1-bct-bootrom-quill-p3310-1000-c03.cfg --dev_params emmc.cfg  --bins "mb2_bootloader nvtboot_recovery.bin; mts_preboot preboot_d15_prod_cr.bin; mts_bootpack mce_mts_d15_prod_cr.bin; bpmp_fw bpmp.bin; bpmp_fw_dtb tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2.dtb; tlk tos.img; eks eks.img; bootloader_dtb tegra186-quill-p3310-1000-c03-00-base.dtb"  
copying boot image (boot.img.sb)... done.
copying partition layout (flash.xml.sb)... done.
copying kernel dtb (tegra186-quill-p3310-1000-c03-00-base.dtb.sb)... done.
saving flash parameters in /opt/l4t/Linux_for_Tegra/bootloader/flash_parameters.txt
--bl nvtboot_recovery_cpu.bin --sdram_config P3310_A00_8GB_Samsung_8GB_lpddr4_204Mhz_A02_l4t.cfg --odmdata 0x1090000 --applet mb1_recovery_prod.bin --cmd "flash; reboot"  --cfg flash.xml --chip 0x18 --misc_config tegra186-mb1-bct-misc-si-l4t.cfg --pinmux_config tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg --pmic_config tegra186-mb1-bct-pmic-quill-p3310-1000-c04.cfg --pmc_config tegra186-mb1-bct-pad-quill-p3310-1000-c03.cfg --prod_config tegra186-mb1-bct-prod-quill-p3310-1000-c03.cfg --scr_config minimal_scr.cfg --scr_cold_boot_config mobile_scr.cfg --br_cmd_config tegra186-mb1-bct-bootrom-quill-p3310-1000-c03.cfg --dev_params emmc.cfg  --bins "mb2_bootloader nvtboot_recovery.bin; mts_preboot preboot_d15_prod_cr.bin; mts_bootpack mce_mts_d15_prod_cr.bin; bpmp_fw bpmp.bin; bpmp_fw_dtb tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2.dtb; tlk tos.img; eks eks.img; bootloader_dtb tegra186-quill-p3310-1000-c03-00-base.dtb"  
*** Flashing target device started. ***
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.0021 ] tegrasign_v2 --key None --getmode mode.txt
[   0.0040 ] Assuming zero filled SBK key
[   0.0054 ] 
[   0.0055 ] Generating RCM messages
[   0.0079 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x18 --download rcm mb1_recovery_prod.bin 0 0
[   0.0088 ] RCM 0 is saved as rcm_0.rcm
[   0.0121 ] RCM 1 is saved as rcm_1.rcm
[   0.0121 ] List of rcm files are saved in rcm_list.xml
[   0.0121 ] 
[   0.0121 ] Signing RCM messages
[   0.0129 ] tegrasign_v2 --key None --list rcm_list.xml --pubkeyhash pub_key.key
[   0.0136 ] Assuming zero filled SBK key
[   0.0170 ] 
[   0.0170 ] Copying signature to RCM mesages
[   0.0179 ] tegrarcm_v2 --chip 0x18 --updatesig rcm_list_signed.xml
[   0.0191 ] 
[   0.0191 ] Parsing partition layout
[   0.0211 ] tegraparser_v2 --pt flash.xml.tmp
[   0.0249 ] 
[   0.0249 ] Creating list of images to be signed
[   0.0273 ] tegrahost_v2 --chip 0x18 --partitionlayout flash.xml.bin --list images_list.xml zerosbk
[   0.0837 ] 
[   0.0837 ] Generating signatures
[   0.0850 ] tegrasign_v2 --key None --list images_list.xml --pubkeyhash pub_key.key
[   0.0859 ] Assuming zero filled SBK key
[   0.3268 ] 
[   0.3269 ] Generating br-bct
[   0.3303 ] Updating dev and MSS params in BR BCT
[   0.3303 ] tegrabct_v2 --dev_param emmc.cfg --sdram P3310_A00_8GB_Samsung_8GB_lpddr4_204Mhz_A02_l4t.cfg --brbct br_bct.cfg --chip 0x18
[   0.3706 ] 
[   0.3707 ] Updating bl info
[   0.3716 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x18 --updateblinfo flash.xml.bin --updatesig images_list_signed.xml
[   0.3745 ] 
[   0.3745 ] Updating smd info
[   0.3755 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x18 --updatesmdinfo flash.xml.bin
[   0.3772 ] 
[   0.3772 ] Updating Odmdata
[   0.3782 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x18 --updatefields Odmdata =0x1090000
[   0.3800 ] 
[   0.3800 ] Get Signed section bct
[   0.3815 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x18 --listbct bct_list.xml
[   0.3826 ] 
[   0.3826 ] Signing BCT
[   0.3843 ] tegrasign_v2 --key None --list bct_list.xml --pubkeyhash pub_key.key
[   0.3851 ] Assuming zero filled SBK key
[   0.3960 ] 
[   0.3960 ] Updating BCT with signature
[   0.3970 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x18 --updatesig bct_list_signed.xml
[   0.3985 ] 
[   0.3985 ] Generating coldboot mb1-bct
[   0.3995 ] tegrabct_v2 --chip 0x18 --mb1bct mb1_cold_boot_bct.cfg --sdram P3310_A00_8GB_Samsung_8GB_lpddr4_204Mhz_A02_l4t.cfg --misc tegra186-mb1-bct-misc-si-l4t.cfg --scr mobile_scr.cfg --pinmux tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg --pmc tegra186-mb1-bct-pad-quill-p3310-1000-c03.cfg --pmic tegra186-mb1-bct-pmic-quill-p3310-1000-c04.cfg --brcommand tegra186-mb1-bct-bootrom-quill-p3310-1000-c03.cfg --prod tegra186-mb1-bct-prod-quill-p3310-1000-c03.cfg
[   0.4005 ] MB1-BCT version: 0xe
[   0.4007 ] Copying Sdram info from 2 to 3 set
[   0.4243 ] Packing sdram param for instance[0]
[   0.4246 ] Packing sdram param for instance[1]
[   0.4250 ] Packing sdram param for instance[2]
[   0.4253 ] Packing sdram param for instance[3]

[   0.4256 ] Parsing config file :tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg 
[   0.4263 ] Appending platform config data of size :- 2904

[   0.4268 ] Parsing config file :mobile_scr.cfg 
[   0.4271 ] Appending platform config data of size :- 12240

[   0.4288 ] Parsing config file :tegra186-mb1-bct-pad-quill-p3310-1000-c03.cfg 
[   0.4296 ] Appending platform config data of size :- 24
[   0.4302 ] 
[   0.4302 ] Parsing config file :tegra186-mb1-bct-pmic-quill-p3310-1000-c04.cfg 
[   0.4302 ] Appending platform config data of size :- 708
[   0.4302 ] 
[   0.4302 ] Parsing config file :tegra186-mb1-bct-bootrom-quill-p3310-1000-c03.cfg 
[   0.4302 ] Appending platform config data of size :- 64
[   0.4302 ] 
[   0.4302 ] Parsing config file :tegra186-mb1-bct-prod-quill-p3310-1000-c03.cfg 
[   0.4302 ] Appending platform config data of size :- 1652
[   0.4302 ] 
[   0.4303 ] Updating mb1-bct with firmware information
[   0.4313 ] tegrabct_v2 --chip 0x18 --mb1bct mb1_cold_boot_bct_MB1.bct --updatefwinfo flash.xml.bin
[   0.4322 ] MB1-BCT version: 0xe
[   0.4328 ] 
[   0.4328 ] Updating mb1-bct with storage information
[   0.4336 ] tegrabct_v2 --chip 0x18 --mb1bct mb1_cold_boot_bct_MB1.bct --updatestorageinfo flash.xml.bin
[   0.4345 ] MB1-BCT version: 0xe
[   0.4349 ] 
[   0.4359 ] tegrahost_v2 --align mb1_cold_boot_bct_MB1.bct
[   0.4368 ] 
[   0.4377 ] tegrahost_v2 --appendsigheader mb1_cold_boot_bct_MB1.bct zerosbk
[   0.4388 ] 
[   0.4400 ] tegrasign_v2 --key None --list mb1_cold_boot_bct_MB1_sigheader.bct_list.xml
[   0.4408 ] Assuming zero filled SBK key
[   0.4423 ] 
[   0.4437 ] tegrahost_v2 --updatesigheader mb1_cold_boot_bct_MB1_sigheader.bct.encrypt mb1_cold_boot_bct_MB1_sigheader.bct.hash zerosbk
[   0.4448 ] 
[   0.4448 ] Generating recovery mb1-bct
[   0.4457 ] tegrabct_v2 --chip 0x18 --mb1bct mb1_bct.cfg --sdram P3310_A00_8GB_Samsung_8GB_lpddr4_204Mhz_A02_l4t.cfg --misc tegra186-mb1-bct-misc-si-l4t.cfg --scr minimal_scr.cfg --pinmux tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg --pmc tegra186-mb1-bct-pad-quill-p3310-1000-c03.cfg --pmic tegra186-mb1-bct-pmic-quill-p3310-1000-c04.cfg --brcommand tegra186-mb1-bct-bootrom-quill-p3310-1000-c03.cfg --prod tegra186-mb1-bct-prod-quill-p3310-1000-c03.cfg
[   0.4466 ] MB1-BCT version: 0xe
[   0.4468 ] Copying Sdram info from 2 to 3 set
[   0.4708 ] Packing sdram param for instance[0]
[   0.4712 ] Packing sdram param for instance[1]
[   0.4716 ] Packing sdram param for instance[2]
[   0.4719 ] Packing sdram param for instance[3]

[   0.4723 ] Parsing config file :tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg 
[   0.4729 ] Appending platform config data of size :- 2904

[   0.4734 ] Parsing config file :minimal_scr.cfg 
[   0.4737 ] Appending platform config data of size :- 12240
[   0.4745 ] 
[   0.4745 ] Parsing config file :tegra186-mb1-bct-pad-quill-p3310-1000-c03.cfg 
[   0.4745 ] Appending platform config data of size :- 24
[   0.4745 ] 
[   0.4745 ] Parsing config file :tegra186-mb1-bct-pmic-quill-p3310-1000-c04.cfg 
[   0.4745 ] Appending platform config data of size :- 708
[   0.4745 ] 
[   0.4745 ] Parsing config file :tegra186-mb1-bct-bootrom-quill-p3310-1000-c03.cfg 
[   0.4745 ] Appending platform config data of size :- 64
[   0.4745 ] 
[   0.4745 ] Parsing config file :tegra186-mb1-bct-prod-quill-p3310-1000-c03.cfg 
[   0.4745 ] Appending platform config data of size :- 1652
[   0.4745 ] 
[   0.4746 ] Updating mb1-bct with firmware information
[   0.4756 ] tegrabct_v2 --chip 0x18 --mb1bct mb1_bct_MB1.bct --updatefwinfo flash.xml.bin
[   0.4764 ] MB1-BCT version: 0xe
[   0.4771 ] 
[   0.4771 ] Updating mb1-bct with storage information
[   0.4780 ] tegrabct_v2 --chip 0x18 --mb1bct mb1_bct_MB1.bct --updatestorageinfo flash.xml.bin
[   0.4789 ] MB1-BCT version: 0xe
[   0.4793 ] 
[   0.4803 ] tegrahost_v2 --align mb1_bct_MB1.bct
[   0.4816 ] 
[   0.4826 ] tegrahost_v2 --appendsigheader mb1_bct_MB1.bct zerosbk
[   0.4839 ] 
[   0.4851 ] tegrasign_v2 --key None --list mb1_bct_MB1_sigheader.bct_list.xml
[   0.4859 ] Assuming zero filled SBK key
[   0.4873 ] 
[   0.4885 ] tegrahost_v2 --updatesigheader mb1_bct_MB1_sigheader.bct.encrypt mb1_bct_MB1_sigheader.bct.hash zerosbk
[   0.4896 ] 
[   0.4896 ] Copying signatures
[   0.4905 ] tegrahost_v2 --chip 0x18 --partitionlayout flash.xml.bin --updatesig images_list_signed.xml
[   0.5435 ] 
[   0.5436 ] Boot Rom communication
[   0.5449 ] tegrarcm_v2 --chip 0x18 --rcm rcm_list_signed.xml
[   0.5470 ] BootRom is not running
[   1.5692 ] 
[   1.5701 ] tegrarcm_v2 --isapplet
[   1.5709 ] Applet version 01.00.0000
[   1.5798 ] 
[   1.5798 ] Retrieving board information
[   1.5806 ] tegrarcm_v2 --oem platformdetails chip chip_info.bin
[   1.5814 ] Applet version 01.00.0000
[   1.5913 ] Saved platform info in chip_info.bin
[   1.5955 ] Chip minor revision: 2
[   1.5968 ] 
[   1.5969 ] Sending BCTs
[   1.5979 ] tegrarcm_v2 --download bct_bootrom br_bct_BR.bct --download bct_mb1 mb1_bct_MB1_sigheader.bct.encrypt
[   1.6007 ] Applet version 01.00.0000
[   1.6109 ] Sending bct_bootrom
[   1.6114 ] [................................................] 100%
[   1.6244 ] Sending bct_mb1
[   1.6321 ] [................................................] 100%
[   1.9882 ] 
[   1.9883 ] Generating blob
[   1.9892 ] tegrahost_v2 --align blob_nvtboot_recovery_cpu.bin
[   1.9899 ] 
[   1.9907 ] tegrahost_v2 --appendsigheader blob_nvtboot_recovery_cpu.bin zerosbk
[   1.9918 ] 
[   1.9928 ] tegrasign_v2 --key None --list blob_nvtboot_recovery_cpu_sigheader.bin_list.xml
[   1.9935 ] Assuming zero filled SBK key
[   1.9980 ] 
[   1.9991 ] tegrahost_v2 --updatesigheader blob_nvtboot_recovery_cpu_sigheader.bin.encrypt blob_nvtboot_recovery_cpu_sigheader.bin.hash zerosbk
[   2.0003 ] 
[   2.0013 ] tegrahost_v2 --align blob_nvtboot_recovery.bin
[   2.0021 ] 
[   2.0030 ] tegrahost_v2 --appendsigheader blob_nvtboot_recovery.bin zerosbk
[   2.0107 ] 
[   2.0121 ] tegrasign_v2 --key None --list blob_nvtboot_recovery_sigheader.bin_list.xml
[   2.0131 ] Assuming zero filled SBK key
[   2.0150 ] 
[   2.0163 ] tegrahost_v2 --updatesigheader blob_nvtboot_recovery_sigheader.bin.encrypt blob_nvtboot_recovery_sigheader.bin.hash zerosbk
[   2.0175 ] 
[   2.0187 ] tegrahost_v2 --align blob_preboot_d15_prod_cr.bin
[   2.0196 ] 
[   2.0205 ] tegrahost_v2 --appendsigheader blob_preboot_d15_prod_cr.bin zerosbk
[   2.0216 ] 
[   2.0228 ] tegrasign_v2 --key None --list blob_preboot_d15_prod_cr_sigheader.bin_list.xml
[   2.0237 ] Assuming zero filled SBK key
[   2.0255 ] 
[   2.0268 ] tegrahost_v2 --updatesigheader blob_preboot_d15_prod_cr_sigheader.bin.encrypt blob_preboot_d15_prod_cr_sigheader.bin.hash zerosbk
[   2.0281 ] 
[   2.0293 ] tegrahost_v2 --align blob_mce_mts_d15_prod_cr.bin
[   2.0302 ] 
[   2.0322 ] tegrahost_v2 --appendsigheader blob_mce_mts_d15_prod_cr.bin zerosbk
[   2.0368 ] 
[   2.0382 ] tegrasign_v2 --key None --list blob_mce_mts_d15_prod_cr_sigheader.bin_list.xml
[   2.0390 ] Assuming zero filled SBK key
[   2.0856 ] 
[   2.0869 ] tegrahost_v2 --updatesigheader blob_mce_mts_d15_prod_cr_sigheader.bin.encrypt blob_mce_mts_d15_prod_cr_sigheader.bin.hash zerosbk
[   2.0906 ] 
[   2.0921 ] tegrahost_v2 --align blob_bpmp.bin
[   2.0930 ] 
[   2.0940 ] tegrahost_v2 --appendsigheader blob_bpmp.bin zerosbk
[   2.0960 ] 
[   2.0971 ] tegrasign_v2 --key None --list blob_bpmp_sigheader.bin_list.xml
[   2.0979 ] Assuming zero filled SBK key
[   2.1110 ] 
[   2.1127 ] tegrahost_v2 --updatesigheader blob_bpmp_sigheader.bin.encrypt blob_bpmp_sigheader.bin.hash zerosbk
[   2.1147 ] 
[   2.1168 ] tegrahost_v2 --align blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2.dtb
[   2.1178 ] 
[   2.1190 ] tegrahost_v2 --appendsigheader blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2.dtb zerosbk
[   2.1209 ] 
[   2.1221 ] tegrasign_v2 --key None --list blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2_sigheader.dtb_list.xml
[   2.1230 ] Assuming zero filled SBK key
[   2.1338 ] 
[   2.1350 ] tegrahost_v2 --updatesigheader blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2_sigheader.dtb.encrypt blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2_sigheader.dtb.hash zerosbk
[   2.1363 ] 
[   2.1373 ] tegrahost_v2 --align blob_tos.img
[   2.1380 ] 
[   2.1388 ] tegrahost_v2 --appendsigheader blob_tos.img zerosbk
[   2.1399 ] 
[   2.1413 ] tegrasign_v2 --key None --list blob_tos_sigheader.img_list.xml
[   2.1423 ] Assuming zero filled SBK key
[   2.1439 ] 
[   2.1452 ] tegrahost_v2 --updatesigheader blob_tos_sigheader.img.encrypt blob_tos_sigheader.img.hash zerosbk
[   2.1462 ] 
[   2.1470 ] tegrahost_v2 --align blob_eks.img
[   2.1479 ] 
[   2.1487 ] tegrahost_v2 --appendsigheader blob_eks.img zerosbk
[   2.1495 ] 
[   2.1505 ] tegrasign_v2 --key None --list blob_eks_sigheader.img_list.xml
[   2.1514 ] Assuming zero filled SBK key
[   2.1515 ] 
[   2.1530 ] tegrahost_v2 --updatesigheader blob_eks_sigheader.img.encrypt blob_eks_sigheader.img.hash zerosbk
[   2.1542 ] 
[   2.1554 ] tegrahost_v2 --align blob_tegra186-quill-p3310-1000-c03-00-base.dtb
[   2.1573 ] 
[   2.1587 ] tegrahost_v2 --appendsigheader blob_tegra186-quill-p3310-1000-c03-00-base.dtb zerosbk
[   2.1604 ] 
[   2.1615 ] tegrasign_v2 --key None --list blob_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb_list.xml
[   2.1625 ] Assuming zero filled SBK key
[   2.1690 ] 
[   2.1702 ] tegrahost_v2 --updatesigheader blob_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb.encrypt blob_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb.hash zerosbk
[   2.1716 ] 
[   2.1728 ] tegrahost_v2 --generateblob blob.xml blob.bin
[   2.1737 ] number of images in blob are 9
[   2.1741 ] blobsize is 3749384
[   2.1743 ] Added binary blob_nvtboot_recovery_cpu_sigheader.bin.encrypt of size 190048
[   2.1762 ] Added binary blob_nvtboot_recovery_sigheader.bin.encrypt of size 79600
[   2.1768 ] Added binary blob_preboot_d15_prod_cr_sigheader.bin.encrypt of size 63024
[   2.1775 ] Added binary blob_mce_mts_d15_prod_cr_sigheader.bin.encrypt of size 2076832
[   2.1781 ] Added binary blob_bpmp_sigheader.bin.encrypt of size 529440
[   2.1786 ] Added binary blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2_sigheader.dtb.encrypt of size 466160
[   2.1795 ] Added binary blob_tos_sigheader.img.encrypt of size 62976
[   2.1795 ] Added binary blob_eks_sigheader.img.encrypt of size 1488
[   2.1795 ] Added binary blob_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb.encrypt of size 279664
[   2.1795 ] 
[   2.1796 ] Sending bootloader and pre-requisite binaries
[   2.1805 ] tegrarcm_v2 --download blob blob.bin
[   2.1812 ] Applet version 01.00.0000
[   2.1871 ] Sending blob
[   2.1873 ] [................................................] 100%
[   2.6700 ] 
[   2.6709 ] tegrarcm_v2 --boot recovery
[   2.6715 ] Applet version 01.00.0000
[   2.6798 ] 
[   2.6807 ] tegrarcm_v2 --isapplet
[   3.3803 ] 
[   3.3846 ] tegradevflash_v2 --iscpubl
[   3.3856 ] CPU Bootloader is not running on device.
[   4.1485 ] 
[  34.5332 ] Retrieving storage infomation
[  34.5343 ] tegrarcm_v2 --oem platformdetails storage storage_info.bin
[  34.5353 ] Applet is not running on device. Continue with Bootloader
[  34.5358 ] 
[  34.5366 ] tegradevflash_v2 --oem platformdetails storage storage_info.bin
[  34.5374 ] CPU Bootloader is not running on device.
[  34.5378 ] 
Error: Return value 4
Command tegradevflash_v2 --oem platformdetails storage storage_info.bin
Failed flashing t186ref.

Your basic flash procedure was correct. The problem is that VMs tend to not handle USB correctly unless you’ve configured the Jetson device to always pass through to the VM without the host interfering. I couldn’t tell you the specifics, but the Jetson will disconnect and reconnect during a flash…VMs tend to lose the USB and fail to reconnect (the host o/s may be taking the connect). Basically you’ll need to figure out how to force the device to always go to the VM, but there is no official support for VMs.

Thanks reply,
I set up ubuntu 16.04 PC, and could successfully installed L4T R28.2.1 on JetsonTX2.