Jetson TX2 flash problem

Good day everybody,

I have a problem with flashing TEGRA on TX2. System Ubuntu 18.04, several cables and Usb ports were tried out. Flashing starts but blocks always at the same point:

Any help is very much appreciated.

*** 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.0012 ] tegrasign_v2 --key None --getmode mode.txt
[ 0.0019 ] Assuming zero filled SBK key
[ 0.0037 ]
[ 0.0037 ] Generating RCM messages
[ 0.0048 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x18 0 --download rcm mb1_recovery_prod.bin 0 0
[ 0.0053 ] RCM 0 is saved as rcm_0.rcm
[ 0.0063 ] RCM 1 is saved as rcm_1.rcm
[ 0.0063 ] List of rcm files are saved in rcm_list.xml
[ 0.0063 ]
[ 0.0063 ] Signing RCM messages
[ 0.0069 ] tegrasign_v2 --key None --list rcm_list.xml --pubkeyhash pub_key.key
[ 0.0074 ] Assuming zero filled SBK key
[ 0.0098 ]
[ 0.0098 ] Copying signature to RCM mesages
[ 0.0104 ] tegrarcm_v2 --chip 0x18 0 --updatesig rcm_list_signed.xml
[ 0.0113 ]
[ 0.0113 ] Parsing partition layout
[ 0.0122 ] tegraparser_v2 --pt flash.xml.tmp
[ 0.0138 ]
[ 0.0138 ] Creating list of images to be signed
[ 0.0149 ] tegrahost_v2 --chip 0x18 0 --partitionlayout flash.xml.bin --list images_list.xml zerosbk
[ 0.0379 ]
[ 0.0379 ] Generating signatures
[ 0.0387 ] tegrasign_v2 --key None --list images_list.xml --pubkeyhash pub_key.key
[ 0.0392 ] Assuming zero filled SBK key
[ 0.2418 ]
[ 0.2419 ] Generating br-bct
[ 0.2434 ] Updating dev and MSS params in BR BCT
[ 0.2435 ] tegrabct_v2 --dev_param emmc.cfg --sdram P3310_A00_8GB_Samsung_8GB_lpddr4_204Mhz_A02_l4t.cfg --brbct br_bct.cfg --chip 0x18 0
[ 0.2575 ]
[ 0.2575 ] Updating bl info
[ 0.2582 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x18 0 --updateblinfo flash.xml.bin --updatesig images_list_signed.xml
[ 0.2595 ]
[ 0.2595 ] Updating smd info
[ 0.2601 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x18 --updatesmdinfo flash.xml.bin
[ 0.2609 ]
[ 0.2610 ] Updating Odmdata
[ 0.2616 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x18 0 --updatefields Odmdata =0x1090000
[ 0.2623 ]
[ 0.2624 ] Get Signed section of bct
[ 0.2629 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x18 0 --listbct bct_list.xml
[ 0.2636 ]
[ 0.2642 ] tegrasign_v2 --key None --list bct_list.xml --pubkeyhash pub_key.key
[ 0.2648 ] Assuming zero filled SBK key
[ 0.2650 ]
[ 0.2650 ] Updating BCT with signature
[ 0.2656 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x18 0 --updatesig bct_list_signed.xml
[ 0.2664 ]
[ 0.2664 ] Generating coldboot mb1-bct
[ 0.2670 ] tegrabct_v2 --chip 0x18 0 --mb1bct mb1_cold_boot_bct.cfg --sdram P3310_A00_8GB_Samsung_8GB_lpddr4_204Mhz_A02_l4t.cfg --misc tegra186-mb1-bct-misc-si-l4t.cfg --scr mobile_scr.cfg --pinmux tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg --pmc tegra186-mb1-bct-pad-quill-p3310-1000-c03.cfg --pmic tegra186-mb1-bct-pmic-quill-p3310-1000-c04.cfg --brcommand tegra186-mb1-bct-bootrom-quill-p3310-1000-c03.cfg --prod tegra186-mb1-bct-prod-quill-p3310-1000-c03.cfg
[ 0.2676 ] MB1-BCT version: 0xf
[ 0.2678 ] Copying Sdram info from 2 to 3 set
[ 0.2793 ] Packing sdram param for instance[0]
[ 0.2795 ] Packing sdram param for instance[1]
[ 0.2797 ] Packing sdram param for instance[2]
[ 0.2799 ] Packing sdram param for instance[3]

[ 0.2801 ] Parsing config file :tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg
[ 0.2805 ] Appending platform config data of size :- 3048

[ 0.2808 ] Parsing config file :mobile_scr.cfg
[ 0.2810 ] Appending platform config data of size :- 12240

[ 0.2817 ] Parsing config file :tegra186-mb1-bct-pad-quill-p3310-1000-c03.cfg
[ 0.2820 ] Appending platform config data of size :- 24

[ 0.2822 ] Parsing config file :tegra186-mb1-bct-pmic-quill-p3310-1000-c04.cfg
[ 0.2825 ] Appending platform config data of size :- 648
[ 0.2825 ]
[ 0.2825 ] Parsing config file :tegra186-mb1-bct-bootrom-quill-p3310-1000-c03.cfg
[ 0.2825 ] Appending platform config data of size :- 64
[ 0.2826 ]
[ 0.2826 ] Parsing config file :tegra186-mb1-bct-prod-quill-p3310-1000-c03.cfg
[ 0.2826 ] Appending platform config data of size :- 1628
[ 0.2826 ]
[ 0.2826 ] Updating mb1-bct with firmware information
[ 0.2832 ] tegrabct_v2 --chip 0x18 --mb1bct mb1_cold_boot_bct_MB1.bct --updatefwinfo flash.xml.bin
[ 0.2838 ] MB1-BCT version: 0xf
[ 0.2840 ]
[ 0.2840 ] Updating mb1-bct with storage information
[ 0.2845 ] tegrabct_v2 --chip 0x18 --mb1bct mb1_cold_boot_bct_MB1.bct --updatestorageinfo flash.xml.bin
[ 0.2851 ] MB1-BCT version: 0xf
[ 0.2853 ]
[ 0.2858 ] tegrahost_v2 --chip 0x18 --align mb1_cold_boot_bct_MB1.bct
[ 0.2865 ]
[ 0.2871 ] tegrahost_v2 --appendsigheader mb1_cold_boot_bct_MB1.bct zerosbk
[ 0.2877 ]
[ 0.2885 ] tegrasign_v2 --key None --list mb1_cold_boot_bct_MB1_sigheader.bct_list.xml
[ 0.2890 ] Assuming zero filled SBK key
[ 0.2902 ]
[ 0.2911 ] tegrahost_v2 --updatesigheader mb1_cold_boot_bct_MB1_sigheader.bct.encrypt mb1_cold_boot_bct_MB1_sigheader.bct.hash zerosbk
[ 0.2918 ]
[ 0.2918 ] Generating recovery mb1-bct
[ 0.2924 ] tegrabct_v2 --chip 0x18 0 --mb1bct mb1_bct.cfg --sdram P3310_A00_8GB_Samsung_8GB_lpddr4_204Mhz_A02_l4t.cfg --misc tegra186-mb1-bct-misc-si-l4t.cfg --scr minimal_scr.cfg --pinmux tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg --pmc tegra186-mb1-bct-pad-quill-p3310-1000-c03.cfg --pmic tegra186-mb1-bct-pmic-quill-p3310-1000-c04.cfg --brcommand tegra186-mb1-bct-bootrom-quill-p3310-1000-c03.cfg --prod tegra186-mb1-bct-prod-quill-p3310-1000-c03.cfg
[ 0.2930 ] MB1-BCT version: 0xf
[ 0.2931 ] Copying Sdram info from 2 to 3 set
[ 0.3048 ] Packing sdram param for instance[0]
[ 0.3050 ] Packing sdram param for instance[1]
[ 0.3052 ] Packing sdram param for instance[2]
[ 0.3054 ] Packing sdram param for instance[3]

[ 0.3056 ] Parsing config file :tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg
[ 0.3058 ] Appending platform config data of size :- 3048

[ 0.3061 ] Parsing config file :minimal_scr.cfg
[ 0.3062 ] Appending platform config data of size :- 12240

[ 0.3073 ] Parsing config file :tegra186-mb1-bct-pad-quill-p3310-1000-c03.cfg
[ 0.3076 ] Appending platform config data of size :- 24
[ 0.3076 ]
[ 0.3076 ] Parsing config file :tegra186-mb1-bct-pmic-quill-p3310-1000-c04.cfg
[ 0.3076 ] Appending platform config data of size :- 648
[ 0.3076 ]
[ 0.3076 ] Parsing config file :tegra186-mb1-bct-bootrom-quill-p3310-1000-c03.cfg
[ 0.3076 ] Appending platform config data of size :- 64
[ 0.3076 ]
[ 0.3076 ] Parsing config file :tegra186-mb1-bct-prod-quill-p3310-1000-c03.cfg
[ 0.3076 ] Appending platform config data of size :- 1628
[ 0.3076 ]
[ 0.3076 ] Updating mb1-bct with firmware information
[ 0.3082 ] tegrabct_v2 --chip 0x18 --mb1bct mb1_bct_MB1.bct --updatefwinfo flash.xml.bin
[ 0.3088 ] MB1-BCT version: 0xf
[ 0.3090 ]
[ 0.3090 ] Updating mb1-bct with storage information
[ 0.3096 ] tegrabct_v2 --chip 0x18 --mb1bct mb1_bct_MB1.bct --updatestorageinfo flash.xml.bin
[ 0.3102 ] MB1-BCT version: 0xf
[ 0.3104 ]
[ 0.3110 ] tegrahost_v2 --chip 0x18 --align mb1_bct_MB1.bct
[ 0.3116 ]
[ 0.3121 ] tegrahost_v2 --appendsigheader mb1_bct_MB1.bct zerosbk
[ 0.3128 ]
[ 0.3136 ] tegrasign_v2 --key None --list mb1_bct_MB1_sigheader.bct_list.xml
[ 0.3143 ] Assuming zero filled SBK key
[ 0.3155 ]
[ 0.3164 ] tegrahost_v2 --updatesigheader mb1_bct_MB1_sigheader.bct.encrypt mb1_bct_MB1_sigheader.bct.hash zerosbk
[ 0.3171 ]
[ 0.3171 ] Copying signatures
[ 0.3178 ] tegrahost_v2 --chip 0x18 0 --partitionlayout flash.xml.bin --updatesig images_list_signed.xml
[ 0.3338 ]
[ 0.3339 ] Boot Rom communication
[ 0.3346 ] tegrarcm_v2 --chip 0x18 0 --rcm rcm_list_signed.xml
[ 0.3352 ] BootRom is not running
[ 5.6988 ]
[ 6.7034 ] tegrarcm_v2 --isapplet
^CTraceback (most recent call last):
File “./tegraflash.py”, line 1280, in
tegraflash_run_commands()
File “./tegraflash.py”, line 1149, in tegraflash_run_commands
interpreter.onecmd(command)
File “/usr/lib/python2.7/cmd.py”, line 221, in onecmd
return func(arg)
File “./tegraflash.py”, line 209, in do_flash
tegraflash_flash(exports)
File “/home/kk/nvidia/nvidia_sdk/JetPack_4.2.2_Linux_GA_P3310/Linux_for_Tegra/bootloader/tegraflash_internal.py”, line 261, in tegraflash_flash
tegraflash_send_tboot(tegrarcm_values[’–signed_list’])
File “/home/kk/nvidia/nvidia_sdk/JetPack_4.2.2_Linux_GA_P3310/Linux_for_Tegra/bootloader/tegraflash_internal.py”, line 2119, in tegraflash_send_tboot
tegraflash_poll_applet_bl()
File “/home/kk/nvidia/nvidia_sdk/JetPack_4.2.2_Linux_GA_P3310/Linux_for_Tegra/bootloader/tegraflash_internal.py”, line 2223, in tegraflash_poll_applet_bl
if check_ismb1() or check_ismb2() or check_iscpubl():
File “/home/kk/nvidia/nvidia_sdk/JetPack_4.2.2_Linux_GA_P3310/Linux_for_Tegra/bootloader/tegraflash_internal.py”, line 2162, in check_ismb1
run_command(command)
File “/home/kk/nvidia/nvidia_sdk/JetPack_4.2.2_Linux_GA_P3310/Linux_for_Tegra/bootloader/tegraflash_internal.py”, line 195, in run_command
log = print_process(process, enable_print)
File “/home/kk/nvidia/nvidia_sdk/JetPack_4.2.2_Linux_GA_P3310/Linux_for_Tegra/bootloader/tegraflash_internal.py”, line 155, in print_process
output = process.stdout.read(1)
KeyboardInterrupt
Failed flashing t186ref.

If I wait for an hour approximately it goes in a loop with following messagies:

[ 6.9150 ] tegrarcm_v2 --isapplet
[ 1015.1311 ]
[ 1015.1418 ] tegradevflash_v2 --iscpubl
[ 1015.1448 ] CPU Bootloader is not running on device.
[ 2030.9394 ]
[ 2031.9441 ] tegrarcm_v2 --isapplet
[ 3046.7496 ]
[ 3046.7528 ] tegradevflash_v2 --iscpubl
[ 3046.7555 ] CPU Bootloader is not running on device.
[ 4062.5545 ]
[ 4063.5585 ] tegrarcm_v2 --isapplet

Hi KvK,

Please try flash by manually:

$ cd /home/kk/nvidia/nvidia_sdk/JetPack_4.2.2_Linux_GA_P3310/Linux_for_Tegra
Put device into recovery mode
$ sudo ./flash jetson-tx2 mmcblk0p1

Similar Topic-1062603

Hi KvK,

Please dump the log I asked on topic 1062603 and share it. Thanks.

Thank you WayneWWW.

Flashing log listed above was done using the command you indicated:
$ sudo ./flash.sh jetson-tx2 mmcblk0p1

I will dump the log as soon as I reach the office (most probably on Monday next week).

Hi KvK,

Unfortunately the log above is not enough for us to debug. We need the log from uart.
Thanks.

Hi Kvk,

Have you dump the log from uart or you have fixed the issue? Any result can be shared?

Hi kayccc, thanks a lot for following the issue!

Because of Coronavirus I can’t reach the office and do the work remotely at the moment. Unfortunately I left Jetson TX2 there. As soon as pandemics goes down I’ll do the log as promised.

Apparently problem was hardware related. I did flash from PC instead of laptop and flashing procedure finished with no issues. For some reason Dell G3 laptop was was no good for the task.
After installation I got another problem, no mouse or keyboard can be used for system configuration because of USB port issue:
tegra-xusb-padctrl 3520000.xusb_padctl: failed to setup XUSB ports:-517

Is this a custom carrier board? Please refer to our L4t development guide to know how to use “oem-config” to configure the user account without montior/usb.

Thanks a lot for your help. Problem was solved with installing firmware from auvidea.