anduril / jetpack-nixos

NixOS module for NVIDIA Jetson devices
MIT License
165 stars 70 forks source link

./flash-xavier-nx-devkit-emmc fails with "Error: Return value 8" #47

Closed Shoadi closed 1 year ago

Shoadi commented 1 year ago

Hello people,

so the new issue I have when trying to flash our system with ./flash-xavier-nx-devkit-emmc is:

Error: Return value 8
Command tegrarcm_v2 --download bct_bootrom br_bct_BR.bct --download bct_mb1 mb1_bct_MB1_sigheader.bct.encrypt --download bct_mem mem_rcm_sigheader.bct.encrypt
Failed flashing t186ref.

3 or 4 weeks ago this way of flashing our device was successful - so I don't really understand what has changed. Maybe someone knows more about that.

Thanks a lot in advance and have a great day.

[user@OS:~/prj/jetson/jetpack-nixos]$ sudo ./result/bin/flash-xavier-nx-devkit-emmc
[sudo] password for user:
###############################################################################
# L4T BSP Information:
# R35 , REVISION: 2.1
###############################################################################
# Target Board Information:
# Name: jetson-xavier-nx-devkit-emmc, Board Family: t186ref, SoC: Tegra 194,
# OpMode: production, Boot Authentication: NS,
# Disk encryption: disabled ,
###############################################################################
copying soft_fuses(/tmp/tmp.sbtRz3Loom/bootloader/t186ref/BCT/tegra194-mb1-soft-fuses-l4t.cfg)... done.
./tegraflash.py --chip 0x19 --applet "/tmp/tmp.sbtRz3Loom/bootloader/mb1_t194_prod.bin" --skipuid --soft_fuses tegra194-mb1-soft-fuses-l4t.cfg --bins "mb2_applet nvtboot_applet_t194.bin" --cmd "dump eeprom boardinfo 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.0408 ] Generating RCM messages
[   0.0444 ] tegrahost_v2 --chip 0x19 0 --magicid MB1B --appendsigheader /tmp/tmp.sbtRz3Loom/bootloader/mb1_t194_prod.bin zerosbk
[   0.0455 ] Header already present for /tmp/tmp.sbtRz3Loom/bootloader/mb1_t194_prod.bin
[   0.0661 ] tegrasign_v3.py --key None --getmode mode.txt
[   0.0664 ] Assuming zero filled SBK key
[   0.0686 ] tegrasign_v3.py --file /tmp/tmp.sbtRz3Loom/bootloader/mb1_t194_prod_sigheader.bin --key None --length 1136 --offset 2960 --pubkeyhash pub_key.key
[   0.0688 ] Assuming zero filled SBK key
[   0.0759 ] Warning: pub_key.key is not found
[   0.0645 ] tegrahost_v2 --chip 0x19 0 --updatesigheader /tmp/tmp.sbtRz3Loom/bootloader/mb1_t194_prod_sigheader.bin /tmp/tmp.sbtRz3Loom/bootloader/mb1_t194_prod_sigheader.hash zerosbk
[   0.0744 ] tegrabct_v2 --chip 0x19 0 --sfuse tegra194-mb1-soft-fuses-l4t.cfg.pdf sfuse.bin
[   0.0779 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x19 0 --sfuses sfuse.bin --download rcm /tmp/tmp.sbtRz3Loom/bootloader/mb1_t194_prod_sigheader.bin 0 0
[   0.0786 ] RCM 0 is saved as rcm_0.rcm
[   0.0826 ] RCM 1 is saved as rcm_1.rcm
[   0.0826 ] RCM 2 is saved as rcm_2.rcm
[   0.0826 ] List of rcm files are saved in rcm_list.xml
[   0.0826 ]
[   0.0827 ] Signing RCM messages
[   0.0980 ] tegrasign_v3.py --key None --list rcm_list.xml --getmontgomeryvalues montgomery.bin --pubkeyhash pub_key.key
[   0.0982 ] Assuming zero filled SBK key
[   0.1035 ] Warning: pub_key.key is not found
[   0.0902 ] Copying signature to RCM mesages
[   0.0924 ] tegrarcm_v2 --chip 0x19 0 --updatesig rcm_list_signed.xml
[   0.0941 ] Boot Rom communication
[   0.0962 ] tegrarcm_v2 --chip 0x19 0 --rcm rcm_list_signed.xml --skipuid
[   0.0969 ] RCM version 0X190001
[   0.1203 ] Boot Rom communication completed
[   2.1433 ] tegrarcm_v2 --isapplet
[   2.1454 ] Applet version 01.00.0000
[   2.2066 ] tegrarcm_v2 --ismb2
[   2.2683 ] tegrahost_v2 --chip 0x19 --align nvtboot_applet_t194_aligned.bin
[   2.2737 ] tegrahost_v2 --chip 0x19 0 --magicid PLDT --appendsigheader nvtboot_applet_t194_aligned.bin zerosbk
[   2.2754 ] adding BCH for nvtboot_applet_t194_aligned.bin
[   2.3036 ] tegrasign_v3.py --key None --list nvtboot_applet_t194_aligned_sigheader.bin_list.xml --pubkeyhash pub_key.key
[   2.3040 ] Assuming zero filled SBK key
[   2.3083 ] Warning: pub_key.key is not found
[   2.2982 ] tegrahost_v2 --chip 0x19 0 --updatesigheader nvtboot_applet_t194_aligned_sigheader.bin.encrypt nvtboot_applet_t194_aligned_sigheader.bin.hash zerosbk
[   2.3105 ] tegrarcm_v2 --download mb2 nvtboot_applet_t194_sigheader.bin.encrypt
[   2.3119 ] Applet version 01.00.0000
[   2.3694 ] Sending mb2
[   2.3701 ] [................................................] 100%
[   2.3877 ] tegrarcm_v2 --boot recovery
[   2.3893 ] Applet version 01.00.0000
[   3.4541 ] tegrarcm_v2 --isapplet
[   3.5149 ] tegrarcm_v2 --ismb2
[   3.5165 ] MB2 Applet version 01.00.0000
[   3.5840 ] tegrarcm_v2 --ismb2
[   3.5861 ] MB2 Applet version 01.00.0000
[   3.6441 ] Retrieving board information
[   3.6475 ] tegrarcm_v2 --oem platformdetails chip chip_info.bin
[   3.6492 ] MB2 Applet version 01.00.0000
[   3.7066 ] Saved platform info in chip_info.bin
[   3.7114 ] Chip minor revision: 2
[   3.7114 ] Bootrom revision: 0xf
[   3.7114 ] Ram code: 0x1
[   3.7115 ] Chip sku: 0xde
[   3.7115 ] Chip Sample: non es
[   3.7115 ]
[   3.7121 ] Retrieving EEPROM data
[   3.7123 ] tegrarcm_v2 --oem platformdetails eeprom cvm /tmp/tmp.sbtRz3Loom/bootloader/cvm.bin
[   3.7146 ] MB2 Applet version 01.00.0000
[   3.7733 ] Saved platform info in /tmp/tmp.sbtRz3Loom/bootloader/cvm.bin
[   3.8141 ] Rebooting to recovery mode
[   3.8175 ] tegrarcm_v2 --ismb2
[   3.8190 ] MB2 Applet version 01.00.0000
[   3.8754 ] Rebooting to recovery mode
[   3.8804 ] tegrarcm_v2 --reboot recovery
[   3.8827 ] MB2 Applet version 01.00.0000
Board ID(3668) version(301) sku(0001) revision(G.0)
lz4c installed at /nix/store/zrxskb6gpsgr9amx36254360by5m0gry-lz4-1.9.4-bin/bin/lz4c
Compressing /tmp/tmp.sbtRz3Loom/bootloader/t186ref/tegra194-a02-bpmp-p3668-a00.dtb ...
Copy /tmp/tmp.sbtRz3Loom/kernel/dtb/tegra194-p3668-0001-p3509-0000.dtb to /tmp/tmp.sbtRz3Loom/kernel/dtb/tegra194-p3668-0001-p3509-0000.dtb.rec
NVDISP+UEFI in bootloader/nvdisp-init.bin ..
copying bctfile(/tmp/tmp.sbtRz3Loom/bootloader/t186ref/BCT/tegra194-mb1-bct-memcfg-p3668-0001-a00.cfg)... done.
copying bctfile1(/tmp/tmp.sbtRz3Loom/bootloader/t186ref/BCT/tegra194-memcfg-sw-override.cfg)... done.
copying minratchet_config(/tmp/tmp.sbtRz3Loom/bootloader/t186ref/BCT/tegra194-mb1-bct-ratchet-p3668.cfg)... done.
copying device_config(/tmp/tmp.sbtRz3Loom/bootloader/t186ref/BCT/tegra19x-mb1-bct-device-qspi-p3668.cfg)... done.
copying misc_cold_boot_config(/tmp/tmp.sbtRz3Loom/bootloader/t186ref/BCT/tegra194-mb1-bct-misc-l4t.cfg)... done.
copying misc_config(/tmp/tmp.sbtRz3Loom/bootloader/t186ref/BCT/tegra194-mb1-bct-misc-flash.cfg)... done.
copying pinmux_config(/tmp/tmp.sbtRz3Loom/bootloader/t186ref/BCT/tegra19x-mb1-pinmux-p3668-a01.cfg)... done.
copying gpioint_config(/tmp/tmp.sbtRz3Loom/bootloader/t186ref/BCT/tegra194-mb1-bct-gpioint-p3668-0001-a00.cfg)... done.
copying pmic_config(/tmp/tmp.sbtRz3Loom/bootloader/t186ref/BCT/tegra194-mb1-bct-pmic-p3668-0001-a00.cfg)... done.
copying pmc_config(/tmp/tmp.sbtRz3Loom/bootloader/t186ref/BCT/tegra19x-mb1-padvoltage-p3668-a01.cfg)... done.
copying prod_config(/tmp/tmp.sbtRz3Loom/bootloader/t186ref/BCT/tegra19x-mb1-prod-p3668-0001-a00.cfg)... done.
copying scr_config(/tmp/tmp.sbtRz3Loom/bootloader/t186ref/BCT/tegra194-mb1-bct-scr-cbb-mini-p3668.cfg)... done.
copying scr_cold_boot_config(/tmp/tmp.sbtRz3Loom/bootloader/t186ref/BCT/tegra194-mb1-bct-scr-cbb-mini-p3668.cfg)... done.
copying bootrom_config(/tmp/tmp.sbtRz3Loom/bootloader/t186ref/BCT/tegra194-mb1-bct-reset-p3668-0001-a00.cfg)... done.
copying dev_params(/tmp/tmp.sbtRz3Loom/bootloader/t186ref/BCT/tegra194-br-bct-qspi-l4t.cfg)... done.
copying dev_params_b(/tmp/tmp.sbtRz3Loom/bootloader/t186ref/BCT/tegra194-br-bct_b-qspi-l4t.cfg)... done.
Existing bootloader(/tmp/tmp.sbtRz3Loom/bootloader/nvtboot_cpu_t194.bin) reused.
copying initrd(/tmp/tmp.sbtRz3Loom/bootloader/l4t_initrd.img)... done.
bl is uefi
Making Boot image... done.
Not signing of boot.img
Existing sosfile(/tmp/tmp.sbtRz3Loom/bootloader/mb1_t194_prod.bin) reused.
Existing tegraboot(/tmp/tmp.sbtRz3Loom/bootloader/nvtboot_t194.bin) reused.
Existing cpu_bootloader(/tmp/tmp.sbtRz3Loom/bootloader/nvtboot_cpu_t194.bin) reused.
Existing mb2blfile(/tmp/tmp.sbtRz3Loom/bootloader/nvtboot_recovery_t194.bin) reused.
Existing mtspreboot(/tmp/tmp.sbtRz3Loom/bootloader/preboot_c10_prod_cr.bin) reused.
Existing mcepreboot(/tmp/tmp.sbtRz3Loom/bootloader/mce_c10_prod_cr.bin) reused.
Existing mtsproper(/tmp/tmp.sbtRz3Loom/bootloader/mts_c10_prod_cr.bin) reused.
Existing mb1file(/tmp/tmp.sbtRz3Loom/bootloader/mb1_t194_prod.bin) reused.
Existing bpffile(/tmp/tmp.sbtRz3Loom/bootloader/bpmp-2_t194.bin) reused.
Existing bpfdtbfile(/tmp/tmp.sbtRz3Loom/bootloader/tegra194-a02-bpmp-p3668-a00_lz4.dtb) reused.
Existing scefile(/tmp/tmp.sbtRz3Loom/bootloader/camera-rtcpu-sce.img) reused.
Existing camerafw(/tmp/tmp.sbtRz3Loom/bootloader/camera-rtcpu-t194-rce.img) reused.
Existing apefile(/tmp/tmp.sbtRz3Loom/bootloader/adsp-fw.bin) reused.
Existing spefile(/tmp/tmp.sbtRz3Loom/bootloader/spe_t194.bin) reused.
Existing wb0boot(/tmp/tmp.sbtRz3Loom/bootloader/warmboot_t194_prod.bin) reused.
Existing tosfile(/tmp/tmp.sbtRz3Loom/bootloader/tos-optee_t194.img) reused.
Existing eksfile(/tmp/tmp.sbtRz3Loom/bootloader/eks_t194.img) reused.
copying soft_fuses(/tmp/tmp.sbtRz3Loom/bootloader/t186ref/BCT/tegra194-mb1-soft-fuses-l4t.cfg)... done.
copying dtbfile(/tmp/tmp.sbtRz3Loom/kernel/dtb/tegra194-p3668-0001-p3509-0000.dtb)... done.
Copying nv_boot_control.conf to rootfs
sed: can't read /tmp/tmp.sbtRz3Loom/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can't read /tmp/tmp.sbtRz3Loom/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can't read /tmp/tmp.sbtRz3Loom/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can't read /tmp/tmp.sbtRz3Loom/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can't read /tmp/tmp.sbtRz3Loom/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can't read /tmp/tmp.sbtRz3Loom/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can't read /tmp/tmp.sbtRz3Loom/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can't read /tmp/tmp.sbtRz3Loom/rootfs/etc/nv_boot_control.conf: Not a directory
Skip generating system.img
Not signing of kernel-dtb
Existing tbcfile(/tmp/tmp.sbtRz3Loom/bootloader/nvdisp-init.bin) reused.
131072+0 records in
131072+0 records out
67108864 bytes (67 MB, 64 MiB) copied, 0.735088 s, 91.3 MB/s
    Sync'ing esp.img ... done.
copying tbcdtbfile(/tmp/tmp.sbtRz3Loom/kernel/dtb/tegra194-p3668-0001-p3509-0000.dtb)... done.
copying cfgfile(/tmp/tmp.sbtRz3Loom/flash.xml) to flash.xml... done.
done.
Existing flasher(/tmp/tmp.sbtRz3Loom/bootloader/nvtboot_recovery_cpu_t194.bin) reused.
Existing flashapp(/tmp/tmp.sbtRz3Loom/bootloader/tegraflash.py) reused.
copying overlay_dtb(/tmp/tmp.sbtRz3Loom/kernel/dtb/L4TConfiguration.dtbo)... done.
copying overlay_dtb(/tmp/tmp.sbtRz3Loom/kernel/dtb/tegra194-p3668-p3509-overlay.dtbo)... done.
./tegraflash.py --bl nvtboot_recovery_cpu_t194.bin --sdram_config tegra194-mb1-bct-memcfg-p3668-0001-a00.cfg,tegra194-memcfg-sw-override.cfg  --odmdata 0xB8190000  --overlay_dtb L4TConfiguration.dtbo,tegra194-p3668-p3509-overlay.dtbo,  --bldtb tegra194-p3668-0001-p3509-0000.dtb --applet mb1_t194_prod.bin --cmd "flash; reboot" --soft_fuses tegra194-mb1-soft-fuses-l4t.cfg  --cfg flash.xml --chip 0x19 --minratchet_config tegra194-mb1-bct-ratchet-p3668.cfg --device_config tegra19x-mb1-bct-device-qspi-p3668.cfg --misc_cold_boot_config tegra194-mb1-bct-misc-l4t.cfg --misc_config tegra194-mb1-bct-misc-flash.cfg --pinmux_config tegra19x-mb1-pinmux-p3668-a01.cfg --gpioint_config tegra194-mb1-bct-gpioint-p3668-0001-a00.cfg --pmic_config tegra194-mb1-bct-pmic-p3668-0001-a00.cfg --pmc_config tegra19x-mb1-padvoltage-p3668-a01.cfg --prod_config tegra19x-mb1-prod-p3668-0001-a00.cfg --scr_config tegra194-mb1-bct-scr-cbb-mini-p3668.cfg --scr_cold_boot_config tegra194-mb1-bct-scr-cbb-mini-p3668.cfg --br_cmd_config tegra194-mb1-bct-reset-p3668-0001-a00.cfg --dev_params tegra194-br-bct-qspi-l4t.cfg,tegra194-br-bct_b-qspi-l4t.cfg  --bin "mb2_bootloader nvtboot_recovery_t194.bin; mts_preboot preboot_c10_prod_cr.bin; mts_mce mce_c10_prod_cr.bin; mts_proper mts_c10_prod_cr.bin; bpmp_fw bpmp-2_t194.bin; bpmp_fw_dtb tegra194-a02-bpmp-p3668-a00_lz4.dtb; spe_fw spe_t194.bin; tos tos-optee_t194.img; eks eks_t194.img; bootloader_dtb tegra194-p3668-0001-p3509-0000.dtb"   --secondary_gpt_backup  --bct_backup  --boot_chain A
saving flash command in /tmp/tmp.sbtRz3Loom/bootloader/flashcmd.txt
saving Windows flash command to /tmp/tmp.sbtRz3Loom/bootloader/flash_win.bat
*** Flashing target device started. ***
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.0258 ] tegrasign_v3.py --key None --getmode mode.txt
[   0.0261 ] Assuming zero filled SBK key
[   0.0025 ] Generating RCM messages
[   0.0046 ] tegrahost_v2 --chip 0x19 0 --magicid MB1B --appendsigheader mb1_t194_prod.bin zerosbk
[   0.0054 ] Header already present for mb1_t194_prod.bin
[   0.0357 ] tegrasign_v3.py --key None --getmode mode.txt
[   0.0358 ] Assuming zero filled SBK key
[   0.0383 ] tegrasign_v3.py --file mb1_t194_prod_sigheader.bin --key None --length 1136 --offset 2960 --pubkeyhash pub_key.key
[   0.0385 ] Assuming zero filled SBK key
[   0.0415 ] Warning: pub_key.key is not found
[   0.0199 ] tegrahost_v2 --chip 0x19 0 --updatesigheader mb1_t194_prod_sigheader.bin mb1_t194_prod_sigheader.hash zerosbk
[   0.0270 ] tegrabct_v2 --chip 0x19 0 --sfuse tegra194-mb1-soft-fuses-l4t.cfg sfuse.bin
[   0.0301 ] tegrabct_v2 --chip 0x19 0 --ratchet_blob ratchet_blob.bin --minratchet tegra194-mb1-bct-ratchet-p3668.cfg
[   0.0307 ] FwIndex: 1, MinRatchetLevel: 0
[   0.0313 ] FwIndex: 2, MinRatchetLevel: 0
[   0.0313 ] FwIndex: 3, MinRatchetLevel: 0
[   0.0314 ] FwIndex: 4, MinRatchetLevel: 0
[   0.0314 ] FwIndex: 5, MinRatchetLevel: 0
[   0.0314 ] FwIndex: 6, MinRatchetLevel: 0
[   0.0314 ] FwIndex: 7, MinRatchetLevel: 0
[   0.0314 ] FwIndex: 11, MinRatchetLevel: 0
[   0.0314 ] FwIndex: 12, MinRatchetLevel: 0
[   0.0314 ] FwIndex: 13, MinRatchetLevel: 0
[   0.0314 ] FwIndex: 14, MinRatchetLevel: 0
[   0.0315 ] FwIndex: 15, MinRatchetLevel: 0
[   0.0315 ] FwIndex: 16, MinRatchetLevel: 0
[   0.0315 ] FwIndex: 17, MinRatchetLevel: 0
[   0.0315 ] FwIndex: 18, MinRatchetLevel: 0
[   0.0315 ] FwIndex: 19, MinRatchetLevel: 0
[   0.0315 ] FwIndex: 30, MinRatchetLevel: 0
[   0.0315 ] FwIndex: 31, MinRatchetLevel: 0
[   0.0315 ]
[   0.0336 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x19 0 --sfuses sfuse.bin --download rcm mb1_t194_prod_sigheader.bin 0 0
[   0.0343 ] RCM 0 is saved as rcm_0.rcm
[   0.0385 ] RCM 1 is saved as rcm_1.rcm
[   0.0385 ] RCM 2 is saved as rcm_2.rcm
[   0.0386 ] List of rcm files are saved in rcm_list.xml
[   0.0386 ]
[   0.0386 ] Signing RCM messages
[   0.0647 ] tegrasign_v3.py --key None --list rcm_list.xml --getmontgomeryvalues montgomery.bin --pubkeyhash pub_key.key
[   0.0649 ] Assuming zero filled SBK key
[   0.0701 ] Warning: pub_key.key is not found
[   0.0463 ] Copying signature to RCM mesages
[   0.0485 ] tegrarcm_v2 --chip 0x19 0 --updatesig rcm_list_signed.xml
[   0.0503 ] odmdata (to decode) = 3088646144
[   0.0503 ] Odmdata strings: PCIE_XBAR_8_1_1_0_1,UFS_DISABLED,NVHS_PCIE,enable-debug-console,enable-denver-wdt
[   0.0504 ] Bpmp odmdata config: {'pcie-xbar-config': [0, 1, 'PCIE_XBAR_8_1_1_0_1'], 'pcie-c0-endpoint-enable': [1, 0, ''], 'pcie-c4-endpoint-enable': [1, 0, ''], 'ufs-config': [0, 1, 'UFS_DISABLED'], 'sata-enable': [1, 0, ''], 'nvhs-owner': [0, 1, 'PCIE'], 'pcie-c5-endpoint-enable': [1, 0, '']}
[   0.0519 ] bpmp_dtb is compressed; decompressing...
[   0.0520 ] lz4c -df tegra194-a02-bpmp-p3668-a00_lz4.dtb tegra194-a02-bpmp-p3668-a00_lz4_with_odm.dtb
[   0.0532 ] tegra194-a02-bpmp-p3 : decoded 442560 bytes
[   0.2742 ] Re-compressing updated bpmp_dtb
[   0.2743 ] lz4c -zf tegra194-a02-bpmp-p3668-a00_lz4_with_odm.dtb tegra194-a02-bpmp-p3668-a00_lz4.dtb
[   0.2778 ] Compressed 442529 bytes into 32067 bytes ==> 7.25%
[   0.2779 ]
[   0.8415 ] Concatenating L4TConfiguration.dtbo,tegra194-p3668-p3509-overlay.dtbo to tegra194-p3668-0001-p3509-0000_with_odm_overlay.dtb
[   0.8439 ] Parsing partition layout
[   0.8474 ] tegraparser_v2 --pt flash.xml.tmp
[   0.8493 ] Reading ramcode from backup chip_info.bin file
[   0.8494 ] RAMCODE Read from Device: 1

[   0.8495 ] Disable BPMP dtb trim, using default dtb
[   0.8495 ]
[   0.8495 ] Creating list of images to be signed
[   0.8518 ] tegrahost_v2 --chip 0x19 0 --partitionlayout flash.xml.bin --ratchet_blob ratchet_blob.bin --list images_list.xml zerosbk
[   0.8526 ] MB1: Nvheader already present is mb1_t194_prod_aligned.bin
[   0.8544 ] Header already present for mb1_t194_prod_aligned_sigheader.bin
[   0.8550 ] MB1: Nvheader already present is mb1_b_t194_prod_aligned.bin
[   0.8604 ] Header already present for mb1_b_t194_prod_aligned_sigheader.bin
[   0.8615 ] adding BCH for spe_t194_aligned.bin
[   0.8643 ] adding BCH for nvtboot_t194_aligned.bin
[   0.8674 ] Header already present for preboot_c10_prod_cr_aligned.bin
[   0.8736 ] Header already present for mce_c10_prod_cr_aligned.bin
[   0.8744 ] adding BCH for mts_c10_prod_cr_aligned.bin
[   0.8893 ] Header already present for warmboot_t194_prod_aligned.bin
[   0.9747 ] adding BCH for xusb_sil_rel_fw_aligned
[   0.9765 ] adding BCH for nvdisp-init_aligned.bin
[   0.9923 ] adding BCH for tegra194-p3668-0001-p3509-0000_aligned.dtb
[   1.0754 ] adding BCH for tos-optee_t194_aligned.img
[   1.0872 ] adding BCH for eks_t194_aligned.img
[   1.1101 ] adding BCH for adsp-fw_aligned.bin
[   1.1112 ] adding BCH for camera-rtcpu-t194-rce_aligned.img
[   1.1237 ] adding BCH for bpmp-2_t194_aligned.bin
[   1.1410 ] adding BCH for tegra194-a02-bpmp-p3668-a00_lz4_aligned.dtb
[   1.1663 ] adding BCH for spe_t194_aligned.bin
[   1.1682 ] adding BCH for nvtboot_t194_aligned.bin
[   1.1720 ] Header already present for preboot_c10_prod_cr_aligned.bin
[   1.1783 ] Header already present for mce_c10_prod_cr_aligned.bin
[   1.1789 ] adding BCH for mts_c10_prod_cr_aligned.bin
[   1.1962 ] Header already present for warmboot_t194_prod_aligned.bin
[   1.2852 ] adding BCH for xusb_sil_rel_fw_aligned
[   1.2867 ] adding BCH for nvdisp-init_aligned.bin
[   1.3083 ] adding BCH for tegra194-p3668-0001-p3509-0000_aligned.dtb
[   1.4023 ] adding BCH for tos-optee_t194_aligned.img
[   1.4199 ] adding BCH for eks_t194_aligned.img
[   1.4472 ] adding BCH for adsp-fw_aligned.bin
[   1.4504 ] adding BCH for camera-rtcpu-t194-rce_aligned.img
[   1.4640 ] adding BCH for bpmp-2_t194_aligned.bin
[   1.4835 ] adding BCH for tegra194-a02-bpmp-p3668-a00_lz4_aligned.dtb
[   1.5131 ] Filling MB1 storage info
[   1.5131 ] Parsing dev params for multi chains
[   1.5131 ] Generating br-bct
[   1.5150 ] Performing cfg overlay
[   1.5151 ] ['tegra194-mb1-bct-memcfg-p3668-0001-a00.cfg', 'tegra194-memcfg-sw-override.cfg']
[   1.5154 ] sw_memcfg_overlay.pl -c tegra194-mb1-bct-memcfg-p3668-0001-a00.cfg -s tegra194-memcfg-sw-override.cfg -o /tmp/tmp.sbtRz3Loom/bootloader/129921/tmpovtqsjpq1.cfg
[   1.5752 ] Updating dev and MSS params in BR BCT
[   1.5752 ] tegrabct_v2 --dev_param tegra194-br-bct-qspi-l4t.cfg --sdram /tmp/tmp.sbtRz3Loom/bootloader/129921/tmpovtqsjpq1.cfg --brbct br_bct.cfg --sfuse tegra194-mb1-soft-fuses-l4t.cfg --chip 0x19 0
[   1.6520 ] Updating bl info
[   1.6541 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --updateblinfo flash.xml.bin
[   1.6571 ] Generating br-bct
[   1.6595 ] Performing cfg overlay
[   1.6595 ] ['/tmp/tmp.sbtRz3Loom/bootloader/129921/tmpovtqsjpq1.cfg']
[   1.6595 ] Updating dev and MSS params in BR BCT
[   1.6595 ] tegrabct_v2 --dev_param tegra194-br-bct_b-qspi-l4t.cfg --sdram /tmp/tmp.sbtRz3Loom/bootloader/129921/tmpovtqsjpq1.cfg --brbct br_bct.cfg --sfuse tegra194-mb1-soft-fuses-l4t.cfg --chip 0x19 0
[   1.7200 ] Updating bl info
[   1.7221 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --updateblinfo flash.xml.bin
[   1.7249 ] Generating BCT backup image
[   1.7249 ] dd if=/dev/zero of=bct_backup.img bs=1 count=32768
[   1.7259 ] 32768+0 records in
[   1.8971 ] 32768+0 records out
[   1.8972 ] 32768 bytes (33 kB, 32 KiB) copied, 0.169535 s, 193 kB/s
[   1.8972 ]
[   1.8972 ] Concatenating BCT for chain A to bct_backup.img

[   1.8972 ] dd if=br_bct_BR.bct of=bct_backup.img bs=1 seek=0 conv=notrunc
[   1.8982 ] 2888+0 records in
[   1.9158 ] 2888+0 records out
[   1.9158 ] 2888 bytes (2.9 kB, 2.8 KiB) copied, 0.0159223 s, 181 kB/s
[   1.9158 ]
[   1.9158 ] Concatenating BCT for chain B to bct_backup.img

[   1.9159 ] dd if=br_bct_b_BR.bct of=bct_backup.img bs=1 seek=16384 conv=notrunc
[   1.9167 ] 2888+0 records in
[   1.9345 ] 2888+0 records out
[   1.9345 ] 2888 bytes (2.9 kB, 2.8 KiB) copied, 0.0161902 s, 178 kB/s
[   1.9345 ]
[   1.9346 ] Generating signatures
[   1.9607 ] tegrasign_v3.py --key None --list images_list.xml --pubkeyhash pub_key.key
[   1.9609 ] Assuming zero filled SBK key
[   2.0780 ] Warning: pub_key.key is not found
[   2.0543 ] Parsing dev params for multi chains
[   2.0543 ] Generating br-bct
[   2.0563 ] Performing cfg overlay
[   2.0564 ] ['/tmp/tmp.sbtRz3Loom/bootloader/129921/tmpovtqsjpq1.cfg']
[   2.0564 ] Updating dev and MSS params in BR BCT
[   2.0564 ] tegrabct_v2 --dev_param tegra194-br-bct-qspi-l4t.cfg --sdram /tmp/tmp.sbtRz3Loom/bootloader/129921/tmpovtqsjpq1.cfg --brbct br_bct.cfg --sfuse tegra194-mb1-soft-fuses-l4t.cfg --chip 0x19 0
[   2.1163 ] Updating bl info
[   2.1185 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --updateblinfo flash.xml.bin --updatesig images_list_signed.xml
[   2.1223 ] Updating smd info
[   2.1247 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 --updatesmdinfo flash.xml.bin
[   2.1260 ] Updating Odmdata
[   2.1281 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --updatefields Odmdata =0xB8190000
[   2.1293 ] Signing BCT
[   2.1293 ] Get Signed section of bct
[   2.1312 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --listbct bct_list.xml
[   2.1580 ] tegrasign_v3.py --key None --list bct_list.xml --getmontgomeryvalues montgomery.bin --pubkeyhash pub_key.key
[   2.1582 ] Assuming zero filled SBK key
[   2.1602 ] Warning: pub_key.key is not found
[   2.1364 ] Updating BCT with signature
[   2.1384 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --updatesig bct_list_signed.xml
[   2.1399 ] Generating br-bct
[   2.1420 ] Performing cfg overlay
[   2.1420 ] ['/tmp/tmp.sbtRz3Loom/bootloader/129921/tmpovtqsjpq1.cfg']
[   2.1420 ] Updating dev and MSS params in BR BCT
[   2.1421 ] tegrabct_v2 --dev_param tegra194-br-bct_b-qspi-l4t.cfg --sdram /tmp/tmp.sbtRz3Loom/bootloader/129921/tmpovtqsjpq1.cfg --brbct br_bct.cfg --sfuse tegra194-mb1-soft-fuses-l4t.cfg --chip 0x19 0
[   2.2024 ] Updating bl info
[   2.2046 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --updateblinfo flash.xml.bin --updatesig images_list_signed.xml
[   2.2083 ] Updating smd info
[   2.2107 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 --updatesmdinfo flash.xml.bin
[   2.2120 ] Updating Odmdata
[   2.2142 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --updatefields Odmdata =0xB8190000
[   2.2157 ] Signing BCT
[   2.2157 ] Get Signed section of bct
[   2.2179 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --listbct bct_list.xml
[   2.2447 ] tegrasign_v3.py --key None --list bct_list.xml --getmontgomeryvalues montgomery.bin --pubkeyhash pub_key.key
[   2.2449 ] Assuming zero filled SBK key
[   2.2473 ] Warning: pub_key.key is not found
[   2.2235 ] Updating BCT with signature
[   2.2259 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --updatesig bct_list_signed.xml
[   2.2272 ] Generating BCT backup image
[   2.2272 ] dd if=/dev/zero of=bct_backup.img bs=1 count=32768
[   2.2283 ] 32768+0 records in
[   2.4024 ] 32768+0 records out
[   2.4025 ] 32768 bytes (33 kB, 32 KiB) copied, 0.172083 s, 190 kB/s
[   2.4025 ]
[   2.4025 ] Concatenating BCT for chain A to bct_backup.img

[   2.4025 ] dd if=br_bct_BR.bct of=bct_backup.img bs=1 seek=0 conv=notrunc
[   2.4037 ] 2888+0 records in
[   2.4211 ] 2888+0 records out
[   2.4211 ] 2888 bytes (2.9 kB, 2.8 KiB) copied, 0.015407 s, 187 kB/s
[   2.4212 ]
[   2.4212 ] Concatenating BCT for chain B to bct_backup.img

[   2.4212 ] dd if=br_bct_b_BR.bct of=bct_backup.img bs=1 seek=16384 conv=notrunc
[   2.4223 ] 2888+0 records in
[   2.4389 ] 2888+0 records out
[   2.4389 ] 2888 bytes (2.9 kB, 2.8 KiB) copied, 0.0148326 s, 195 kB/s
[   2.4390 ]
[   2.4390 ] Generating coldboot mb1-bct
[   2.4412 ] tegrabct_v2 --chip 0x19 0 --mb1bct mb1_cold_boot_bct.cfg --sdram /tmp/tmp.sbtRz3Loom/bootloader/129921/tmpovtqsjpq1.cfg --misc tegra194-mb1-bct-misc-l4t.cfg --scr tegra194-mb1-bct-scr-cbb-mini-p3668.cfg --pinmux tegra19x-mb1-pinmux-p3668-a01.cfg --pmc tegra19x-mb1-padvoltage-p3668-a01.cfg --pmic tegra194-mb1-bct-pmic-p3668-0001-a00.cfg --brcommand tegra194-mb1-bct-reset-p3668-0001-a00.cfg --prod tegra19x-mb1-prod-p3668-0001-a00.cfg --gpioint tegra194-mb1-bct-gpioint-p3668-0001-a00.cfg --device tegra19x-mb1-bct-device-qspi-p3668.cfg
[   2.4422 ] MB1-BCT version: 0x1

[   2.4431 ] Parsing config file :tegra19x-mb1-pinmux-p3668-a01.cfg
[   2.4452 ] Added Platform Config 0 data with size :- 2496

[   2.4474 ] Parsing config file :tegra194-mb1-bct-scr-cbb-mini-p3668.cfg
[   2.4482 ] Added Platform Config 1 data with size :- 19640

[   2.4737 ] Parsing config file :tegra19x-mb1-padvoltage-p3668-a01.cfg
[   2.4753 ] Added Platform Config 2 data with size :- 24

[   2.4761 ] Parsing config file :tegra194-mb1-bct-pmic-p3668-0001-a00.cfg
[   2.4767 ] Added Platform Config 4 data with size :- 348

[   2.4771 ] Parsing config file :tegra194-mb1-bct-reset-p3668-0001-a00.cfg
[   2.4777 ] Added Platform Config 3 data with size :- 92
[   2.4780 ]
[   2.4780 ] Parsing config file :tegra19x-mb1-prod-p3668-0001-a00.cfg
[   2.4780 ] Added Platform Config 5 data with size :- 140
[   2.4780 ]
[   2.4780 ] Parsing config file :tegra194-mb1-bct-gpioint-p3668-0001-a00.cfg
[   2.4781 ] Added Platform Config 7 data with size :- 392
[   2.4781 ]
[   2.4781 ] Parsing config file :tegra19x-mb1-bct-device-qspi-p3668.cfg
[   2.4781 ] Added Platform Config 9 data with size :- 40
[   2.4781 ]
[   2.4781 ] Updating mb1-bct with firmware information
[   2.4801 ] tegrabct_v2 --chip 0x19 --mb1bct mb1_cold_boot_bct_MB1.bct --updatefwinfo flash.xml.bin
[   2.4820 ] Updating mb1-bct with storage information
[   2.4841 ] tegrabct_v2 --chip 0x19 --mb1bct mb1_cold_boot_bct_MB1.bct --updatestorageinfo flash.xml.bin
[   2.4862 ] Updating mb1-bct with ratchet information
[   2.4882 ] tegrabct_v2 --chip 0x19 --mb1bct mb1_cold_boot_bct_MB1.bct --minratchet tegra194-mb1-bct-ratchet-p3668.cfg
[   2.4893 ] FwIndex: 1, MinRatchetLevel: 0
[   2.4906 ] FwIndex: 2, MinRatchetLevel: 0
[   2.4909 ] FwIndex: 3, MinRatchetLevel: 0
[   2.4909 ] FwIndex: 4, MinRatchetLevel: 0
[   2.4909 ] FwIndex: 5, MinRatchetLevel: 0
[   2.4909 ] FwIndex: 6, MinRatchetLevel: 0
[   2.4910 ] FwIndex: 7, MinRatchetLevel: 0
[   2.4910 ] FwIndex: 11, MinRatchetLevel: 0
[   2.4910 ] FwIndex: 12, MinRatchetLevel: 0
[   2.4910 ] FwIndex: 13, MinRatchetLevel: 0
[   2.4910 ] FwIndex: 14, MinRatchetLevel: 0
[   2.4910 ] FwIndex: 15, MinRatchetLevel: 0
[   2.4910 ] FwIndex: 16, MinRatchetLevel: 0
[   2.4910 ] FwIndex: 17, MinRatchetLevel: 0
[   2.4910 ] FwIndex: 18, MinRatchetLevel: 0
[   2.4910 ] FwIndex: 19, MinRatchetLevel: 0
[   2.4910 ] FwIndex: 30, MinRatchetLevel: 0
[   2.4910 ] FwIndex: 31, MinRatchetLevel: 0
[   2.4910 ]
[   2.4936 ] tegrahost_v2 --chip 0x19 --align mb1_cold_boot_bct_MB1_aligned.bct
[   2.4968 ] tegrahost_v2 --chip 0x19 0 --magicid MBCT --ratchet_blob ratchet_blob.bin --appendsigheader mb1_cold_boot_bct_MB1_aligned.bct zerosbk
[   2.4975 ] adding BCH for mb1_cold_boot_bct_MB1_aligned.bct
[   2.5249 ] tegrasign_v3.py --key None --list mb1_cold_boot_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key
[   2.5251 ] Assuming zero filled SBK key
[   2.5272 ] Warning: pub_key.key is not found
[   2.5057 ] tegrahost_v2 --chip 0x19 0 --updatesigheader mb1_cold_boot_bct_MB1_aligned_sigheader.bct.encrypt mb1_cold_boot_bct_MB1_aligned_sigheader.bct.hash zerosbk
[   2.5080 ] Generating recovery mb1-bct
[   2.5103 ] tegrabct_v2 --chip 0x19 0 --mb1bct mb1_bct.cfg --sdram /tmp/tmp.sbtRz3Loom/bootloader/129921/tmpovtqsjpq1.cfg --misc tegra194-mb1-bct-misc-flash.cfg --scr tegra194-mb1-bct-scr-cbb-mini-p3668.cfg --pinmux tegra19x-mb1-pinmux-p3668-a01.cfg --pmc tegra19x-mb1-padvoltage-p3668-a01.cfg --pmic tegra194-mb1-bct-pmic-p3668-0001-a00.cfg --brcommand tegra194-mb1-bct-reset-p3668-0001-a00.cfg --prod tegra19x-mb1-prod-p3668-0001-a00.cfg --gpioint tegra194-mb1-bct-gpioint-p3668-0001-a00.cfg --device tegra19x-mb1-bct-device-qspi-p3668.cfg
[   2.5112 ] MB1-BCT version: 0x1

[   2.5119 ] Parsing config file :tegra19x-mb1-pinmux-p3668-a01.cfg
[   2.5129 ] Added Platform Config 0 data with size :- 2496

[   2.5152 ] Parsing config file :tegra194-mb1-bct-scr-cbb-mini-p3668.cfg
[   2.5161 ] Added Platform Config 1 data with size :- 19640

[   2.5409 ] Parsing config file :tegra19x-mb1-padvoltage-p3668-a01.cfg
[   2.5417 ] Added Platform Config 2 data with size :- 24

[   2.5422 ] Parsing config file :tegra194-mb1-bct-pmic-p3668-0001-a00.cfg
[   2.5430 ] Added Platform Config 4 data with size :- 348

[   2.5434 ] Parsing config file :tegra194-mb1-bct-reset-p3668-0001-a00.cfg
[   2.5440 ] Added Platform Config 3 data with size :- 92

[   2.5444 ] Parsing config file :tegra19x-mb1-prod-p3668-0001-a00.cfg
[   2.5449 ] Added Platform Config 5 data with size :- 140
[   2.5449 ]
[   2.5449 ] Parsing config file :tegra194-mb1-bct-gpioint-p3668-0001-a00.cfg
[   2.5449 ] Added Platform Config 7 data with size :- 392
[   2.5450 ]
[   2.5450 ] Parsing config file :tegra19x-mb1-bct-device-qspi-p3668.cfg
[   2.5450 ] Added Platform Config 9 data with size :- 40
[   2.5450 ]
[   2.5450 ] Updating mb1-bct with firmware information
[   2.5470 ] tegrabct_v2 --chip 0x19 --mb1bct mb1_bct_MB1.bct --recov --updatefwinfo flash.xml.bin
[   2.5492 ] Updating mb1-bct with storage information
[   2.5512 ] tegrabct_v2 --chip 0x19 --mb1bct mb1_bct_MB1.bct --updatestorageinfo flash.xml.bin
[   2.5532 ] Updating mb1-bct with ratchet information
[   2.5556 ] tegrabct_v2 --chip 0x19 --mb1bct mb1_bct_MB1.bct --minratchet tegra194-mb1-bct-ratchet-p3668.cfg
[   2.5566 ] FwIndex: 1, MinRatchetLevel: 0
[   2.5580 ] FwIndex: 2, MinRatchetLevel: 0
[   2.5582 ] FwIndex: 3, MinRatchetLevel: 0
[   2.5582 ] FwIndex: 4, MinRatchetLevel: 0
[   2.5582 ] FwIndex: 5, MinRatchetLevel: 0
[   2.5583 ] FwIndex: 6, MinRatchetLevel: 0
[   2.5583 ] FwIndex: 7, MinRatchetLevel: 0
[   2.5583 ] FwIndex: 11, MinRatchetLevel: 0
[   2.5583 ] FwIndex: 12, MinRatchetLevel: 0
[   2.5583 ] FwIndex: 13, MinRatchetLevel: 0
[   2.5583 ] FwIndex: 14, MinRatchetLevel: 0
[   2.5583 ] FwIndex: 15, MinRatchetLevel: 0
[   2.5583 ] FwIndex: 16, MinRatchetLevel: 0
[   2.5584 ] FwIndex: 17, MinRatchetLevel: 0
[   2.5584 ] FwIndex: 18, MinRatchetLevel: 0
[   2.5584 ] FwIndex: 19, MinRatchetLevel: 0
[   2.5584 ] FwIndex: 30, MinRatchetLevel: 0
[   2.5584 ] FwIndex: 31, MinRatchetLevel: 0
[   2.5584 ]
[   2.5607 ] tegrahost_v2 --chip 0x19 --align mb1_bct_MB1_aligned.bct
[   2.5636 ] tegrahost_v2 --chip 0x19 0 --magicid MBCT --ratchet_blob ratchet_blob.bin --appendsigheader mb1_bct_MB1_aligned.bct zerosbk
[   2.5644 ] adding BCH for mb1_bct_MB1_aligned.bct
[   2.5916 ] tegrasign_v3.py --key None --list mb1_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key
[   2.5918 ] Assuming zero filled SBK key
[   2.5935 ] Warning: pub_key.key is not found
[   2.5718 ] tegrahost_v2 --chip 0x19 0 --updatesigheader mb1_bct_MB1_aligned_sigheader.bct.encrypt mb1_bct_MB1_aligned_sigheader.bct.hash zerosbk
[   2.5741 ] Generating coldboot mem-bct
[   2.5761 ] tegrabct_v2 --chip 0x19 0 --sdram /tmp/tmp.sbtRz3Loom/bootloader/129921/tmpovtqsjpq1.cfg --membct /tmp/tmp.sbtRz3Loom/bootloader/129921/tmpovtqsjpq1_1.bct /tmp/tmp.sbtRz3Loom/bootloader/129921/tmpovtqsjpq1_2.bct /tmp/tmp.sbtRz3Loom/bootloader/129921/tmpovtqsjpq1_3.bct /tmp/tmp.sbtRz3Loom/bootloader/129921/tmpovtqsjpq1_4.bct
[   2.5767 ] Packing sdram param for instance[0]
[   2.6369 ] Packing sdram param for instance[1]
[   2.6374 ] Packing sdram param for instance[2]
[   2.6381 ] Packing sdram param for instance[3]
[   2.6381 ] Packing sdram param for instance[4]
[   2.6381 ] Packing sdram param for instance[5]
[   2.6381 ] Packing sdram param for instance[6]
[   2.6381 ] Packing sdram param for instance[7]
[   2.6381 ] Packing sdram param for instance[8]
[   2.6381 ] Packing sdram param for instance[9]
[   2.6382 ] Packing sdram param for instance[10]
[   2.6382 ] Packing sdram param for instance[11]
[   2.6382 ] Packing sdram param for instance[12]
[   2.6382 ] Packing sdram param for instance[13]
[   2.6382 ] Packing sdram param for instance[14]
[   2.6382 ] Packing sdram param for instance[15]
[   2.6382 ]
[   2.6383 ] Getting sector size from pt
[   2.6405 ] tegraparser_v2 --getsectorsize flash.xml.bin sector_info.bin
[   2.6417 ] BlockSize read from layout is 200

[   2.6437 ] tegrahost_v2 --chip 0x19 0 --blocksize 512 --magicid MEMB --addsigheader_multi /tmp/tmp.sbtRz3Loom/bootloader/129921/tmpovtqsjpq1_1.bct /tmp/tmp.sbtRz3Loom/bootloader/129921/tmpovtqsjpq1_2.bct /tmp/tmp.sbtRz3Loom/bootloader/129921/tmpovtqsjpq1_3.bct /tmp/tmp.sbtRz3Loom/bootloader/129921/tmpovtqsjpq1_4.bct
[   2.6446 ] adding BCH for /tmp/tmp.sbtRz3Loom/bootloader/129921/tmpovtqsjpq1_1.bct
[   2.6501 ] tegrahost_v2 --chip 0x19 --align mem_coldboot_aligned.bct
[   2.6537 ] tegrahost_v2 --chip 0x19 0 --magicid MEMB --ratchet_blob ratchet_blob.bin --appendsigheader mem_coldboot_aligned.bct zerosbk
[   2.6544 ] Header already present for mem_coldboot_aligned.bct
[   2.6813 ] tegrasign_v3.py --key None --list mem_coldboot_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key
[   2.6816 ] Assuming zero filled SBK key
[   2.6840 ] Warning: pub_key.key is not found
[   2.6626 ] tegrahost_v2 --chip 0x19 0 --updatesigheader mem_coldboot_aligned_sigheader.bct.encrypt mem_coldboot_aligned_sigheader.bct.hash zerosbk
[   2.6653 ] Generating recovery mem-bct
[   2.6679 ] tegrabct_v2 --chip 0x19 0 --sdram /tmp/tmp.sbtRz3Loom/bootloader/129921/tmpovtqsjpq1.cfg --membct /tmp/tmp.sbtRz3Loom/bootloader/129921/tmpovtqsjpq1_1.bct /tmp/tmp.sbtRz3Loom/bootloader/129921/tmpovtqsjpq1_2.bct /tmp/tmp.sbtRz3Loom/bootloader/129921/tmpovtqsjpq1_3.bct /tmp/tmp.sbtRz3Loom/bootloader/129921/tmpovtqsjpq1_4.bct
[   2.6691 ] Packing sdram param for instance[0]
[   2.7394 ] Packing sdram param for instance[1]
[   2.7400 ] Packing sdram param for instance[2]
[   2.7407 ] Packing sdram param for instance[3]
[   2.7411 ] Packing sdram param for instance[4]
[   2.7411 ] Packing sdram param for instance[5]
[   2.7411 ] Packing sdram param for instance[6]
[   2.7411 ] Packing sdram param for instance[7]
[   2.7412 ] Packing sdram param for instance[8]
[   2.7412 ] Packing sdram param for instance[9]
[   2.7412 ] Packing sdram param for instance[10]
[   2.7412 ] Packing sdram param for instance[11]
[   2.7412 ] Packing sdram param for instance[12]
[   2.7412 ] Packing sdram param for instance[13]
[   2.7412 ] Packing sdram param for instance[14]
[   2.7412 ] Packing sdram param for instance[15]
[   2.7413 ]
[   2.7438 ] tegrahost_v2 --chip 0x19 --align mem_rcm_aligned.bct
[   2.7467 ] tegrahost_v2 --chip 0x19 0 --magicid MEMB --ratchet_blob ratchet_blob.bin --appendsigheader mem_rcm_aligned.bct zerosbk
[   2.7476 ] adding BCH for mem_rcm_aligned.bct
[   2.7755 ] tegrasign_v3.py --key None --list mem_rcm_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key
[   2.7757 ] Assuming zero filled SBK key
[   2.7777 ] Warning: pub_key.key is not found
[   2.7563 ] tegrahost_v2 --chip 0x19 0 --updatesigheader mem_rcm_aligned_sigheader.bct.encrypt mem_rcm_aligned_sigheader.bct.hash zerosbk
[   2.7589 ] Copying signatures
[   2.7611 ] tegrahost_v2 --chip 0x19 0 --partitionlayout flash.xml.bin --updatesig images_list_signed.xml
[   3.0975 ] Boot Rom communication
[   3.0996 ] tegrarcm_v2 --chip 0x19 0 --rcm rcm_list_signed.xml
[   3.1004 ] BR_CID: 0x88021911644212041400000011fd8140
[   3.1250 ] RCM version 0X190001
[   3.1552 ] Boot Rom communication completed
[   5.1773 ] tegrarcm_v2 --isapplet
[   5.1800 ] Applet version 01.00.0000
[   5.2343 ] Sending BCTs
[   5.2385 ] tegrarcm_v2 --download bct_bootrom br_bct_BR.bct --download bct_mb1 mb1_bct_MB1_sigheader.bct.encrypt --download bct_mem mem_rcm_sigheader.bct.encrypt
[   5.2402 ] Applet version 01.00.0000
[   5.3021 ] Sending bct_bootrom
[   5.3030 ] [................................................] 100%
[   5.3056 ] Sending bct_mb1
[   5.3087 ] [................................................] 100%
[   5.3126 ] Sending bct_mem
[   5.3620 ] [................................................] 100%
Error: Return value 8
Command tegrarcm_v2 --download bct_bootrom br_bct_BR.bct --download bct_mb1 mb1_bct_MB1_sigheader.bct.encrypt --download bct_mem mem_rcm_sigheader.bct.encrypt
Failed flashing t186ref.
Shoadi commented 1 year ago

....it was an issue of my board. After making sure that it is correctly set into recovery-mode it worked.