The Orin NX was successfully flashed with Jetpack 5.1.2 and was working fine. After a reboot the device is not booting up. When trying to reflash the following error is there eventhough the device is detected with lsusb
. How to recover this device?
eli@flashing-station:~/Downloads/Linux_for_Tegra$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 05ac:024f Apple, Inc.
Bus 001 Device 004: ID 05ac:1006 Apple, Inc. Hub in Aluminum Keyboard
Bus 001 Device 003: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 001 Device 002: ID 0955:7323 NVIDIA Corp. APX
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
eli@flashing-station:~/Downloads/Linux_for_Tegra$ sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -c tools/kernel_flash/flash_l4t_external.xml -p "-c bootloader/t186ref/cfg/flash_t234_qspi.xml" --showlogs --network usb0 p3509-a02+p3767-0000 internal
/home/eli/Downloads/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh --no-flash --external-device nvme0n1p1 -c tools/kernel_flash/flash_l4t_external.xml -p -c bootloader/t186ref/cfg/flash_t234_qspi.xml --showlogs --network usb0 p3509-a02+p3767-0000 internal
************************************
* *
* Step 1: Generate flash packages *
* *
************************************
Create folder to store images to flash
Generate image for internal storage devices
Generate images to be flashed
ADDITIONAL_DTB_OVERLAY="" /home/eli/Downloads/Linux_for_Tegra/flash.sh --no-flash --sign -c bootloader/t186ref/cfg/flash_t234_qspi.xml p3509-a02+p3767-0000 internal
###############################################################################
# L4T BSP Information:
# R35 , REVISION: 4.1
# User release: 0.0
###############################################################################
copying emc_fuse_dev_params(/home/eli/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-br-bct-diag-boot.dts)... done.
copying device_config(/home/eli/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-device-p3767-0000.dts)... done.
copying misc_config(/home/eli/Downloads/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-misc-p3767-0000.dts)... done.
./tegraflash.py --chip 0x23 --applet "/home/eli/Downloads/Linux_for_Tegra/bootloader/mb1_t234_prod.bin" --skipuid --cfg readinfo_t234_min_prod.xml --dev_params tegra234-br-bct-diag-boot.dts --device_config tegra234-mb1-bct-device-p3767-0000.dts --misc_config tegra234-mb1-bct-misc-p3767-0000.dts --bins "mb2_applet applet_t234.bin" --cmd "dump eeprom cvm cvm.bin; dump custinfo custinfo_out.bin; reboot recovery"
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.0222 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[ 0.0232 ] File rcm_state open failed
[ 0.0232 ] ERROR: failed to read rcm_state
[ 0.0232 ]
[ 0.0250 ] tegrasign_v3.py --key None --getmode mode.txt
[ 0.0252 ] Assuming zero filled SBK key
[ 0.0236 ] Pre-processing config: tegra234-mb1-bct-device-p3767-0000.dts
[ 0.0298 ] Pre-processing config: tegra234-mb1-bct-misc-p3767-0000.dts
[ 0.0390 ] Parsing partition layout
[ 0.0399 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[ 0.0414 ] Kernel DTB used: None
[ 0.0415 ] WARNING: dce base dtb is not provided
[ 0.0415 ] Parsing partition layout
[ 0.0424 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[ 0.0435 ] Creating list of images to be signed
[ 0.0444 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --list images_list.xml zerosbk
[ 0.0452 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[ 0.0461 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[ 0.0465 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[ 0.0514 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[ 0.0517 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[ 0.0562 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[ 0.0565 ] adding BCH for mb2_t234_aligned.bin
[ 0.0592 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[ 0.0720 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[ 0.0723 ] adding BCH for mb2_t234_aligned.bin
[ 0.0887 ] Filling MB1 storage info
[ 0.0888 ] Parsing dev params for multi chains
[ 0.0952 ] Generating br-bct
[ 0.0961 ] Updating dev and MSS params in BR BCT
[ 0.0961 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[ 0.0971 ] Updating bl info
[ 0.0981 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin
[ 0.0989 ] WARNING: boot chain is not completed. set to 0
[ 0.0998 ] Generating signatures
[ 0.1015 ] tegrasign_v3.py --key None --list images_list.xml --pubkeyhash pub_key.key --sha sha512
[ 0.1017 ] Assuming zero filled SBK key
[ 0.1166 ] Warning: pub_key.key is not found
[ 0.1153 ] Parsing dev params for multi chains
[ 0.1153 ] Generating br-bct
[ 0.1163 ] Updating dev and MSS params in BR BCT
[ 0.1164 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[ 0.1176 ] Updating bl info
[ 0.1187 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[ 0.1196 ] WARNING: boot chain is not completed. set to 0
[ 0.1206 ] Get Signed section of bct
[ 0.1216 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --listbct bct_list.xml
[ 0.1228 ] Signing BCT
[ 0.1246 ] tegrasign_v3.py --key None --list bct_list.xml --pubkeyhash pub_key.key --sha sha512
[ 0.1249 ] Assuming zero filled SBK key
[ 0.1279 ] Sha saved in br_bct_BR.sha
[ 0.1283 ] Warning: pub_key.key is not found
[ 0.1266 ] Updating BCT with signature
[ 0.1276 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesig bct_list_signed.xml
[ 0.1286 ] Offset :4608 Len :3584
[ 0.1290 ] Generating SHA2 Hash
[ 0.1307 ] tegrasign_v3.py --key None --list bct_list.xml --sha sha512
[ 0.1309 ] Assuming zero filled SBK key
[ 0.1309 ] Assuming zero filled SBK key
[ 0.1345 ] Sha saved in br_bct_BR.sha
[ 0.1333 ] Updating BCT with SHA2 Hash
[ 0.1344 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesha bct_list_signed.xml
[ 0.1354 ] Offset :4608 Len :3584
[ 0.1357 ] Offset :68 Len :8124
[ 0.1370 ] Generating coldboot mb1-bct
[ 0.1386 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_cold_boot_bct.cfg --misc tegra234-mb1-bct-misc-p3767-0000_cpp.dtb --device tegra234-mb1-bct-device-p3767-0000_cpp.dtb
[ 0.1400 ] MB1-BCT version: 0.10
[ 0.1401 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED1/ is not supported
[ 0.1405 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED1/ is not supported
[ 0.1408 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED1/ is not supported
[ 0.1410 ] ERROR: /misc/tsc_controls/tsc_locking_config is not supported
[ 0.1412 ] ERROR: /misc/tsc_controls/tsc_locking_diff_configuration is not supported
[ 0.1415 ] ERROR: /misc/tsc_controls/tsc_locking_ref_frequency_configuration is not supported
[ 0.1418 ] ERROR: /misc/tsc_controls/tsc_locking_control is not supported
[ 0.1418 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_configuration is not supported
[ 0.1419 ] ERROR: /misc/tsc_controls/tsc_locking_fast_adjust_configuration is not supported
[ 0.1419 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_delta_control is not supported
[ 0.1419 ] ERROR: /misc/tsc_controls/tsc_capture_control_ptx is not supported
[ 0.1419 ] ERROR: /misc/tsc_controls/tsc_capture_config_ptx is not supported
[ 0.1419 ] ERROR: /misc/tsc_controls/tsc_stscrsr is not supported
[ 0.1419 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_num_control is not supported
[ 0.1419 ]
[ 0.1419 ] Parsing config file :tegra234-mb1-bct-device-p3767-0000_cpp.dtb
[ 0.1419 ] Added Platform Config 9 data with size :- 100
[ 0.1419 ]
[ 0.1419 ] Updating mb1-bct with firmware information
[ 0.1430 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_cold_boot_bct_MB1.bct --updatefwinfo readinfo_t234_min_prod.xml.bin
[ 0.1456 ] tegrahost_v2 --chip 0x23 0 --align mb1_cold_boot_bct_MB1_aligned.bct
[ 0.1478 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_cold_boot_bct_MB1_aligned.bct zerosbk
[ 0.1488 ] adding BCH for mb1_cold_boot_bct_MB1_aligned.bct
[ 0.1514 ] tegrasign_v3.py --key None --list mb1_cold_boot_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[ 0.1516 ] Assuming zero filled SBK key
[ 0.1535 ] Warning: pub_key.key is not found
[ 0.1528 ] tegrahost_v2 --chip 0x23 0 --updatesigheader mb1_cold_boot_bct_MB1_aligned_sigheader.bct.encrypt mb1_cold_boot_bct_MB1_aligned_sigheader.bct.hash zerosbk
[ 0.1542 ] Generating recovery mb1-bct
[ 0.1552 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_bct.cfg --misc tegra234-mb1-bct-misc-p3767-0000_cpp.dtb --device tegra234-mb1-bct-device-p3767-0000_cpp.dtb
[ 0.1560 ] MB1-BCT version: 0.10
[ 0.1561 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED1/ is not supported
[ 0.1565 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED1/ is not supported
[ 0.1568 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED1/ is not supported
[ 0.1570 ] ERROR: /misc/tsc_controls/tsc_locking_config is not supported
[ 0.1572 ] ERROR: /misc/tsc_controls/tsc_locking_diff_configuration is not supported
[ 0.1575 ] ERROR: /misc/tsc_controls/tsc_locking_ref_frequency_configuration is not supported
[ 0.1580 ] ERROR: /misc/tsc_controls/tsc_locking_control is not supported
[ 0.1580 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_configuration is not supported
[ 0.1580 ] ERROR: /misc/tsc_controls/tsc_locking_fast_adjust_configuration is not supported
[ 0.1580 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_delta_control is not supported
[ 0.1580 ] ERROR: /misc/tsc_controls/tsc_capture_control_ptx is not supported
[ 0.1580 ] ERROR: /misc/tsc_controls/tsc_capture_config_ptx is not supported
[ 0.1580 ] ERROR: /misc/tsc_controls/tsc_stscrsr is not supported
[ 0.1580 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_num_control is not supported
[ 0.1580 ]
[ 0.1580 ] Parsing config file :tegra234-mb1-bct-device-p3767-0000_cpp.dtb
[ 0.1580 ] Added Platform Config 9 data with size :- 100
[ 0.1580 ]
[ 0.1581 ] Updating mb1-bct with firmware information
[ 0.1592 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_bct_MB1.bct --recov --updatefwinfo readinfo_t234_min_prod.xml.bin
[ 0.1621 ] tegrahost_v2 --chip 0x23 0 --align mb1_bct_MB1_aligned.bct
[ 0.1641 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_bct_MB1_aligned.bct zerosbk
[ 0.1650 ] adding BCH for mb1_bct_MB1_aligned.bct
[ 0.1675 ] tegrasign_v3.py --key None --list mb1_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[ 0.1677 ] Assuming zero filled SBK key
[ 0.1703 ] Warning: pub_key.key is not found
[ 0.1702 ] tegrahost_v2 --chip 0x23 0 --updatesigheader mb1_bct_MB1_aligned_sigheader.bct.encrypt mb1_bct_MB1_aligned_sigheader.bct.hash zerosbk
[ 0.1720 ] Error: Skip generating mem_bct because sdram_config is not defined
[ 0.1720 ] Error: Skip generating mem_bct because sdram_config is not defined
[ 0.1720 ] Copying signatures
[ 0.1730 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[ 0.1780 ] mb1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[ 0.1781 ] psc_bl1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[ 0.1781 ] Boot Rom communication
[ 0.1790 ] 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.1799 ] BR_CID: 0x80012344705DE7E07C00000001000140
[ 0.2131 ] Sending bct_br
[ 0.2561 ] 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
Reading board information failed.
Error: /home/eli/Downloads/Linux_for_Tegra/bootloader/signed/flash.idx is not found
Error: failed to relocate images to /home/eli/Downloads/Linux_for_Tegra/tools/kernel_flash/images
Cleaning up...