I’m flashing an Orin NX on a turing pi 2. I’m emulating Ubuntu 20.04.6 on an Intel Mac with UTM.
Setup went fantastic until it came time to send the files to the board.
$ sudo bash ./flashcmd.txt
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands
Entering RCM boot
[ 0.0335 ] mb1_t234_prod_aligned_sigheader.bin.encrypt filename is from --mb1_bin
[ 0.0335 ] psc_bl1_t234_prod_aligned_sigheader.bin.encrypt filename is from --psc_bl1_bin
[ 0.0335 ] rcm boot with presigned binaries
[ 0.0348 ] 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.0361 ] BR_CID: 0x80012344705E3644740000000B028280
[ 0.4637 ] Sending bct_br
[ 0.8830 ] 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
The script seems to be requesting access to the usb device that’s connected, but I don’t get the popup to grant access until about a second after the script times out.
def tegraflash_reboot(args):
if args[0] == 'coldboot':
info_print('Coldbooting the device')
elif args[0] == 'recovery':
info_print('Rebooting to recovery mode **** [ Within the next 30sec, manually plug out the USB cable for flashing and put the cable back in ] ****')
else:
raise tegraflash_exception(args[0] + " is not supported")
if int(values['--chip'], 0) == 0x21 or int(values['--chip'], 0) == 0x18:
try:
command = exec_file('tegradevflash')
command.extend(['--reboot', args[0]])
run_command(command)
time.sleep(2)
except:
tegraflash_tboot_reset(args)
else:
if check_ismb2():
tegraflash_tboot_reset(args)
time.sleep(30)
info_print('Rebooting to recovery mode ========================================================')
else:
command = exec_file('tegradevflash')
command.extend(['--reboot', args[0]])
run_command(command)