Flashing Xavier NX Emmc

I get this error executing flash.sh:

[ 8.3066 ] /usr/bin/env: Traceback (most recent call last):
File “./tegraflash.py”, line 1296, in
tegraflash_run_commands()
File “./tegraflash.py”, line 1155, in tegraflash_run_commands
interpreter.onecmd(command)
File “/usr/lib/python3.8/cmd.py”, line 217, in onecmd
return func(arg)
File “./tegraflash.py”, line 563, in do_erase
tegraflash_erase(exports, args[0])
File “/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/tegraflash_internal.py”, line 616, in tegraflash_erase
tegraflash_generate_bct()
File “/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/tegraflash_internal.py”, line 4004, in tegraflash_generate_bct
tegraflash_generate_br_bct(True)
File “/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/tegraflash_internal.py”, line 3510, in tegraflash_generate_br_bct
run_command(command)
File “/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/tegraflash_internal.py”, line 202, in run_command
log = print_process(process, enable_print)
File “/home/iouri/devel/nvidia/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 to flash/read t186ref.

has anyone dealt with this before?

Always share the full log and the command you are using.

This is the command that I am using:

sudo ./flash.sh -k DTB jetson-xavier-nx-devkit-emmc mmcblk0p1

Where do I get the logs?

Just try sudo ./flash.sh jetson-xavier-nx-devkit-emmc mmcblk0p1

That -K DTB does not work on jetson xavier series. Also, refer to the Quick start guide document for using this tool.

The log is just that info dumped on your host side terminal. You only dumped the log after second 8.

[ 8.3066 ] /usr/bin/env: Traceback (most recent call last):
File “./tegraflash.py”, line 1296, in
tegraflash_run_commands()
File “./tegraflash.py”, line 1155, in tegraflash_run_commands
interpreter.onecmd(command)

I ran: sudo ./flash.sh jetson-xavier-nx-devkit-emmc mmcblk0p1 2>&1 > log.txt

this got spit out to stdout:

iouri@iouri-XPS-15-9500:~/devel/nvidia/Linux_for_Tegra$ sudo ./flash.sh jetson-xavier-nx-devkit-emmc mmcblk0p1 2>&1 > log.txt
[sudo] password for iouri: 
30412 blocks
66121 blocks
20+0 records in
20+0 records out
20 bytes copied, 0.000371232 s, 53.9 kB/s
Traceback (most recent call last):
  File "./tegraflash.py", line 1296, in <module>
    tegraflash_run_commands()
  File "./tegraflash.py", line 1155, in tegraflash_run_commands
    interpreter.onecmd(command)
  File "/usr/lib/python3.8/cmd.py", line 217, in onecmd
    return func(arg)
  File "./tegraflash.py", line 216, in do_flash
    tegraflash_flash(exports)
  File "/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/tegraflash_internal.py", line 266, in tegraflash_flash
    tegraflash_generate_bct()
  File "/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/tegraflash_internal.py", line 4004, in tegraflash_generate_bct
    tegraflash_generate_br_bct(True)
  File "/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/tegraflash_internal.py", line 3510, in tegraflash_generate_br_bct
    run_command(command)
  File "/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/tegraflash_internal.py", line 202, in run_command
    log = print_process(process, enable_print)
  File "/home/iouri/devel/nvidia/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)
iouri@iouri-XPS-15-9500:~/devel/nvidia/Linux_for_Tegra$ 

this is the log:
###############################################################################

L4T BSP Information:

R32 , REVISION: 6.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/iouri/devel/nvidia/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-soft-fuses-l4t.cfg)… done.
./tegraflash.py --chip 0x19 --applet “/home/iouri/devel/nvidia/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.0166 ] Generating RCM messages
[ 0.0208 ] tegrahost_v2 --chip 0x19 0 --magicid MB1B --appendsigheader /home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/mb1_t194_prod.bin zerosbk
[ 0.0239 ] Header already present for /home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/mb1_t194_prod.bin
[ 0.0283 ]
[ 0.0328 ] tegrasign_v3.py --getmode mode.txt --key None
[ 0.0330 ] Assuming zero filled SBK key
[ 0.0385 ] tegrasign_v3.py --file /home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.bin --key None --length 1136 --offset 2960 --pubkeyhash pub_key.key
[ 0.0386 ] Assuming zero filled SBK key
[ 0.0535 ] tegrahost_v2 --chip 0x19 0 --updatesigheader /home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.bin /home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.hash zerosbk
[ 0.0607 ]
[ 0.0654 ] tegrabct_v2 --chip 0x19 0 --sfuse tegra194-mb1-soft-fuses-l4t.cfg.pdf sfuse.bin
[ 0.0692 ]
[ 0.0734 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x19 0 --sfuses sfuse.bin --download rcm /home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.bin 0 0
[ 0.0764 ] RCM 0 is saved as rcm_0.rcm
[ 0.0801 ] RCM 1 is saved as rcm_1.rcm
[ 0.0804 ] RCM 2 is saved as rcm_2.rcm
[ 0.0810 ] List of rcm files are saved in rcm_list.xml
[ 0.0812 ]
[ 0.0812 ] Signing RCM messages
[ 0.0856 ] tegrasign_v3.py --getmontgomeryvalues montgomery.bin --key None --list rcm_list.xml --pubkeyhash pub_key.key
[ 0.0857 ] Assuming zero filled SBK key
[ 0.1100 ] Copying signature to RCM mesages
[ 0.1143 ] tegrarcm_v2 --chip 0x19 0 --updatesig rcm_list_signed.xml
[ 0.1201 ]
[ 0.1202 ] Boot Rom communication
[ 0.1244 ] tegrarcm_v2 --chip 0x19 0 --rcm rcm_list_signed.xml --skipuid
[ 0.1276 ] RCM version 0X190001
[ 0.5068 ] Boot Rom communication completed
[ 1.5247 ]
[ 2.5376 ] tegrarcm_v2 --isapplet
[ 2.5408 ] Applet version 01.00.0000
[ 2.9475 ]
[ 2.9521 ] tegrarcm_v2 --ismb2
[ 3.1838 ]
[ 3.1891 ] tegrahost_v2 --chip 0x19 --align nvtboot_applet_t194.bin
[ 3.1933 ]
[ 3.1984 ] tegrahost_v2 --chip 0x19 0 --magicid PLDT --appendsigheader nvtboot_applet_t194.bin zerosbk
[ 3.2028 ] adding BCH for nvtboot_applet_t194.bin
[ 3.2082 ]
[ 3.2156 ] tegrasign_v3.py --key None --list nvtboot_applet_t194_sigheader.bin_list.xml --pubkeyhash pub_key.key
[ 3.2157 ] Assuming zero filled SBK key
[ 3.2343 ] tegrahost_v2 --chip 0x19 0 --updatesigheader nvtboot_applet_t194_sigheader.bin.encrypt nvtboot_applet_t194_sigheader.bin.hash zerosbk
[ 3.2422 ]
[ 3.2481 ] tegrarcm_v2 --download mb2 nvtboot_applet_t194_sigheader.bin.encrypt
[ 3.2525 ] Applet version 01.00.0000
[ 4.1117 ] Sending mb2
[ 4.1125 ] […] 100%
[ 4.1308 ]
[ 4.1447 ] tegrarcm_v2 --boot recovery
[ 4.1560 ] Applet version 01.00.0000
[ 4.7796 ]
[ 5.7893 ] tegrarcm_v2 --isapplet
[ 6.6139 ]
[ 6.6188 ] tegrarcm_v2 --ismb2
[ 6.6220 ] MB2 Applet version 01.00.0000
[ 6.8519 ]
[ 6.8633 ] tegrarcm_v2 --ismb2
[ 6.8667 ] MB2 Applet version 01.00.0000
[ 7.5235 ]
[ 7.5352 ] Retrieving board information
[ 7.5400 ] tegrarcm_v2 --oem platformdetails chip chip_info.bin
[ 7.5434 ] MB2 Applet version 01.00.0000
[ 7.9858 ] Saved platform info in chip_info.bin
[ 7.9900 ] Chip minor revision: 2
[ 7.9904 ] Bootrom revision: 0xf
[ 7.9908 ] Ram code: 0x0
[ 7.9908 ] Chip sku: 0xde
[ 7.9908 ] Chip Sample: non es
[ 7.9908 ]
[ 7.9913 ] Retrieving EEPROM data
[ 7.9913 ] tegrarcm_v2 --oem platformdetails eeprom cvm /home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/cvm.bin
[ 7.9944 ] MB2 Applet version 01.00.0000
[ 8.6546 ] Saved platform info in /home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/cvm.bin
[ 8.6916 ]
[ 8.6919 ] Rebooting to recovery mode
[ 8.6983 ] tegrarcm_v2 --ismb2
[ 8.7020 ] MB2 Applet version 01.00.0000
[ 9.1307 ]
[ 9.1307 ] Rebooting to recovery mode
[ 9.1357 ] tegrarcm_v2 --reboot recovery
[ 9.1394 ] MB2 Applet version 01.00.0000
[ 9.5748 ]
Board ID(3668) version(000) sku(0001) revision(F.0)
Copy /home/iouri/devel/nvidia/Linux_for_Tegra/kernel/dtb/tegra194-p3668-all-p3509-0000.dtb to /home/iouri/devel/nvidia/Linux_for_Tegra/kernel/dtb/tegra194-p3668-all-p3509-0000.dtb.rec
copying bctfile(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-memcfg-p3668-0001-a00.cfg)… done.
copying bctfile1(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-memcfg-sw-override.cfg)… done.
copying minratchet_config(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-ratchet-p3668.cfg)… done.
copying device_config(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-bct-device-qspi-p3668.cfg)… done.
copying misc_cold_boot_config(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-misc-l4t.cfg)… done.
copying misc_config(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-misc-flash.cfg)… done.
copying pinmux_config(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-pinmux-p3668-a01.cfg)… done.
copying gpioint_config(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-gpioint-p3668-0001-a00.cfg)… done.
copying pmic_config(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-pmic-p3668-0001-a00.cfg)… done.
copying pmc_config(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-padvoltage-p3668-a01.cfg)… done.
copying prod_config(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-prod-p3668-0001-a00.cfg)… done.
copying scr_config(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-scr-cbb-mini-p3668.cfg)… done.
copying scr_cold_boot_config(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-scr-cbb-mini-p3668.cfg)… done.
copying bootrom_config(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-reset-p3668-0001-a00.cfg)… done.
copying dev_params(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-br-bct-qspi.cfg)… done.
Existing bootloader(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/nvtboot_cpu_t194.bin) reused.
copying initrd(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/l4t_initrd.img)… done.
Making Boot image… done.
/home/iouri/devel/nvidia/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.0007 ] Generating signature
[ 0.0054 ] tegrasign_v3.py --getmode mode.txt --key
[ 0.0055 ] Assuming zero filled SBK key : not reading
[ 0.0059 ] Generating ratchet blob
[ 0.0100 ] tegrabct_v2 --chip 0x19 0 --ratchet_blob ratchet_blob.bin --minratchet tegra194-mb1-bct-ratchet-p3668.cfg
[ 0.0130 ] FwIndex: 1, MinRatchetLevel: 0
[ 0.0136 ] FwIndex: 2, MinRatchetLevel: 0
[ 0.0139 ] FwIndex: 3, MinRatchetLevel: 0
[ 0.0139 ] FwIndex: 4, MinRatchetLevel: 0
[ 0.0139 ] FwIndex: 5, MinRatchetLevel: 0
[ 0.0139 ] FwIndex: 6, MinRatchetLevel: 0
[ 0.0139 ] FwIndex: 7, MinRatchetLevel: 0
[ 0.0139 ] FwIndex: 11, MinRatchetLevel: 0
[ 0.0139 ] FwIndex: 12, MinRatchetLevel: 0
[ 0.0139 ] FwIndex: 13, MinRatchetLevel: 0
[ 0.0139 ] FwIndex: 14, MinRatchetLevel: 0
[ 0.0139 ] FwIndex: 15, MinRatchetLevel: 0
[ 0.0139 ] FwIndex: 16, MinRatchetLevel: 0
[ 0.0139 ] FwIndex: 17, MinRatchetLevel: 0
[ 0.0139 ] FwIndex: 18, MinRatchetLevel: 0
[ 0.0139 ] FwIndex: 19, MinRatchetLevel: 0
[ 0.0139 ] FwIndex: 30, MinRatchetLevel: 0
[ 0.0139 ] FwIndex: 31, MinRatchetLevel: 0
[ 0.0139 ] FwIndex: 32, MinRatchetLevel: 0
[ 0.0139 ]
[ 0.0141 ] header_magic: 414e4452
[ 0.0179 ] tegrahost_v2 --chip 0x19 --align 1_boot.img
[ 0.0211 ]
[ 0.0253 ] tegrahost_v2 --chip 0x19 0 --magicid KRNL --ratchet_blob ratchet_blob.bin --appendsigheader 1_boot.img zerosbk
[ 0.0283 ] adding BCH for 1_boot.img
[ 1.0322 ]
[ 1.0379 ] tegrasign_v3.py --key --list 1_boot_sigheader.img_list.xml --pubkeyhash pub_key.key
[ 1.0379 ] Assuming zero filled SBK key : not reading
[ 1.4072 ] tegrahost_v2 --chip 0x19 0 --updatesigheader 1_boot_sigheader.img.encrypt 1_boot_sigheader.img.hash zerosbk
[ 2.0642 ]
[ 2.2175 ] Signed file: /home/iouri/devel/nvidia/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/iouri/devel/nvidia/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/iouri/devel/nvidia/Linux_for_Tegra/bootloader/ramdisk_tmp /home/iouri/devel/nvidia/Linux_for_Tegra/bootloader /home/iouri/devel/nvidia/Linux_for_Tegra
_BASE_KERNEL_VERSION=4.9.253-tegra
/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/ramdisk_tmp/lib /home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/ramdisk_tmp /home/iouri/devel/nvidia/Linux_for_Tegra/bootloader /home/iouri/devel/nvidia/Linux_for_Tegra
Making Recovery image…
copying recdtbfile(/home/iouri/devel/nvidia/Linux_for_Tegra/kernel/dtb/tegra194-p3668-all-p3509-0000.dtb.rec)… done.
Existing sosfile(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/mb1_t194_prod.bin) reused.
Existing tegraboot(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/nvtboot_t194.bin) reused.
Existing cpu_bootloader(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/nvtboot_cpu_t194.bin) reused.
Existing mb2blfile(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/nvtboot_recovery_t194.bin) reused.
Existing mtspreboot(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/preboot_c10_prod_cr.bin) reused.
Existing mcepreboot(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/mce_c10_prod_cr.bin) reused.
Existing mtsproper(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/mts_c10_prod_cr.bin) reused.
Existing mb1file(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/mb1_t194_prod.bin) reused.
Existing bpffile(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/bpmp_t194.bin) reused.
copying bpfdtbfile(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/t186ref/tegra194-a02-bpmp-p3668-a00.dtb)… done.
Existing scefile(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/camera-rtcpu-sce.img) reused.
Existing camerafw(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/camera-rtcpu-rce.img) reused.
Existing spefile(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/spe_t194.bin) reused.
Existing wb0boot(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/warmboot_t194_prod.bin) reused.
Existing tosfile(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/tos-trusty_t194.img) reused.
Existing eksfile(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/eks.img) reused.
copying soft_fuses(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-soft-fuses-l4t.cfg)… done.
copying dtbfile(/home/iouri/devel/nvidia/Linux_for_Tegra/kernel/dtb/tegra194-p3668-all-p3509-0000.dtb)… done.
Copying nv_boot_control.conf to rootfs
/home/iouri/devel/nvidia/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.0010 ] Generating signature
[ 0.0057 ] tegrasign_v3.py --getmode mode.txt --key
[ 0.0058 ] Assuming zero filled SBK key : not reading
[ 0.0062 ] Generating ratchet blob
[ 0.0104 ] tegrabct_v2 --chip 0x19 0 --ratchet_blob ratchet_blob.bin --minratchet tegra194-mb1-bct-ratchet-p3668.cfg
[ 0.0135 ] FwIndex: 1, MinRatchetLevel: 0
[ 0.0141 ] FwIndex: 2, MinRatchetLevel: 0
[ 0.0143 ] FwIndex: 3, MinRatchetLevel: 0
[ 0.0144 ] FwIndex: 4, MinRatchetLevel: 0
[ 0.0144 ] FwIndex: 5, MinRatchetLevel: 0
[ 0.0144 ] FwIndex: 6, MinRatchetLevel: 0
[ 0.0144 ] FwIndex: 7, MinRatchetLevel: 0
[ 0.0144 ] FwIndex: 11, MinRatchetLevel: 0
[ 0.0144 ] FwIndex: 12, MinRatchetLevel: 0
[ 0.0144 ] FwIndex: 13, MinRatchetLevel: 0
[ 0.0144 ] FwIndex: 14, MinRatchetLevel: 0
[ 0.0144 ] FwIndex: 15, MinRatchetLevel: 0
[ 0.0144 ] FwIndex: 16, MinRatchetLevel: 0
[ 0.0144 ] FwIndex: 17, MinRatchetLevel: 0
[ 0.0144 ] FwIndex: 18, MinRatchetLevel: 0
[ 0.0144 ] FwIndex: 19, MinRatchetLevel: 0
[ 0.0144 ] FwIndex: 30, MinRatchetLevel: 0
[ 0.0144 ] FwIndex: 31, MinRatchetLevel: 0
[ 0.0144 ] FwIndex: 32, MinRatchetLevel: 0
[ 0.0144 ]
[ 0.0146 ] header_magic: d00dfeed
[ 0.0184 ] tegrahost_v2 --chip 0x19 --align 1_kernel_tegra194-p3668-all-p3509-0000.dtb
[ 0.0216 ]
[ 0.0258 ] tegrahost_v2 --chip 0x19 0 --magicid KDTB --ratchet_blob ratchet_blob.bin --appendsigheader 1_kernel_tegra194-p3668-all-p3509-0000.dtb zerosbk
[ 0.0286 ] adding BCH for 1_kernel_tegra194-p3668-all-p3509-0000.dtb
[ 0.0343 ]
[ 0.0407 ] tegrasign_v3.py --key --list 1_kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb_list.xml --pubkeyhash pub_key.key
[ 0.0409 ] Assuming zero filled SBK key : not reading
[ 0.0592 ] 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.0661 ]
[ 0.0675 ] Signed file: /home/iouri/devel/nvidia/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/iouri/devel/nvidia/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/iouri/devel/nvidia/Linux_for_Tegra/rootfs … populating /boot/extlinux/extlinux.conf … done.
generating sig file of Image … /home/iouri/devel/nvidia/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.0012 ] Generating signature
[ 0.0059 ] tegrasign_v3.py --getmode mode.txt --key
[ 0.0060 ] Assuming zero filled SBK key : not reading
[ 0.0065 ] Generating ratchet blob
[ 0.0107 ] tegrabct_v2 --chip 0x19 0 --ratchet_blob ratchet_blob.bin --minratchet tegra194-mb1-bct-ratchet-p3668.cfg
[ 0.0136 ] FwIndex: 1, MinRatchetLevel: 0
[ 0.0143 ] FwIndex: 2, MinRatchetLevel: 0
[ 0.0146 ] FwIndex: 3, MinRatchetLevel: 0
[ 0.0146 ] FwIndex: 4, MinRatchetLevel: 0
[ 0.0146 ] FwIndex: 5, MinRatchetLevel: 0
[ 0.0146 ] FwIndex: 6, MinRatchetLevel: 0
[ 0.0146 ] FwIndex: 7, MinRatchetLevel: 0
[ 0.0146 ] FwIndex: 11, MinRatchetLevel: 0
[ 0.0146 ] FwIndex: 12, MinRatchetLevel: 0
[ 0.0146 ] FwIndex: 13, MinRatchetLevel: 0
[ 0.0146 ] FwIndex: 14, MinRatchetLevel: 0
[ 0.0146 ] FwIndex: 15, MinRatchetLevel: 0
[ 0.0146 ] FwIndex: 16, MinRatchetLevel: 0
[ 0.0146 ] FwIndex: 17, MinRatchetLevel: 0
[ 0.0146 ] FwIndex: 18, MinRatchetLevel: 0
[ 0.0146 ] FwIndex: 19, MinRatchetLevel: 0
[ 0.0146 ] FwIndex: 30, MinRatchetLevel: 0
[ 0.0146 ] FwIndex: 31, MinRatchetLevel: 0
[ 0.0146 ] FwIndex: 32, MinRatchetLevel: 0
[ 0.0146 ]
[ 0.0148 ] header_magic: 405614
[ 0.0194 ] tegrahost_v2 --chip 0x19 --align 1_Image
[ 0.0232 ]
[ 0.0278 ] tegrahost_v2 --chip 0x19 0 --magicid KRNL --ratchet_blob ratchet_blob.bin --appendsigheader 1_Image zerosbk
[ 0.0309 ] adding BCH for 1_Image
[ 0.9318 ]
[ 0.9374 ] tegrasign_v3.py --key --list 1_Image_sigheader_list.xml --pubkeyhash pub_key.key
[ 0.9375 ] Assuming zero filled SBK key : not reading
[ 1.3113 ] tegrahost_v2 --chip 0x19 0 --updatesigheader 1_Image_sigheader.encrypt 1_Image_sigheader.hash zerosbk
[ 1.9170 ]
[ 2.0769 ] Signed file: /home/iouri/devel/nvidia/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/iouri/devel/nvidia/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.0011 ] Generating signature
[ 0.0056 ] tegrasign_v3.py --getmode mode.txt --key
[ 0.0057 ] Assuming zero filled SBK key : not reading
[ 0.0062 ] Generating ratchet blob
[ 0.0108 ] tegrabct_v2 --chip 0x19 0 --ratchet_blob ratchet_blob.bin --minratchet tegra194-mb1-bct-ratchet-p3668.cfg
[ 0.0183 ] FwIndex: 1, MinRatchetLevel: 0
[ 0.0197 ] FwIndex: 2, MinRatchetLevel: 0
[ 0.0202 ] FwIndex: 3, MinRatchetLevel: 0
[ 0.0202 ] FwIndex: 4, MinRatchetLevel: 0
[ 0.0203 ] FwIndex: 5, MinRatchetLevel: 0
[ 0.0203 ] FwIndex: 6, MinRatchetLevel: 0
[ 0.0203 ] FwIndex: 7, MinRatchetLevel: 0
[ 0.0203 ] FwIndex: 11, MinRatchetLevel: 0
[ 0.0203 ] FwIndex: 12, MinRatchetLevel: 0
[ 0.0203 ] FwIndex: 13, MinRatchetLevel: 0
[ 0.0203 ] FwIndex: 14, MinRatchetLevel: 0
[ 0.0203 ] FwIndex: 15, MinRatchetLevel: 0
[ 0.0203 ] FwIndex: 16, MinRatchetLevel: 0
[ 0.0203 ] FwIndex: 17, MinRatchetLevel: 0
[ 0.0203 ] FwIndex: 18, MinRatchetLevel: 0
[ 0.0203 ] FwIndex: 19, MinRatchetLevel: 0
[ 0.0203 ] FwIndex: 30, MinRatchetLevel: 0
[ 0.0203 ] FwIndex: 31, MinRatchetLevel: 0
[ 0.0203 ] FwIndex: 32, MinRatchetLevel: 0
[ 0.0203 ]
[ 0.0205 ] header_magic: d00dfeed
[ 0.0270 ] tegrahost_v2 --chip 0x19 --align 1_kernel_tegra194-p3668-all-p3509-0000.dtb
[ 0.0316 ]
[ 0.0367 ] tegrahost_v2 --chip 0x19 0 --magicid KDTB --ratchet_blob ratchet_blob.bin --appendsigheader 1_kernel_tegra194-p3668-all-p3509-0000.dtb zerosbk
[ 0.0402 ] adding BCH for 1_kernel_tegra194-p3668-all-p3509-0000.dtb
[ 0.0459 ]
[ 0.0521 ] tegrasign_v3.py --key --list 1_kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb_list.xml --pubkeyhash pub_key.key
[ 0.0522 ] Assuming zero filled SBK key : not reading
[ 0.0682 ] 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.0750 ]
[ 0.0766 ] Signed file: /home/iouri/devel/nvidia/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/iouri/devel/nvidia/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.0009 ] Generating signature
[ 0.0056 ] tegrasign_v3.py --getmode mode.txt --key
[ 0.0057 ] Assuming zero filled SBK key : not reading
[ 0.0065 ] header_magic: 1f8b0800
[ 0.0108 ] tegrahost_v2 --chip 0x19 --align 1_initrd
[ 0.0144 ]
[ 0.0182 ] tegrahost_v2 --chip 0x19 0 --magicid DATA --appendsigheader 1_initrd zerosbk
[ 0.0209 ] adding BCH for 1_initrd
[ 0.2024 ]
[ 0.2081 ] tegrasign_v3.py --key --list 1_initrd_sigheader_list.xml --pubkeyhash pub_key.key
[ 0.2082 ] Assuming zero filled SBK key : not reading
[ 0.2849 ] tegrahost_v2 --chip 0x19 0 --updatesigheader 1_initrd_sigheader.encrypt 1_initrd_sigheader.hash zerosbk
[ 0.3998 ]
[ 0.4271 ] Signed file: /home/iouri/devel/nvidia/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 0x6e72c8 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/iouri/devel/nvidia/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.0009 ] Generating signature
[ 0.0056 ] tegrasign_v3.py --getmode mode.txt --key
[ 0.0057 ] Assuming zero filled SBK key : not reading
[ 0.0064 ] header_magic: 54494d45
[ 0.0109 ] tegrahost_v2 --chip 0x19 --align 1_extlinux.conf
[ 0.0145 ]
[ 0.0182 ] tegrahost_v2 --chip 0x19 0 --magicid DATA --appendsigheader 1_extlinux.conf zerosbk
[ 0.0209 ] adding BCH for 1_extlinux.conf
[ 0.0215 ]
[ 0.0268 ] tegrasign_v3.py --key --list 1_extlinux_sigheader.conf_list.xml --pubkeyhash pub_key.key
[ 0.0269 ] Assuming zero filled SBK key : not reading
[ 0.0405 ] tegrahost_v2 --chip 0x19 0 --updatesigheader 1_extlinux_sigheader.conf.encrypt 1_extlinux_sigheader.conf.hash zerosbk
[ 0.0452 ]
[ 0.0458 ] Signed file: /home/iouri/devel/nvidia/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/iouri/devel/nvidia/Linux_for_Tegra/bootloader/cboot_t194.bin) reused.
copying tbcdtbfile(/home/iouri/devel/nvidia/Linux_for_Tegra/kernel/dtb/tegra194-p3668-all-p3509-0000.dtb)… done.
copying cfgfile(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/t186ref/cfg/flash_l4t_t194_spi_emmc_p3668.xml) to flash.xml… done.
Existing flasher(/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/nvtboot_recovery_cpu_t194.bin) reused.
Existing flashapp(/home/iouri/devel/nvidia/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” --trim_bpmp_dtb
saving flash command in /home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/flashcmd.txt
saving Windows flash command to /home/iouri/devel/nvidia/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.0272 ] tegrasign_v3.py --getmode mode.txt --key None
[ 0.0273 ] Assuming zero filled SBK key
[ 0.0048 ] Generating RCM messages
[ 0.0089 ] tegrahost_v2 --chip 0x19 0 --magicid MB1B --appendsigheader mb1_t194_prod.bin zerosbk
[ 0.0116 ] Header already present for mb1_t194_prod.bin
[ 0.0158 ]
[ 0.0431 ] tegrasign_v3.py --getmode mode.txt --key None
[ 0.0432 ] Assuming zero filled SBK key
[ 0.0476 ] tegrasign_v3.py --file mb1_t194_prod_sigheader.bin --key None --length 1136 --offset 2960 --pubkeyhash pub_key.key
[ 0.0477 ] Assuming zero filled SBK key
[ 0.0395 ] tegrahost_v2 --chip 0x19 0 --updatesigheader mb1_t194_prod_sigheader.bin mb1_t194_prod_sigheader.hash zerosbk
[ 0.0472 ]
[ 0.0517 ] tegrabct_v2 --chip 0x19 0 --sfuse tegra194-mb1-soft-fuses-l4t.cfg sfuse.bin
[ 0.0560 ]
[ 0.0603 ] tegrabct_v2 --chip 0x19 0 --ratchet_blob ratchet_blob.bin --minratchet tegra194-mb1-bct-ratchet-p3668.cfg
[ 0.0633 ] FwIndex: 1, MinRatchetLevel: 0
[ 0.0643 ] FwIndex: 2, MinRatchetLevel: 0
[ 0.0643 ] FwIndex: 3, MinRatchetLevel: 0
[ 0.0643 ] FwIndex: 4, MinRatchetLevel: 0
[ 0.0643 ] FwIndex: 5, MinRatchetLevel: 0
[ 0.0643 ] FwIndex: 6, MinRatchetLevel: 0
[ 0.0643 ] FwIndex: 7, MinRatchetLevel: 0
[ 0.0643 ] FwIndex: 11, MinRatchetLevel: 0
[ 0.0643 ] FwIndex: 12, MinRatchetLevel: 0
[ 0.0643 ] FwIndex: 13, MinRatchetLevel: 0
[ 0.0643 ] FwIndex: 14, MinRatchetLevel: 0
[ 0.0643 ] FwIndex: 15, MinRatchetLevel: 0
[ 0.0643 ] FwIndex: 16, MinRatchetLevel: 0
[ 0.0643 ] FwIndex: 17, MinRatchetLevel: 0
[ 0.0643 ] FwIndex: 18, MinRatchetLevel: 0
[ 0.0643 ] FwIndex: 19, MinRatchetLevel: 0
[ 0.0643 ] FwIndex: 30, MinRatchetLevel: 0
[ 0.0643 ] FwIndex: 31, MinRatchetLevel: 0
[ 0.0643 ] FwIndex: 32, MinRatchetLevel: 0
[ 0.0643 ]
[ 0.0684 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x19 0 --sfuses sfuse.bin --download rcm mb1_t194_prod_sigheader.bin 0 0
[ 0.0712 ] RCM 0 is saved as rcm_0.rcm
[ 0.0750 ] RCM 1 is saved as rcm_1.rcm
[ 0.0755 ] RCM 2 is saved as rcm_2.rcm
[ 0.0760 ] List of rcm files are saved in rcm_list.xml
[ 0.0760 ]
[ 0.0760 ] Signing RCM messages
[ 0.1034 ] tegrasign_v3.py --getmontgomeryvalues montgomery.bin --key None --list rcm_list.xml --pubkeyhash pub_key.key
[ 0.1034 ] Assuming zero filled SBK key
[ 0.1052 ] Copying signature to RCM mesages
[ 0.1094 ] tegrarcm_v2 --chip 0x19 0 --updatesig rcm_list_signed.xml
[ 0.1161 ]
[ 0.1162 ] Parsing partition layout
[ 0.1221 ] tegraparser_v2 --pt flash.xml.tmp
[ 0.1277 ]
[ 0.1280 ] Reading ramcode from backup chip_info.bin file
[ 0.1282 ] RAMCODE Read from Device: 0

[ 0.1284 ] Generating BPMP dtb for ramcode - 0
[ 0.2146 ] Old BPMP dtb size - 277874 bytes
[ 0.2146 ] New BPMP dtb size - 195698 bytes
[ 0.2150 ]
[ 0.2155 ] Creating list of images to be signed
[ 0.2199 ] tegrahost_v2 --chip 0x19 0 --partitionlayout flash.xml.bin --ratchet_blob ratchet_blob.bin --list images_list.xml zerosbk
[ 0.2227 ] MB1: Nvheader already present is mb1_t194_prod.bin
[ 0.2242 ] Header already present for mb1_t194_prod_sigheader.bin
[ 0.2264 ] MB1: Nvheader already present is mb1_t194_prod.bin
[ 0.2299 ] Header already present for mb1_t194_prod_sigheader.bin
[ 0.2326 ] adding BCH for spe_t194.bin
[ 0.2357 ] adding BCH for spe_t194.bin
[ 0.2378 ] adding BCH for nvtboot_t194.bin
[ 0.2401 ] adding BCH for nvtboot_t194.bin
[ 0.2440 ] Header already present for preboot_c10_prod_cr.bin
[ 0.2485 ] Header already present for preboot_c10_prod_cr.bin
[ 0.2493 ] Header already present for mce_c10_prod_cr.bin
[ 0.2500 ] Header already present for mce_c10_prod_cr.bin
[ 0.2512 ] adding BCH for mts_c10_prod_cr.bin
[ 0.2578 ] adding BCH for mts_c10_prod_cr.bin
[ 0.3411 ] Header already present for warmboot_t194_prod.bin
[ 0.4258 ] Header already present for warmboot_t194_prod.bin
[ 0.4270 ] adding BCH for xusb_sil_rel_fw
[ 0.4280 ] adding BCH for xusb_sil_rel_fw
[ 0.4310 ] adding BCH for cboot_t194.bin
[ 0.4344 ] adding BCH for cboot_t194.bin
[ 0.4452 ] adding BCH for tegra194-p3668-all-p3509-0000.dtb
[ 0.4573 ] adding BCH for tegra194-p3668-all-p3509-0000.dtb
[ 0.4620 ] adding BCH for tos-trusty_t194.img
[ 0.4675 ] adding BCH for tos-trusty_t194.img
[ 0.4771 ] adding BCH for eks.img
[ 0.4868 ] adding BCH for eks.img
[ 0.4872 ] adding BCH for adsp-fw.bin
[ 0.4876 ] adding BCH for adsp-fw.bin
[ 0.4897 ] adding BCH for camera-rtcpu-rce.img
[ 0.4930 ] adding BCH for camera-rtcpu-rce.img
[ 0.4992 ] adding BCH for bpmp_t194.bin
[ 0.5072 ] adding BCH for bpmp_t194.bin
[ 0.5286 ] adding BCH for tegra194-a02-bpmp-p3668-a00.dtb
[ 0.5510 ] adding BCH for tegra194-a02-bpmp-p3668-a00.dtb
[ 0.5554 ] adding BCH for boot.img
[ 0.6330 ] adding BCH for boot.img
[ 1.6814 ] adding BCH for kernel_tegra194-p3668-all-p3509-0000.dtb
[ 2.7083 ] adding BCH for kernel_tegra194-p3668-all-p3509-0000.dtb
[ 2.7128 ] adding BCH for recovery.img
[ 2.9357 ] adding BCH for tegra194-p3668-all-p3509-0000.dtb.rec
[ 4.1150 ]
[ 4.1150 ] Filling MB1 storage info
[ 4.1150 ] Generating br-bct
[ 4.1206 ] Performing cfg overlay
[ 4.1206 ] [‘tegra194-mb1-bct-memcfg-p3668-0001-a00.cfg’, ‘tegra194-memcfg-sw-override.cfg’]
[ 4.1211 ] sw_memcfg_overlay.pl -c tegra194-mb1-bct-memcfg-p3668-0001-a00.cfg -s tegra194-memcfg-sw-override.cfg -o /home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/954856/tmptbfvbc931.cfg
[ 4.1690 ]
[ 4.1692 ] Updating dev and MSS params in BR BCT
[ 4.1692 ] tegrabct_v2 --dev_param tegra194-br-bct-qspi.cfg --sdram /home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/954856/tmptbfvbc931.cfg --brbct br_bct.cfg --sfuse tegra194-mb1-soft-fuses-l4t.cfg --chip 0x19 0
[ 4.1991 ]
[ 4.1992 ] Updating bl info
[ 4.2037 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --updateblinfo flash.xml.bin
[ 4.2121 ]
[ 4.2122 ] Generating signatures
[ 4.2395 ] tegrasign_v3.py --key None --list images_list.xml --pubkeyhash pub_key.key
[ 4.2396 ] Assuming zero filled SBK key
[ 5.8727 ] Generating br-bct
[ 5.8773 ] Performing cfg overlay
[ 5.8773 ] [’/home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/954856/tmptbfvbc931.cfg’]
[ 5.8774 ] Updating dev and MSS params in BR BCT
[ 5.8774 ] tegrabct_v2 --dev_param tegra194-br-bct-qspi.cfg --sdram /home/iouri/devel/nvidia/Linux_for_Tegra/bootloader/954856/tmptbfvbc931.cfg --brbct br_bct.cfg --sfuse tegra194-mb1-soft-fuses-l4t.cfg --chip 0x19 0
[ 5.9062 ]
[ 5.9062 ] Updating bl info
[ 5.9108 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --updateblinfo flash.xml.bin --updatesig images_list_signed.xml
[ 5.9214 ]
[ 5.9215 ] Updating smd info
[ 5.9261 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 --updatesmdinfo flash.xml.bin
[ 5.9303 ]
[ 5.9304 ] Updating Odmdata
[ 5.9349 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --updatefields Odmdata =0xB8190000
[ 5.9393 ]
[ 5.9393 ] Get Signed section of bct
[ 5.9439 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --listbct bct_list.xml
[ 5.9480 ]
[ 5.9526 ] tegrasign_v3.py --key None --list bct_list.xml --pubkeyhash pub_key.key --getmontgomeryvalues montgomery.bin
[ 5.9558 ] /usr/bin/env: Failed flashing t186ref.

Is your default python version on the host a python 3?

iouri@iouri-XPS-15-9500:~/devel/nvidia/Linux_for_Tegra$ python
python2           python2.7         python3           python3-config    python3-wsdump    python3.8         python3.8-config  
iouri@iouri-XPS-15-9500:~/devel/nvidia/Linux_for_Tegra$ python3
Python 3.8.10 (default, Jun  2 2021, 10:49:15) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> quit()
iouri@iouri-XPS-15-9500:~/devel/nvidia/Linux_for_Tegra$ 


Can you directly share me the result of “python” but not “python3”?

iouri@iouri-XPS-15-9500:~/devel/nvidia/Linux_for_Tegra$ python

Command 'python' not found, did you mean:

  command 'python3' from deb python3
  command 'python' from deb python-is-python3

iouri@iouri-XPS-15-9500:~/devel/nvidia/Linux_for_Tegra$ 

should I add symbolic link to point to python3?

Create a link for python2. Not python3.

iouri@iouri-XPS-15-9500:~/devel/nvidia/Linux_for_Tegra$ python
Python 2.7.18 (default, Mar  8 2021, 13:02:45) 
[GCC 9.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> quit()
iouri@iouri-XPS-15-9500:~/devel/nvidia/Linux_for_Tegra$ 

this is what I have now. Let me try again

hey, it worked. Thank you.

[ 467.2439 ] Flashing completed

[ 467.2440 ] Coldbooting the device
[ 467.2489 ] tegrarcm_v2 --ismb2
[ 468.0883 ] 
[ 468.0936 ] tegradevflash_v2 --reboot coldboot
[ 468.0976 ] Bootloader version 01.00.0000
[ 468.3153 ] 
*** The target t186ref has been flashed successfully. ***
Reset the board to boot from internal eMMC.

How do I updated Device Tree, if -k DTB version is not supported? Just drop a new dtb file under Linux_4_Tegra and burn everything?

1 Like

Use “-r -k kernel-dtb”. Xavier is using different partition name from jetson nano.

“-r” will save some time if you already flashed the board before.

Got it. Thank you