Flashing Jetson Xavier NX

Hi,

I’m trying to flash a Jetson Xavier NX and keep getting this error:

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)

I’ll admit, I’m new to this, so I have no real idea where to go. Here are the full logs:

collins@collins-HP-Z2-Tower-G5-Workstation:~/Desktop/OS-Image/Linux_for_Tegra$ sudo ./flash.sh jetson-xavier-nx-devkit-emmc mmcblk0p1
###############################################################################
# L4T BSP Information:
# R32 , REVISION: 7.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(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-soft-fuses-l4t.cfg)... done.
./tegraflash.py --chip 0x19 --applet "/home/collins/Desktop/OS-Image/Linux_for_Tegra/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.0051 ] Generating RCM messages
[   0.0069 ] tegrahost_v2 --chip 0x19 0 --magicid MB1B --appendsigheader /home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/mb1_t194_prod.bin zerosbk
[   0.0072 ] Header already present for /home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/mb1_t194_prod.bin
[   0.0099 ] 
[   0.0118 ] tegrasign_v3.py --getmode mode.txt --key None
[   0.0118 ] Assuming zero filled SBK key
[   0.0133 ] tegrasign_v3.py --file /home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.bin --key None --length 1136 --offset 2960 --pubkeyhash pub_key.key
[   0.0134 ] Assuming zero filled SBK key
[   0.0163 ] tegrahost_v2 --chip 0x19 0 --updatesigheader /home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.bin /home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.hash zerosbk
[   0.0187 ] 
[   0.0203 ] tegrabct_v2 --chip 0x19 0 --sfuse tegra194-mb1-soft-fuses-l4t.cfg.pdf sfuse.bin
[   0.0206 ] 
[   0.0220 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x19 0 --sfuses sfuse.bin --download rcm /home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.bin 0 0
[   0.0222 ] RCM 0 is saved as rcm_0.rcm
[   0.0246 ] RCM 1 is saved as rcm_1.rcm
[   0.0248 ] RCM 2 is saved as rcm_2.rcm
[   0.0248 ] List of rcm files are saved in rcm_list.xml
[   0.0248 ] 
[   0.0248 ] Signing RCM messages
[   0.0265 ] tegrasign_v3.py --getmontgomeryvalues montgomery.bin --key None --list rcm_list.xml --pubkeyhash pub_key.key
[   0.0265 ] Assuming zero filled SBK key
[   0.0300 ] Copying signature to RCM mesages
[   0.0314 ] tegrarcm_v2 --chip 0x19 0 --updatesig rcm_list_signed.xml
[   0.0323 ] 
[   0.0323 ] Boot Rom communication
[   0.0339 ] tegrarcm_v2 --chip 0x19 0 --rcm rcm_list_signed.xml --skipuid
[   0.0342 ] RCM version 0X190001
[   0.0351 ] Boot Rom communication completed
[   1.0503 ] 
[   2.0532 ] tegrarcm_v2 --isapplet
[   2.0536 ] Applet version 01.00.0000
[   2.0555 ] 
[   2.0571 ] tegrarcm_v2 --ismb2
[   2.0591 ] 
[   2.0606 ] tegrahost_v2 --chip 0x19 --align nvtboot_applet_t194.bin
[   2.0609 ] 
[   2.0622 ] tegrahost_v2 --chip 0x19 0 --magicid PLDT --appendsigheader nvtboot_applet_t194.bin zerosbk
[   2.0625 ] adding BCH for nvtboot_applet_t194.bin
[   2.0690 ] 
[   2.0708 ] tegrasign_v3.py --key None --list nvtboot_applet_t194_sigheader.bin_list.xml --pubkeyhash pub_key.key
[   2.0708 ] Assuming zero filled SBK key
[   2.0734 ] tegrahost_v2 --chip 0x19 0 --updatesigheader nvtboot_applet_t194_sigheader.bin.encrypt nvtboot_applet_t194_sigheader.bin.hash zerosbk
[   2.0752 ] 
[   2.0767 ] tegrarcm_v2 --download mb2 nvtboot_applet_t194_sigheader.bin.encrypt
[   2.0770 ] Applet version 01.00.0000
[   2.0788 ] Sending mb2
[   2.0789 ] [................................................] 100%
[   2.0943 ] 
[   2.0958 ] tegrarcm_v2 --boot recovery
[   2.0960 ] Applet version 01.00.0000
[   2.1015 ] 
[   3.1045 ] tegrarcm_v2 --isapplet
[   3.1069 ] 
[   3.1086 ] tegrarcm_v2 --ismb2
[   3.1088 ] MB2 Applet version 01.00.0000
[   3.1109 ] 
[   3.1124 ] tegrarcm_v2 --ismb2
[   3.1126 ] MB2 Applet version 01.00.0000
[   3.1146 ] 
[   3.1161 ] Retrieving board information
[   3.1176 ] tegrarcm_v2 --oem platformdetails chip chip_info.bin
[   3.1178 ] MB2 Applet version 01.00.0000
[   3.1217 ] Saved platform info in chip_info.bin
[   3.1260 ] Chip minor revision: 2
[   3.1260 ] Bootrom revision: 0xf
[   3.1261 ] Ram code: 0x1
[   3.1261 ] Chip sku: 0xde
[   3.1262 ] Chip Sample: non es
[   3.1268 ] 
[   3.1269 ] Retrieving EEPROM data
[   3.1269 ] tegrarcm_v2 --oem platformdetails eeprom cvm /home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/cvm.bin
[   3.1272 ] MB2 Applet version 01.00.0000
[   3.1313 ] Saved platform info in /home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/cvm.bin
[   3.1658 ] 
[   3.1658 ] Rebooting to recovery mode
[   3.1673 ] tegrarcm_v2 --ismb2
[   3.1676 ] MB2 Applet version 01.00.0000
[   3.1696 ] 
[   3.1697 ] Rebooting to recovery mode
[   3.1710 ] tegrarcm_v2 --reboot recovery
[   3.1712 ] MB2 Applet version 01.00.0000
[   3.1802 ] 
Board ID(3668) version(301) sku(0000) revision(A.0)
Copy /home/collins/Desktop/OS-Image/Linux_for_Tegra/kernel/dtb/tegra194-p3668-all-p3509-0000.dtb to /home/collins/Desktop/OS-Image/Linux_for_Tegra/kernel/dtb/tegra194-p3668-all-p3509-0000.dtb.rec
copying bctfile(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-memcfg-p3668-0001-a00.cfg)... done.
copying bctfile1(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-memcfg-sw-override.cfg)... done.
copying minratchet_config(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-ratchet-p3668.cfg)... done.
copying device_config(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-bct-device-qspi-p3668.cfg)... done.
copying misc_cold_boot_config(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-misc-l4t.cfg)... done.
copying misc_config(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-misc-flash.cfg)... done.
copying pinmux_config(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-pinmux-p3668-a01.cfg)... done.
copying gpioint_config(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-gpioint-p3668-0001-a00.cfg)... done.
copying pmic_config(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-pmic-p3668-0001-a00.cfg)... done.
copying pmc_config(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-padvoltage-p3668-a01.cfg)... done.
copying prod_config(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-prod-p3668-0001-a00.cfg)... done.
copying scr_config(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-scr-cbb-mini-p3668.cfg)... done.
copying scr_cold_boot_config(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-scr-cbb-mini-p3668.cfg)... done.
copying bootrom_config(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-reset-p3668-0001-a00.cfg)... done.
copying dev_params(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-br-bct-qspi.cfg)... done.
Existing bootloader(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/nvtboot_cpu_t194.bin) reused.
copying initrd(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/l4t_initrd.img)... done.
Making Boot image... done.
/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/tegraflash.py --chip 0x19 --key  --minratchet_config tegra194-mb1-bct-ratchet-p3668.cfg --cmd sign boot.img kernel
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.0003 ] Generating signature
[   0.0019 ] tegrasign_v3.py --getmode mode.txt --key 
[   0.0020 ] Assuming zero filled SBK key : not reading 
[   0.0021 ] Generating ratchet blob
[   0.0034 ] tegrabct_v2 --chip 0x19 0 --ratchet_blob ratchet_blob.bin --minratchet tegra194-mb1-bct-ratchet-p3668.cfg
[   0.0037 ] FwIndex: 1, MinRatchetLevel: 0
[   0.0038 ] FwIndex: 2, MinRatchetLevel: 0
[   0.0039 ] FwIndex: 3, MinRatchetLevel: 0
[   0.0039 ] FwIndex: 4, MinRatchetLevel: 0
[   0.0039 ] FwIndex: 5, MinRatchetLevel: 0
[   0.0039 ] FwIndex: 6, MinRatchetLevel: 0
[   0.0039 ] FwIndex: 7, MinRatchetLevel: 0
[   0.0039 ] FwIndex: 11, MinRatchetLevel: 0
[   0.0039 ] FwIndex: 12, MinRatchetLevel: 0
[   0.0039 ] FwIndex: 13, MinRatchetLevel: 0
[   0.0039 ] FwIndex: 14, MinRatchetLevel: 0
[   0.0039 ] FwIndex: 15, MinRatchetLevel: 0
[   0.0039 ] FwIndex: 16, MinRatchetLevel: 0
[   0.0039 ] FwIndex: 17, MinRatchetLevel: 0
[   0.0039 ] FwIndex: 18, MinRatchetLevel: 0
[   0.0039 ] FwIndex: 19, MinRatchetLevel: 0
[   0.0039 ] FwIndex: 30, MinRatchetLevel: 0
[   0.0039 ] FwIndex: 31, MinRatchetLevel: 0
[   0.0039 ] FwIndex: 32, MinRatchetLevel: 0
[   0.0039 ] 
[   0.0039 ] header_magic: 414e4452
[   0.0054 ] tegrahost_v2 --chip 0x19 --align 1_boot.img
[   0.0058 ] 
[   0.0072 ] tegrahost_v2 --chip 0x19 0 --magicid KRNL --ratchet_blob ratchet_blob.bin --appendsigheader 1_boot.img zerosbk
[   0.0074 ] adding BCH for 1_boot.img
[   0.6207 ] 
[   0.6228 ] tegrasign_v3.py --key  --list 1_boot_sigheader.img_list.xml --pubkeyhash pub_key.key
[   0.6229 ] Assuming zero filled SBK key : not reading 
[   0.6909 ] tegrahost_v2 --chip 0x19 0 --updatesigheader 1_boot_sigheader.img.encrypt 1_boot_sigheader.img.hash zerosbk
[   1.0664 ] 
[   1.0842 ] Signed file: /home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/temp_user_dir/boot_sigheader.img.encrypt
l4t_sign_image.sh: Generate header for boot_sigheader.img.encrypt
l4t_sign_image.sh: chip 0x19: add 0x27cb800 to offset  0x8 in sig file
l4t_sign_image.sh: Generate 16-byte-size-aligned base file for boot_sigheader.img.encrypt
l4t_sign_image.sh: the signed file is /home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/temp_user_dir/boot_sigheader.img.encrypt
done.
Making recovery ramdisk for recovery image...
Re-generating recovery ramdisk for recovery image...
/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/ramdisk_tmp /home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader /home/collins/Desktop/OS-Image/Linux_for_Tegra
30412 blocks
_BASE_KERNEL_VERSION=4.9.253-tegra
/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/ramdisk_tmp/lib /home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/ramdisk_tmp /home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader /home/collins/Desktop/OS-Image/Linux_for_Tegra
66034 blocks
Making Recovery image...
copying recdtbfile(/home/collins/Desktop/OS-Image/Linux_for_Tegra/kernel/dtb/tegra194-p3668-all-p3509-0000.dtb.rec)... done.
20+0 records in
20+0 records out
20 bytes copied, 0.000123933 s, 161 kB/s
Existing sosfile(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/mb1_t194_prod.bin) reused.
Existing tegraboot(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/nvtboot_t194.bin) reused.
Existing cpu_bootloader(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/nvtboot_cpu_t194.bin) reused.
Existing mb2blfile(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/nvtboot_recovery_t194.bin) reused.
Existing mtspreboot(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/preboot_c10_prod_cr.bin) reused.
Existing mcepreboot(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/mce_c10_prod_cr.bin) reused.
Existing mtsproper(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/mts_c10_prod_cr.bin) reused.
Existing mb1file(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/mb1_t194_prod.bin) reused.
Existing bpffile(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/bpmp_t194.bin) reused.
copying bpfdtbfile(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/t186ref/tegra194-a02-bpmp-p3668-a00.dtb)... done.
Existing scefile(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/camera-rtcpu-sce.img) reused.
Existing camerafw(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/camera-rtcpu-rce.img) reused.
Existing spefile(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/spe_t194.bin) reused.
Existing wb0boot(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/warmboot_t194_prod.bin) reused.
Existing tosfile(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/tos-trusty_t194.img) reused.
Existing eksfile(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/eks.img) reused.
copying soft_fuses(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-soft-fuses-l4t.cfg)... done.
copying dtbfile(/home/collins/Desktop/OS-Image/Linux_for_Tegra/kernel/dtb/tegra194-p3668-all-p3509-0000.dtb)... done.
Copying nv_boot_control.conf to rootfs
/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/tegraflash.py --chip 0x19 --key  --minratchet_config tegra194-mb1-bct-ratchet-p3668.cfg --cmd sign kernel_tegra194-p3668-all-p3509-0000.dtb kernel_dtb
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.0003 ] Generating signature
[   0.0020 ] tegrasign_v3.py --getmode mode.txt --key 
[   0.0020 ] Assuming zero filled SBK key : not reading 
[   0.0019 ] Generating ratchet blob
[   0.0032 ] tegrabct_v2 --chip 0x19 0 --ratchet_blob ratchet_blob.bin --minratchet tegra194-mb1-bct-ratchet-p3668.cfg
[   0.0034 ] FwIndex: 1, MinRatchetLevel: 0
[   0.0036 ] FwIndex: 2, MinRatchetLevel: 0
[   0.0036 ] FwIndex: 3, MinRatchetLevel: 0
[   0.0036 ] FwIndex: 4, MinRatchetLevel: 0
[   0.0036 ] FwIndex: 5, MinRatchetLevel: 0
[   0.0036 ] FwIndex: 6, MinRatchetLevel: 0
[   0.0036 ] FwIndex: 7, MinRatchetLevel: 0
[   0.0036 ] FwIndex: 11, MinRatchetLevel: 0
[   0.0036 ] FwIndex: 12, MinRatchetLevel: 0
[   0.0036 ] FwIndex: 13, MinRatchetLevel: 0
[   0.0036 ] FwIndex: 14, MinRatchetLevel: 0
[   0.0036 ] FwIndex: 15, MinRatchetLevel: 0
[   0.0036 ] FwIndex: 16, MinRatchetLevel: 0
[   0.0036 ] FwIndex: 17, MinRatchetLevel: 0
[   0.0036 ] FwIndex: 18, MinRatchetLevel: 0
[   0.0036 ] FwIndex: 19, MinRatchetLevel: 0
[   0.0036 ] FwIndex: 30, MinRatchetLevel: 0
[   0.0036 ] FwIndex: 31, MinRatchetLevel: 0
[   0.0036 ] FwIndex: 32, MinRatchetLevel: 0
[   0.0036 ] 
[   0.0036 ] header_magic: d00dfeed
[   0.0050 ] tegrahost_v2 --chip 0x19 --align 1_kernel_tegra194-p3668-all-p3509-0000.dtb
[   0.0053 ] 
[   0.0065 ] tegrahost_v2 --chip 0x19 0 --magicid KDTB --ratchet_blob ratchet_blob.bin --appendsigheader 1_kernel_tegra194-p3668-all-p3509-0000.dtb zerosbk
[   0.0067 ] adding BCH for 1_kernel_tegra194-p3668-all-p3509-0000.dtb
[   0.0099 ] 
[   0.0118 ] tegrasign_v3.py --key  --list 1_kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb_list.xml --pubkeyhash pub_key.key
[   0.0118 ] Assuming zero filled SBK key : not reading 
[   0.0147 ] tegrahost_v2 --chip 0x19 0 --updatesigheader 1_kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb.encrypt 1_kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb.hash zerosbk
[   0.0167 ] 
[   0.0169 ] Signed file: /home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/temp_user_dir/kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb.encrypt
l4t_sign_image.sh: Generate header for kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb.encrypt
l4t_sign_image.sh: chip 0x19: add 0x31f5f to offset  0x8 in sig file
l4t_sign_image.sh: Generate 16-byte-size-aligned base file for kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb.encrypt
l4t_sign_image.sh: the signed file is /home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/temp_user_dir/kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb.encrypt
done.
	populating kernel to rootfs... done.
	populating initrd to rootfs... done.
	populating kernel_tegra194-p3668-all-p3509-0000.dtb to rootfs... done.
Making system.img... 
	populating rootfs from /home/collins/Desktop/OS-Image/Linux_for_Tegra/rootfs ... 	populating /boot/extlinux/extlinux.conf ... done.
	generating sig file of Image ... /home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/tegraflash.py --chip 0x19 --key  --minratchet_config tegra194-mb1-bct-ratchet-p3668.cfg --cmd sign ./boot/Image kernel
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.0005 ] Generating signature
[   0.0021 ] tegrasign_v3.py --getmode mode.txt --key 
[   0.0021 ] Assuming zero filled SBK key : not reading 
[   0.0020 ] Generating ratchet blob
[   0.0033 ] tegrabct_v2 --chip 0x19 0 --ratchet_blob ratchet_blob.bin --minratchet tegra194-mb1-bct-ratchet-p3668.cfg
[   0.0035 ] FwIndex: 1, MinRatchetLevel: 0
[   0.0037 ] FwIndex: 2, MinRatchetLevel: 0
[   0.0037 ] FwIndex: 3, MinRatchetLevel: 0
[   0.0037 ] FwIndex: 4, MinRatchetLevel: 0
[   0.0037 ] FwIndex: 5, MinRatchetLevel: 0
[   0.0037 ] FwIndex: 6, MinRatchetLevel: 0
[   0.0037 ] FwIndex: 7, MinRatchetLevel: 0
[   0.0037 ] FwIndex: 11, MinRatchetLevel: 0
[   0.0037 ] FwIndex: 12, MinRatchetLevel: 0
[   0.0037 ] FwIndex: 13, MinRatchetLevel: 0
[   0.0037 ] FwIndex: 14, MinRatchetLevel: 0
[   0.0037 ] FwIndex: 15, MinRatchetLevel: 0
[   0.0037 ] FwIndex: 16, MinRatchetLevel: 0
[   0.0037 ] FwIndex: 17, MinRatchetLevel: 0
[   0.0037 ] FwIndex: 18, MinRatchetLevel: 0
[   0.0037 ] FwIndex: 19, MinRatchetLevel: 0
[   0.0037 ] FwIndex: 30, MinRatchetLevel: 0
[   0.0037 ] FwIndex: 31, MinRatchetLevel: 0
[   0.0037 ] FwIndex: 32, MinRatchetLevel: 0
[   0.0037 ] 
[   0.0044 ] header_magic: 405614
[   0.0059 ] tegrahost_v2 --chip 0x19 --align 1_Image
[   0.0064 ] 
[   0.0078 ] tegrahost_v2 --chip 0x19 0 --magicid KRNL --ratchet_blob ratchet_blob.bin --appendsigheader 1_Image zerosbk
[   0.0080 ] adding BCH for 1_Image
[   0.5888 ] 
[   0.5910 ] tegrasign_v3.py --key  --list 1_Image_sigheader_list.xml --pubkeyhash pub_key.key
[   0.5910 ] Assuming zero filled SBK key : not reading 
[   0.6559 ] tegrahost_v2 --chip 0x19 0 --updatesigheader 1_Image_sigheader.encrypt 1_Image_sigheader.hash zerosbk
[   0.9422 ] 
[   0.9585 ] Signed file: /home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/mnt/Image_sigheader.encrypt
l4t_sign_image.sh: Generate header for Image_sigheader.encrypt
l4t_sign_image.sh: chip 0x19: add 0x20e3008 to offset  0x8 in sig file
l4t_sign_image.sh: Generate 16-byte-size-aligned base file for Image_sigheader.encrypt
l4t_sign_image.sh: the sign header is saved at ./boot/Image.sig
done.
done.
	generating sig file of kernel_tegra194-p3668-all-p3509-0000.dtb ... /home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/tegraflash.py --chip 0x19 --key  --minratchet_config tegra194-mb1-bct-ratchet-p3668.cfg --cmd sign ./boot/dtb/kernel_tegra194-p3668-all-p3509-0000.dtb kernel_dtb
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.0006 ] Generating signature
[   0.0023 ] tegrasign_v3.py --getmode mode.txt --key 
[   0.0024 ] Assuming zero filled SBK key : not reading 
[   0.0022 ] Generating ratchet blob
[   0.0036 ] tegrabct_v2 --chip 0x19 0 --ratchet_blob ratchet_blob.bin --minratchet tegra194-mb1-bct-ratchet-p3668.cfg
[   0.0038 ] FwIndex: 1, MinRatchetLevel: 0
[   0.0040 ] FwIndex: 2, MinRatchetLevel: 0
[   0.0041 ] FwIndex: 3, MinRatchetLevel: 0
[   0.0041 ] FwIndex: 4, MinRatchetLevel: 0
[   0.0041 ] FwIndex: 5, MinRatchetLevel: 0
[   0.0041 ] FwIndex: 6, MinRatchetLevel: 0
[   0.0041 ] FwIndex: 7, MinRatchetLevel: 0
[   0.0041 ] FwIndex: 11, MinRatchetLevel: 0
[   0.0041 ] FwIndex: 12, MinRatchetLevel: 0
[   0.0041 ] FwIndex: 13, MinRatchetLevel: 0
[   0.0041 ] FwIndex: 14, MinRatchetLevel: 0
[   0.0041 ] FwIndex: 15, MinRatchetLevel: 0
[   0.0041 ] FwIndex: 16, MinRatchetLevel: 0
[   0.0041 ] FwIndex: 17, MinRatchetLevel: 0
[   0.0041 ] FwIndex: 18, MinRatchetLevel: 0
[   0.0041 ] FwIndex: 19, MinRatchetLevel: 0
[   0.0041 ] FwIndex: 30, MinRatchetLevel: 0
[   0.0041 ] FwIndex: 31, MinRatchetLevel: 0
[   0.0041 ] FwIndex: 32, MinRatchetLevel: 0
[   0.0041 ] 
[   0.0044 ] header_magic: d00dfeed
[   0.0058 ] tegrahost_v2 --chip 0x19 --align 1_kernel_tegra194-p3668-all-p3509-0000.dtb
[   0.0062 ] 
[   0.0075 ] tegrahost_v2 --chip 0x19 0 --magicid KDTB --ratchet_blob ratchet_blob.bin --appendsigheader 1_kernel_tegra194-p3668-all-p3509-0000.dtb zerosbk
[   0.0078 ] adding BCH for 1_kernel_tegra194-p3668-all-p3509-0000.dtb
[   0.0115 ] 
[   0.0135 ] tegrasign_v3.py --key  --list 1_kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb_list.xml --pubkeyhash pub_key.key
[   0.0135 ] Assuming zero filled SBK key : not reading 
[   0.0159 ] tegrahost_v2 --chip 0x19 0 --updatesigheader 1_kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb.encrypt 1_kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb.hash zerosbk
[   0.0182 ] 
[   0.0185 ] Signed file: /home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/mnt/kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb.encrypt
l4t_sign_image.sh: Generate header for kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb.encrypt
l4t_sign_image.sh: chip 0x19: add 0x31f5f to offset  0x8 in sig file
l4t_sign_image.sh: Generate 16-byte-size-aligned base file for kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb.encrypt
l4t_sign_image.sh: the sign header is saved at ./boot/dtb/kernel_tegra194-p3668-all-p3509-0000.dtb.sig
done.
done.
	generating sig file of initrd ... /home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/tegraflash.py --chip 0x19 --key  --cmd sign ./boot/initrd data
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.0003 ] Generating signature
[   0.0019 ] tegrasign_v3.py --getmode mode.txt --key 
[   0.0019 ] Assuming zero filled SBK key : not reading 
[   0.0021 ] header_magic: 1f8b0800
[   0.0035 ] tegrahost_v2 --chip 0x19 --align 1_initrd
[   0.0039 ] 
[   0.0052 ] tegrahost_v2 --chip 0x19 0 --magicid DATA --appendsigheader 1_initrd zerosbk
[   0.0053 ] adding BCH for 1_initrd
[   0.1298 ] 
[   0.1319 ] tegrasign_v3.py --key  --list 1_initrd_sigheader_list.xml --pubkeyhash pub_key.key
[   0.1319 ] Assuming zero filled SBK key : not reading 
[   0.1460 ] tegrahost_v2 --chip 0x19 0 --updatesigheader 1_initrd_sigheader.encrypt 1_initrd_sigheader.hash zerosbk
[   0.2030 ] 
[   0.2067 ] Signed file: /home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/mnt/initrd_sigheader.encrypt
l4t_sign_image.sh: Generate header for initrd_sigheader.encrypt
l4t_sign_image.sh: chip 0x19: add 0x6e72d6 to offset  0x8 in sig file
l4t_sign_image.sh: Generate 16-byte-size-aligned base file for initrd_sigheader.encrypt
l4t_sign_image.sh: the sign header is saved at ./boot/initrd.sig
done.
done.
	generating sig file of extlinux.conf ... /home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/tegraflash.py --chip 0x19 --key  --cmd sign ./boot/extlinux/extlinux.conf data
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.0003 ] Generating signature
[   0.0020 ] tegrasign_v3.py --getmode mode.txt --key 
[   0.0020 ] Assuming zero filled SBK key : not reading 
[   0.0019 ] header_magic: 54494d45
[   0.0033 ] tegrahost_v2 --chip 0x19 --align 1_extlinux.conf
[   0.0036 ] 
[   0.0048 ] tegrahost_v2 --chip 0x19 0 --magicid DATA --appendsigheader 1_extlinux.conf zerosbk
[   0.0051 ] adding BCH for 1_extlinux.conf
[   0.0053 ] 
[   0.0070 ] tegrasign_v3.py --key  --list 1_extlinux_sigheader.conf_list.xml --pubkeyhash pub_key.key
[   0.0070 ] Assuming zero filled SBK key : not reading 
[   0.0091 ] tegrahost_v2 --chip 0x19 0 --updatesigheader 1_extlinux_sigheader.conf.encrypt 1_extlinux_sigheader.conf.hash zerosbk
[   0.0094 ] 
[   0.0095 ] Signed file: /home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/mnt/extlinux_sigheader.conf.encrypt
l4t_sign_image.sh: Generate header for extlinux_sigheader.conf.encrypt
l4t_sign_image.sh: chip 0x19: add 0x350 to offset  0x8 in sig file
l4t_sign_image.sh: Generate 16-byte-size-aligned base file for extlinux_sigheader.conf.encrypt
l4t_sign_image.sh: the sign header is saved at ./boot/extlinux/extlinux.conf.sig
done.
done.
	Sync'ing system.img ... done.
	Converting RAW image to Sparse image... done.
system.img built successfully. 
Existing tbcfile(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/cboot_t194.bin) reused.
copying tbcdtbfile(/home/collins/Desktop/OS-Image/Linux_for_Tegra/kernel/dtb/tegra194-p3668-all-p3509-0000.dtb)... done.
copying cfgfile(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/t186ref/cfg/flash_l4t_t194_spi_emmc_p3668.xml) to flash.xml... done.
Existing flasher(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/nvtboot_recovery_cpu_t194.bin) reused.
Existing flashapp(/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/tegraflash.py) reused.
./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 --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.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_t194.bin; bpmp_fw_dtb tegra194-a02-bpmp-p3668-a00.dtb; spe_fw spe_t194.bin; tlk tos-trusty_t194.img; eks eks.img; bootloader_dtb tegra194-p3668-all-p3509-0000.dtb"   
saving flash command in /home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/flashcmd.txt
saving Windows flash command to /home/collins/Desktop/OS-Image/Linux_for_Tegra/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.0062 ] tegrasign_v3.py --getmode mode.txt --key None
[   0.0063 ] Assuming zero filled SBK key
[   0.0017 ] Generating RCM messages
[   0.0032 ] tegrahost_v2 --chip 0x19 0 --magicid MB1B --appendsigheader mb1_t194_prod.bin zerosbk
[   0.0033 ] Header already present for mb1_t194_prod.bin
[   0.0056 ] 
[   0.0117 ] tegrasign_v3.py --getmode mode.txt --key None
[   0.0117 ] Assuming zero filled SBK key
[   0.0131 ] tegrasign_v3.py --file mb1_t194_prod_sigheader.bin --key None --length 1136 --offset 2960 --pubkeyhash pub_key.key
[   0.0131 ] Assuming zero filled SBK key
[   0.0111 ] tegrahost_v2 --chip 0x19 0 --updatesigheader mb1_t194_prod_sigheader.bin mb1_t194_prod_sigheader.hash zerosbk
[   0.0136 ] 
[   0.0150 ] tegrabct_v2 --chip 0x19 0 --sfuse tegra194-mb1-soft-fuses-l4t.cfg sfuse.bin
[   0.0154 ] 
[   0.0167 ] tegrabct_v2 --chip 0x19 0 --ratchet_blob ratchet_blob.bin --minratchet tegra194-mb1-bct-ratchet-p3668.cfg
[   0.0169 ] FwIndex: 1, MinRatchetLevel: 0
[   0.0170 ] FwIndex: 2, MinRatchetLevel: 0
[   0.0170 ] FwIndex: 3, MinRatchetLevel: 0
[   0.0170 ] FwIndex: 4, MinRatchetLevel: 0
[   0.0171 ] FwIndex: 5, MinRatchetLevel: 0
[   0.0171 ] FwIndex: 6, MinRatchetLevel: 0
[   0.0171 ] FwIndex: 7, MinRatchetLevel: 0
[   0.0171 ] FwIndex: 11, MinRatchetLevel: 0
[   0.0171 ] FwIndex: 12, MinRatchetLevel: 0
[   0.0171 ] FwIndex: 13, MinRatchetLevel: 0
[   0.0171 ] FwIndex: 14, MinRatchetLevel: 0
[   0.0171 ] FwIndex: 15, MinRatchetLevel: 0
[   0.0171 ] FwIndex: 16, MinRatchetLevel: 0
[   0.0171 ] FwIndex: 17, MinRatchetLevel: 0
[   0.0171 ] FwIndex: 18, MinRatchetLevel: 0
[   0.0171 ] FwIndex: 19, MinRatchetLevel: 0
[   0.0171 ] FwIndex: 30, MinRatchetLevel: 0
[   0.0171 ] FwIndex: 31, MinRatchetLevel: 0
[   0.0171 ] FwIndex: 32, MinRatchetLevel: 0
[   0.0171 ] 
[   0.0184 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x19 0 --sfuses sfuse.bin --download rcm mb1_t194_prod_sigheader.bin 0 0
[   0.0187 ] RCM 0 is saved as rcm_0.rcm
[   0.0209 ] RCM 1 is saved as rcm_1.rcm
[   0.0210 ] RCM 2 is saved as rcm_2.rcm
[   0.0210 ] List of rcm files are saved in rcm_list.xml
[   0.0210 ] 
[   0.0210 ] Signing RCM messages
[   0.0270 ] tegrasign_v3.py --getmontgomeryvalues montgomery.bin --key None --list rcm_list.xml --pubkeyhash pub_key.key
[   0.0270 ] Assuming zero filled SBK key
[   0.0254 ] Copying signature to RCM mesages
[   0.0269 ] tegrarcm_v2 --chip 0x19 0 --updatesig rcm_list_signed.xml
[   0.0278 ] 
[   0.0278 ] Parsing partition layout
[   0.0293 ] tegraparser_v2 --pt flash.xml.tmp
[   0.0322 ] 
[   0.0323 ] Reading ramcode from backup chip_info.bin file
[   0.0325 ] RAMCODE Read from Device: 1

[   0.0325 ] Disable BPMP dtb trim, using default dtb
[   0.0326 ] 
[   0.0326 ] Creating list of images to be signed
[   0.0341 ] tegrahost_v2 --chip 0x19 0 --partitionlayout flash.xml.bin --ratchet_blob ratchet_blob.bin --list images_list.xml zerosbk
[   0.0344 ] MB1: Nvheader already present is mb1_t194_prod.bin
[   0.0347 ] Header already present for mb1_t194_prod_sigheader.bin
[   0.0351 ] MB1: Nvheader already present is mb1_t194_prod.bin
[   0.0371 ] Header already present for mb1_t194_prod_sigheader.bin
[   0.0378 ] adding BCH for spe_t194.bin
[   0.0397 ] adding BCH for spe_t194.bin
[   0.0410 ] adding BCH for nvtboot_t194.bin
[   0.0424 ] adding BCH for nvtboot_t194.bin
[   0.0451 ] Header already present for preboot_c10_prod_cr.bin
[   0.0477 ] Header already present for preboot_c10_prod_cr.bin
[   0.0479 ] Header already present for mce_c10_prod_cr.bin
[   0.0481 ] Header already present for mce_c10_prod_cr.bin
[   0.0492 ] adding BCH for mts_c10_prod_cr.bin
[   0.0515 ] adding BCH for mts_c10_prod_cr.bin
[   0.1024 ] Header already present for warmboot_t194_prod.bin
[   0.1536 ] Header already present for warmboot_t194_prod.bin
[   0.1541 ] adding BCH for xusb_sil_rel_fw
[   0.1546 ] adding BCH for xusb_sil_rel_fw
[   0.1565 ] adding BCH for cboot_t194.bin
[   0.1584 ] adding BCH for cboot_t194.bin
[   0.1653 ] adding BCH for tegra194-p3668-all-p3509-0000.dtb
[   0.1721 ] adding BCH for tegra194-p3668-all-p3509-0000.dtb
[   0.1752 ] adding BCH for tos-trusty_t194.img
[   0.1784 ] adding BCH for tos-trusty_t194.img
[   0.1842 ] adding BCH for eks.img
[   0.1899 ] adding BCH for eks.img
[   0.1900 ] adding BCH for adsp-fw.bin
[   0.1901 ] adding BCH for adsp-fw.bin
[   0.1913 ] adding BCH for camera-rtcpu-rce.img
[   0.1926 ] adding BCH for camera-rtcpu-rce.img
[   0.1969 ] adding BCH for bpmp_t194.bin
[   0.2011 ] adding BCH for bpmp_t194.bin
[   0.2141 ] adding BCH for tegra194-a02-bpmp-p3668-a00.dtb
[   0.2299 ] adding BCH for tegra194-a02-bpmp-p3668-a00.dtb
[   0.2355 ] adding BCH for boot.img
[   0.2671 ] adding BCH for boot.img
[   0.8840 ] adding BCH for kernel_tegra194-p3668-all-p3509-0000.dtb
[   1.5695 ] adding BCH for kernel_tegra194-p3668-all-p3509-0000.dtb
[   1.5724 ] adding BCH for recovery.img
[   1.6778 ] adding BCH for tegra194-p3668-all-p3509-0000.dtb.rec
[   2.3862 ] 
[   2.3862 ] Filling MB1 storage info
[   2.3862 ] Generating br-bct
[   2.3878 ] Performing cfg overlay
[   2.3878 ] ['tegra194-mb1-bct-memcfg-p3668-0001-a00.cfg', 'tegra194-memcfg-sw-override.cfg']
[   2.3879 ] sw_memcfg_overlay.pl -c tegra194-mb1-bct-memcfg-p3668-0001-a00.cfg -s tegra194-memcfg-sw-override.cfg -o /home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/54862/tmpk2rtnog91.cfg
[   2.4213 ] 
[   2.4213 ] Updating dev and MSS params in BR BCT
[   2.4214 ] tegrabct_v2 --dev_param tegra194-br-bct-qspi.cfg --sdram /home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/54862/tmpk2rtnog91.cfg --brbct br_bct.cfg --sfuse tegra194-mb1-soft-fuses-l4t.cfg --chip 0x19 0
[   2.4569 ] 
[   2.4570 ] Updating bl info
[   2.4587 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --updateblinfo flash.xml.bin
[   2.4606 ] 
[   2.4606 ] Generating signatures
[   2.4669 ] tegrasign_v3.py --key None --list images_list.xml --pubkeyhash pub_key.key
[   2.4669 ] Assuming zero filled SBK key
[   2.8214 ] Generating br-bct
[   2.8228 ] Performing cfg overlay
[   2.8228 ] ['/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/54862/tmpk2rtnog91.cfg']
[   2.8228 ] Updating dev and MSS params in BR BCT
[   2.8228 ] tegrabct_v2 --dev_param tegra194-br-bct-qspi.cfg --sdram /home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/54862/tmpk2rtnog91.cfg --brbct br_bct.cfg --sfuse tegra194-mb1-soft-fuses-l4t.cfg --chip 0x19 0
[   2.8605 ] 
[   2.8605 ] Updating bl info
[   2.8623 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --updateblinfo flash.xml.bin --updatesig images_list_signed.xml
[   2.8650 ] 
[   2.8650 ] Updating smd info
[   2.8664 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 --updatesmdinfo flash.xml.bin
[   2.8669 ] 
[   2.8669 ] Updating Odmdata
[   2.8681 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --updatefields Odmdata =0xB8190000
[   2.8686 ] 
[   2.8686 ] Get Signed section of bct
[   2.8700 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --listbct bct_list.xml
[   2.8703 ] 
[   2.8715 ] tegrasign_v3.py --key None --list bct_list.xml --pubkeyhash pub_key.key --getmontgomeryvalues montgomery.bin
[   2.8717 ] /usr/bin/env: Traceback (most recent call last):
  File "/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/./tegraflash.py", line 1296, in <module>
    tegraflash_run_commands()
  File "/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/./tegraflash.py", line 1155, in tegraflash_run_commands
    interpreter.onecmd(command)
  File "/usr/lib/python3.10/cmd.py", line 217, in onecmd
    return func(arg)
  File "/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/./tegraflash.py", line 216, in do_flash
    tegraflash_flash(exports)
  File "/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/tegraflash_internal.py", line 266, in tegraflash_flash
    tegraflash_generate_bct()
  File "/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/tegraflash_internal.py", line 4009, in tegraflash_generate_bct
    tegraflash_generate_br_bct(True)
  File "/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/tegraflash_internal.py", line 3515, in tegraflash_generate_br_bct
    run_command(command)
  File "/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/tegraflash_internal.py", line 202, in run_command
    log = print_process(process, enable_print)
  File "/home/collins/Desktop/OS-Image/Linux_for_Tegra/bootloader/tegraflash_internal.py", line 164, in print_process
    outputchar = output.decode('ascii')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)
Failed flashing t186ref.

Thanks in advance

Hi,

please check if python on your host PC is linked to Python 3, and if that’s the case, change it back to Python 2.

Hello,

It appears nothing was linked to python, so I used alias to change it to Python 2:

collins@collins-HP-Z2-Tower-G5-Workstation:~/Desktop/OS-Image/Linux_for_Tegra$ python --version
Python 2.7.18

I now get a slightly different error, but it looks to be the same thing:

...
[   2.9048 ] /usr/bin/env: ‘python’: No such file or directory
[   2.9054 ] 
Error: Return value 127
Command tegrasign_v3.py --key None --list bct_list.xml --pubkeyhash pub_key.key --getmontgomeryvalues montgomery.bin
Failed flashing t186ref.

Hi,

can you just install the standard python package with apt install? Don’t use alias.
It will create a symbolic link /use/bin/python to Python 2.

Hi,

I’m sorry if I’m missing something simple, I believe the standard python package is already installed, but python is just not linked to anything:

collins@collins-HP-Z2-Tower-G5-Workstation:~$ sudo apt install python2
[sudo] password for collins: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python2 is already the newest version (2.7.18-3).
0 upgraded, 0 newly installed, 0 to remove and 39 not upgraded.
collins@collins-HP-Z2-Tower-G5-Workstation:~$ python --version
Command 'python' not found, did you mean:
  command 'python3' from deb python3
  command 'python' from deb python-is-python3

Hi,

I mean python, but not python2.
Or just run Linux_for_Tegra/tools/l4t_flash_prerequisite.sh.

Thanks for the quick reply.

I had also tried to just use apt install with just python, but I got this error, which I also get when I use the prerequisites tool:

Package python is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  2to3 python2-minimal:i386 python2:i386 python2-minimal python2 dh-python
  python-is-python3

E: Package 'python' has no installation candidate

What Ubuntu version do you use? Is it 22.04?
Please use 18.04 or 20.04 if that’s the case.

I was using Ubuntu 22.04. However, I installed Ubuntu 18.04 on a different machine and I still get the same error:

Package python is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python' has no installation candidate

Do you have the Universe repository added?

I just don’t think it’s something NVIDIA should handle.

That’s understandable. I appreciate your help narrowing it down to a Python issue at the very least. I will update this thread if I figure anything out

Hello again,

I got a clean install of Ubuntu 18.04 installed, and unfortunately I’m running into another issue where after running normally, the process stalls when it reaches the tegrarcm_v2 operation.

...
[   6.2000 ] Applet version 01.00.0000
[   6.2782 ] Sending blob
[   6.2782 ] [................................................] 100%
[   7.1034 ] 
[   7.1053 ] tegrarcm_v2 --boot recovery
[   7.1063 ] Applet version 01.00.0000
[   7.1861 ] 
[   8.1917 ] tegrarcm_v2 --isapplet
[ 1014.1806 ] 
[ 1014.1850 ] tegrarcm_v2 --ismb2
[ 2029.9885 ] 
[ 2030.0013 ] tegradevflash_v2 --iscpubl
[ 2030.0042 ] CPU Bootloader is not running on device.
[ 3045.8044 ] 
[ 3046.8105 ] tegrarcm_v2 --isapplet
[ 4061.6046 ] 
[ 4061.6092 ] tegrarcm_v2 --ismb2
[ 5077.4126 ] 
[ 5077.4175 ] tegradevflash_v2 --iscpubl
[ 5077.4203 ] CPU Bootloader is not running on device.
[ 6093.2206 ] 
[ 6094.2263 ] tegrarcm_v2 --isapplet
[ 7109.0286 ] 
[ 7109.0331 ] tegrarcm_v2 --ismb2
[ 8124.8366 ] 
[ 8124.8410 ] tegradevflash_v2 --iscpubl

It seems the CPU bootloader is not running, but I don’t know how to go about fixing that.

Again, I really appreciate the help

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

Did UART output anything?
Was this device working properly before?