TX2 flashing : CPU Bootloader is not running on device. Error: Return value 4

I use JetPack 3.1 on a host with Ubuntu 14.04.05 on an external USB disk with my very new Jetson TX2

I succeeded to flash but now i failed with error “CPU Bootloader is not running on device. Error: Return value 4”

I read a lot of similar question but i do not found a solution : I have no VM, i try many times

Could it be a hardware failure ? how could i test ?

Do be sure your USB disk is formatted as ext4, not NTFS or VFAT. This would not have caused the bootloader message, but would cause a success to not really be a success.

The connection is over the micro-B USB cable. If this is not the one shipping with the dev kit, then it may be you have the type micro-A instead, or worse…a charger cable with a wire missing.

If this is over a USB HUB, try direct, or on a different port.

To know if there is basic functionality, make sure the Jetson is in recovery mode, then run this from the host (there should be some output):

lsusb -d 0955:7c18

If this fails, then the Jetson can’t even be seen over USB. If this shows something, then there may still be signal or configuration issues, but basics are in place.

My USB disk is formatted as ext4

I use the micro-B USB cable provided with the dev kit

I try with and without a usb hub, on different port

Jetson is in recovery mode : lsusb -d 0955:7c18 give a NVIDIA line

You may want to completely delete the host’s current JetPack or L4T directory and get a new copy just to be certain. If this doesn’t do the job, then probably looking at the results while flashing on command line would be useful (you’d download the driver package and sample rootfs, unpack the driver package as a regular user, unpack sample rootfs with sudo into the “Linux_for_Tegra/rootfs/” subdirectory, run “sudo ./apply_binaries.sh” from the “Linux_for_Tegra/” directory, and then as root do the flash:

sudo ./flash.sh -S 29318MiB jetson-tx2 mmcblk0p1

You could log the flash:

sudo ./flash.sh -S 29318MiB jetson-tx2 mmcblk0p1 2>&1 | tee flash_log.txt

…or to have a smaller log without the full progress bar being logged for every time it updates:

sudo ./flash.sh -S 29318MiB jetson-tx2 mmcblk0p1 2>&1 | gawk '{gsub("[0-9][0-9]+[/][0-9[0-9]+ bytes sent..",".");print}' | tee flash_log.txt

Thanks for helping me!

I redo flash and I spy serial console (J21/8 and J21/10, maybe more interesting so i put it fisrt) :

Serial console :

[0000.185] I> Welcome to MB2(TBoot-BPMP)(version: 01.00.160913-t186-M-00.00-mob)
[0000.193] I> Default Heap @ [0xd486400 - 0xd488400]
[0000.198] I> DMA Heap @ [0x84a00000 - 0x85300000]
[0000.202] I> bit @ 0xd480000
[0000.205] I> BR-BCT relocated to 0xd7220000
[0000.209] I> Boot-device: eMMC
[0000.213] I> sdmmc bdev is already initialized
[0000.218] I> pmic: reset reason (nverc) : 0x84
[0000.222] I> Reading GPT from 512 for device 00000003
[0000.228] I> Reading GPT from 8388096 for device 00000003
[0000.235] I> Found 6 partitions in 00000003 device
[0000.240] I> Reading GPT from 512 for device 00010003
[0000.246] I> Found 17 partitions in 00010003 device
[0000.252] W> No valid slot number is found in scratch register
[0000.257] W> Return default slot: _a
[0000.261] I> A/B: bin_type (16) slot 0
[0000.264] I> Loading partition bpmp-fw at 0xd7800000
[0000.269] I> Reading two headers - addr:0xd7800000 blocks:1
[0000.275] I> Addr: 0xd7800000, start-block: 58740229, num_blocks: 1
[0000.290] I> Binary(16) of size 528400 is loaded @ 0xd7800000
[0000.295] W> No valid slot number is found in scratch register
[0000.301] W> Return default slot: _a
[0000.304] I> A/B: bin_type (17) slot 0
[0000.308] I> Loading partition bpmp-fw-dtb at 0xd79f0000
[0000.313] I> Reading two headers - addr:0xd79f0000 blocks:1
[0000.319] I> Addr: 0xd79f0000, start-block: 58741437, num_blocks: 1
[0000.332] I> Binary(17) of size 465760 is loaded @ 0xd798e200
[0000.510] I> BPMP-FW load address = 0xd7800000
[0000.514] I> BPMP-FW DTB load address = 0x5018e200
[0000.519] I> Loading SCE-FW …
[0000.522] W> No valid slot number is found in scratch register
[0000.528] W> Return default slot: _a
[0000.531] I> A/B: bin_type (12) slot 0
[0000.535] I> Loading partition sce-fw at 0xd7300000
[0000.539] I> Reading two headers - addr:0xd7300000 blocks:1
[0000.545] I> Addr: 0xd7300000, start-block: 58742437, num_blocks: 1
[0000.554] I> Binary(12) of size 76592 is loaded @ 0xd7300000
[0000.559] I> Init SCE
[0000.561] I> Copy BTCM section
[0000.564] W> No valid slot number is found in scratch register
[0000.570] W> Return default slot: _a
[0000.573] I> A/B: bin_type (13) slot 0
[0000.577] I> Loading partition cpu-bootloader at 0x96000000
[0000.583] I> Reading two headers - addr:0x96000000 blocks:1
[0000.588] I> Addr: 0x96000000, start-block: 58732545, num_blocks: 1
[0000.598] I> Binary(13) of size 221728 is loaded @ 0x96000000
[0000.604] W> No valid slot number is found in scratch register
[0000.610] W> Return default slot: _a
[0000.613] I> A/B: bin_type (20) slot 0
[0000.617] I> Loading partition bootloader-dtb at 0x85300000
[0000.622] I> Reading two headers - addr:0x85300000 blocks:1
[0000.628] I> Addr: 0x85300000, start-block: 58733057, num_blocks: 1
[0000.639] I> Binary(20) of size 267952 is loaded @ 0x85300000
[0000.645] I> MB2-params(VA) @ 0xd7200000
[0000.648] I> CPUBL-params(VA) @ 0xd7200000
[0000.652] I> CPUBL-params¶ @ 0x277200000
[0000.657] I> CPU-BL loaded @ PA 0x96000000
[0000.661] I> Loading TOS …
[0000.663] W> No valid slot number is found in scratch register
[0000.669] W> Return default slot: _a
[0000.672] I> A/B: bin_type (14) slot 0
[0000.676] I> Loading partition secure-os at 0x84a0f400
[0000.681] I> Reading two headers - addr:0x84a0f400 blocks:1
[0000.686] I> Addr: 0x84a0f400, start-block: 58734081, num_blocks: 1
[0000.695] I> Binary(14) of size 58480 is loaded @ 0x84a0f400
[0000.701] I> Copying Monitor (length: 0xe270) from 0x84a0f600 to 0x40000000
[0000.708] I> Erasing Monitor @ 0x84a0f600
[0000.712] I> Unhalting SCE
[0000.715] I> Primary Memory Start:80000000 Size:70000000
[0000.720] I> Extended Memory Start:f0110000 Size:185ef0000
[0000.726] I> Waypoint2-ACK: 0x520120b0
[0000.730] I> MB2(TBoot-BPMP) done

[0004.631] I> Welcome to MB1-recovery(prd-version : 12.01.170704-t186-M-00.00-1)
[0004.639] I> rst_source : 0x0
[0004.641] I> rst_level : 0x0
[0004.644] I> Read lock all AES keyslots
[0004.648] I> Read lock all RSA keyslots
[0004.652] I> Clear SE keyslots left open by BR
[0004.656] I> Boot-device: eMMC
[0004.679] I> sdmmc ddr50 mode
[0004.683] I> Entering into 3p server…
[0004.687] I> Transport interface is USB
[0004.690] I> tegrabl_usbf_priv_init:2576 full init:: [0004.695] I> HIGH SPEED
[0005.096] W> Get desc.Unsupported req: desc_index = 0
[0005.102] I> transport_usbf_priv_open USB configuration success
[0005.643] I> Populate eeprom info for module cvm
[0478.172] I> bit @ 0xd480000
[0478.175] I> Downloading bct_bootrom at 0x000000004004e800
[0478.182] I> downloaded image bct_bootrom successfully
[0478.189] I> Downloading bct_mb1 at 0x0000000040041000
[0478.198] I> MB1-BCT relocated to 0xd48bc00 from 0x40041000
[0478.204] I> Supported mb1-bct versions 9-14
[0478.208] I> Version of mb1 bct binary 14
[0478.212] W> MB1 BCT does not have controller prod config data
[0478.218] I> Bootrom patch version : 31 (correctly patched)
[0478.223] I> ATE fuse revision : 0x510a0
[0478.227] I> chip revision : A02P
[0478.230] I> disabled_core_mask: 0xffffff0c
[0478.234] I> Enabled Cores: 0xf3
[0478.237] I> TPC disable fuse status: 0
[0478.241] I> Booting Parker Sku
[0478.244] I> Ram repair fuse : 0x0
[0478.247] I> Mem length:2000
[0478.250] I> tegrabl_ast_init_mapper: AST-cache dump
[0478.255] I> allocated(CO:30) base:0x278000000 size:0x8000000 align: 0x8000000
[0478.262] I> allocated(CO:23) base:0xf0100000 size:0x10000 align: 0x10000
[0478.269] I> allocated(CO:31) base:0x0 size:0x0 align: 0x0
[0478.274] I> allocated(CO:1) base:0x277f00000 size:0x100000 align: 0x100000
[0478.281] I> allocated(CO:2) base:0x277e00000 size:0x100000 align: 0x100000
[0478.288] I> allocated(CO:3) base:0x277d00000 size:0x100000 align: 0x100000
[0478.295] I> allocated(CO:4) base:0x277c00000 size:0x100000 align: 0x100000
[0478.302] I> allocated(CO:5) base:0x277b00000 size:0x100000 align: 0x100000
[0478.309] I> allocated(CO:27) base:0x0 size:0x0 align: 0x0
[0478.314] I> allocated(CO:6) base:0x277800000 size:0x200000 align: 0x200000
[0478.321] I> allocated(CO:7) base:0x277400000 size:0x400000 align: 0x400000
[0478.328] I> allocated(CO:8) base:0x277a00000 size:0x100000 align: 0x100000
[0478.335] I> allocated(CO:9) base:0x277300000 size:0x100000 align: 0x100000
[0478.342] I> allocated(CO:10) base:0x276800000 size:0x800000 align: 0x800000
[0478.349] I> allocated(CO:11) base:0x30000000 size:0x40000 align: 0x0
[0478.355] I> allocated(CO:12) base:0xf0000000 size:0x100000 align: 0x100000
[0478.362] I> allocated(CO:13) base:0x30040000 size:0x1000 align: 0x0
[0478.368] I> allocated(CO:14) base:0x30048000 size:0x1000 align: 0x0
[0478.374] I> allocated(CO:15) base:0x30049000 size:0x1000 align: 0x0
[0478.381] I> allocated(CO:16) base:0x3004a000 size:0x1000 align: 0x0
[0478.387] I> allocated(CO:17) base:0x3004b000 size:0x1000 align: 0x0
[0478.393] I> allocated(CO:19) base:0x3004d000 size:0x1000 align: 0x0
[0478.399] I> allocated(CO:18) base:0x3004c000 size:0x1000 align: 0x0
[0478.406] I> allocated(CO:20) base:0x3004e000 size:0x1000 align: 0x0
[0478.412] I> allocated(CO:21) base:0x3004f000 size:0x1000 align: 0x0
[0478.418] I> allocated(CO:22) base:0x0 size:0x0 align: 0x0
[0478.424] I> allocated(CO:32) base:0x276000000 size:0x600000 align: 0x400000
[0478.431] I> allocated(CO:24) base:0x0 size:0x0 align: 0x0
[0478.436] I> allocated(CO:25) base:0x0 size:0x0 align: 0x0
[0478.441] I> allocated(CO:26) base:0x0 size:0x0 align: 0x0
[0478.447] I> allocated(CO:39) base:0x96000000 size:0x2000000 align: 0x2000000
[0478.454] I> allocated(CO:38) base:0x84000000 size:0x400000 align: 0x400000
[0478.461] I> allocated(CO:37) base:0x2772e0000 size:0x20000 align: 0x20000
[0478.467] I> allocated(CO:40) base:0x84800000 size:0xb00000 align: 0x800000
[0478.474] I> allocated(CO:41) base:0x277200000 size:0x80000 align: 0x80000
[0478.481] I> allocated(CO:28) base:0x84400000 size:0x400000 align: 0x400000
[0478.489] I> Boot-device: eMMC
[0478.492] I> sdmmc bdev is already initialized
[0478.496] W> MB1 PMIC CFG is version 1.2
[0478.500] W> Rail ID 7 is not found on MB1 BCT
[0478.504] W> MB1 PMIC CFG is version 1.2
[0478.511] W> MB1 PMIC CFG is version 1.2
[0478.518] W> MB1 PMIC CFG is version 1.2
[0478.522] I> sdram slot : 1
[0478.525] I> Initializing SDRAM
[0478.531] I> mss encrypt status check successful
[0478.536] I> downloaded image bct_mb1 successfully
[0478.794] I> Downloading blob at 0x0000000085300000
[0479.203] I> downloaded image blob successfully
[0479.214] I> exiting nv3p server
[0479.217] I> MB1-recovery(prd-version : 12.01.170704-t186-M-00.00-17d56c3b)
[0479.224] I> disabled_core_mask: 0xffffff0c
[0479.229] I> Enabled Cores: 0xf3
[0479.232] I> TPC disable fuse status: 0
[0479.235] I> Booting Parker Sku
[0479.238] I> Setup temp. GSC#29 (base:0x30000000, size:0x00010000)
[0479.244] I> Loading preboot
[0479.249] I> Binary(1) of size 60672 is loaded @ 0x40000000
[0479.255] I> Restrict GSC#29 access to DPMU only
[0479.259] I> Updated LSR_DVCOMP_PARAMS: 0xc07c0f85c
[0479.264] I> Updated LSR_DVCOMP_PARAMS: 0xc0801005c
[0479.269] I> WP0 triggered
[0479.271] I> Waypoint-0 ACK received :)
[0479.275] I> WP0.5 triggered
[0479.279] I> Initialized SCRs
[0479.281] W> MB1 PMIC CFG is version 1.2
[0479.289] W> MB1 PMIC CFG is version 1.2
[0479.340] I> Waypoint-0.5 ACK received :)
[0479.344] I> Setup temp. GSC#28 (base:0x84400000, size:0x00400000)
[0479.350] I> Loading MTS-DMCE
[0479.363] I> Binary(2) of size 266112 is loaded @ 0x84400000
[0479.369] I> disabled_core_mask: 0xffffff0c
[0479.373] I> Loading MTS-PROPER
[0479.376] I> Binary(3) of size 1810128 is loaded @ 0x0
[0479.381] I> Restrict GSC#28 access to DPMU only
[0479.386] I> disabled_core_mask: 0xffffff0c
[0479.390] I> WP1 triggered
[0479.392] I> Loading MB2
[0479.395] I> Binary(8) of size 77680 is loaded @ 0x84000000
[0479.401] W> MB1 PMIC CFG is version 1.2
[0479.406] I> Configure DMCE carveout GSC#13
[0479.410] I> CPU reset vector: 0x96000000
[0479.414] I> MB2-params @ 0xd7200000
[0479.418] I> Waypoint-1 ACK received :)
[0479.422] I> Configure SC7 carveout GSC#23
[0479.426] I> MB1 (recovery) done

[0479.432] I> Welcome to MB2(TBoot-BPMP) Recovery(version: 01.00.160913-t186-M-)
[0479.441] I> Default Heap @ [0xd486400 - 0xd488400]
[0479.446] I> DMA Heap @ [0x84a00000 - 0x85300000]
[0479.451] I> bit @ 0xd480000
[0479.454] I> BR-BCT relocated to 0xd7220000
[0479.458] I> Boot-device: eMMC
[0479.462] I> sdmmc bdev is already initialized
[0479.466] I> pmic: reset reason (nverc) : 0x80
[0479.471] I> Reading GPT from 512 for device 00000003
[0479.477] I> Reading GPT from 8388096 for device 00000003
[0479.484] I> Found 6 partitions in 00000003 device
[0479.488] I> Reading GPT from 512 for device 00010003
[0479.495] I> Found 17 partitions in 00010003 device
[0479.503] I> Binary(16) of size 528400 is loaded @ 0xd7800000
[0479.511] I> Binary(17) of size 465760 is loaded @ 0xd798e4a0
[0479.689] I> BPMP-FW load address = 0xd7800000
[0479.693] I> BPMP-FW DTB load address = 0x5018e4a0
[0479.698] I> Copy BTCM section
[0479.702] I> Binary(13) of size 184176 is loaded @ 0x96000000
[0479.709] I> Binary(20) of size 267952 is loaded @ 0x85690000
[0479.715] I> MB2-params(VA) @ 0xd7200000
[0479.718] I> CPUBL-params(VA) @ 0xd7200000
[0479.722] I> CPUBL-params¶ @ 0x277200000
[0479.727] I> CPU-BL loaded @ PA 0x96000000
[0479.731] I> Loading TOS …
[0479.734] I> Binary(14) of size 58480 is loaded @ 0x84a0f400
[0479.740] I> Copying Monitor (length: 0xe270) from 0x84a0f600 to 0x40000000
[0479.747] I> Erasing Monitor @ 0x84a0f600
[0479.751] I> Unhalting SCE
[0479.754] I> Primary Memory Start:80000000 Size:70000000
[0479.759] I> Extended Memory Start:f0110000 Size:185ef0000
[0479.766] I> Waypoint2-ACK: 0x5200ee9c
[0479.769] I> MB2(TBoot-BPMP) Recovery done

Flash log :

./tegraflash.py --chip 0x18 --applet “/home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/mb1_recovery_prod.bin” --cmd “dump eeprom boardinfo cvm.bin” --skipuid
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.0016 ] Generating RCM messages
[ 0.0025 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x18 --download rcm /home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/mb1_recovery_prod.bin 0 0
[ 0.0032 ] RCM 0 is saved as rcm_0.rcm
[ 0.0036 ] RCM 1 is saved as rcm_1.rcm
[ 0.0036 ] List of rcm files are saved in rcm_list.xml
[ 0.0036 ]
[ 0.0037 ] Signing RCM messages
[ 0.0044 ] tegrasign_v2 --key None --list rcm_list.xml --pubkeyhash pub_key.key
[ 0.0052 ] Assuming zero filled SBK key
[ 0.0088 ]
[ 0.0088 ] Copying signature to RCM mesages
[ 0.0095 ] tegrarcm_v2 --chip 0x18 --updatesig rcm_list_signed.xml
[ 0.0105 ]
[ 0.0105 ] Boot Rom communication
[ 0.0113 ] tegrarcm_v2 --chip 0x18 --rcm rcm_list_signed.xml --skipuid
[ 0.0120 ] RCM version 0X180001
[ 0.0128 ] Boot Rom communication completed
[ 1.0193 ]
[ 1.0204 ] tegrarcm_v2 --isapplet
[ 1.0213 ] Applet version 01.00.0000
[ 1.0238 ]
[ 1.0262 ] Retrieving EEPROM data
[ 1.0264 ] tegrarcm_v2 --oem platformdetails eeprom cvm /home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/cvm.bin
[ 1.0288 ] Applet version 01.00.0000
[ 1.0319 ] Saved platform info in /home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/cvm.bin
[ 1.1097 ]
Board ID(3310) version(B02)
copying bctfile(/home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/t186ref/BCT/P3310_A00_8GB_Samsung_8GB_lpddr4_204Mhz_A02_l4t.cfg)… done.
copying misc_config(/home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/t186ref/BCT/tegra186-mb1-bct-misc-si-l4t.cfg)… done.
copying pinmux_config(/home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/t186ref/BCT/tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg)… done.
copying pmic_config(/home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/t186ref/BCT/tegra186-mb1-bct-pmic-quill-p3310-1000-c04.cfg)… done.
copying pmc_config(/home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/t186ref/BCT/tegra186-mb1-bct-pad-quill-p3310-1000-c03.cfg)… done.
copying prod_config(/home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/t186ref/BCT/tegra186-mb1-bct-prod-quill-p3310-1000-c03.cfg)… done.
copying scr_config(/home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/t186ref/BCT/minimal_scr.cfg)… done.
copying scr_cold_boot_config(/home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/t186ref/BCT/mobile_scr.cfg)… done.
copying bootrom_config(/home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/t186ref/BCT/tegra186-mb1-bct-bootrom-quill-p3310-1000-c03.cfg)… done.
copying dev_params(/home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/t186ref/BCT/emmc.cfg)… done.
Existing bootloader(/home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/nvtboot_cpu.bin) reused.
populating kernel to rootfs… done.
populating initrd to rootfs… done.
populating extlinux.conf.emmc to rootfs… done.
populating /home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/kernel/dtb/tegra186-quill-p3310-1000-c03-00-base.dtb to rootfs… done.
done.
Making Boot image… done.
Existing sosfile(/home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/mb1_recovery_prod.bin) reused.
copying tegraboot(/home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/t186ref/nvtboot.bin)… done.
Existing mb2blfile(/home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/nvtboot_recovery.bin) reused.
Existing mtspreboot(/home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/preboot_d15_prod_cr.bin) reused.
Existing mts(/home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/mce_mts_d15_prod_cr.bin) reused.
Existing mb1file(/home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/mb1_prod.bin) reused.
Existing bpffile(/home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/bpmp.bin) reused.
copying bpfdtbfile(/home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/t186ref/tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2.dtb)… done.
Existing scefile(/home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/camera-rtcpu-sce.bin) reused.
Existing spefile(/home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/spe.bin) reused.
copying wb0boot(/home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/t186ref/warmboot.bin)… done.
Existing tosfile(/home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/tos.img) reused.
Existing eksfile(/home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/eks.img) reused.
copying dtbfile(/home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/kernel/dtb/tegra186-quill-p3310-1000-c03-00-base.dtb)… done.
Making system.img…
populating rootfs from /home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/rootfs … done.
Sync’ing system.img … done.
Converting RAW image to Sparse image…

---- Raw to Sparse Image Converter v1.0 ----------------------------
0: RAW: 4239360( 1035 blks) ==> 28:4239372

2756: RAW: 4096( 1 blks) ==> 3376476492:4108
2757: SKP: 677355520( 165370 blks) ==> 3376480600:12
– Total: -----------------------------------------------------------
2758 CHUNK 30742151168(7505408 blks) ==> 3376480612(824328 blks)

done.
system.img built successfully.
Existing tbcfile(/home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/cboot.bin) reused.
copying tbcdtbfile(/home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/kernel/dtb/tegra186-quill-p3310-1000-c03-00-base.dtb)… done.
copying cfgfile(/home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/t186ref/cfg/flash_l4t_t186.xml) to flash.xml… done.
Existing flasher(/home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/nvtboot_recovery_cpu.bin) reused.
Existing flashapp(/home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/tegraflash.py) reused.
./tegraflash.py --bl nvtboot_recovery_cpu.bin --sdram_config P3310_A00_8GB_Samsung_8GB_lpddr4_204Mhz_A02_l4t.cfg --odmdata 0x1090000 --applet mb1_recovery_prod.bin --cmd “flash; reboot” --cfg flash.xml --chip 0x18 --misc_config tegra186-mb1-bct-misc-si-l4t.cfg --pinmux_config tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg --pmic_config tegra186-mb1-bct-pmic-quill-p3310-1000-c04.cfg --pmc_config tegra186-mb1-bct-pad-quill-p3310-1000-c03.cfg --prod_config tegra186-mb1-bct-prod-quill-p3310-1000-c03.cfg --scr_config minimal_scr.cfg --scr_cold_boot_config mobile_scr.cfg --br_cmd_config tegra186-mb1-bct-bootrom-quill-p3310-1000-c03.cfg --dev_params emmc.cfg --bins “mb2_bootloader nvtboot_recovery.bin; mts_preboot preboot_d15_prod_cr.bin; mts_bootpack mce_mts_d15_prod_cr.bin; bpmp_fw bpmp.bin; bpmp_fw_dtb tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2.dtb; tlk tos.img; eks eks.img; bootloader_dtb tegra186-quill-p3310-1000-c03-00-base.dtb”
saving flash command in /home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/flashcmd.txt
./tegraflash.py --bl nvtboot_recovery_cpu.bin --sdram_config P3310_A00_8GB_Samsung_8GB_lpddr4_204Mhz_A02_l4t.cfg --odmdata 0x1090000 --applet mb1_recovery_prod.bin --cmd “flash; reboot” --cfg flash.xml --chip 0x18 --misc_config tegra186-mb1-bct-misc-si-l4t.cfg --pinmux_config tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg --pmic_config tegra186-mb1-bct-pmic-quill-p3310-1000-c04.cfg --pmc_config tegra186-mb1-bct-pad-quill-p3310-1000-c03.cfg --prod_config tegra186-mb1-bct-prod-quill-p3310-1000-c03.cfg --scr_config minimal_scr.cfg --scr_cold_boot_config mobile_scr.cfg --br_cmd_config tegra186-mb1-bct-bootrom-quill-p3310-1000-c03.cfg --dev_params emmc.cfg --bins “mb2_bootloader nvtboot_recovery.bin; mts_preboot preboot_d15_prod_cr.bin; mts_bootpack mce_mts_d15_prod_cr.bin; bpmp_fw bpmp.bin; bpmp_fw_dtb tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2.dtb; tlk tos.img; eks eks.img; bootloader_dtb tegra186-quill-p3310-1000-c03-00-base.dtb”
saving flash parameters in /home/corre/JetPack/64_TX2/Linux_for_Tegra_tx2/bootloader/flash_parameters.txt
–bl nvtboot_recovery_cpu.bin --sdram_config P3310_A00_8GB_Samsung_8GB_lpddr4_204Mhz_A02_l4t.cfg --odmdata 0x1090000 --applet mb1_recovery_prod.bin --cmd “flash; reboot” --cfg flash.xml --chip 0x18 --misc_config tegra186-mb1-bct-misc-si-l4t.cfg --pinmux_config tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg --pmic_config tegra186-mb1-bct-pmic-quill-p3310-1000-c04.cfg --pmc_config tegra186-mb1-bct-pad-quill-p3310-1000-c03.cfg --prod_config tegra186-mb1-bct-prod-quill-p3310-1000-c03.cfg --scr_config minimal_scr.cfg --scr_cold_boot_config mobile_scr.cfg --br_cmd_config tegra186-mb1-bct-bootrom-quill-p3310-1000-c03.cfg --dev_params emmc.cfg --bins “mb2_bootloader nvtboot_recovery.bin; mts_preboot preboot_d15_prod_cr.bin; mts_bootpack mce_mts_d15_prod_cr.bin; bpmp_fw bpmp.bin; bpmp_fw_dtb tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2.dtb; tlk tos.img; eks eks.img; bootloader_dtb tegra186-quill-p3310-1000-c03-00-base.dtb”
*** 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.0239 ] tegrasign_v2 --key None --getmode mode.txt
[ 0.0251 ] Assuming zero filled SBK key
[ 0.0282 ]
[ 0.0285 ] Generating RCM messages
[ 0.0500 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x18 --download rcm mb1_recovery_prod.bin 0 0
[ 0.0509 ] RCM 0 is saved as rcm_0.rcm
[ 0.0661 ] RCM 1 is saved as rcm_1.rcm
[ 0.0663 ] List of rcm files are saved in rcm_list.xml
[ 0.0690 ]
[ 0.0690 ] Signing RCM messages
[ 0.0698 ] tegrasign_v2 --key None --list rcm_list.xml --pubkeyhash pub_key.key
[ 0.0705 ] Assuming zero filled SBK key
[ 0.0745 ]
[ 0.0746 ] Copying signature to RCM mesages
[ 0.0754 ] tegrarcm_v2 --chip 0x18 --updatesig rcm_list_signed.xml
[ 0.0765 ]
[ 0.0765 ] Parsing partition layout
[ 0.0974 ] tegraparser_v2 --pt flash.xml.tmp
[ 0.1004 ]
[ 0.1004 ] Creating list of images to be signed
[ 0.1126 ] tegrahost_v2 --chip 0x18 --partitionlayout flash.xml.bin --list images_list.xml zerosbk
[ 0.2721 ]
[ 0.2721 ] Generating signatures
[ 0.2730 ] tegrasign_v2 --key None --list images_list.xml --pubkeyhash pub_key.key
[ 0.2737 ] Assuming zero filled SBK key
[ 0.3865 ]
[ 0.3865 ] Generating br-bct
[ 0.4073 ] Updating dev and MSS params in BR BCT
[ 0.4074 ] tegrabct_v2 --dev_param emmc.cfg --sdram P3310_A00_8GB_Samsung_8GB_lpddr4_204Mhz_A02_l4t.cfg --brbct br_bct.cfg --chip 0x18
[ 0.4467 ]
[ 0.4468 ] Updating bl info
[ 0.4477 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x18 --updateblinfo flash.xml.bin --updatesig images_list_signed.xml
[ 0.4488 ]
[ 0.4488 ] Updating smd info
[ 0.4496 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x18 --updatesmdinfo flash.xml.bin
[ 0.4506 ]
[ 0.4506 ] Updating Odmdata
[ 0.4514 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x18 --updatefields Odmdata =0x1090000
[ 0.4525 ]
[ 0.4526 ] Get Signed section bct
[ 0.4533 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x18 --listbct bct_list.xml
[ 0.4542 ]
[ 0.4542 ] Signing BCT
[ 0.4557 ] tegrasign_v2 --key None --list bct_list.xml --pubkeyhash pub_key.key
[ 0.4565 ] Assuming zero filled SBK key
[ 0.4567 ]
[ 0.4567 ] Updating BCT with signature
[ 0.4575 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x18 --updatesig bct_list_signed.xml
[ 0.4589 ]
[ 0.4590 ] Generating coldboot mb1-bct
[ 0.4598 ] tegrabct_v2 --chip 0x18 --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.4609 ] MB1-BCT version: 0xe
[ 0.4611 ] Copying Sdram info from 2 to 3 set
[ 0.4742 ] Copying Sdram info from 0 to 1 set
[ 0.4751 ] Packing sdram param for instance[0]
[ 0.4753 ] Packing sdram param for instance[1]
[ 0.4755 ] Packing sdram param for instance[2]
[ 0.4757 ] Packing sdram param for instance[3]

[ 0.4864 ] Parsing config file :tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg
[ 0.4872 ] Appending platform config data of size :- 2904

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

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

[ 0.4902 ] Parsing config file :tegra186-mb1-bct-pmic-quill-p3310-1000-c04.cfg
[ 0.4905 ] Appending platform config data of size :- 708

[ 0.4906 ] Parsing config file :tegra186-mb1-bct-bootrom-quill-p3310-1000-c03.cfg
[ 0.4908 ] Appending platform config data of size :- 64

[ 0.4948 ] Parsing config file :tegra186-mb1-bct-prod-quill-p3310-1000-c03.cfg
[ 0.4949 ] Appending platform config data of size :- 1628
[ 0.4949 ]
[ 0.4949 ] Updating mb1-bct with firmware information
[ 0.4959 ] tegrabct_v2 --chip 0x18 --mb1bct mb1_cold_boot_bct_MB1.bct --updatefwinfo flash.xml.bin
[ 0.4967 ] MB1-BCT version: 0xe
[ 0.4973 ]
[ 0.4973 ] Updating mb1-bct with storage information
[ 0.4981 ] tegrabct_v2 --chip 0x18 --mb1bct mb1_cold_boot_bct_MB1.bct --updatestorageinfo flash.xml.bin
[ 0.4989 ] MB1-BCT version: 0xe
[ 0.4994 ]
[ 0.5002 ] tegrahost_v2 --align mb1_cold_boot_bct_MB1.bct
[ 0.5010 ]
[ 0.5017 ] tegrahost_v2 --appendsigheader mb1_cold_boot_bct_MB1.bct zerosbk
[ 0.5026 ]
[ 0.5036 ] tegrasign_v2 --key None --list mb1_cold_boot_bct_MB1_sigheader.bct_list.xml
[ 0.5044 ] Assuming zero filled SBK key
[ 0.5062 ]
[ 0.5074 ] tegrahost_v2 --updatesigheader mb1_cold_boot_bct_MB1_sigheader.bct.encrypt mb1_cold_boot_bct_MB1_sigheader.bct.hash zerosbk
[ 0.5086 ]
[ 0.5086 ] Generating recovery mb1-bct
[ 0.5097 ] tegrabct_v2 --chip 0x18 --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.5104 ] MB1-BCT version: 0xe
[ 0.5107 ] Copying Sdram info from 2 to 3 set
[ 0.5233 ] Copying Sdram info from 0 to 1 set
[ 0.5237 ] Packing sdram param for instance[0]
[ 0.5240 ] Packing sdram param for instance[1]
[ 0.5242 ] Packing sdram param for instance[2]
[ 0.5244 ] Packing sdram param for instance[3]

[ 0.5246 ] Parsing config file :tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg
[ 0.5249 ] Appending platform config data of size :- 2904

[ 0.5252 ] Parsing config file :minimal_scr.cfg
[ 0.5253 ] Appending platform config data of size :- 12240
[ 0.5267 ]
[ 0.5267 ] Parsing config file :tegra186-mb1-bct-pad-quill-p3310-1000-c03.cfg
[ 0.5267 ] Appending platform config data of size :- 24
[ 0.5267 ]
[ 0.5267 ] Parsing config file :tegra186-mb1-bct-pmic-quill-p3310-1000-c04.cfg
[ 0.5267 ] Appending platform config data of size :- 708
[ 0.5267 ]
[ 0.5267 ] Parsing config file :tegra186-mb1-bct-bootrom-quill-p3310-1000-c03.cfg
[ 0.5267 ] Appending platform config data of size :- 64
[ 0.5267 ]
[ 0.5267 ] Parsing config file :tegra186-mb1-bct-prod-quill-p3310-1000-c03.cfg
[ 0.5267 ] Appending platform config data of size :- 1628
[ 0.5267 ]
[ 0.5268 ] Updating mb1-bct with firmware information
[ 0.5276 ] tegrabct_v2 --chip 0x18 --mb1bct mb1_bct_MB1.bct --updatefwinfo flash.xml.bin
[ 0.5282 ] MB1-BCT version: 0xe
[ 0.5289 ]
[ 0.5289 ] Updating mb1-bct with storage information
[ 0.5297 ] tegrabct_v2 --chip 0x18 --mb1bct mb1_bct_MB1.bct --updatestorageinfo flash.xml.bin
[ 0.5304 ] MB1-BCT version: 0xe
[ 0.5310 ]
[ 0.5318 ] tegrahost_v2 --align mb1_bct_MB1.bct
[ 0.5326 ]
[ 0.5333 ] tegrahost_v2 --appendsigheader mb1_bct_MB1.bct zerosbk
[ 0.5343 ]
[ 0.5353 ] tegrasign_v2 --key None --list mb1_bct_MB1_sigheader.bct_list.xml
[ 0.5360 ] Assuming zero filled SBK key
[ 0.5378 ]
[ 0.5392 ] tegrahost_v2 --updatesigheader mb1_bct_MB1_sigheader.bct.encrypt mb1_bct_MB1_sigheader.bct.hash zerosbk
[ 0.5404 ]
[ 0.5405 ] Copying signatures
[ 0.5414 ] tegrahost_v2 --chip 0x18 --partitionlayout flash.xml.bin --updatesig images_list_signed.xml
[ 0.5497 ]
[ 0.5498 ] Boot Rom communication
[ 0.5506 ] tegrarcm_v2 --chip 0x18 --rcm rcm_list_signed.xml
[ 0.5514 ] BootRom is not running
[ 1.5511 ]
[ 1.5520 ] tegrarcm_v2 --isapplet
[ 1.5528 ] Applet version 01.00.0000
[ 1.5550 ]
[ 1.5551 ] Retrieving board information
[ 1.5558 ] tegrarcm_v2 --oem platformdetails chip chip_info.bin
[ 1.5565 ] Applet version 01.00.0000
[ 1.5586 ] Saved platform info in chip_info.bin
[ 1.5600 ] Chip minor revision: 2
[ 1.5606 ]
[ 1.5607 ] Sending BCTs
[ 1.5621 ] tegrarcm_v2 --download bct_bootrom br_bct_BR.bct --download bct_mb1 mb1_bct_MB1_sigheader.bct.encrypt
[ 1.5629 ] Applet version 01.00.0000
[ 1.5650 ] Sending bct_bootrom
[ 1.5651 ] […] 100%
[ 1.5751 ] Sending bct_mb1
[ 1.5812 ] […] 100%
[ 1.9350 ]
[ 1.9351 ] Generating blob
[ 1.9361 ] tegrahost_v2 --align blob_nvtboot_recovery_cpu.bin
[ 1.9369 ]
[ 1.9377 ] tegrahost_v2 --appendsigheader blob_nvtboot_recovery_cpu.bin zerosbk
[ 1.9388 ]
[ 1.9398 ] tegrasign_v2 --key None --list blob_nvtboot_recovery_cpu_sigheader.bin_list.xml
[ 1.9406 ] Assuming zero filled SBK key
[ 1.9466 ]
[ 1.9477 ] tegrahost_v2 --updatesigheader blob_nvtboot_recovery_cpu_sigheader.bin.encrypt blob_nvtboot_recovery_cpu_sigheader.bin.hash zerosbk
[ 1.9488 ]
[ 1.9500 ] tegrahost_v2 --align blob_nvtboot_recovery.bin
[ 1.9515 ]
[ 1.9528 ] tegrahost_v2 --appendsigheader blob_nvtboot_recovery.bin zerosbk
[ 2.0004 ]
[ 2.0016 ] tegrasign_v2 --key None --list blob_nvtboot_recovery_sigheader.bin_list.xml
[ 2.0023 ] Assuming zero filled SBK key
[ 2.0051 ]
[ 2.0062 ] tegrahost_v2 --updatesigheader blob_nvtboot_recovery_sigheader.bin.encrypt blob_nvtboot_recovery_sigheader.bin.hash zerosbk
[ 2.0072 ]
[ 2.0082 ] tegrahost_v2 --align blob_preboot_d15_prod_cr.bin
[ 2.0090 ]
[ 2.0097 ] tegrahost_v2 --appendsigheader blob_preboot_d15_prod_cr.bin zerosbk
[ 2.0107 ]
[ 2.0119 ] tegrasign_v2 --key None --list blob_preboot_d15_prod_cr_sigheader.bin_list.xml
[ 2.0127 ] Assuming zero filled SBK key
[ 2.0151 ]
[ 2.0162 ] tegrahost_v2 --updatesigheader blob_preboot_d15_prod_cr_sigheader.bin.encrypt blob_preboot_d15_prod_cr_sigheader.bin.hash zerosbk
[ 2.0172 ]
[ 2.0181 ] tegrahost_v2 --align blob_mce_mts_d15_prod_cr.bin
[ 2.0189 ]
[ 2.0197 ] tegrahost_v2 --appendsigheader blob_mce_mts_d15_prod_cr.bin zerosbk
[ 2.0241 ]
[ 2.0253 ] tegrasign_v2 --key None --list blob_mce_mts_d15_prod_cr_sigheader.bin_list.xml
[ 2.0261 ] Assuming zero filled SBK key
[ 2.0886 ]
[ 2.0899 ] tegrahost_v2 --updatesigheader blob_mce_mts_d15_prod_cr_sigheader.bin.encrypt blob_mce_mts_d15_prod_cr_sigheader.bin.hash zerosbk
[ 2.0937 ]
[ 2.0948 ] tegrahost_v2 --align blob_bpmp.bin
[ 2.0957 ]
[ 2.0965 ] tegrahost_v2 --appendsigheader blob_bpmp.bin zerosbk
[ 2.0980 ]
[ 2.0992 ] tegrasign_v2 --key None --list blob_bpmp_sigheader.bin_list.xml
[ 2.0999 ] Assuming zero filled SBK key
[ 2.1151 ]
[ 2.1164 ] tegrahost_v2 --updatesigheader blob_bpmp_sigheader.bin.encrypt blob_bpmp_sigheader.bin.hash zerosbk
[ 2.1180 ]
[ 2.1190 ] tegrahost_v2 --align blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2.dtb
[ 2.1198 ]
[ 2.1207 ] tegrahost_v2 --appendsigheader blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2.dtb zerosbk
[ 2.1223 ]
[ 2.1235 ] tegrasign_v2 --key None --list blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2_sigheader.dtb_list.xml
[ 2.1245 ] Assuming zero filled SBK key
[ 2.1375 ]
[ 2.1387 ] tegrahost_v2 --updatesigheader blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2_sigheader.dtb.encrypt blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2_sigheader.dtb.hash zerosbk
[ 2.1402 ]
[ 2.1413 ] tegrahost_v2 --align blob_tos.img
[ 2.1421 ]
[ 2.1429 ] tegrahost_v2 --appendsigheader blob_tos.img zerosbk
[ 2.1438 ]
[ 2.1448 ] tegrasign_v2 --key None --list blob_tos_sigheader.img_list.xml
[ 2.1455 ] Assuming zero filled SBK key
[ 2.1475 ]
[ 2.1485 ] tegrahost_v2 --updatesigheader blob_tos_sigheader.img.encrypt blob_tos_sigheader.img.hash zerosbk
[ 2.1494 ]
[ 2.1502 ] tegrahost_v2 --align blob_eks.img
[ 2.1510 ]
[ 2.1518 ] tegrahost_v2 --appendsigheader blob_eks.img zerosbk
[ 2.1530 ]
[ 2.1546 ] tegrasign_v2 --key None --list blob_eks_sigheader.img_list.xml
[ 2.1555 ] Assuming zero filled SBK key
[ 2.1557 ]
[ 2.1568 ] tegrahost_v2 --updatesigheader blob_eks_sigheader.img.encrypt blob_eks_sigheader.img.hash zerosbk
[ 2.1578 ]
[ 2.1586 ] tegrahost_v2 --align blob_tegra186-quill-p3310-1000-c03-00-base.dtb
[ 2.1595 ]
[ 2.1603 ] tegrahost_v2 --appendsigheader blob_tegra186-quill-p3310-1000-c03-00-base.dtb zerosbk
[ 2.1615 ]
[ 2.1625 ] tegrasign_v2 --key None --list blob_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb_list.xml
[ 2.1632 ] Assuming zero filled SBK key
[ 2.1712 ]
[ 2.1723 ] tegrahost_v2 --updatesigheader blob_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb.encrypt blob_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb.hash zerosbk
[ 2.1735 ]
[ 2.1745 ] tegrahost_v2 --generateblob blob.xml blob.bin
[ 2.1752 ] number of images in blob are 9
[ 2.1754 ] blobsize is 3725048
[ 2.1755 ] Added binary blob_nvtboot_recovery_cpu_sigheader.bin.encrypt of size 184576
[ 2.1770 ] Added binary blob_nvtboot_recovery_sigheader.bin.encrypt of size 78080
[ 2.1773 ] Added binary blob_preboot_d15_prod_cr_sigheader.bin.encrypt of size 61472
[ 2.1778 ] Added binary blob_mce_mts_d15_prod_cr_sigheader.bin.encrypt of size 2077088
[ 2.1786 ] Added binary blob_bpmp_sigheader.bin.encrypt of size 528800
[ 2.1791 ] Added binary blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2_sigheader.dtb.encrypt of size 466160
[ 2.1797 ] Added binary blob_tos_sigheader.img.encrypt of size 58880
[ 2.1800 ] Added binary blob_eks_sigheader.img.encrypt of size 1488
[ 2.1803 ] Added binary blob_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb.encrypt of size 268352
[ 2.1819 ]
[ 2.1820 ] Sending bootloader and pre-requisite binaries
[ 2.1829 ] tegrarcm_v2 --download blob blob.bin
[ 2.1842 ] Applet version 01.00.0000
[ 2.1868 ] Sending blob
[ 2.1869 ] [… ] 028%
[ 2.1869 ] [… ] 056%
[ 2.1869 ] [… ] 084%
[ 2.1869 ] […] 100%
[ 2.6024 ]
[ 2.6034 ] tegrarcm_v2 --boot recovery
[ 2.6041 ] Applet version 01.00.0000
[ 2.6077 ]
[ 2.6094 ] tegrarcm_v2 --isapplet
[ 3.2373 ]
[ 3.2706 ] tegradevflash_v2 --iscpubl
[ 3.2714 ] CPU Bootloader is not running on device.
[ 3.2739 ]
[ 33.5873 ] Retrieving storage infomation
[ 33.5895 ] tegrarcm_v2 --oem platformdetails storage storage_info.bin
[ 33.5914 ] Applet is not running on device. Continue with Bootloader
[ 33.5919 ]
[ 33.5938 ] tegradevflash_v2 --oem platformdetails storage storage_info.bin
[ 33.5957 ] CPU Bootloader is not running on device.
[ 33.5961 ]
Error: Return value 4
Command tegradevflash_v2 --oem platformdetails storage storage_info.bin
Failed flashing t186ref.

During flash a file generated is “bootloader/system.img.raw”. What is the exact size of this?

cd /where/ever/Linux_for_Tegra/bootloader
ls -l system.img.raw

From this same location (cd there first), what is the output from:

df -H -T <b>.</b>

Here are the results :

-rw-r–r-- 1 root root 30742151168 févr. 12 13:23 system.img.raw

Filesystem Type Size Used Avail Use% Mounted on
/dev/sdb3 ext4 2,0T 48G 1,9T 3% /home

As you can see in the date (12th of february), the system was install in FRENCH, could it be a problem ? As far as i remember, my first successful tests were passed on a ENGLISH-installed system.

The file is the correct size. Thus the system.img is likely valid and transfer of content to the Jetson will not be a problem of the host side.

I do remember there are some cases of non-en_US characters having been an issue with JetPack, or cases of space characters in paths, and although I do not know for sure, it seems those were more issues of JetPack than of the driver package (command line does not use JetPack). It would be easy to test though…make sure you are using a directory which has no spaces anywhere in the path, and where no special accent marks are used (e.g., avoid aigu, circonflexe, so on…stick to something which is available in the base ASCII character set).

I re-install the host in 14.04.05 with default English language and redo all jetPack downloads and installation.
It fails at flashing again with error 4

What is the conclusion ? hardware failure ? I bought my JETSON-TX2 on january 2018

Is there anything special about this host? The earlier use of a USB drive might still matter (even if it is a full install to the drive)…if this is on a USB stick what is your host’s “lsblk -f” output?

the operating system (UBUNTU 14.04.05 desktop version) is fully installed on a USB drive

Here are the output of ‘lsblk -f’ :

before flash.sh :

lsblk -l
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 111.8G 0 disk
sda1 8:1 0 102.6G 0 part
sda2 8:2 0 8.2G 0 part
sda3 8:3 0 1G 0 part
sdb 8:16 0 1.8T 0 disk
sdb1 8:17 0 186.3G 0 part /
sdb2 8:18 0 1K 0 part
sdb5 8:21 0 18.6G 0 part [SWAP]
sdb6 8:22 0 1.6T 0 part /home
sr0 11:0 1 1024M 0 rom

during flash.sh :

lsblk -l
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 111.8G 0 disk
sda1 8:1 0 102.6G 0 part
sda2 8:2 0 8.2G 0 part
sda3 8:3 0 1G 0 part
sdb 8:16 0 1.8T 0 disk
sdb1 8:17 0 186.3G 0 part /
sdb2 8:18 0 1K 0 part
sdb5 8:21 0 18.6G 0 part [SWAP]
sdb6 8:22 0 1.6T 0 part /home
sr0 11:0 1 1024M 0 rom
loop0 7:0 0 28G 0 loop /home/corre/jetpack/64_TX2/Linux_for_Tegra_tx2/bootloader/mnt

then “populating rootfs from /home/corre/jetpack/64_TX2/Linux_for_Tegra_tx2/rootfs”,

then "-- Total: -----------------------------------------------------------
2988 CHUNK 30064771072(7340032 blks) ==> 3376557100(824346 blks)

done.
system.img built successfully.

*** Flashing target device started. ***
Welcome to Tegra Flash
version 1.0.0"

then

“[ 6.0258 ] Sending bootloader and pre-requisite binaries
[ 6.0287 ] tegrarcm_v2 --download blob blob.bin
[ 6.0345 ] Applet version 01.00.0000
[ 6.2346 ] Sending blob
[ 6.2348 ] […] 100%
[ 6.7283 ]
[ 6.7325 ] tegrarcm_v2 --boot recovery
[ 6.7354 ] Applet version 01.00.0000
[ 6.9363 ]
[ 6.9397 ] tegrarcm_v2 --isapplet
[ 7.5701 ]
[ 7.6325 ] tegradevflash_v2 --iscpubl
[ 7.6352 ] CPU Bootloader is not running on device.
[ 7.7576 ]
[ 46.6952 ] Retrieving storage infomation
[ 46.6980 ] tegrarcm_v2 --oem platformdetails storage storage_info.bin
[ 46.7006 ] Applet is not running on device. Continue with Bootloader
[ 46.9062 ]
[ 46.9103 ] tegradevflash_v2 --oem platformdetails storage storage_info.bin
[ 46.9186 ] CPU Bootloader is not running on device.
[ 47.0337 ]
Error: Return value 4
Command tegradevflash_v2 --oem platformdetails storage storage_info.bin
Failed flashing t186ref.”

Still “Error: Return value 4” …

That looks like “lsblk -l”. If possible use “lsblk -f” to show file system type. This will show file system type…I’m interested in seeing which parts are ext4 versus not ext4.

When you are booted to your host, and when the Jetson is in recovery mode (which means it shows up in “lsusb”), what is the output from “lsusb -t”? This will give a tree view…I’m interested in seeing how the USB drive of the host and the Jetson are related…if they use the same root_hub, or if the root_hub is different (you don’t have to actually try to flash, just put the Jetson in recovery mode and boot the same way you did before).

If the Jetson is on the same root_hub as the drive your host runs on you might try moving the Jetson’s cable to a different port until you find a different root_hub (preferably a hub not used by anything else). This might mean needing to move the cable from a front port to a back port, or vice versa.

Your idea with USB devices give me some hopes !

Here are the results of my last tests :

TEST 1 : with my laptop with UBUNTU on a external USB disk (/dev/sdb) :

lsblk -f
NAME FSTYPE LABEL MOUNTPOINT
sda
├─sda1
├─sda2
└─sda3
sdb
├─sdb1 /
├─sdb2
├─sdb5 [SWAP]
└─sdb6 /home
sr0

No FSTYPE but i format “/” and “/home” as ext4

lsusb -t
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/8p, 480M
|__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 480M
|__ Port 3: Dev 10, If 0, Class=Vendor Specific Class, Driver=, 480M
|__ Port 4: Dev 3, If 0, Class=Imaging, Driver=, 480M

Devices (USB drive and Jetson in recovery mode) always go on the same root_hub. Maybe because my laptop have only one USB2 controller

Unsurprisingly : “Error: Return value 4”

TEST 2 : I found 51GiB on my internal hard drive (/dev/sda) to install UBUNTU

lsblk -f
NAME FSTYPE LABEL MOUNTPOINT
sda
├─sda1
├─sda2
├─sda3
├─sda4
├─sda5 /home
├─sda6 [SWAP]
└─sda7 /
sr0

I have some free space

df -H -k
Filesystem 1K-blocks Used Available Use% Mounted on
udev 496292 4 496288 1% /dev
tmpfs 101484 1112 100372 2% /run
/dev/sda7 12318640 9666412 2003424 83% /
none 4 0 4 0% /sys/fs/cgroup
none 5120 0 5120 0% /run/lock
none 507404 156 507248 1% /run/shm
none 102400 40 102360 1% /run/user
/dev/sda5 36394704 16087660 18435224 47% /home

I have only Jetson in recovery mode connected to USB :

lsusb -t (after flashing)
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/8p, 480M
|__ Port 3: Dev 8, If 0, Class=Vendor Specific Class, Driver=, 480M
|__ Port 4: Dev 2, If 0, Class=Imaging, Driver=, 480M

Unfortunately “Error: Return value 4”. All my hopes are gone. Do you have any other idea ?

I am very surprised “lsblk -f” does not show file system type…there may be something else going on. Regardless, it shows sdb1 is the rootfs of the host and sdb6 is the home directory (“sda” or “sdb” seems to change, perhaps this is due to being a USB disk). If your flash is from somewhere in the home directory, then this is the partition which must be ext4; if from somewhere else, then it is the rootfs on sdb1 which would need to be ext4. Even if this were not the case it is unlikely you would see the given error.

What I’m thinking is that if everything is otherwise ok (and we don’t know yet or even have a reason to suspect all hardware is correct), then it is something related to USB behavior. Most people do not use the USB bus on two devices demanding high bandwidth at the same time…e.g., most flashes are not using a USB for all disk use on the same USB system also flashing the Jetson. Although it is a bit of a stretch it may be that your USB hard drive and the Jetson are competing in such a way that there is a failure. Having the two on different root HUBs would perhaps solve this if that is the case (the root_hub of lsusb is the controller integrated in the motherboard of the host…versus external HUBs). The “lsusb -t” shows dependencies relative to the root_hub as the starting trunk. Your lsusb won’t show the Jetson unless it is during flash (or at least when it is in recovery mode).

Try putting the Jetson in recovery mode, and then plug it in to different USB ports on the host until it is the only device on that root_hub. Try flashing again.

Thanks for your reply. I think i don’t focus enough on “test 2” : for this test, operating system is on internal drive (sda). As a consequence, Jetson in recovery mode is the ONLY device connected by USB.

lsusb -t
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/8p, 480M
|__ Port 3: Dev 8, If 0, Class=Vendor Specific Class, Driver=, 480M <====JETSON in recovery mode
|__ Port 4: Dev 2, If 0, Class=Imaging, Driver=, 480M <====JETSON in recovery mode

Both port 3 and 4 are listed when Jetson in recovery mode, no USB drive here. If Jetson is not in recovery mode, no “port” in lsusb -t output

I try to figure out why FSTYPE is blanked

Could it be the micro-B USB cable provided with the dev kit ?

In recovery mode the Jetson should show up only once…what do you get from:

lsusb -d 0955:

“0955:” implies NVIDIA devices in general. If two devices show (and they are both from a single Jetson) I am quite surprised.

You are right : i made a BIG mistake. Nothing is plugged but the internal camera use USB.

Port 4: Dev 2, If 0, Class=Imaging, Driver=, 480M <====internal camera

I remove it by adding
echo “0” > /sys/bus/usb/devices/1-4/bConfigurationValue line to /etc/rc.local

After rebooting, only Jetson in recovery mode appears in usb list:

lsusb -d 0955:
Bus 001 Device 003: ID 0955:7c18 NVidia Corp.
lsusb -t
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/8p, 480M
|__ Port 3: Dev 3, If 0, Class=Vendor Specific Class, Driver=, 480M

Everything sounds good so I try flashing again but unfortunately “Error: Return value 4”

For FSTYPE not filled, it seems to come from partition table missing or something like that. But with “mount” output, i check it is ext4 FSTYPE. Could it be a problem if FSTYPE is empty from lsblk -f output ?

I do not know what the implications are when lsblk option “-f” does not return file system types. It is highly suspicious though…this is one of those things which is just too odd to be coincidental with other weirdness. An Ubuntu 14.04 x86_64 PC host does not seem capable of leaving this information out of lsblk and makes me think something very odd is going on with the host. Perhaps it is a side effect of running on a USB drive in some special circumstance.

The testing in many ways suggests there may be an actual hardware failure of the Jetson, but the few things which seem odd about the host makes me suspicious that if you were to try another working Jetson you would end up with the same error.

Can you give more details about the host PC’s hardware? Is the USB drive an ordinary 3.5" hard drive? Is it a thumb drive? Is it an SSD? Is it USB2? Is it USB3? What kind of CPU on the host?

First, i do not use any USB drive since i found free space on my internal disk (/dev/sda) :

sda
├─sda1
├─sda2
├─sda3
├─sda4
├─sda5 /home <=== for UBUNTU 14.04 (36394704 kiloBytes)
├─sda6 [SWAP] <=== for UBUNTU 14.04
└─sda7 / <=== for UBUNTU 14.04 (12318640 kiloBytes)

The host is a old host (hp pavilion dv6160ea notebook pc) with double boot (XP/UBUNTU) :

cat /proc/cpuinfo :

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core™2 CPU T5200 @ 1.60GHz
stepping : 6
microcode : 0x48
cpu MHz : 800.000
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm lahf_lm dtherm
bugs :
bogomips : 3192.90
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core™2 CPU T5200 @ 1.60GHz
stepping : 6
microcode : 0x48
cpu MHz : 800.000
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm lahf_lm dtherm
bugs :
bogomips : 3192.90
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

I will try to reinstall system with partition table to see if FSTYPE can be filled

It seems you are using UBUNTU 14.04 ;
In my opinion 16.04 can be tested.