Orin NX: Failed to flash images to the board

Hi Nvidia,

I tried to flash the images to Orin NX board and the images were built from the source code (v36.4.3) and got the failure below:

[   4.6357 ] Boot Rom communication
[   4.6492 ] 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
Error: Return value 8
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
Failed flashing generic.

Do you have idea about why it failed to flash the images and how can I solve it?

The log file below contains the logs when flashing the images.

flash.log (64.7 KB)

Hi @daviddavidda77,

The log shows that the initial recovery communication succeeds, but the next BootROM connection fails after the tool requests a reboot into recovery mode.

Could you please provide:

  1. The carrier board model. The log shows a custom amos_9k configuration.
  2. The exact flashing command you used, including all arguments.

BTW, if you are using a custom or third-party carrier board rather than an NVIDIA developer kit, our assistance is limited to the NVIDIA-supported functionality. We cannot guarantee resolution of issues specific to that board. You may need to work directly with your board vendor to resolve board-specific issues.

Thanks.

The command to flash the images is:

./flash.sh -S 117GiB amos_9k internal

And the configuration files are:

amos_9k.zip (599 Bytes)

Hi @daviddavidda77,

Your configuration references custom pinmux and MB2 BCT files. Please verify that the board-specific settings match your carrier board’s requirements, using its documentation or checking with your board vendor.

Please also run lsusb on the host immediately after flashing fails, before resetting the board or disconnecting USB, and share the output. Check whether the NVIDIA recovery device (0955:7423 for Orin NX 8GB) is still listed.

Thanks.

My board is Orin NX 8GB

orin-nx-8gb

Because it is working well with previous custom carrier board, and now we are using the old image (for the previous carrier board) on new carrier board to make sure that it is bootable on the new carrier board although the IO pins are wrong, but it should be able to install the images and bootable.

The attached logs below are the logs on Orin NX system when flashing the images.

orin-nx-8gb.log (87.2 KB)

Is there any clue or direction to figure out what errors happened and how can we solve it?

Hi @daviddavidda77,

The serial log shows Rebooting : reboot-recovery, followed by Boot-mode : Coldboot and entry into the UEFI Shell. Did you manually reset or power-cycle the board between these messages? This matters because the flashing tool expects the board to return to Recovery mode.

An image working on the previous carrier does not establish compatibility with the new carrier when its I/O configuration differs. Please work with your carrier/BSP team to adapt the pinmux, MB1/MB2 configuration, device tree, ODM data, and flashing configuration to the new board, following the R36.4.3 adaptation guide.

The log also detects the NVMe device but cannot find its partition table. Reaching UEFI therefore does not confirm that the system image was successfully flashed.

Thanks.

No, we didn’t make manual reboot during the flashing process.

We know that the incompatible pinmux configurations on the new carrier board are not ok, but it should not interfere with the installation of the images to the board.

Hi @daviddavidda77,

Board-specific settings are applied during the early bootloader stages, so incompatible settings may affect the flashing process. Their impact cannot be assumed to be limited to I/O functionality after Linux starts.

The serial log shows Rebooting : reboot-recovery, followed by Boot-mode : Coldboot, Error: Could not detect network connection., and entry into the UEFI Shell. The host log reports a failure to establish the next BootROM connection.

The network error alone does not establish the cause of the flashing failure, but the logs indicate that the board proceeds into normal boot rather than returning to Recovery mode as expected. Please first work with your carrier/BSP team to adapt the pinmux, MB1/MB2 configuration, device tree, ODM data, and flashing configuration to the new carrier.

Thanks.

Hi David,

I have a few questions regarding the flashing process:

  1. Are you running the command with elevated privileges?

    sudo ./flash.sh -S 117GiB amos_9k internal

  2. Are you running multiple separate flash operations consecutively? If so, please fully power-cycle the board and place it back into force-recovery mode before each operation.

  3. When the script reports “Rebooting to recovery mode,” does the serial console show recovery/RCM mode, or does it show “Boot-mode: Coldboot”?

  4. Which JetPack/L4T version and VIA AMOS BSP version are you using?

The serial log indicates that the board is rebooting into Coldboot instead of remaining in recovery mode, which causes the host-side tegrarcm “Return value 8” error.

Best regards,
Alejandro GodĂ­nez
Embedded Software Engineer, RidgeRun

Contact us: support@ridgerun.com
Developers Wiki: https://developer.ridgerun.com
Website: https://www.ridgerun.com