How to flash Jetson TX2 NX?

Hi,

I’m tried to flash the Jetson TX2 NX but I had this error below. Are these commands correct? How can I flash each partition separately ( kernel, dtb, u boot) and the complete image?

rene@rene-Vostro-5481:~/image-box/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_TX2_NX/Linux_for_Tegra$ sudo ./flash.sh -r -k DTB jetson-tx2 mmcblk1p1
###############################################################################
# L4T BSP Information:
# R32 , REVISION: 5.1
###############################################################################
# Target Board Information:
# Name: jetson-tx2, Board Family: t186ref, SoC: Tegra 186, 
# OpMode: production, Boot Authentication: NS, 
# Disk encryption: disabled ,
###############################################################################
./tegraflash.py --chip 0x18 --applet "/home/rene/image-box/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_TX2_NX/Linux_for_Tegra/bootloader/mb1_recovery_prod.bin" --skipuid --cmd "dump eeprom boardinfo cvm.bin" 
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.0026 ] Generating RCM messages
[   0.0032 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x18 0 --download rcm /home/rene/image-box/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_TX2_NX/Linux_for_Tegra/bootloader/mb1_recovery_prod.bin 0 0
[   0.0038 ] RCM 0 is saved as rcm_0.rcm
[   0.0040 ] RCM 1 is saved as rcm_1.rcm
[   0.0040 ] List of rcm files are saved in rcm_list.xml
[   0.0040 ] 
[   0.0040 ] Signing RCM messages
[   0.0045 ] tegrasign_v2 --key None --list rcm_list.xml --pubkeyhash pub_key.key
[   0.0051 ] Assuming zero filled SBK key
[   0.0074 ] 
[   0.0074 ] Copying signature to RCM mesages
[   0.0080 ] tegrarcm_v2 --chip 0x18 0 --updatesig rcm_list_signed.xml
[   0.0088 ] 
[   0.0088 ] Boot Rom communication
[   0.0094 ] tegrarcm_v2 --chip 0x18 0 --rcm rcm_list_signed.xml --skipuid
[   0.0099 ] RCM version 0X180001
[   0.0108 ] Boot Rom communication completed
[   1.0182 ] 
[   2.0240 ] tegrarcm_v2 --isapplet
[   2.0276 ] Applet version 01.00.0000
[   2.0316 ] 
[   2.0349 ] Retrieving EEPROM data
[   2.0353 ] tegrarcm_v2 --oem platformdetails eeprom cvm /home/rene/image-box/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_TX2_NX/Linux_for_Tegra/bootloader/cvm.bin
[   2.0382 ] Applet version 01.00.0000
[   2.0571 ] Saved platform info in /home/rene/image-box/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_TX2_NX/Linux_for_Tegra/bootloader/cvm.bin
[   2.1301 ] 
Board ID(3636) version(300) sku(0001) revision(H.0)
not supported by U-Boot
rene@rene-Vostro-5481:~/image-box/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_TX2_NX/Linux_for_Tegra$ sudo ./flash.sh -k LNX jetson-tx2 mmcblk0p1
###############################################################################
# L4T BSP Information:
# R32 , REVISION: 5.1
###############################################################################
# Target Board Information:
# Name: jetson-tx2, Board Family: t186ref, SoC: Tegra 186, 
# OpMode: production, Boot Authentication: NS, 
# Disk encryption: disabled ,
###############################################################################
./tegraflash.py --chip 0x18 --applet "/home/rene/image-box/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_TX2_NX/Linux_for_Tegra/bootloader/mb1_recovery_prod.bin" --skipuid --cmd "dump eeprom boardinfo cvm.bin" 
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.0026 ] Generating RCM messages
[   0.0033 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x18 0 --download rcm /home/rene/image-box/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_TX2_NX/Linux_for_Tegra/bootloader/mb1_recovery_prod.bin 0 0
[   0.0038 ] RCM 0 is saved as rcm_0.rcm
[   0.0040 ] RCM 1 is saved as rcm_1.rcm
[   0.0040 ] List of rcm files are saved in rcm_list.xml
[   0.0040 ] 
[   0.0040 ] Signing RCM messages
[   0.0046 ] tegrasign_v2 --key None --list rcm_list.xml --pubkeyhash pub_key.key
[   0.0052 ] Assuming zero filled SBK key
[   0.0075 ] 
[   0.0075 ] Copying signature to RCM mesages
[   0.0080 ] tegrarcm_v2 --chip 0x18 0 --updatesig rcm_list_signed.xml
[   0.0088 ] 
[   0.0088 ] Boot Rom communication
[   0.0093 ] tegrarcm_v2 --chip 0x18 0 --rcm rcm_list_signed.xml --skipuid
[   0.0098 ] RCM version 0X180001
[   0.0106 ] Boot Rom communication completed
[   1.0183 ] 
[   2.0234 ] tegrarcm_v2 --isapplet
[   2.0262 ] Applet version 01.00.0000
[   2.0431 ] 
[   2.0443 ] Retrieving EEPROM data
[   2.0445 ] tegrarcm_v2 --oem platformdetails eeprom cvm /home/rene/image-box/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_TX2_NX/Linux_for_Tegra/bootloader/cvm.bin
[   2.0461 ] Applet version 01.00.0000
[   2.0635 ] Saved platform info in /home/rene/image-box/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_TX2_NX/Linux_for_Tegra/bootloader/cvm.bin
[   2.1373 ] 
Board ID(3636) version(300) sku(0001) revision(H.0)
not supported by U-Boot
rene@rene-Vostro-5481:~/image-box/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_TX2_NX/Linux_for_Tegra$ sudo ./flash.sh jetson-tx2 mmcblk0p1
###############################################################################
# L4T BSP Information:
# R32 , REVISION: 5.1
###############################################################################
# Target Board Information:
# Name: jetson-tx2, Board Family: t186ref, SoC: Tegra 186, 
# OpMode: production, Boot Authentication: NS, 
# Disk encryption: disabled ,
###############################################################################
./tegraflash.py --chip 0x18 --applet "/home/rene/image-box/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_TX2_NX/Linux_for_Tegra/bootloader/mb1_recovery_prod.bin" --skipuid --cmd "dump eeprom boardinfo cvm.bin" 
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.0026 ] Generating RCM messages
[   0.0033 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x18 0 --download rcm /home/rene/image-box/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_TX2_NX/Linux_for_Tegra/bootloader/mb1_recovery_prod.bin 0 0
[   0.0038 ] RCM 0 is saved as rcm_0.rcm
[   0.0040 ] RCM 1 is saved as rcm_1.rcm
[   0.0040 ] List of rcm files are saved in rcm_list.xml
[   0.0040 ] 
[   0.0041 ] Signing RCM messages
[   0.0046 ] tegrasign_v2 --key None --list rcm_list.xml --pubkeyhash pub_key.key
[   0.0052 ] Assuming zero filled SBK key
[   0.0075 ] 
[   0.0075 ] Copying signature to RCM mesages
[   0.0080 ] tegrarcm_v2 --chip 0x18 0 --updatesig rcm_list_signed.xml
[   0.0088 ] 
[   0.0088 ] Boot Rom communication
[   0.0093 ] tegrarcm_v2 --chip 0x18 0 --rcm rcm_list_signed.xml --skipuid
[   0.0098 ] RCM version 0X180001
[   0.0108 ] Boot Rom communication completed
[   1.0183 ] 
[   2.0233 ] tegrarcm_v2 --isapplet
[   2.0255 ] Applet version 01.00.0000
[   2.0281 ] 
[   2.0290 ] Retrieving EEPROM data
[   2.0291 ] tegrarcm_v2 --oem platformdetails eeprom cvm /home/rene/image-box/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_TX2_NX/Linux_for_Tegra/bootloader/cvm.bin
[   2.0299 ] Applet version 01.00.0000
[   2.0463 ] Saved platform info in /home/rene/image-box/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_TX2_NX/Linux_for_Tegra/bootloader/cvm.bin
[   2.1199 ] 
Board ID(3636) version(300) sku(0001) revision(H.0)
not supported by U-Boot

Hello @souzzalimma

Can you try this:
$ sudo ./flash.sh -r -k kernel-dtb jetson-xavier-nx-devkit-tx2-nx mmcblk0p1

I used this command in our industrial box PC from here JetPack 4.5.1 Installation for Jetson™ TX2 NX on DSBOARD-NX2 and it worked.

Regards

Thank’s @mehmetdeniz. It’s work.