Folks are trying to flash SPE to NX

steps to reproduce:

Switch NX in recovery mode
Connect to host PC USB cable
Check if NX is in system by lsusb
Flash SPE firmware:
sudo ./flash.sh -k spe-fw jetson-xavier mmcblk0p1

Steps used to build firmware

build firmware
1. Install arm toolchain
sudo apt-get install gcc-arm-none-eabi
2. unpack l4t_rt_aux_cpu_src.tbz2 (https://developer.nvidia.com/jetson-sensor-processing-engine-spe-software-sources-3242)
3. set enviroment variables (dont forget change path to your!) and change directory to "cd rt-aux-cpu-demo"
  export TOP=/home/imp/workspace/l4t-rt
  export CROSS_COMPILE=/usr/bin/arm-none-eabi-
  export OUTDIR=${TOP}/out
  export FREERTOS_DIR=${TOP}/FreeRTOSV8.1.2/FreeRTOS/Source
  export FREERTOS_COMMON_DIR=${TOP}/freertos-common
4. make firmware
  make TARGET=t19x
5. In out folder you can see spe.bin
6. Copy it to:
  Linux_for_Tegra/bootloader/spe_t194.bin
7. Flash it (after switch NX to REC mode):
  sudo ./flash.sh -k spe-fw jetson-xavier mmcblk0p1

any insights?

There are the same error when tried to flash my firmware or original from Linux_for_Tegra/bootloader:

*** Updating [spe-fw] with spe_t194.bin ***
./tegraflash.py --bl nvtboot_recovery_cpu_t194.bin --chip 0x19 --applet mb1_t194_prod.bin --sdram_config tegra194-mb1-bct-memcfg-p2888.cfg,tegra194-memcfg-sw-override.cfg --uphy_config tegra194-mb1-uphy-lane-p2888-0000-p2822-0000.cfg --device_config tegra19x-mb1-bct-device-sdmmc.cfg --misc_cold_boot_config tegra194-mb1-bct-misc-l4t.cfg --misc_config tegra194-mb1-bct-misc-flash.cfg --pinmux_config tegra19x-mb1-pinmux-p2888-0000-a04-p2822-0000-b01.cfg --gpioint_config tegra194-mb1-bct-gpioint-p2888-0000-p2822-0000.cfg --pmic_config tegra194-mb1-bct-pmic-p2888-0001-a01-p2822-0000.cfg --pmc_config tegra19x-mb1-padvoltage-p2888-0000-a00-p2822-0000-a00.cfg --prod_config tegra19x-mb1-prod-p2888-0000-p2822-0000.cfg --scr_config tegra194-mb1-bct-scr-cbb-mini.cfg --scr_cold_boot_config tegra194-mb1-bct-scr-cbb-mini.cfg --br_cmd_config tegra194-mb1-bct-reset-p2888-0000-p2822-0000.cfg --dev_params tegra194-br-bct-sdmmc.cfg --soft_fuses tegra194-mb1-soft-fuses-l4t.cfg --cfg flash.xml --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_t194.bin; bpmp_fw_dtb tegra194-a02-bpmp-p2888-a01.dtb; spe_fw spe_t194.bin; tlk tos-trusty_t194.img; eks eks.img; bootloader_dtb tegra194-p2888-0001-p2822-0000.dtb” --odmdata 0x9190000 --cmd “signwrite spe-fw spe_t194.bin; reboot”
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.0249 ] tegrasign_v2 --key None --getmode mode.txt
[ 0.0267 ] Assuming zero filled SBK key
[ 0.0269 ]
[ 0.0271 ] header_magic: d72c00ea
[ 0.0288 ] tegrahost_v2 --chip 0x19 --align 1_spe_t194.bin
[ 0.0310 ]
[ 0.0327 ] tegrahost_v2 --chip 0x19 0 --magicid --appendsigheader 1_spe_t194.bin zerosbk
[ 0.0344 ] adding BCH for 1_spe_t194.bin
[ 0.0408 ]
[ 0.0434 ] tegrasign_v2 --key None --list 1_spe_t194_sigheader.bin_list.xml --pubkeyhash pub_key.key
[ 0.0454 ] Assuming zero filled SBK key
[ 0.0465 ]
[ 0.0492 ] tegrahost_v2 --chip 0x19 0 --updatesigheader 1_spe_t194_sigheader.bin.encrypt 1_spe_t194_sigheader.bin.hash zerosbk
[ 0.0560 ]
[ 0.0563 ] Generating RCM messages
[ 0.0587 ] tegrahost_v2 --chip 0x19 0 --magicid MB1B --appendsigheader mb1_t194_prod.bin zerosbk
[ 0.0616 ] Header already present for mb1_t194_prod.bin
[ 0.0697 ]
[ 0.0718 ] tegrasign_v2 --key None --getmode mode.txt
[ 0.0735 ] Assuming zero filled SBK key
[ 0.0740 ]
[ 0.0754 ] tegrasign_v2 --key None --file mb1_t194_prod_sigheader.bin --offset 2960 --length 1136 --pubkeyhash pub_key.key
[ 0.0766 ] Assuming zero filled SBK key
[ 0.0778 ]
[ 0.0796 ] tegrahost_v2 --chip 0x19 0 --updatesigheader mb1_t194_prod_sigheader.bin mb1_t194_prod_sigheader.hash zerosbk
[ 0.0880 ]
[ 0.0896 ] tegrabct_v2 --chip 0x19 0 --sfuse tegra194-mb1-soft-fuses-l4t.cfg sfuse.bin
[ 0.0917 ]
[ 0.0932 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x19 0 --sfuses sfuse.bin --download rcm mb1_t194_prod_sigheader.bin 0 0
[ 0.0944 ] RCM 0 is saved as rcm_0.rcm
[ 0.1014 ] RCM 1 is saved as rcm_1.rcm
[ 0.1014 ] RCM 2 is saved as rcm_2.rcm
[ 0.1014 ] List of rcm files are saved in rcm_list.xml
[ 0.1015 ]
[ 0.1015 ] Signing RCM messages
[ 0.1032 ] tegrasign_v2 --key None --list rcm_list.xml --pubkeyhash pub_key.key --getmontgomeryvalues montgomery.bin
[ 0.1045 ] Assuming zero filled SBK key
[ 0.1058 ]
[ 0.1058 ] Copying signature to RCM mesages
[ 0.1074 ] tegrarcm_v2 --chip 0x19 0 --updatesig rcm_list_signed.xml
[ 0.1099 ]
[ 0.1101 ] Boot Rom communication
[ 0.1116 ] tegrarcm_v2 --chip 0x19 0 --rcm rcm_list_signed.xml
[ 0.1130 ] BR_CID: 0x88021911647007c40c00000016018140
[ 0.1149 ] RCM version 0X190001
[ 0.1154 ] Boot Rom communication completed
[ 1.1324 ]
[ 2.1375 ] tegrarcm_v2 --isapplet
[ 2.1411 ] Applet version 01.00.0000
[ 2.1463 ]
[ 2.1533 ] tegrasign_v2 --key None --getmode mode.txt
[ 2.1554 ] Assuming zero filled SBK key
[ 2.1558 ]
[ 2.1559 ] Parsing partition layout
[ 2.1584 ] tegraparser_v2 --pt flash.xml.tmp
[ 2.1619 ]
[ 2.1620 ] Creating list of images to be signed
[ 2.1636 ] tegrahost_v2 --chip 0x19 0 --partitionlayout flash.xml.bin --list images_list.xml zerosbk
[ 2.1653 ] MB1: Nvheader already present is mb1_t194_prod.bin
[ 2.1673 ] Header already present for mb1_t194_prod_sigheader.bin
[ 2.1697 ] MB1: Nvheader already present is mb1_t194_prod.bin
[ 2.1768 ] Header already present for mb1_t194_prod_sigheader.bin
[ 2.1780 ] adding BCH for spe_t194.bin
[ 2.1839 ] adding BCH for spe_t194.bin
[ 2.1882 ] adding BCH for nvtboot_t194.bin
[ 2.1928 ] adding BCH for nvtboot_t194.bin
[ 2.2016 ] Header already present for preboot_c10_prod_cr.bin
[ 2.2093 ] Header already present for preboot_c10_prod_cr.bin
[ 2.2101 ] Header already present for mce_c10_prod_cr.bin
[ 2.2108 ] Header already present for mce_c10_prod_cr.bin
[ 2.2142 ] adding BCH for mts_c10_prod_cr.bin
[ 2.2215 ] adding BCH for mts_c10_prod_cr.bin
[ 2.3767 ] adding BCH for cboot_t194.bin
[ 2.5277 ] adding BCH for cboot_t194.bin
[ 2.5473 ] adding BCH for tegra194-p2888-0001-p2822-0000.dtb
[ 2.5698 ] adding BCH for tegra194-p2888-0001-p2822-0000.dtb
[ 2.5803 ] adding BCH for tos-trusty_t194.img
[ 2.5930 ] adding BCH for tos-trusty_t194.img
[ 2.6096 ] adding BCH for eks.img
[ 2.6264 ] adding BCH for eks.img
[ 2.6268 ] adding BCH for bpmp_t194.bin
[ 2.6280 ] adding BCH for bpmp_t194.bin
[ 2.6677 ] adding BCH for tegra194-a02-bpmp-p2888-a01.dtb
[ 2.7073 ] adding BCH for tegra194-a02-bpmp-p2888-a01.dtb
[ 2.7410 ] adding BCH for camera-rtcpu-rce.img
[ 2.7765 ] adding BCH for camera-rtcpu-rce.img
[ 2.7884 ] adding BCH for adsp-fw.bin
[ 2.8018 ] adding BCH for adsp-fw.bin
[ 2.8068 ] Header already present for warmboot_t194_prod.bin
[ 2.8122 ] Header already present for warmboot_t194_prod.bin
[ 2.8138 ] adding BCH for boot.img
[ 2.8637 ] adding BCH for boot.img
[ 4.6785 ] adding BCH for tegra194-p2888-0001-p2822-0000.dtb
[ 6.6404 ] adding BCH for tegra194-p2888-0001-p2822-0000.dtb
[ 6.6744 ]
[ 6.6745 ] Filling MB1 storage info
[ 6.6745 ] Generating br-bct
[ 6.6760 ] Performing cfg overlay
[ 6.6761 ] [‘tegra194-mb1-bct-memcfg-p2888.cfg’, ‘tegra194-memcfg-sw-override.cfg’]
[ 6.6777 ] sw_memcfg_overlay.pl -c tegra194-mb1-bct-memcfg-p2888.cfg -s tegra194-memcfg-sw-override.cfg -o /home/imp/workspace/Linux_for_Tegra/bootloader/15300/tmpzJ0vnj1.cfg
[ 6.7569 ]
[ 6.7571 ] Updating dev and MSS params in BR BCT
[ 6.7572 ] tegrabct_v2 --dev_param tegra194-br-bct-sdmmc.cfg --sdram /home/imp/workspace/Linux_for_Tegra/bootloader/15300/tmpzJ0vnj1.cfg --brbct br_bct.cfg --sfuse tegra194-mb1-soft-fuses-l4t.cfg --chip 0x19 0
[ 6.8411 ]
[ 6.8412 ] Updating bl info
[ 6.8438 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --updateblinfo flash.xml.bin
[ 6.8474 ]
[ 6.8476 ] Generating signatures
[ 6.8500 ] tegrasign_v2 --key None --list images_list.xml --pubkeyhash pub_key.key
[ 6.8516 ] Assuming zero filled SBK key
[ 7.3875 ]
[ 7.3877 ] Send BCT from Host
[ 7.3877 ] Generating br-bct
[ 7.3916 ] Performing cfg overlay
[ 7.3917 ] [’/home/imp/workspace/Linux_for_Tegra/bootloader/15300/tmpzJ0vnj1.cfg’]
[ 7.3918 ] Updating dev and MSS params in BR BCT
[ 7.3923 ] tegrabct_v2 --dev_param tegra194-br-bct-sdmmc.cfg --sdram /home/imp/workspace/Linux_for_Tegra/bootloader/15300/tmpzJ0vnj1.cfg --brbct br_bct.cfg --sfuse tegra194-mb1-soft-fuses-l4t.cfg --chip 0x19 0
[ 7.4761 ]
[ 7.4762 ] Updating bl info
[ 7.4776 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --updateblinfo flash.xml.bin --updatesig images_list_signed.xml
[ 7.4844 ]
[ 7.4845 ] Updating smd info
[ 7.4863 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 --updatesmdinfo flash.xml.bin
[ 7.4892 ]
[ 7.4893 ] Updating Odmdata
[ 7.4912 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --updatefields Odmdata =0x9190000
[ 7.4938 ]
[ 7.4939 ] Get Signed section of bct
[ 7.4963 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --listbct bct_list.xml
[ 7.4988 ]
[ 7.5002 ] tegrasign_v2 --key None --list bct_list.xml --pubkeyhash pub_key.key --getmontgomeryvalues montgomery.bin
[ 7.5017 ] Assuming zero filled SBK key
[ 7.5024 ]
[ 7.5024 ] Updating BCT with signature
[ 7.5044 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --updatesig bct_list_signed.xml
[ 7.5069 ]
[ 7.5070 ] Generating coldboot mb1-bct
[ 7.5096 ] tegrabct_v2 --chip 0x19 0 --mb1bct mb1_cold_boot_bct.cfg --sdram /home/imp/workspace/Linux_for_Tegra/bootloader/15300/tmpzJ0vnj1.cfg --misc tegra194-mb1-bct-misc-l4t.cfg --scr tegra194-mb1-bct-scr-cbb-mini.cfg --pinmux tegra19x-mb1-pinmux-p2888-0000-a04-p2822-0000-b01.cfg --pmc tegra19x-mb1-padvoltage-p2888-0000-a00-p2822-0000-a00.cfg --pmic tegra194-mb1-bct-pmic-p2888-0001-a01-p2822-0000.cfg --brcommand tegra194-mb1-bct-reset-p2888-0000-p2822-0000.cfg --prod tegra19x-mb1-prod-p2888-0000-p2822-0000.cfg --gpioint tegra194-mb1-bct-gpioint-p2888-0000-p2822-0000.cfg --uphy tegra194-mb1-uphy-lane-p2888-0000-p2822-0000.cfg --device tegra19x-mb1-bct-device-sdmmc.cfg
[ 7.5116 ] MB1-BCT version: 0x1

[ 7.5122 ] Parsing config file :tegra19x-mb1-pinmux-p2888-0000-a04-p2822-0000-b01.cfg
[ 7.5142 ] Added Platform Config 0 data with size :- 3008

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

[ 7.5441 ] Parsing config file :tegra19x-mb1-padvoltage-p2888-0000-a00-p2822-0000-a00.cfg
[ 7.5452 ] Added Platform Config 2 data with size :- 24

[ 7.5459 ] Parsing config file :tegra194-mb1-bct-pmic-p2888-0001-a01-p2822-0000.cfg
[ 7.5470 ] File read failed
[ 7.5473 ] File read failed
[ 7.5475 ] Added Platform Config 4 data with size :- 380
[ 7.5482 ]
[ 7.5482 ] Parsing config file :tegra194-mb1-bct-reset-p2888-0000-p2822-0000.cfg
[ 7.5482 ] Added Platform Config 3 data with size :- 92
[ 7.5482 ]
[ 7.5483 ] Parsing config file :tegra19x-mb1-prod-p2888-0000-p2822-0000.cfg
[ 7.5483 ] Added Platform Config 5 data with size :- 56
[ 7.5483 ]
[ 7.5483 ] Parsing config file :tegra194-mb1-bct-gpioint-p2888-0000-p2822-0000.cfg
[ 7.5483 ] Added Platform Config 7 data with size :- 392
[ 7.5483 ]
[ 7.5484 ] Parsing config file :tegra194-mb1-uphy-lane-p2888-0000-p2822-0000.cfg
[ 7.5484 ] Added Platform Config 8 data with size :- 12
[ 7.5484 ]
[ 7.5484 ] Parsing config file :tegra19x-mb1-bct-device-sdmmc.cfg
[ 7.5484 ] Added Platform Config 9 data with size :- 32
[ 7.5484 ]
[ 7.5485 ] Updating mb1-bct with firmware information
[ 7.5500 ] tegrabct_v2 --chip 0x19 --mb1bct mb1_cold_boot_bct_MB1.bct --updatefwinfo flash.xml.bin
[ 7.5513 ] MB1-BCT version: 0x1
[ 7.5520 ]
[ 7.5520 ] Updating mb1-bct with storage information
[ 7.5541 ] tegrabct_v2 --chip 0x19 --mb1bct mb1_cold_boot_bct_MB1.bct --updatestorageinfo flash.xml.bin
[ 7.5558 ] MB1-BCT version: 0x1
[ 7.5565 ]
[ 7.5579 ] tegrahost_v2 --chip 0x19 --align mb1_cold_boot_bct_MB1.bct
[ 7.5592 ]
[ 7.5605 ] tegrahost_v2 --chip 0x19 0 --magicid MBCT --appendsigheader mb1_cold_boot_bct_MB1.bct zerosbk
[ 7.5617 ] adding BCH for mb1_cold_boot_bct_MB1.bct
[ 7.5634 ]
[ 7.5656 ] tegrasign_v2 --key None --list mb1_cold_boot_bct_MB1_sigheader.bct_list.xml --pubkeyhash pub_key.key
[ 7.5674 ] Assuming zero filled SBK key
[ 7.5680 ]
[ 7.5707 ] tegrahost_v2 --chip 0x19 0 --updatesigheader mb1_cold_boot_bct_MB1_sigheader.bct.encrypt mb1_cold_boot_bct_MB1_sigheader.bct.hash zerosbk
[ 7.5744 ]
[ 7.5746 ] Generating recovery mb1-bct
[ 7.5767 ] tegrabct_v2 --chip 0x19 0 --mb1bct mb1_bct.cfg --sdram /home/imp/workspace/Linux_for_Tegra/bootloader/15300/tmpzJ0vnj1.cfg --misc tegra194-mb1-bct-misc-flash.cfg --scr tegra194-mb1-bct-scr-cbb-mini.cfg --pinmux tegra19x-mb1-pinmux-p2888-0000-a04-p2822-0000-b01.cfg --pmc tegra19x-mb1-padvoltage-p2888-0000-a00-p2822-0000-a00.cfg --pmic tegra194-mb1-bct-pmic-p2888-0001-a01-p2822-0000.cfg --brcommand tegra194-mb1-bct-reset-p2888-0000-p2822-0000.cfg --prod tegra19x-mb1-prod-p2888-0000-p2822-0000.cfg --gpioint tegra194-mb1-bct-gpioint-p2888-0000-p2822-0000.cfg --uphy tegra194-mb1-uphy-lane-p2888-0000-p2822-0000.cfg --device tegra19x-mb1-bct-device-sdmmc.cfg
[ 7.5785 ] MB1-BCT version: 0x1

[ 7.5792 ] Parsing config file :tegra19x-mb1-pinmux-p2888-0000-a04-p2822-0000-b01.cfg
[ 7.5809 ] Added Platform Config 0 data with size :- 3008

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

[ 7.6106 ] Parsing config file :tegra19x-mb1-padvoltage-p2888-0000-a00-p2822-0000-a00.cfg
[ 7.6122 ] Added Platform Config 2 data with size :- 24
[ 7.6132 ]
[ 7.6132 ] Parsing config file :tegra194-mb1-bct-pmic-p2888-0001-a01-p2822-0000.cfg
[ 7.6133 ] File read failed
[ 7.6133 ] File read failed
[ 7.6133 ] Added Platform Config 4 data with size :- 380
[ 7.6133 ]
[ 7.6134 ] Parsing config file :tegra194-mb1-bct-reset-p2888-0000-p2822-0000.cfg
[ 7.6134 ] Added Platform Config 3 data with size :- 92
[ 7.6134 ]
[ 7.6134 ] Parsing config file :tegra19x-mb1-prod-p2888-0000-p2822-0000.cfg
[ 7.6135 ] Added Platform Config 5 data with size :- 56
[ 7.6135 ]
[ 7.6135 ] Parsing config file :tegra194-mb1-bct-gpioint-p2888-0000-p2822-0000.cfg
[ 7.6135 ] Added Platform Config 7 data with size :- 392
[ 7.6136 ]
[ 7.6136 ] Parsing config file :tegra194-mb1-uphy-lane-p2888-0000-p2822-0000.cfg
[ 7.6136 ] Added Platform Config 8 data with size :- 12
[ 7.6136 ]
[ 7.6136 ] Parsing config file :tegra19x-mb1-bct-device-sdmmc.cfg
[ 7.6136 ] Added Platform Config 9 data with size :- 32
[ 7.6136 ]
[ 7.6137 ] Updating mb1-bct with firmware information
[ 7.6150 ] tegrabct_v2 --chip 0x19 --mb1bct mb1_bct_MB1.bct --updatefwinfo flash.xml.bin
[ 7.6163 ] MB1-BCT version: 0x1
[ 7.6168 ]
[ 7.6169 ] Updating mb1-bct with storage information
[ 7.6183 ] tegrabct_v2 --chip 0x19 --mb1bct mb1_bct_MB1.bct --updatestorageinfo flash.xml.bin
[ 7.6198 ] MB1-BCT version: 0x1
[ 7.6204 ]
[ 7.6218 ] tegrahost_v2 --chip 0x19 --align mb1_bct_MB1.bct
[ 7.6232 ]
[ 7.6246 ] tegrahost_v2 --chip 0x19 0 --magicid MBCT --appendsigheader mb1_bct_MB1.bct zerosbk
[ 7.6259 ] adding BCH for mb1_bct_MB1.bct
[ 7.6276 ]
[ 7.6297 ] tegrasign_v2 --key None --list mb1_bct_MB1_sigheader.bct_list.xml --pubkeyhash pub_key.key
[ 7.6317 ] Assuming zero filled SBK key
[ 7.6325 ]
[ 7.6359 ] tegrahost_v2 --chip 0x19 0 --updatesigheader mb1_bct_MB1_sigheader.bct.encrypt mb1_bct_MB1_sigheader.bct.hash zerosbk
[ 7.6391 ]
[ 7.6393 ] Generating coldboot mem-bct
[ 7.6409 ] tegrabct_v2 --chip 0x19 0 --sdram /home/imp/workspace/Linux_for_Tegra/bootloader/15300/tmpzJ0vnj1.cfg --membct /home/imp/workspace/Linux_for_Tegra/bootloader/15300/tmpzJ0vnj1_1.bct /home/imp/workspace/Linux_for_Tegra/bootloader/15300/tmpzJ0vnj1_2.bct /home/imp/workspace/Linux_for_Tegra/bootloader/15300/tmpzJ0vnj1_3.bct /home/imp/workspace/Linux_for_Tegra/bootloader/15300/tmpzJ0vnj1_4.bct
[ 7.6426 ] Packing sdram param for instance[0]
[ 7.7279 ] Packing sdram param for instance[1]
[ 7.7285 ] Packing sdram param for instance[2]
[ 7.7291 ] Packing sdram param for instance[3]
[ 7.7291 ] Packing sdram param for instance[4]
[ 7.7291 ] Packing sdram param for instance[5]
[ 7.7291 ] Packing sdram param for instance[6]
[ 7.7292 ] Packing sdram param for instance[7]
[ 7.7292 ] Packing sdram param for instance[8]
[ 7.7292 ] Packing sdram param for instance[9]
[ 7.7292 ] Packing sdram param for instance[10]
[ 7.7292 ] Packing sdram param for instance[11]
[ 7.7293 ] Packing sdram param for instance[12]
[ 7.7293 ] Packing sdram param for instance[13]
[ 7.7293 ] Packing sdram param for instance[14]
[ 7.7293 ] Packing sdram param for instance[15]
[ 7.7293 ]
[ 7.7294 ] Getting sector size from pt
[ 7.7309 ] tegraparser_v2 --getsectorsize flash.xml.bin sector_info.bin
[ 7.7323 ]
[ 7.7325 ] BlockSize read from layout is 200

[ 7.7339 ] tegrahost_v2 --chip 0x19 0 --blocksize 512 --magicid MEMB --addsigheader_multi /home/imp/workspace/Linux_for_Tegra/bootloader/15300/tmpzJ0vnj1_1.bct /home/imp/workspace/Linux_for_Tegra/bootloader/15300/tmpzJ0vnj1_2.bct /home/imp/workspace/Linux_for_Tegra/bootloader/15300/tmpzJ0vnj1_3.bct /home/imp/workspace/Linux_for_Tegra/bootloader/15300/tmpzJ0vnj1_4.bct
[ 7.7353 ] adding BCH for /home/imp/workspace/Linux_for_Tegra/bootloader/15300/tmpzJ0vnj1_1.bct
[ 7.7413 ]
[ 7.7434 ] tegrahost_v2 --chip 0x19 --align mem_coldboot.bct
[ 7.7454 ]
[ 7.7473 ] tegrahost_v2 --chip 0x19 0 --magicid MEMB --appendsigheader mem_coldboot.bct zerosbk
[ 7.7487 ] Header already present for mem_coldboot.bct
[ 7.7495 ]
[ 7.7522 ] tegrasign_v2 --key None --list mem_coldboot_sigheader.bct_list.xml --pubkeyhash pub_key.key
[ 7.7541 ] Assuming zero filled SBK key
[ 7.7553 ]
[ 7.7582 ] tegrahost_v2 --chip 0x19 0 --updatesigheader mem_coldboot_sigheader.bct.encrypt mem_coldboot_sigheader.bct.hash zerosbk
[ 7.7615 ]
[ 7.7617 ] Generating recovery mem-bct
[ 7.7634 ] tegrabct_v2 --chip 0x19 0 --sdram /home/imp/workspace/Linux_for_Tegra/bootloader/15300/tmpzJ0vnj1.cfg --membct /home/imp/workspace/Linux_for_Tegra/bootloader/15300/tmpzJ0vnj1_1.bct /home/imp/workspace/Linux_for_Tegra/bootloader/15300/tmpzJ0vnj1_2.bct /home/imp/workspace/Linux_for_Tegra/bootloader/15300/tmpzJ0vnj1_3.bct /home/imp/workspace/Linux_for_Tegra/bootloader/15300/tmpzJ0vnj1_4.bct
[ 7.7653 ] Packing sdram param for instance[0]
[ 7.8508 ] Packing sdram param for instance[1]
[ 7.8517 ] Packing sdram param for instance[2]
[ 7.8517 ] Packing sdram param for instance[3]
[ 7.8517 ] Packing sdram param for instance[4]
[ 7.8518 ] Packing sdram param for instance[5]
[ 7.8518 ] Packing sdram param for instance[6]
[ 7.8518 ] Packing sdram param for instance[7]
[ 7.8518 ] Packing sdram param for instance[8]
[ 7.8519 ] Packing sdram param for instance[9]
[ 7.8519 ] Packing sdram param for instance[10]
[ 7.8519 ] Packing sdram param for instance[11]
[ 7.8519 ] Packing sdram param for instance[12]
[ 7.8520 ] Packing sdram param for instance[13]
[ 7.8520 ] Packing sdram param for instance[14]
[ 7.8520 ] Packing sdram param for instance[15]
[ 7.8521 ]
[ 7.8541 ] tegrahost_v2 --chip 0x19 --align mem_rcm.bct
[ 7.8556 ]
[ 7.8571 ] tegrahost_v2 --chip 0x19 0 --magicid MEMB --appendsigheader mem_rcm.bct zerosbk
[ 7.8585 ] adding BCH for mem_rcm.bct
[ 7.8610 ]
[ 7.8636 ] tegrasign_v2 --key None --list mem_rcm_sigheader.bct_list.xml --pubkeyhash pub_key.key
[ 7.8653 ] Assuming zero filled SBK key
[ 7.8661 ]
[ 7.8695 ] tegrahost_v2 --chip 0x19 0 --updatesigheader mem_rcm_sigheader.bct.encrypt mem_rcm_sigheader.bct.hash zerosbk
[ 7.8727 ]
[ 7.8729 ] Sending BCTs
[ 7.8746 ] 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
[ 7.8762 ] Applet version 01.00.0000
[ 7.8817 ] Sending bct_bootrom
[ 7.8823 ] […] 100%
[ 7.8857 ] Sending bct_mb1
[ 7.8904 ] […] 100%
[ 7.8980 ] Sending bct_mem
[ 7.9564 ] […] 100%
[ 8.0835 ]
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 to flash/read t186ref.

Host PC is laptop, USB 2.0 and different ports\cable are used

Hello, Andrey:
any problem you met?
if you are using NX, please flash with NX parameters, but the command you paste:
sudo ./flash.sh -k spe-fw jetson-xavier mmcblk0p1
is for Xavier.

br
Chenjian

hi @jachen
could you extend which exactly are the NX parameters, please?

Hello, imp.savrik:
A wrong SPE firmware may result in flash failure. Refer to “doc/faq.md” for details.
You can start from a spe FW without any change.

br
Chenjian

Hello, Andrey:
Please refer to https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide%2Fquick_start.html
search ‘Jetson Modules and Configurations with Respective Jetson Developer Kit Carrier Board’

br
ChenJian

AFAIK, doc/faq.md only seem to address AGX firmware flashing, also TX2
could you point out what should be anticipated results of the search request, please?
It seem to return 0 results.
Could you share exact steps how to prepare and flash spe firmware to Nx, please?

jetson-xavier-nx-devkit?
but the firmware itself ? the same that is from AGX instructions? different? if different - then from which instructions?
I anticipate that spe firmware flash will fail unless cutomized for NX

Hello, Andrey:
Current SPE firmware source package does not support NX yet.
Since NX has different carrier board with AGX. Though most parts of SPE firmware in NX comply with AGX, some modules may not work.
Official NX SPE support may be in later release.

As to faq.md, it describes the possible reason for flash failure with customized SPE firmware. Please check it.

br
Chenjian

Thank you for the update!

from developers: “flashing to jetson-xavier-nx-devkit seems worked”

[  24.7661 ] Writing partition
[  24.7682 ] tegradevflash_v2 --write spe-fw 1_spe_t194_sigheader.bin.encrypt
[  24.7731 ] Bootloader version 01.00.0000
[  24.7782 ] Writing partition spe-fw with 1_spe_t194_sigheader.bin.encrypt
[  24.7793 ] [................................................] 100%
[  25.4420 ]
[  25.4422 ] Coldbooting the device
[  25.4444 ] tegrarcm_v2 --ismb2
[  25.4514 ]
[  25.4551 ] tegradevflash_v2 --reboot coldboot
[  25.4575 ] Bootloader version 01.00.0000
[  25.4646 ]
*** The [spe-fw] has been updated successfully. ***

They flashed the AGX stock[default] firmware, as it seems to me;
Are there any ways to find out if the firmware has been applied and works correctly?

Is the firmware originally somewhere in “/lib/firmware/”? If you know the name of the file, then load might be mentioned by file name in dmesg.

1 Like

SPE firmware is located in partition spe-fw, not in root-FS. Also, it’s loaded by MB1, not kernel.
You can add some print message in the firmware, and check output from UART.

br
ChenJian