Jetson Orin Flash timeout controls?

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.

Is there an option I can pass to wait a bit longer for the usb device to be recognized? Maybe a pause in a script somewhere?

Maybe try this in your tegraflash_internal.py.

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)

Thank you!

Unfortunately it’s the same… waits for a couple seconds, errors, then I get the prompt.

Is there any usb analyzer on your side that can dump bus trace?

To be clear, that function is now

def tegraflash_reboot(args):
    if args[0] == 'coldboot':
        info_print('Coldbooting the device')
    elif args[0] == 'recovery':
        info_print('Rebooting to recovery mode')
    else:
        raise tegraflash_exception(args[0] + " is not supported")

    if int(values['--chip'], 0) == 0x21 :
        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)
            time.sleep(2)

Looks like the original conditional is a bit different? I’m using the latest 35.3.1 drivers, if it matters.

I don’t have a usb analyzer that I’m aware of. On a 2019 MacBook with the latest OS installed, if that helps.

How did you run sdkmanager on your MacBook? or you are using manual flash commands?

Apologies - emulating Ubuntu with UTM.

FWIW, I don’t see the Coldbooting or Rebooting log messages when this runs…

Any other ideas, @WayneWWW ?

Hi,

Please try to find a native ubuntu host.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.