Hello, I am attempting to flash a Orin NX with a NVMe drive attached. It is on a custom carrier board and all the hardware is verified to work. I was able to initially flash Jetpack 6.2.1 onto the NX, but every attempt at flashing after the first always fails. In the Initial flash I had the ODMDATA set wrong, it is now set correctly in the the p3767.conf.common
Commands I run to flash ($DIR_CUSTOM_LFT is the Linux_for_Tegra directory)
cd "$DIR_CUSTOM_LFT" || exit
sudo "$DIR_CUSTOM_LFT"/tools/l4t_flash_prerequisites.sh
sudo systemctl restart nfs-server.service
echo 0 | sudo tee /proc/sys/kernel/hung_task_timeout_secs >/dev/null
sudo "$DIR_CUSTOM_LFT"/nvsdkmanager_flash.sh --storage nvme0n1p1
sync; sync
I have verified the NX is in forced recovery mode, and I do see the Nvidia APX when running lsusb on the host.
When I attempt to flash it appears the USB disconnects, the flash fails, then the USB reconnects. I have doublechecked the hardware and it is not a USB issue, also I was able to flash it initially.
I am not Using a VM
Flash Log
/mnt/cdrom/l4t-gcc/Linux_for_Tegra/tools/l4t_flash_prerequisites.sh: line 41: /etc/lsb-release: No such file or directory
[65565.497218] nfsd: last server has exited, flushing export cache
[65565.585004] usb 1-5: new high-speed USB device number 8 using xhci_hcd
[65565.694927] NFSD: Using nfsdcld client tracking operations.
[65565.700538] NFSD: no clients to reclaim, skipping NFSv4 grace period (net f0000000)
[65565.719061] usb 1-5: New USB device found, idVendor=0955, idProduct=7323, bcdDevice= 4.01
[65565.727306] usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[65565.734482] usb 1-5: Product: APX
[65565.737838] usb 1-5: Manufacturer: NVIDIA Corp.
tee: /proc/sys/kernel/hung_task_timeout_secs: Invalid argument
13:34:28.108 - Debug: User passed parameters: nvme0n1p1
13:34:28.109 - Debug: Identifying target board...
*** Checking ONLINE mode ... OK.
*** Checking target board connection ... 1 connections found.
*** Reading ECID ... FUSELEVEL=fuselevel_production hwchipid=0x23 bootauth=NS
*** Reading EEPROM ... "/mnt/cdrom/l4t-gcc/Linux_for_Tegra/bootloader/tegraflash.py" --chip 0x23 --applet "/mnt/cdrom/l4t-gcc/Linux_for_Tegra/bootloader/mb1_t234_prod.bin" --cfg readinfo_t234_mi
n_prod.xml --dev_params tegra234-br-bct-diag-boot.dts --device_config tegra234-mb1-bct-device-p3701-0000.dts --misc_config tegra234-mb1-bct-misc-p3701-0000.dts --bins "mb2_applet applet_t234.bin
" --skipuid --cmd "dump eeprom cvm cvm.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.0389 ] tegrasign_v3.py --key None --getmode mode.txt
[ 0.0394 ] Assuming zero filled SBK key
[ 0.0380 ] Pre-processing config: tegra234-mb1-bct-device-p3701-0000.dts
[ 0.0538 ] Pre-processing config: tegra234-mb1-bct-misc-p3701-0000.dts
[ 0.0740 ] Parsing partition layout
[ 0.0756 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[ 0.0785 ] Kernel DTB used: None
[ 0.0785 ] WARNING: dce base dtb is not provided
[ 0.0785 ] Parsing partition layout
[ 0.0801 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[ 0.0819 ] Creating list of images to be signed
[ 0.0835 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --list images_list.xml zerosbk
[ 0.0850 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[ 0.0872 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[ 0.0876 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[ 0.1146 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[ 0.1189 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[ 0.1397 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[ 0.1402 ] adding BCH for mb2_t234_aligned.bin
[ 0.1469 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[ 0.1781 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[ 0.1853 ] adding BCH for mb2_t234_aligned.bin
[ 0.2346 ] Filling MB1 storage info
[ 0.2346 ] Parsing dev params for multi chains
[ 0.2504 ] Generating br-bct
[ 0.2520 ] Updating dev and MSS params in BR BCT
[ 0.2521 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[ 0.2538 ] Updating bl info
[ 0.2553 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin
[ 0.2567 ] WARNING: boot chain is not completed. set to 0
[ 0.2585 ] Generating signatures
[ 0.2602 ] tegrasign_v3.py --key None --list images_list.xml --pubkeyhash pub_key.key --sha sha512
[ 0.2605 ] Assuming zero filled SBK key
[ 0.2973 ] Warning: pub_key.key is not found
[ 0.2961 ] Parsing dev params for multi chains
[ 0.2961 ] Generating br-bct
[ 0.2978 ] Updating dev and MSS params in BR BCT
[ 0.2979 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[ 0.2999 ] Updating bl info
[ 0.3013 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[ 0.3027 ] WARNING: boot chain is not completed. set to 0
[ 0.3043 ] Generating SHA2 Hash
[ 0.3088 ] Sha saved in br_bct_BR.sha
[ 0.3073 ] Get Signed section of bct
[ 0.3088 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --listbct bct_list.xml
[ 0.3108 ] Signing BCT
[ 0.3125 ] tegrasign_v3.py --key None --list bct_list.xml --pubkeyhash pub_key.key --sha sha512
[ 0.3129 ] Assuming zero filled SBK key
[ 0.3185 ] Sha saved in br_bct_BR.sha
[ 0.3191 ] Warning: pub_key.key is not found
[ 0.3175 ] Updating BCT with signature
[ 0.3191 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesig bct_list_signed.xml
[ 0.3205 ] Offset :4608 Len :3584
[ 0.3212 ] Generating SHA2 Hash
[ 0.3230 ] tegrasign_v3.py --key None --list bct_list.xml --sha sha512
[ 0.3234 ] Assuming zero filled SBK key
[ 0.3235 ] Assuming zero filled SBK key
[ 0.3293 ] Sha saved in br_bct_BR.sha
[ 0.3283 ] Updating BCT with SHA2 Hash
[ 0.3299 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesha bct_list_signed.xml
[ 0.3314 ] Offset :4608 Len :3584
[ 0.3319 ] Offset :68 Len :8124
[ 0.3323 ] Generating coldboot mb1-bct
[ 0.3339 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_cold_boot_bct.cfg --misc tegra234-mb1-bct-misc-p3701-0000_cpp.dtb --device tegra234-mb1-bct-device-p3701-0000_cpp.dtb
[ 0.3359 ] MB1-BCT version: 0.13
[ 0.3384 ] Parsing config file :tegra234-mb1-bct-device-p3701-0000_cpp.dtb
[ 0.3388 ] Added Platform Config 9 data with size :- 100
[ 0.3388 ]
[ 0.3388 ] Updating mb1-bct with firmware information
[ 0.3405 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_cold_boot_bct_MB1.bct --updatefwinfo readinfo_t234_min_prod.xml.bin
[ 0.3445 ] tegrahost_v2 --chip 0x23 0 --align mb1_cold_boot_bct_MB1_aligned.bct
[ 0.3460 ] Generating SHA2 Hash for mb1bct
[ 0.3504 ] Sha saved in mb1_cold_boot_bct_MB1_aligned.sha
[ 0.3531 ] Sha saved in mb1_cold_boot_bct_MB1.sha
[ 0.3531 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_cold_boot_bct_MB1_aligned.bct zerosbk
[ 0.3545 ] adding BCH for mb1_cold_boot_bct_MB1_aligned.bct
[ 0.3579 ] tegrasign_v3.py --key None --list mb1_cold_boot_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[ 0.3584 ] Assuming zero filled SBK key
[ 0.3617 ] Warning: pub_key.key is not found
[ 0.3620 ] 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.3647 ] Generating recovery mb1-bct
[ 0.3663 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_bct.cfg --misc tegra234-mb1-bct-misc-p3701-0000_cpp.dtb --device tegra234-mb1-bct-device-p3701-0000_cpp.dtb
[ 0.3677 ] MB1-BCT version: 0.13
[ 0.3701 ] Parsing config file :tegra234-mb1-bct-device-p3701-0000_cpp.dtb
[ 0.3705 ] Added Platform Config 9 data with size :- 100
[ 0.3705 ]
[ 0.3706 ] Updating mb1-bct with firmware information
[ 0.3721 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_bct_MB1.bct --recov --updatefwinfo readinfo_t234_min_prod.xml.bin
[ 0.3761 ] tegrahost_v2 --chip 0x23 0 --align mb1_bct_MB1_aligned.bct
[ 0.3777 ] Generating SHA2 Hash for mb1bct
[ 0.3820 ] Sha saved in mb1_bct_MB1_aligned.sha
[ 0.3846 ] Sha saved in mb1_bct_MB1.sha
[ 0.3847 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_bct_MB1_aligned.bct zerosbk
[ 0.3862 ] adding BCH for mb1_bct_MB1_aligned.bct
[ 0.3896 ] tegrasign_v3.py --key None --list mb1_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[ 0.3900 ] Assuming zero filled SBK key
[ 0.3933 ] Warning: pub_key.key is not found
[ 0.3933 ] tegrahost_v2 --chip 0x23 0 --updatesigheader mb1_bct_MB1_aligned_sigheader.bct.encrypt mb1_bct_MB1_aligned_sigheader.bct.hash zerosbk
[ 0.3958 ] Info: Skip generating mem_bct because sdram_config is not defined
[ 0.3958 ] Info: Skip generating mem_bct because sdram_config is not defined
[ 0.3958 ] Copying signatures
[ 0.3975 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[ 0.4414 ] mb1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[ 0.4417 ] psc_bl1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[ 0.4417 ] Boot Rom communication
[ 0.4435 ] 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.4449 ] BR_CID: 0x80012344705DF2D1200000000B010100
[ 0.4461 ] Sending bct_br
[ 0.4462 ] Sending mb1
[ [65566.814541] usb 1-5: USB disconnect, device number 8
0.4467 ] Sending psc_bl1
[ 0.4560 ] Sending bct_mb1
[ 0.4619 ] Boot Rom communication completed
[ 0.4645 ] tegrahost_v2 --chip 0x23 0 --align applet_t234_aligned.bin
[ 0.4677 ] tegrahost_v2 --chip 0x23 0 --magicid MB2A --appendsigheader applet_t234_aligned.bin zerosbk
[ 0.4690 ] adding BCH for applet_t234_aligned.bin
[ 0.4913 ] tegrasign_v3.py --key None --list applet_t234_aligned_sigheader.bin_list.xml --pubkeyhash pub_key.key --sha sha512
[ 0.4917 ] Assuming zero filled SBK key
[ 0.4963 ] Warning: pub_key.key is not found
[ 0.4967 ] tegrahost_v2 --chip 0x23 0 --updatesigheader applet_t234_aligned_sigheader.bin.encrypt applet_t234_aligned_sigheader.bin.hash zerosbk
[ 0.5039 ] Sending mb2_applet...
[ 0.5056 ] tegrarcm_v2 --chip 0x23 0 --pollbl --download applet applet_t234_sigheader.bin.encrypt
[ 0.5071 ] BL: version 1.4.0.4-t234-54845784-e89ea9bc last_boot_error: 656573201
[ 0.6855 ] Sending applet
[ 0.6859 ] ERROR: might be timeout in USB write.
Error: Return value 3
Command tegrarcm_v2 --chip 0x23 0 --pollbl --download applet applet_t234_sigheader.bin.encrypt
--- Error: Reading board information failed.
13:34:29.132 - Error: Parsing boardid failed.
Serial Console Log
[0001.180] I> MB1 (version: 1.4.0.4-t234-54845784-e89ea9bc)
[0001.185] I> t234-A01-1-Silicon (0x12347) Prod
[0001.190] I> Boot-mode : BPMP Diagnostic
[0001.193] I> Entry timestamp: 0x00000000
[0001.197] I> last_boot_error: 0x27228311
[0001.201] I> BR-BCT: preprod_dev_sign: 0
[0001.205] I> rst_source: 0xb, rst_level: 0x1
[0001.209] I> Task: Initialize MB2 params
[0001.213] I> MB2-params @ 0x40060000
[0001.217] I> Task: Crypto init
[0001.219] I> Task: Perform MB1 KAT tests
[0001.223] I> Task: NVRNG health check
[0001.227] I> NVRNG: Health check success
[0001.231] I> Task: Secure debug controls
[0001.235] I> Task: strap war set
[0001.238] I> Task: Program NV master stream id
[0001.242] I> Task: Verify boot mode
[0001.248] I> Task: Alias fuses
[0001.252] W> FUSE_ALIAS: Fuse alias on production fused part is not supported.
[0001.259] I> Task: Print SKU type
[0001.262] I> FUSE_OPT_CCPLEX_CLUSTER_DISABLE = 0x000001c0
[0001.267] I> FUSE_OPT_GPC_DISABLE = 0x00000002
[0001.271] I> FUSE_OPT_TPC_DISABLE = 0x000000f0
[0001.276] I> FUSE_OPT_DLA_DISABLE = 0x00000000
[0001.280] I> FUSE_OPT_PVA_DISABLE = 0x00000000
[0001.284] I> FUSE_OPT_NVENC_DISABLE = 0x00000000
[0001.289] I> FUSE_OPT_NVDEC_DISABLE = 0x00000000
[0001.293] I> FUSE_OPT_FSI_DISABLE = 0x00000001
[0001.297] I> FUSE_OPT_EMC_DISABLE = 0x00000000
[0001.302] I> FUSE_BOOTROM_PATCH_VERSION = 0x7
[0001.306] I> FUSE_PSCROM_PATCH_VERSION = 0x7
[0001.310] I> FUSE_OPT_ADC_CAL_FUSE_REV = 0x2
[0001.314] I> FUSE_SKU_INFO_0 = 0xd3
[0001.317] I> FUSE_OPT_SAMPLE_TYPE_0 = 0x3 PS
[0001.321] I> FUSE_PACKAGE_INFO_0 = 0x2
[0001.325] I> SKU: Prod
[0001.327] I> Task: Boost clocks
[0001.330] I> Initializing NAFLL for BPMP_CPU_NIC.
[0001.335] I> BPMP NAFLL: fll_lock = 1, dvco_min_reached = 0
[0001.341] I> BPMP NAFLL lock success.
[0001.344] I> BPMP_CPU_NIC : src = 42, divisor = 0
[0001.349] I> Initializing PLLC2 for AXI_CBB.
[0001.353] I> AXI_CBB : src = 35, divisor = 0
[0001.357] I> Task: Voltage monitor
[0001.360] I> VMON: Vmon re-calibration and fine tuning done
[0001.366] I> Task: UPHY init
[0001.369] W> UPHY: UPHY lane info table is empty in MB1 BCT.
[0001.374] I> Task: Boot device init
[0001.377] I> Boot_device: RCM
[0001.380] I> USB configuration success
[0001.384] I> Task: TSC init
[0001.387] I> Task: Enable WDT 5th expiry
[0001.391] I> Task: I2C register
[0001.394] I> Task: Set I2C bus freq
[0001.397] I> Task: Reset FSI
[0001.400] I> Task: Enable clock-mon
[0001.404] I> FMON: Fmon re-programming done
[0001.408] I> Task: Mapper init
[0001.411] I> Task: MB1 fixed firewalls
[0001.417] W> Firewall readback mismatch
[0001.422] I> Task: Load MB2/Applet/FSKP
[0001.426] I> Loading MB2 Applet
[0001.429] I> Slot: 1
[0001.431] E> BLOCK_DEV: Failed to open blockdev.
[0001.436] E> LOADER: Failed to open blockdev 0(0).
[0001.441] E> LOADER: Failed to get storage info for binary 21 from loader.
[0001.448] C> LOADER: Could not read binary 21.
[0001.453] E> Failed to load MB2
[0001.456] C> Task 0x46 failed (err: 0x27228311)
[0001.460] E> Top caller module: MB2_PARAMS, error module: LOADER, reason: 0x11, aux_info: 0x83
[0001.469] C> Boot Info Table status dump :
0111100000111000110111111111000000011110000000000000011000001