Orin agx with l4t 35.4.1 error when preparing images for massflash in offline mode

Im trying to prepare a l4t 35.4.1 BSP + rootfs for massflash via

export NVIDIA_FLASH_BOARDID=3701 NVIDIA_FLASH_BOARDREV=A.0 NVIDIA_FLASH_FAB=TS4 NVIDIA_FLASH_BOARDSKU=0004

./tools/kernel_flash/l4t_initrd_flash.sh --uefi-keys uefi_keys/uefi_keys.conf -i ./ekb.key --no-flash --network usb0 --massflash 5 jetson-agx-orin-devkit internal

But when running the command, we get an error:

...
flash.sh --no-flash --sign -i "./ekb.key" --uefi-keys "uefi_keys/uefi_keys.conf"  jetson-agx-orin-devkit internal

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.0239 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   0.0248 ] File rcm_state open failed
[   0.0248 ] ERROR: failed to read rcm_state
[   0.0248 ] 
[   0.0304 ] tegrasign_v3.py --key None --getmode mode.txt
[   0.0305 ] Assuming zero filled SBK key
[   0.0251 ] Pre-processing config: tegra234-mb1-bct-device-p3701-0000.dts
[   0.0300 ] Pre-processing config: tegra234-mb1-bct-misc-p3701-0000.dts
[   0.0366 ] Parsing partition layout
[   0.0375 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[   0.0388 ] Kernel DTB used: None
[   0.0388 ] WARNING: dce base dtb is not provided

[   0.0388 ] Parsing partition layout
[   0.0396 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[   0.0405 ] Creating list of images to be signed
[   0.0413 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --list images_list.xml zerosbk
[   0.0421 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[   0.0428 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[   0.0430 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[   0.0464 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[   0.0471 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[   0.0518 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[   0.0520 ] adding BCH for mb2_t234_aligned.bin
[   0.0549 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[   0.0668 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[   0.0670 ] adding BCH for mb2_t234_aligned.bin
[   0.0787 ] Filling MB1 storage info
[   0.0787 ] Parsing dev params for multi chains
[   0.0840 ] Generating br-bct
[   0.0850 ] Updating dev and MSS params in BR BCT
[   0.0851 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[   0.0861 ] Updating bl info
[   0.0870 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin
[   0.0879 ] WARNING: boot chain is not completed. set to 0
[   0.0885 ] Generating signatures
[   0.0940 ] tegrasign_v3.py --key None --list images_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.0941 ] Assuming zero filled SBK key
[   0.1075 ] Warning: pub_key.key is not found
[   0.1022 ] Parsing dev params for multi chains
[   0.1022 ] Generating br-bct
[   0.1032 ] Updating dev and MSS params in BR BCT
[   0.1032 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[   0.1043 ] Updating bl info
[   0.1051 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[   0.1059 ] WARNING: boot chain is not completed. set to 0
[   0.1065 ] Get Signed section of bct
[   0.1073 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --listbct bct_list.xml
[   0.1081 ] Signing BCT
[   0.1137 ] tegrasign_v3.py --key None --list bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.1138 ] Assuming zero filled SBK key
[   0.1161 ] Sha saved in br_bct_BR.sha
[   0.1163 ] Warning: pub_key.key is not found
[   0.1108 ] Updating BCT with signature
[   0.1117 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesig bct_list_signed.xml
[   0.1124 ] Offset :4608 Len :3584
[   0.1129 ] Generating SHA2 Hash
[   0.1184 ] tegrasign_v3.py --key None --list bct_list.xml --sha sha512
[   0.1185 ] Assuming zero filled SBK key
[   0.1185 ] Assuming zero filled SBK key
[   0.1206 ] Sha saved in br_bct_BR.sha
[   0.1153 ] Updating BCT with SHA2 Hash
[   0.1161 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesha bct_list_signed.xml
[   0.1169 ] Offset :4608 Len :3584
[   0.1171 ] Offset :68 Len :8124
[   0.1172 ] Generating coldboot mb1-bct
[   0.1179 ] 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.1186 ] MB1-BCT version: 0.10
[   0.1187 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED1/ is not supported
[   0.1190 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED1/ is not supported
[   0.1191 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED1/ is not supported
[   0.1192 ] ERROR: /misc/tsc_controls/tsc_locking_config is not supported
[   0.1195 ] ERROR: /misc/tsc_controls/tsc_locking_diff_configuration is not supported
[   0.1196 ] ERROR: /misc/tsc_controls/tsc_locking_ref_frequency_configuration is not supported
[   0.1197 ] ERROR: /misc/tsc_controls/tsc_locking_control is not supported
[   0.1198 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_configuration is not supported
[   0.1199 ] ERROR: /misc/tsc_controls/tsc_locking_fast_adjust_configuration is not supported
[   0.1201 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_delta_control is not supported
[   0.1202 ] ERROR: /misc/tsc_controls/tsc_capture_control_ptx is not supported
[   0.1203 ] ERROR: /misc/tsc_controls/tsc_capture_config_ptx is not supported
[   0.1204 ] ERROR: /misc/tsc_controls/tsc_stscrsr is not supported
[   0.1204 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_num_control is not supported

[   0.1206 ] Parsing config file :tegra234-mb1-bct-device-p3701-0000_cpp.dtb 
[   0.1206 ] Added Platform Config 9 data with size :- 100
[   0.1207 ] Updating mb1-bct with firmware information
[   0.1214 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_cold_boot_bct_MB1.bct --updatefwinfo readinfo_t234_min_prod.xml.bin
[   0.1231 ] tegrahost_v2 --chip 0x23 0 --align mb1_cold_boot_bct_MB1_aligned.bct
[   0.1245 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_cold_boot_bct_MB1_aligned.bct zerosbk
[   0.1253 ] adding BCH for mb1_cold_boot_bct_MB1_aligned.bct
[   0.1312 ] tegrasign_v3.py --key None --list mb1_cold_boot_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.1313 ] Assuming zero filled SBK key
[   0.1324 ] Warning: pub_key.key is not found
[   0.1277 ] 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.1287 ] Generating recovery mb1-bct
[   0.1295 ] 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.1301 ] MB1-BCT version: 0.10
[   0.1302 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED1/ is not supported
[   0.1305 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED1/ is not supported
[   0.1306 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED1/ is not supported
[   0.1307 ] ERROR: /misc/tsc_controls/tsc_locking_config is not supported
[   0.1310 ] ERROR: /misc/tsc_controls/tsc_locking_diff_configuration is not supported
[   0.1311 ] ERROR: /misc/tsc_controls/tsc_locking_ref_frequency_configuration is not supported
[   0.1312 ] ERROR: /misc/tsc_controls/tsc_locking_control is not supported
[   0.1313 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_configuration is not supported
[   0.1314 ] ERROR: /misc/tsc_controls/tsc_locking_fast_adjust_configuration is not supported
[   0.1315 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_delta_control is not supported
[   0.1317 ] ERROR: /misc/tsc_controls/tsc_capture_control_ptx is not supported
[   0.1318 ] ERROR: /misc/tsc_controls/tsc_capture_config_ptx is not supported
[   0.1319 ] ERROR: /misc/tsc_controls/tsc_stscrsr is not supported
[   0.1320 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_num_control is not supported

[   0.1323 ] Parsing config file :tegra234-mb1-bct-device-p3701-0000_cpp.dtb 
[   0.1323 ] Added Platform Config 9 data with size :- 100
[   0.1324 ] Updating mb1-bct with firmware information
[   0.1332 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_bct_MB1.bct --recov --updatefwinfo readinfo_t234_min_prod.xml.bin
[   0.1349 ] tegrahost_v2 --chip 0x23 0 --align mb1_bct_MB1_aligned.bct
[   0.1364 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_bct_MB1_aligned.bct zerosbk
[   0.1373 ] adding BCH for mb1_bct_MB1_aligned.bct
[   0.1432 ] tegrasign_v3.py --key None --list mb1_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[   0.1433 ] Assuming zero filled SBK key
[   0.1445 ] Warning: pub_key.key is not found
[   0.1398 ] tegrahost_v2 --chip 0x23 0 --updatesigheader mb1_bct_MB1_aligned_sigheader.bct.encrypt mb1_bct_MB1_aligned_sigheader.bct.hash zerosbk
[   0.1409 ] Error: Skip generating mem_bct because sdram_config is not defined
[   0.1409 ] Error: Skip generating mem_bct because sdram_config is not defined
[   0.1409 ] Copying signatures
[   0.1417 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[   0.1452 ] mb1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[   0.1453 ] psc_bl1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[   0.1453 ] Boot Rom communication
[   0.1462 ] 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
Error: Return value 8
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
Error: bootloader/signed/flash.idx is not found
Error: failed to relocate images to tools/kernel_flash/images
Cleaning up...

The log leads to the assumption that the offline-mode of l4t_initrd_flash_internal.sh doesn’t work. Any idea whats wrong here?

Hi brootux,

Are you using the devkit or custom board for AGX Orin?

Why you add NVIDIA_FLAH_ before each board parameters?
Have you tried to connect your board in force recovery state and run the command on host to generate mfi package?

Are you using the devkit or custom board for AGX Orin?

Not really a custom carrier, but also not the devkit. Its a forecr carrier, does this matter?

Why you add NVIDIA_FLAH_ before each board parameters?

that was actually a copy-paste mistake, its actually export BOARDID=3701 BOARDREV=A.0 FAB=TS4 BOARDSKU=0004

Are you using the custom BSP package for your board rather than the official BSP package from us?
Do you enable the secureboot and UEFI secureboot in your case?

i am using their kernel but the BSP from nvidia. We have no problems flashing directly.

Yes we activated secureboot, UEFI secureboot, disk encryption and rootfs a/b.

Do you mean that you can use initrd flash command to flash the board successfully but you can’t use mfi package to flash the board?

Have you also fused the board?

Do you mean that you can use initrd flash command to flash the board successfully but you can’t use mfi package to flash the board?

Flashing was done in that case via the flash.sh but not initrd-flash.

Have you also fused the board?

No, but we are planning to do so

Could you try using the following command to flash the board w/o enabling any options?

$ sudo ./tools/kernel_flash/l4t_initrd_flash.sh jetson-agx-orin-devkit mmcblk0p1

will do asap, unfortunately working on other things right now :(

There is no update from you for a period, assuming this is not an issue anymore.
Hence, we are closing this topic. If need further support, please open a new one.
Thanks

Is this still an issue to support? Any result can be shared?