Orin NX flashing error with J401 carrier board

I am trying to flash JetPack 5.1.1 to NVMe ssd on my Orin NX however flashing stops and says:

Parsing board information failed.
Error: failed to generate images
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

  • File system on NVMe ssd is ext4

  • lsusb result:

Bus 001 Device 013: ID 0955:7323 NVIDIA Corp.
  • dmesg after running flashing script:
[ 1672.406829] nfsd: last server has exited, flushing export cache
[ 1673.520886] NFSD: Using UMH upcall client tracking operations.
[ 1673.520889] NFSD: starting 90-second grace period (net f0000000)
[ 1678.242824] usb 1-3.4: USB disconnect, device number 14
[ 1678.498703] usb 1-3.4: new high-speed USB device number 15 using xhci_hcd
[ 1678.623548] usb 1-3.4: New USB device found, idVendor=0955, idProduct=7323, bcdDevice= 4.01
[ 1678.623554] usb 1-3.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1678.623556] usb 1-3.4: Product: APX
[ 1678.623558] usb 1-3.4: Manufacturer: NVIDIA Corp.

  • Complete terminal output:
/home/autozan/Downloads/5.1/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/autozan/Downloads/5.1/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: 3.1
# User release: 0.0
###############################################################################
copying emc_fuse_dev_params(/home/autozan/Downloads/5.1/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-br-bct-diag-boot.dts)... done.
copying device_config(/home/autozan/Downloads/5.1/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-device-p3767-0000.dts)... done.
copying misc_config(/home/autozan/Downloads/5.1/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-misc-p3767-0000.dts)... done.
./tegraflash.py --chip 0x23 --applet "/home/autozan/Downloads/5.1/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.0181 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   0.0185 ] File rcm_state open failed
[   0.0187 ] ERROR: failed to read rcm_state
[   0.0187 ] 
[   0.0221 ] tegrasign_v3.py --key None --getmode mode.txt
[   0.0222 ] Assuming zero filled SBK key
[   0.0189 ] Pre-processing config: tegra234-mb1-bct-device-p3767-0000.dts
[   0.0297 ] Pre-processing config: tegra234-mb1-bct-misc-p3767-0000.dts
[   0.0393 ] Parsing partition layout
[   0.0412 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[   0.0452 ] Kernel DTB used: None
[   0.0452 ] WARNING: dce base dtb is not provided

[   0.0452 ] Parsing partition layout
[   0.0458 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[   0.0467 ] Creating list of images to be signed
[   0.0488 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --list images_list.xml zerosbk
[   0.0496 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[   0.0592 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[   0.0594 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[   0.0643 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[   0.0649 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[   0.0723 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[   0.0724 ] adding BCH for mb2_t234_aligned.bin
[   0.0770 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[   0.0887 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[   0.0889 ] adding BCH for mb2_t234_aligned.bin
[   0.1005 ] Filling MB1 storage info
[   0.1005 ] Parsing dev params for multi chains
[   0.1045 ] Generating br-bct
[   0.1065 ] Updating dev and MSS params in BR BCT
[   0.1065 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[   0.1150 ] Updating bl info
[   0.1164 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin
[   0.1170 ] WARNING: boot chain is not completed. set to 0
[   0.1176 ] Generating signatures
[   0.1209 ] tegrasign_v3.py --key None --list images_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.1211 ] Assuming zero filled SBK key
[   0.1379 ] Warning: pub_key.key is not found
[   0.1348 ] Parsing dev params for multi chains
[   0.1348 ] Generating br-bct
[   0.1353 ] Updating dev and MSS params in BR BCT
[   0.1354 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[   0.1359 ] Updating bl info
[   0.1364 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[   0.1368 ] WARNING: boot chain is not completed. set to 0
[   0.1388 ] Get Signed section of bct
[   0.1393 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --listbct bct_list.xml
[   0.1399 ] Signing BCT
[   0.1432 ] tegrasign_v3.py --key None --list bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.1433 ] Assuming zero filled SBK key
[   0.1455 ] Sha saved in br_bct_BR.sha
[   0.1456 ] Warning: pub_key.key is not found
[   0.1424 ] Updating BCT with signature
[   0.1428 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesig bct_list_signed.xml
[   0.1432 ] Offset :4608 Len :3584
[   0.1434 ] Generating SHA2 Hash
[   0.1467 ] tegrasign_v3.py --key None --list bct_list.xml --sha sha512
[   0.1468 ] Assuming zero filled SBK key
[   0.1469 ] Assuming zero filled SBK key
[   0.1485 ] Sha saved in br_bct_BR.sha
[   0.1454 ] Updating BCT with SHA2 Hash
[   0.1463 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesha bct_list_signed.xml
[   0.1474 ] Offset :4608 Len :3584
[   0.1477 ] Offset :68 Len :8124
[   0.1501 ] Generating coldboot mb1-bct
[   0.1509 ] 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.1516 ] MB1-BCT version: 0.10
[   0.1518 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.1521 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.1523 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.1526 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.1526 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.1526 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.1526 ] ERROR: /misc/tsc_controls/tsc_locking_config is not supported
[   0.1526 ] ERROR: /misc/tsc_controls/tsc_locking_diff_configuration is not supported
[   0.1526 ] ERROR: /misc/tsc_controls/tsc_locking_ref_frequency_configuration is not supported
[   0.1526 ] ERROR: /misc/tsc_controls/tsc_locking_control is not supported
[   0.1526 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_configuration is not supported
[   0.1526 ] ERROR: /misc/tsc_controls/tsc_locking_fast_adjust_configuration is not supported
[   0.1526 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_delta_control is not supported
[   0.1526 ] ERROR: /misc/tsc_controls/tsc_capture_control_ptx is not supported
[   0.1526 ] ERROR: /misc/tsc_controls/tsc_capture_config_ptx is not supported
[   0.1526 ] ERROR: /misc/tsc_controls/tsc_stscrsr is not supported
[   0.1526 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_num_control is not supported
[   0.1526 ] 
[   0.1526 ] Parsing config file :tegra234-mb1-bct-device-p3767-0000_cpp.dtb 
[   0.1526 ] Added Platform Config 9 data with size :- 100
[   0.1526 ] 
[   0.1527 ] Updating mb1-bct with firmware information
[   0.1531 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_cold_boot_bct_MB1.bct --updatefwinfo readinfo_t234_min_prod.xml.bin
[   0.1541 ] tegrahost_v2 --chip 0x23 0 --align mb1_cold_boot_bct_MB1_aligned.bct
[   0.1548 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_cold_boot_bct_MB1_aligned.bct zerosbk
[   0.1552 ] adding BCH for mb1_cold_boot_bct_MB1_aligned.bct
[   0.1590 ] tegrasign_v3.py --key None --list mb1_cold_boot_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.1591 ] Assuming zero filled SBK key
[   0.1600 ] Warning: pub_key.key is not found
[   0.1571 ] 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.1578 ] Generating recovery mb1-bct
[   0.1582 ] 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.1585 ] MB1-BCT version: 0.10
[   0.1586 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.1589 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.1591 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED5/ is not supported
[   0.1594 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.1594 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.1594 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_MCE_COVERAGE/ is not supported
[   0.1594 ] ERROR: /misc/tsc_controls/tsc_locking_config is not supported
[   0.1594 ] ERROR: /misc/tsc_controls/tsc_locking_diff_configuration is not supported
[   0.1594 ] ERROR: /misc/tsc_controls/tsc_locking_ref_frequency_configuration is not supported
[   0.1594 ] ERROR: /misc/tsc_controls/tsc_locking_control is not supported
[   0.1594 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_configuration is not supported
[   0.1594 ] ERROR: /misc/tsc_controls/tsc_locking_fast_adjust_configuration is not supported
[   0.1595 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_delta_control is not supported
[   0.1595 ] ERROR: /misc/tsc_controls/tsc_capture_control_ptx is not supported
[   0.1595 ] ERROR: /misc/tsc_controls/tsc_capture_config_ptx is not supported
[   0.1595 ] ERROR: /misc/tsc_controls/tsc_stscrsr is not supported
[   0.1595 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_num_control is not supported
[   0.1595 ] 
[   0.1595 ] Parsing config file :tegra234-mb1-bct-device-p3767-0000_cpp.dtb 
[   0.1595 ] Added Platform Config 9 data with size :- 100
[   0.1595 ] 
[   0.1595 ] Updating mb1-bct with firmware information
[   0.1599 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_bct_MB1.bct --recov --updatefwinfo readinfo_t234_min_prod.xml.bin
[   0.1611 ] tegrahost_v2 --chip 0x23 0 --align mb1_bct_MB1_aligned.bct
[   0.1619 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_bct_MB1_aligned.bct zerosbk
[   0.1623 ] adding BCH for mb1_bct_MB1_aligned.bct
[   0.1662 ] tegrasign_v3.py --key None --list mb1_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.1662 ] Assuming zero filled SBK key
[   0.1671 ] Warning: pub_key.key is not found
[   0.1642 ] tegrahost_v2 --chip 0x23 0 --updatesigheader mb1_bct_MB1_aligned_sigheader.bct.encrypt mb1_bct_MB1_aligned_sigheader.bct.hash zerosbk
[   0.1651 ] Error: Skip generating mem_bct because sdram_config is not defined
[   0.1651 ] Error: Skip generating mem_bct because sdram_config is not defined
[   0.1651 ] Copying signatures
[   0.1655 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[   0.1716 ] mb1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[   0.1718 ] psc_bl1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[   0.1718 ] Boot Rom communication
[   0.1725 ] 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.1732 ] BR_CID: 0x80012344705DD1438800000010010140
[   0.4328 ] Sending bct_br
[   0.6882 ] Sending mb1
[   0.6888 ] Sending psc_bl1
[   0.6981 ] Sending bct_mb1
[   0.7035 ] Boot Rom communication completed
[   0.7072 ] tegrahost_v2 --chip 0x23 0 --align applet_t234_aligned.bin
[   0.7087 ] tegrahost_v2 --chip 0x23 0 --magicid MB2A --appendsigheader applet_t234_aligned.bin zerosbk
[   0.7093 ] adding BCH for applet_t234_aligned.bin
[   0.7254 ] tegrasign_v3.py --key None --list applet_t234_aligned_sigheader.bin_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.7255 ] Assuming zero filled SBK key
[   0.7270 ] Warning: pub_key.key is not found
[   0.7244 ] tegrahost_v2 --chip 0x23 0 --updatesigheader applet_t234_aligned_sigheader.bin.encrypt applet_t234_aligned_sigheader.bin.hash zerosbk
[   0.7257 ] Sending mb2_applet...

[   0.7261 ] tegrarcm_v2 --chip 0x23 0 --pollbl --download applet applet_t234_sigheader.bin.encrypt
[   0.7266 ] BL: version 0.32.0.0-t234-54845784-57325615 last_boot_error: 0
[   0.9804 ] Sending applet
[   1.2700 ] completed
[   1.2711 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   1.2718 ] MB2 Applet version 01.00.0000
[   1.5389 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   1.5397 ] MB2 Applet version 01.00.0000
[   1.7985 ] Retrieving board information
[   1.7990 ] tegrarcm_v2 --chip 0x23 0 --oem platformdetails chip chip_info.bin
[   1.7994 ] MB2 Applet version 01.00.0000
[   2.0618 ] Saved platform info in chip_info.bin
[   2.0671 ] Chip minor revision: 1
[   2.0672 ] Bootrom revision: 0x7
[   2.0673 ] Ram code: 0x0
[   2.0673 ] Chip sku: 0xd3
[   2.0674 ] Chip Sample: prod
[   2.0681 ] Retrieving EEPROM data
[   2.0681 ] tegrarcm_v2 --oem platformdetails eeprom cvm /home/autozan/Downloads/5.1/Linux_for_Tegra/bootloader/cvm.bin --chip 0x23 0
[   2.0692 ] MB2 Applet version 01.00.0000
[   2.3259 ] Saved platform info in /home/autozan/Downloads/5.1/Linux_for_Tegra/bootloader/cvm.bin
[   2.3588 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   2.3596 ] MB2 Applet version 01.00.0000
[   2.6187 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   2.6193 ] MB2 Applet version 01.00.0000
[   2.8778 ] Dumping customer Info
[   2.8787 ] tegrarcm_v2 --chip 0x23 0 --oem dump bct tmp.bct
[   2.8792 ] MB2 Applet version 01.00.0000
[   3.1378 ] Saved bct in tmp.bct
[   3.1458 ] tegrabct_v2 --brbct tmp.bct --chip 0x23 0 --custinfo /home/autozan/Downloads/5.1/Linux_for_Tegra/bootloader/custinfo_out.bin
[   3.1465 ] Cust[   3.1467 ] omer data saved in /home/autozan/Downloads/5.1/Linux_for_Tegra/bootloader/custinfo_out.bin successfully
[   3.1467 ] Rebooting to recovery mode
[   3.1474 ] tegrarcm_v2 --chip 0x23 0 --ismb2
[   3.4106 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   3.4112 ] MB2 Applet version 01.00.0000
[   3.6699 ] Booting to recovery mode
[   3.6709 ] tegrarcm_v2 --chip 0x23 0 --reboot recovery
[   3.6717 ] MB2 Applet version 01.00.0000
Parsing board information failed.
Error: failed to generate images
Cleaning up...

Thanks a lot in advance,
Best,
Ozan

Hi @siklopentan
Please note that if flashing JP5.1.1, make sure your Linux host is Ubuntu 20.04 and don’t use a VM