I try to flash nvme on my xavier nx, but failed and nothing on nvme

I try to use sdkmanager to flash the nvme on jetson xavier ng. system is ubuntu 20.04 (I changed /etc/os-release).

it is success to flash emmc, and it can boot and enter system, but it is failed to flash nvme. there are two kind of “failure”: “return value 3” and “waiting for boot-up timeout”.

I checked the flashed nvme, but it is empty. it looks un-flashed.

logs:

$ cat initrdlog/flash_1-6.1_0_20220217-001939.log
**********************************************
*                                            *
*  Step 1: Build the flashing environment    *
*                                            *
**********************************************
Create flash environment 0
/home/qinka/nvidia/nvidia_sdk/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader /home/qinka/nvidia/nvidia_sdk/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra
/home/qinka/nvidia/nvidia_sdk/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra
Finish creating flash environment 0.
****************************************************
*                                                  *
*  Step 2: Boot the device with flash initrd image *
*                                                  *
****************************************************
/home/qinka/nvidia/nvidia_sdk/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/temp_initrdflash/bootloader0 /home/qinka/nvidia/nvidia_sdk/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra
./tegraflash.py --bl nvtboot_recovery_cpu_t194_sigheader.bin.encrypt --bct br_bct_BR.bct --securedev  --applet rcm_2_encrypt.rcm --applet_softfuse rcm_1_encrypt.rcm --cmd "rcmboot"  --cfg secureflash.xml --chip 0x19 --mb1_bct mb1_bct_MB1_sigheader.bct.encrypt --mem_bct mem_rcm_sigheader.bct.encrypt --mb1_cold_boot_bct mb1_cold_boot_bct_MB1_sigheader.bct.encrypt --mem_bct_cold_boot mem_coldboot_sigheader.bct.encrypt  --bins "mb2_bootloader nvtboot_recovery_t194_sigheader.bin.encrypt; mts_preboot preboot_c10_prod_cr_sigheader.bin.encrypt; mts_mce mce_c10_prod_cr_sigheader.bin.encrypt; mts_proper mts_c10_prod_cr_sigheader.bin.encrypt; bpmp_fw bpmp_t194_sigheader.bin.encrypt; bpmp_fw_dtb tegra194-a02-bpmp-p3668-a00_sigheader.dtb.encrypt; spe_fw spe_t194_sigheader.bin.encrypt; tlk tos-trusty_t194_sigheader.img.encrypt; eks eks_sigheader.img.encrypt; kernel boot0.img; kernel_dtb kernel_tegra194-p3668-all-p3509-0000.dtb; bootloader_dtb tegra194-p3668-all-p3509-0000_sigheader.dtb.encrypt"    --instance 1-6.1 --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


 Entering RCM boot

[   0.0000 ] rcm boot with presigned binaries
[   0.0000 ] Boot Rom communication
[   0.0027 ] tegrarcm_v2 --instance 1-6.1 --chip 0x19 0 --rcm rcm_1_encrypt.rcm --rcm rcm_2_encrypt.rcm --skipuid
[   0.0039 ] B/home/qinka/nvidia/nvidia_sdk/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/temp_initrdflash/bootloader0/tegraflash_internal.py:2064: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if sig_type is not "zerosbk":
/home/qinka/nvidia/nvidia_sdk/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/temp_initrdflash/bootloader0/tegraflash_internal.py:2067: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if sig_type is "oem-rsa":
/home/qinka/nvidia/nvidia_sdk/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/temp_initrdflash/bootloader0/tegraflash_internal.py:2560: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  while count is not 0 and not check_ismb2():
/home/qinka/nvidia/nvidia_sdk/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/temp_initrdflash/bootloader0/tegraflash_internal.py:2569: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  while count is not 0:
oot Rom communication failed
[   5.2036 ]
Error: Return value 3
Command tegrarcm_v2 --instance 1-6.1 --chip 0x19 0 --rcm rcm_1_encrypt.rcm --rcm rcm_2_encrypt.rcm --skipuid
Cleaning up...

and

$ cat initrdlog/flash_1-6.1_0_20220217-094638.log
**********************************************
*                                            *
*  Step 1: Build the flashing environment    *
*                                            *
**********************************************
Create flash environment 0
/home/qinka/nvidia/nvidia_sdk/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader /home/qinka/nvidia/nvidia_sdk/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra
/home/qinka/nvidia/nvidia_sdk/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra
Finish creating flash environment 0.
****************************************************
*                                                  *
*  Step 2: Boot the device with flash initrd image *
*                                                  *
****************************************************
/home/qinka/nvidia/nvidia_sdk/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/temp_initrdflash/bootloader0 /home/qinka/nvidia/nvidia_sdk/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra
./tegraflash.py --bl nvtboot_recovery_cpu_t194_sigheader.bin.encrypt --bct br_bct_BR.bct --securedev  --applet rcm_2_encrypt.rcm --applet_softfuse rcm_1_encrypt.rcm --cmd "rcmboot"  --cfg secureflash.xml --chip 0x19 --mb1_bct mb1_bct_MB1_sigheader.bct.encrypt --mem_bct mem_rcm_sigheader.bct.encrypt --mb1_cold_boot_bct mb1_cold_boot_bct_MB1_sigheader.bct.encrypt --mem_bct_cold_boot mem_coldboot_sigheader.bct.encrypt  --bins "mb2_bootloader nvtboot_recovery_t194_sigheader.bin.encrypt; mts_preboot preboot_c10_prod_cr_sigheader.bin.encrypt; mts_mce mce_c10_prod_cr_sigheader.bin.encrypt; mts_proper mts_c10_prod_cr_sigheader.bin.encrypt; bpmp_fw bpmp_t194_sigheader.bin.encrypt; bpmp_fw_dtb tegra194-a02-bpmp-p3668-a00_sigheader.dtb.encrypt; spe_fw spe_t194_sigheader.bin.encrypt; tlk tos-trusty_t194_sigheader.img.encrypt; eks eks_sigheader.img.encrypt; kernel boot0.img; kernel_dtb kernel_tegra194-p3668-all-p3509-0000.dtb; bootloader_dtb tegra194-p3668-all-p3509-0000_sigheader.dtb.encrypt"    --instance 1-6.1 --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


 Entering RCM boot

[   0.0000 ] rcm boot with presigned binaries
[   0.0000 ] Boot Rom communication
[   0.0028 ] tegrarcm_v2 --instance 1-6.1 --chip 0x19 0 --rcm rcm_1_encrypt.rcm --rcm rcm_2_encrypt.rcm --skipuid
[   0.0038 ] Boot Rom communication completed
[   1.0394 ]
[   2.0433 ] tegrarcm_v2 --instance 1-6.1 --isapplet
[   2.0444 ] Applet version 01.00.0000
[   2.0779 ]
[   2.0780 ] Sending BCTs
[   2.0807 ] tegrarcm_v2 --instance 1-6.1 --download bct_bootrom br_bct_BR.bct --download bct_mb1 mb1_bct_MB1_sigheader.bct.encrypt --download bct_mem mem_rcm_sigheader.bct.encrypt
[   2.0818 ] Applet version 01.00.0000
[   2.1146 ] Sending bct_bootrom
[   2.1148 ] [................................................] 100%
[   2.1176 ] Sending bct_mb1
[   2.1235 ] [................................................] 100%
[   2.1295 ] Sending bct_mem
[   2.1811 ] [................................................] 100%
[   2.2601 ]
[   2.2602 ] Generating blob
[   2.2640 ] tegrahost_v2 --chip 0x19 --generateblob blob.xml blob.bin
[   2.2649 ] number of images in blob are 13
[   2.2656 ] blobsize is 60921975
[   2.2659 ] Added binary blob_nvtboot_recovery_cpu_t194_sigheader.bin.encrypt of size 263840
[   2.3002 ] Added binary blob_nvtboot_recovery_t194_sigheader.bin.encrypt of size 181152
[   2.3013 ] Added binary blob_preboot_c10_prod_cr_sigheader.bin.encrypt of size 24016
[   2.3023 ] Added binary blob_mce_c10_prod_cr_sigheader.bin.encrypt of size 143200
[   2.3033 ] Added binary blob_mts_c10_prod_cr_sigheader.bin.encrypt of size 3430416
[   2.3044 ] Added binary blob_bpmp_t194_sigheader.bin.encrypt of size 856352
[   2.3055 ] Added binary blob_tegra194-a02-bpmp-p3668-a00_sigheader.dtb.encrypt of size 281984
[   2.3068 ] Added binary blob_spe_t194_sigheader.bin.encrypt of size 94960
[   2.3078 ] Added binary blob_tos-trusty_t194_sigheader.img.encrypt of size 410560
[   2.3088 ] Added binary blob_eks_sigheader.img.encrypt of size 5136
[   2.3097 ] Added binary blob_boot0.img of size 54816768
[   2.3570 ] Added binary blob_kernel_tegra194-p3668-all-p3509-0000.dtb of size 204639
[   2.3752 ] Added binary blob_tegra194-p3668-all-p3509-0000_sigheader.dtb.encrypt of size 208736
[   2.4405 ]
[   2.4406 ] Sending bootloader and pre-requisite binaries
[   2.4433 ] tegrarcm_v2 --instance 1-6.1 --download blob blob.bin
[   2.4443 ] Applet version 01.00.0000
[   2.4797 ] Sending blob
[   2.4798 ] [................................................] 100%
[  11.4977 ]
[  11.5002 ] tegrarcm_v2 --instance 1-6.1 --boot rcm
[  11.5011 ] Applet version 01.00.0000
/home/qinka/nvidia/nvidia_sdk/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/temp_initrdflash/bootloader0/tegraflash_internal.py:2064: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if sig_type is not "zerosbk":
/home/qinka/nvidia/nvidia_sdk/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/temp_initrdflash/bootloader0/tegraflash_internal.py:2067: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if sig_type is "oem-rsa":
/home/qinka/nvidia/nvidia_sdk/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/temp_initrdflash/bootloader0/tegraflash_internal.py:2560: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  while count is not 0 and not check_ismb2():
/home/qinka/nvidia/nvidia_sdk/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/temp_initrdflash/bootloader0/tegraflash_internal.py:2569: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  while count is not 0:
[  11.5378 ]
[  11.5379 ] RCM-boot started

/home/qinka/nvidia/nvidia_sdk/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra
***************************************
*                                     *
*  Step 3: Start the flashing process *
*                                     *
***************************************
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for device to expose ssh .......................................................................................................................................................................................Timeout
Cleaning up...

Is the carrier board of your NX a custom board from some vendors or is it a NV developer kit?

It’s called “jetson sub developer kit”. I think it’s not an official developer kit.

but according to the seller’s documents, there should no differences

/home/qinka/nvidia/nvidia_sdk/JetPack_4.6_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/temp_initrdflash/bootloader0/tegraflash_internal.py:2067: SyntaxWarning: “is” with a literal. Did you mean “==”?
if sig_type is “oem-rsa”:

What is the default python version you are using?

image
image

When your jetson xavier boots with emmc, are you able to see this board as usb device mode on the flash port?

yes,

if the board normally boot into the system, there will be a usb device and a ethernet interface(usb0 with correct IP)
if the board boot into recovery mode, there will be just a USB device “0955:7e19 NVIDIA Corp”.

Hi,

I can only suggest you to use a devkit to validate your host setup first. We are not able to guarantee if that custom board really can work with initrd flash.

I use Ubuntu 18.04 to run sdk manager, and successfully flash nvme…

1 Like

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