Flashing Jetson TX2 fails to complete

I’ve tried flashing my TX2 using both Jetpack and the R27/1 flashing scripts, but both stall after this point:

james@james-MacBookPro:~/Linux_for_Tegra$ sudo ./flash.sh jetson-tx2 mmcblk0p1
./tegraflash.py --chip 0x18 --applet “/home/james/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.0010 ] Generating RCM messages
[ 0.0019 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x18 --download rcm /home/james/Linux_for_Tegra/bootloader/mb1_recovery_prod.bin 0 0
[ 0.0027 ] RCM 0 is saved as rcm_0.rcm
[ 0.0031 ] RCM 1 is saved as rcm_1.rcm
[ 0.0031 ] List of rcm files are saved in rcm_list.xml
[ 0.0031 ]
[ 0.0031 ] Signing RCM messages
[ 0.0041 ] tegrasign_v2 --key None --list rcm_list.xml --pubkeyhash pub_key.key
[ 0.0049 ] Assuming zero filled SBK key
[ 0.0088 ]
[ 0.0090 ] Copying signature to RCM mesages
[ 0.0111 ] tegrarcm_v2 --chip 0x18 --updatesig rcm_list_signed.xml
[ 0.0134 ]
[ 0.0135 ] Boot Rom communication
[ 0.0156 ] tegrarcm_v2 --chip 0x18 --rcm rcm_list_signed.xml --skipuid

^^ Script stalls here ^^

I’m running Ubuntu 16.04 on a Macbook Pro and am using the provided USB cable for the flashing procedure. I noticed that the micro-usb port doesn’t seem to be a tight fit, not sure if this is common across all TX2’s or if this is a related issue.

I’m going through the recovery boot mode, but am having no luck flashing my TX2. Any ideas on what could be going wrong here?

Running lsusb shows the following output:

james@james-MacBookPro:~$ lsusb
Bus 002 Device 003: ID 05ac:8406 Apple, Inc.
Bus 002 Device 005: ID 152d:1561 JMicron Technology Corp. / JMicron USA Technology Corp.
Bus 002 Device 004: ID 0bda:8153 Realtek Semiconductor Corp.
Bus 002 Device 002: ID 2109:0812 VIA Labs, Inc. VL812 Hub
Bus 002 Device 006: ID 0451:8046 Texas Instruments, Inc.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 05ac:0273 Apple, Inc.
Bus 001 Device 003: ID 05ac:8290 Apple, Inc.
Bus 001 Device 015: ID 0955:7c18 NVidia Corp.
Bus 001 Device 002: ID 2109:2812 VIA Labs, Inc. VL812 Hub
Bus 001 Device 012: ID 062a:4102 Creative Labs
Bus 001 Device 011: ID 045e:00db Microsoft Corp. Natural Ergonomic Keyboard 4000 V1.0
Bus 001 Device 010: ID 0451:8044 Texas Instruments, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

VMs are a known issue on USB communications stalling. Since it is a Mac I would assume you have to use a VM (Linux can run on a Mac, but only x86_64 can run the flash program’s binary). I do not know how to “tweak” a VM, but some people have reported that forcing the port at the VM to USB2 mode, and adding buffer will work around the issue.