Xavier Cloning

It looks like clones are going to be insanely fast…that or I did something wrong. Maybe both? The USB3 type-C connector used with flashing and cloning should be an extreme boost in performance, but something is different now.

I cloned like this, which seemed to work, but didn’t really work:

sudo ./flash.sh -r -k APP -G my_backup.img jetson-xavier mmcblk0p1 2>&1 | tee clone_log.txt

The produced raw image is exactly 363855872 bytes. This is equivalent to:

363855872 / (1024^2) = 347MiB

…far too small to be the APP partition (and in fact is not a size match for any of the partitions). I guess that would make for a fast clone…failure is efficient! :P

The log might answer one of my previous questions…looks like this is a t194? On the other hand, the clone didn’t really clone. What is the correct way to clone an Xavier? Will we be able to clone “all”? Or clone via byte offsets?

The “system.img” from Jetpack 4 is 3,490,202,652 bytes (3.5GB), the “sudo ./flash.sh -r -k APP -G my_backup.img jetson-xavier mmcblk0p1” produced an error for “tegradevflash_v2”:

[ 6.5680 ] Reading partition
[ 6.5697 ] tegradevflash_v2 --read APP /home/ubuntu/jetpack4/Xavier/Linux_for_Tegra/my_backup.img
[ 6.5711 ] Bootloader version 01.00.0000
[ 6.5829 ] [ ] 001%
Error: Return value 8

No sure what is error code 8 without source code of tegradevflash_v2.

Can you use “dd” from Xavier to backup APP partition to SD card?

Sure, dd works, but only if bootable. I’m interested in how to clone in recovery mode for cases where the system might not be bootable.

While not as convenient as direct clone, for now what I did is simply save a tar archive of the root directory after I finished installing everything important to me on the Xavier. That way if I need to re-flash, should only need to overwrite the fresh file system with the archive.

Here’s what I do:

  1. install all the stuff I actually want on the Xavier, and remove all the crap (like libreoffice). Then on the host, enter the L4T:
cd jetpack/Xavier/Linux_for_Tegra
  1. Slurp the root file system to the local machine:
(ssh xavier sudo find / -xdev -depth -print | sudo cpio -o -H crc | gzip) > xavier-root-file-system.cpio.gz
  1. remove the current root file system:
mv rootfs rootfs.orig
  1. create new root file system:
mkdir rootfs
cd rootfs
zcat ../xavier-root-file-system.cpio.gz | sudo cpio -i -m --no-absolute-filenames -u -d

Now, when I flash the system using flash.sh, it applies the binaries on my new setup, and writes it to the xavier. This lets me get things like SSH keys, installed libraries and apps, configured hostname, and so forth, already in place.

In general, I don’t recommend treating the xavier EMMC as “durable.” Get into a habit of flashing once a week, just so you know you have a repeatable, robust process! (This is similar to “you don’t have a backup until you’ve successfully restored it once!”)

Yes, I like this last method. On the other hand, the system has to be bootable. I’m also interested in the flash.sh clone in recovery mode for systems not otherwise readable.

We are developing a new tool that will clone the entire device from recovery mode, hopefully to be included in a future release of JetPack-L4T.

Only when you make the custom rootfs. Once you have the rootfs, it just has to be flashable.

Thanks, Dustin. That is really great news and would be much appreciated!

-albertr

Any news on the cloning process? is it functional in 4.1.1?

So far as I know this is not yet available.

I am just wondering if anyone has succeeded with booting Xavier from NFS for graceful unmount and dd of /dev/mmcblk0p1.
In my case the NFS export seems to work as I can mount the share from Xavier, but NFS boot implemented with the code below doesn’t seem to actually boot from the server, as for unmount but for unmount -l, I am getting ‘drive is busy’

sudo ./flash.sh -N <ip-addr-of-linux-host>:/<path-to-NFS-rootfs> --rcm-boot jetson-xavier eth0
:~/Downloads/Xavier/Linux_for_Tegra$ sudo ./flash.sh -N 172.0.0.123:/data/nfs/general/ --rcm-boot jetson-xavier eth0
###############################################################################
# L4T BSP Information:
# R31 (release), REVISION: 1.0, GCID: 13194883, BOARD: t186ref, EABI: aarch64, 
# DATE: Wed Oct 31 22:26:16 UTC 2018
###############################################################################
# Target Board Information:
# Name: jetson-xavier, Board Family: t186ref, SoC: Tegra 194, 
# OpMode: production, Boot Authentication: , 
###############################################################################
copying soft_fuses(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-soft-fuses-l4t.cfg)... done.
./tegraflash.py --chip 0x19 --applet "/home/nvidia/Downloads/Xavier/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.0021 ] Generating RCM messages
[   0.0028 ] tegrahost_v2 --chip 0x19 0 --magicid MB1B --appendsigheader /home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/mb1_t194_prod.bin zerosbk
[   0.0032 ] Header already present for /home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/mb1_t194_prod.bin
[   0.0052 ] 
[   0.0058 ] tegrasign_v2 --key None --getmode mode.txt
[   0.0062 ] Assuming zero filled SBK key
[   0.0063 ] 
[   0.0070 ] tegrabct_v2 --chip 0x19 0 --sfuse tegra194-mb1-soft-fuses-l4t.cfg.pdf sfuse.bin
[   0.0075 ] 
[   0.0080 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x19 0 --sfuses sfuse.bin --download rcm /home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.bin 0 0
[   0.0085 ] RCM 0 is saved as rcm_0.rcm
[   0.0104 ] RCM 1 is saved as rcm_1.rcm
[   0.0104 ] RCM 2 is saved as rcm_2.rcm
[   0.0104 ] List of rcm files are saved in rcm_list.xml
[   0.0104 ] 
[   0.0104 ] Signing RCM messages
[   0.0109 ] tegrasign_v2 --key None --list rcm_list.xml --pubkeyhash pub_key.key --getmontgomeryvalues montgomery.bin
[   0.0114 ] Assuming zero filled SBK key
[   0.0116 ] 
[   0.0116 ] Copying signature to RCM mesages
[   0.0121 ] tegrarcm_v2 --chip 0x19 0 --updatesig rcm_list_signed.xml
[   0.0128 ] 
[   0.0128 ] Boot Rom communication
[   0.0133 ] tegrarcm_v2 --chip 0x19 0 --rcm rcm_list_signed.xml --skipuid
[   0.0137 ] RCM version 0X190001
[   0.0144 ] Boot Rom communication completed
[   1.0296 ] 
[   2.0335 ] tegrarcm_v2 --isapplet
[   2.0358 ] Applet version 01.00.0000
[   2.0577 ] 
[   2.0605 ] tegrarcm_v2 --ismb2
[   2.0974 ] 
[   2.0981 ] tegrahost_v2 --chip 0x19 --align nvtboot_applet_t194.bin
[   2.0986 ] 
[   2.0990 ] tegrahost_v2 --chip 0x19 0 --magicid PLDT --appendsigheader nvtboot_applet_t194.bin zerosbk
[   2.0995 ] adding BCH for nvtboot_applet_t194.bin
[   2.1010 ] 
[   2.1017 ] tegrasign_v2 --key None --list nvtboot_applet_t194_sigheader.bin_list.xml
[   2.1021 ] Assuming zero filled SBK key
[   2.1023 ] 
[   2.1034 ] tegrahost_v2 --chip 0x19 0 --updatesigheader nvtboot_applet_t194_sigheader.bin.encrypt nvtboot_applet_t194_sigheader.bin.hash zerosbk
[   2.1039 ] 
[   2.1044 ] tegrarcm_v2 --download mb2 nvtboot_applet_t194_sigheader.bin.encrypt
[   2.1048 ] Applet version 01.00.0000
[   2.1248 ] Sending mb2
[   2.1249 ] [................................................] 100%
[   2.1413 ] 
[   2.1419 ] tegrarcm_v2 --boot recovery
[   2.1424 ] Applet version 01.00.0000
[   2.1718 ] 
[   3.1736 ] tegrarcm_v2 --isapplet
[   3.1903 ] 
[   3.1910 ] tegrarcm_v2 --ismb2
[   3.1916 ] MB2 Applet version 01.00.0000
[   3.2267 ] 
[   3.2291 ] tegrarcm_v2 --ismb2
[   3.2314 ] MB2 Applet version 01.00.0000
[   3.2672 ] 
[   3.2698 ] Retrieving EEPROM data
[   3.2700 ] tegrarcm_v2 --oem platformdetails eeprom cvm /home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/cvm.bin
[   3.2726 ] MB2 Applet version 01.00.0000
[   3.3083 ] Saved platform info in /home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/cvm.bin
[   3.3440 ] 
[   3.3441 ] Rebooting to recovery mode
[   3.3459 ] tegrarcm_v2 --ismb2
[   3.3481 ] MB2 Applet version 01.00.0000
[   3.3712 ] 
[   3.3713 ] Rebooting to recovery mode
[   3.3739 ] tegrarcm_v2 --reboot recovery
[   3.3770 ] MB2 Applet version 01.00.0000
[   3.4227 ] 
Board ID(2888) version(400) 
copying bctfile(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-memcfg-p2888.cfg)... done.
copying bctfile1(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-memcfg-sw-override.cfg)... done.
copying uphy_config(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-uphy-lane-p2888-0000-p2822-0000.cfg)... done.
copying device_config(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-bct-device-sdmmc.cfg)... done.
copying misc_cold_boot_config(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-misc-l4t.cfg)... done.
copying misc_config(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-misc-flash.cfg)... done.
copying pinmux_config(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-pinmux-p2888-0000-a04-p2822-0000-b01.cfg)... done.
copying gpioint_config(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-gpioint-p2888-0000-p2822-0000.cfg)... done.
copying pmic_config(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-pmic-p2888-0001-a04-p2822-0000.cfg)... done.
copying pmc_config(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-padvoltage-p2888-0000-a00-p2822-0000-a00.cfg)... done.
copying prod_config(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-prod-p2888-0000-p2822-0000.cfg)... done.
copying scr_config(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-scr-cbb-mini.cfg)... done.
copying scr_cold_boot_config(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-scr-cbb-mini.cfg)... done.
copying bootrom_config(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-reset-p2888-0000-p2822-0000.cfg)... done.
copying dev_params(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-br-bct-sdmmc.cfg)... done.
Existing bootloader(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/nvtboot_cpu_t194.bin) reused.
copying initrd(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/l4t_initrd.img)... done.
Making Boot image... done.
Existing sosfile(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/mb1_t194_prod.bin) reused.
Existing tegraboot(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/nvtboot_t194.bin) reused.
Existing cpu_bootloader(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/nvtboot_cpu_t194.bin) reused.
Existing mb2blfile(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/nvtboot_recovery_t194.bin) reused.
Existing mtspreboot(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/preboot_c10_prod_cr.bin) reused.
Existing mcepreboot(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/mce_c10_prod_cr.bin) reused.
Existing mtsproper(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/mts_c10_prod_cr.bin) reused.
Existing mb1file(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/mb1_t194_prod.bin) reused.
Existing bpffile(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/bpmp_t194.bin) reused.
copying bpfdtbfile(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/t186ref/tegra194-a02-bpmp-p2888-a04.dtb)... done.
Existing scefile(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/camera-rtcpu-sce.bin) reused.
Existing camerafw(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/camera-rtcpu-rce.bin) reused.
Existing spefile(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/spe_t194.bin) reused.
Existing wb0boot(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/warmboot_t194_prod.bin) reused.
Existing tosfile(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/tos_t194.img) reused.
Existing eksfile(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/eks.img) reused.
copying soft_fuses(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-soft-fuses-l4t.cfg)... done.
copying dtbfile(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/kernel/dtb/tegra194-p2888-0001-p2822-0000.dtb)... done.
Skip generating system.img
Existing tbcfile(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/cboot_t194.bin) reused.
copying tbcdtbfile(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/kernel/dtb/tegra194-p2888-0001-p2822-0000.dtb)... done.
copying cfgfile(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/t186ref/cfg/flash_t194_sdmmc.xml) to flash.xml... done.
Existing flasher(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/nvtboot_recovery_cpu_t194.bin) reused.
Existing flashapp(/home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/tegraflash.py) reused.
./tegraflash.py --bl nvtboot_recovery_cpu_t194.bin --sdram_config tegra194-mb1-bct-memcfg-p2888.cfg,tegra194-memcfg-sw-override.cfg  --odmdata 0x9190000 --applet mb1_t194_prod.bin --cmd "rcmboot" --soft_fuses tegra194-mb1-soft-fuses-l4t.cfg  --cfg flash.xml --chip 0x19 --uphy_config tegra194-mb1-uphy-lane-p2888-0000-p2822-0000.cfg --device_config tegra19x-mb1-bct-device-sdmmc.cfg --misc_cold_boot_config tegra194-mb1-bct-misc-l4t.cfg --misc_config tegra194-mb1-bct-misc-flash.cfg --pinmux_config tegra19x-mb1-pinmux-p2888-0000-a04-p2822-0000-b01.cfg --gpioint_config tegra194-mb1-bct-gpioint-p2888-0000-p2822-0000.cfg --pmic_config tegra194-mb1-bct-pmic-p2888-0001-a04-p2822-0000.cfg --pmc_config tegra19x-mb1-padvoltage-p2888-0000-a00-p2822-0000-a00.cfg --prod_config tegra19x-mb1-prod-p2888-0000-p2822-0000.cfg --scr_config tegra194-mb1-bct-scr-cbb-mini.cfg --scr_cold_boot_config tegra194-mb1-bct-scr-cbb-mini.cfg --br_cmd_config tegra194-mb1-bct-reset-p2888-0000-p2822-0000.cfg --dev_params tegra194-br-bct-sdmmc.cfg  --bin "mb2_bootloader nvtboot_recovery_t194.bin; mts_preboot preboot_c10_prod_cr.bin; mts_mce mce_c10_prod_cr.bin; mts_proper mts_c10_prod_cr.bin; bpmp_fw bpmp_t194.bin; bpmp_fw_dtb tegra194-a02-bpmp-p2888-a04.dtb; spe_fw spe_t194.bin; tlk tos_t194.img; eks eks.img; kernel boot.img; kernel_dtb tegra194-p2888-0001-p2822-0000.dtb; sce_fw camera-rtcpu-sce.bin; bootloader_dtb tegra194-p2888-0001-p2822-0000.dtb"  
saving flash command in /home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/flashcmd.txt
./tegraflash.py --bl nvtboot_recovery_cpu_t194.bin --sdram_config tegra194-mb1-bct-memcfg-p2888.cfg,tegra194-memcfg-sw-override.cfg  --odmdata 0x9190000 --applet mb1_t194_prod.bin --cmd "rcmboot" --soft_fuses tegra194-mb1-soft-fuses-l4t.cfg  --cfg flash.xml --chip 0x19 --uphy_config tegra194-mb1-uphy-lane-p2888-0000-p2822-0000.cfg --device_config tegra19x-mb1-bct-device-sdmmc.cfg --misc_cold_boot_config tegra194-mb1-bct-misc-l4t.cfg --misc_config tegra194-mb1-bct-misc-flash.cfg --pinmux_config tegra19x-mb1-pinmux-p2888-0000-a04-p2822-0000-b01.cfg --gpioint_config tegra194-mb1-bct-gpioint-p2888-0000-p2822-0000.cfg --pmic_config tegra194-mb1-bct-pmic-p2888-0001-a04-p2822-0000.cfg --pmc_config tegra19x-mb1-padvoltage-p2888-0000-a00-p2822-0000-a00.cfg --prod_config tegra19x-mb1-prod-p2888-0000-p2822-0000.cfg --scr_config tegra194-mb1-bct-scr-cbb-mini.cfg --scr_cold_boot_config tegra194-mb1-bct-scr-cbb-mini.cfg --br_cmd_config tegra194-mb1-bct-reset-p2888-0000-p2822-0000.cfg --dev_params tegra194-br-bct-sdmmc.cfg  --bin "mb2_bootloader nvtboot_recovery_t194.bin; mts_preboot preboot_c10_prod_cr.bin; mts_mce mce_c10_prod_cr.bin; mts_proper mts_c10_prod_cr.bin; bpmp_fw bpmp_t194.bin; bpmp_fw_dtb tegra194-a02-bpmp-p2888-a04.dtb; spe_fw spe_t194.bin; tlk tos_t194.img; eks eks.img; kernel boot.img; kernel_dtb tegra194-p2888-0001-p2822-0000.dtb; sce_fw camera-rtcpu-sce.bin; bootloader_dtb tegra194-p2888-0001-p2822-0000.dtb"  
copying boot image (boot.img.rb)... done.
copying initrd (initrd.rb)... done.
saving flash parameters in /home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/rcmboot_parameters.txt
--bl nvtboot_recovery_cpu_t194.bin --sdram_config tegra194-mb1-bct-memcfg-p2888.cfg,tegra194-memcfg-sw-override.cfg  --odmdata 0x9190000 --applet mb1_t194_prod.bin --cmd "rcmboot" --soft_fuses tegra194-mb1-soft-fuses-l4t.cfg  --cfg flash.xml --chip 0x19 --uphy_config tegra194-mb1-uphy-lane-p2888-0000-p2822-0000.cfg --device_config tegra19x-mb1-bct-device-sdmmc.cfg --misc_cold_boot_config tegra194-mb1-bct-misc-l4t.cfg --misc_config tegra194-mb1-bct-misc-flash.cfg --pinmux_config tegra19x-mb1-pinmux-p2888-0000-a04-p2822-0000-b01.cfg --gpioint_config tegra194-mb1-bct-gpioint-p2888-0000-p2822-0000.cfg --pmic_config tegra194-mb1-bct-pmic-p2888-0001-a04-p2822-0000.cfg --pmc_config tegra19x-mb1-padvoltage-p2888-0000-a00-p2822-0000-a00.cfg --prod_config tegra19x-mb1-prod-p2888-0000-p2822-0000.cfg --scr_config tegra194-mb1-bct-scr-cbb-mini.cfg --scr_cold_boot_config tegra194-mb1-bct-scr-cbb-mini.cfg --br_cmd_config tegra194-mb1-bct-reset-p2888-0000-p2822-0000.cfg --dev_params tegra194-br-bct-sdmmc.cfg  --bin "mb2_bootloader nvtboot_recovery_t194.bin; mts_preboot preboot_c10_prod_cr.bin; mts_mce mce_c10_prod_cr.bin; mts_proper mts_c10_prod_cr.bin; bpmp_fw bpmp_t194.bin; bpmp_fw_dtb tegra194-a02-bpmp-p2888-a04.dtb; spe_fw spe_t194.bin; tlk tos_t194.img; eks eks.img; kernel boot.img; kernel_dtb tegra194-p2888-0001-p2822-0000.dtb; sce_fw camera-rtcpu-sce.bin; bootloader_dtb tegra194-p2888-0001-p2822-0000.dtb"  
saving Windows flash command to /home/nvidia/Downloads/Xavier/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

Entering RCM boot

[   0.0005 ] tegrasign_v2 --key None --getmode mode.txt
[   0.0010 ] Assuming zero filled SBK key
[   0.0010 ] 
[   0.0010 ] Generating RCM messages
[   0.0015 ] tegrahost_v2 --chip 0x19 0 --magicid MB1B --appendsigheader mb1_t194_prod.bin zerosbk
[   0.0019 ] Header already present for mb1_t194_prod.bin
[   0.0038 ] 
[   0.0043 ] tegrasign_v2 --key None --getmode mode.txt
[   0.0047 ] Assuming zero filled SBK key
[   0.0048 ] 
[   0.0053 ] tegrabct_v2 --chip 0x19 0 --sfuse tegra194-mb1-soft-fuses-l4t.cfg sfuse.bin
[   0.0058 ] 
[   0.0063 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x19 0 --sfuses sfuse.bin --download rcm mb1_t194_prod_sigheader.bin 0 0
[   0.0067 ] RCM 0 is saved as rcm_0.rcm
[   0.0086 ] RCM 1 is saved as rcm_1.rcm
[   0.0087 ] RCM 2 is saved as rcm_2.rcm
[   0.0087 ] List of rcm files are saved in rcm_list.xml
[   0.0087 ] 
[   0.0087 ] Signing RCM messages
[   0.0092 ] tegrasign_v2 --key None --list rcm_list.xml --pubkeyhash pub_key.key --getmontgomeryvalues montgomery.bin
[   0.0097 ] Assuming zero filled SBK key
[   0.0100 ] 
[   0.0100 ] Copying signature to RCM mesages
[   0.0105 ] tegrarcm_v2 --chip 0x19 0 --updatesig rcm_list_signed.xml
[   0.0112 ] 
[   0.0112 ] Generating br-bct
[   0.0117 ] Performing cfg overlay
[   0.0117 ] ['tegra194-mb1-bct-memcfg-p2888.cfg', 'tegra194-memcfg-sw-override.cfg']
[   0.0121 ] sw_memcfg_overlay.pl -c tegra194-mb1-bct-memcfg-p2888.cfg -s tegra194-memcfg-sw-override.cfg -o /home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/3363/tmpCAM7rq1.cfg
[   0.0328 ] 
[   0.0328 ] Updating dev and MSS params in BR BCT
[   0.0329 ] tegrabct_v2 --dev_param tegra194-br-bct-sdmmc.cfg --sdram /home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/3363/tmpCAM7rq1.cfg --brbct br_bct.cfg --sfuse tegra194-mb1-soft-fuses-l4t.cfg --chip 0x19 0
[   0.0609 ] 
[   0.0609 ] Updating Odmdata
[   0.0615 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --updatefields Odmdata =0x9190000
[   0.0621 ] 
[   0.0621 ] Get Signed section of bct
[   0.0626 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --listbct bct_list.xml
[   0.0631 ] 
[   0.0631 ] Signing BCT
[   0.0640 ] tegrasign_v2 --key None --list bct_list.xml --pubkeyhash pub_key.key --getmontgomeryvalues montgomery.bin
[   0.0645 ] Assuming zero filled SBK key
[   0.0645 ] 
[   0.0646 ] Updating BCT with signature
[   0.0650 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --updatesig bct_list_signed.xml
[   0.0656 ] 
[   0.0656 ] Generating coldboot mb1-bct
[   0.0661 ] tegrabct_v2 --chip 0x19 0 --mb1bct mb1_cold_boot_bct.cfg --sdram /home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/3363/tmpCAM7rq1.cfg --misc tegra194-mb1-bct-misc-l4t.cfg --scr tegra194-mb1-bct-scr-cbb-mini.cfg --pinmux tegra19x-mb1-pinmux-p2888-0000-a04-p2822-0000-b01.cfg --pmc tegra19x-mb1-padvoltage-p2888-0000-a00-p2822-0000-a00.cfg --pmic tegra194-mb1-bct-pmic-p2888-0001-a04-p2822-0000.cfg --brcommand tegra194-mb1-bct-reset-p2888-0000-p2822-0000.cfg --prod tegra19x-mb1-prod-p2888-0000-p2822-0000.cfg --gpioint tegra194-mb1-bct-gpioint-p2888-0000-p2822-0000.cfg --uphy tegra194-mb1-uphy-lane-p2888-0000-p2822-0000.cfg --device tegra19x-mb1-bct-device-sdmmc.cfg
[   0.0667 ] MB1-BCT version: 0x1

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

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

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

[   0.0749 ] Parsing config file :tegra194-mb1-bct-pmic-p2888-0001-a04-p2822-0000.cfg 
[   0.0751 ] Added Platform Config 4 data with size :- 348

[   0.0752 ] Parsing config file :tegra194-mb1-bct-reset-p2888-0000-p2822-0000.cfg 
[   0.0753 ] Added Platform Config 3 data with size :- 92
[   0.0753 ] 
[   0.0753 ] Parsing config file :tegra19x-mb1-prod-p2888-0000-p2822-0000.cfg 
[   0.0753 ] Added Platform Config 5 data with size :- 56
[   0.0753 ] 
[   0.0753 ] Parsing config file :tegra194-mb1-bct-gpioint-p2888-0000-p2822-0000.cfg 
[   0.0753 ] Added Platform Config 7 data with size :- 392
[   0.0753 ] 
[   0.0753 ] Parsing config file :tegra194-mb1-uphy-lane-p2888-0000-p2822-0000.cfg 
[   0.0753 ] Added Platform Config 8 data with size :- 12
[   0.0753 ] 
[   0.0753 ] Parsing config file :tegra19x-mb1-bct-device-sdmmc.cfg 
[   0.0753 ] Added Platform Config 9 data with size :- 32
[   0.0753 ] 
[   0.0758 ] tegrahost_v2 --chip 0x19 --align mb1_cold_boot_bct_MB1.bct
[   0.0762 ] 
[   0.0767 ] tegrahost_v2 --chip 0x19 0 --magicid MBCT --appendsigheader mb1_cold_boot_bct_MB1.bct zerosbk
[   0.0772 ] adding BCH for mb1_cold_boot_bct_MB1.bct
[   0.0776 ] 
[   0.0782 ] tegrasign_v2 --key None --list mb1_cold_boot_bct_MB1_sigheader.bct_list.xml
[   0.0787 ] Assuming zero filled SBK key
[   0.0788 ] 
[   0.0795 ] tegrahost_v2 --chip 0x19 0 --updatesigheader mb1_cold_boot_bct_MB1_sigheader.bct.encrypt mb1_cold_boot_bct_MB1_sigheader.bct.hash zerosbk
[   0.0801 ] 
[   0.0801 ] Generating recovery mb1-bct
[   0.0806 ] tegrabct_v2 --chip 0x19 0 --mb1bct mb1_bct.cfg --sdram /home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/3363/tmpCAM7rq1.cfg --misc tegra194-mb1-bct-misc-flash.cfg --scr tegra194-mb1-bct-scr-cbb-mini.cfg --pinmux tegra19x-mb1-pinmux-p2888-0000-a04-p2822-0000-b01.cfg --pmc tegra19x-mb1-padvoltage-p2888-0000-a00-p2822-0000-a00.cfg --pmic tegra194-mb1-bct-pmic-p2888-0001-a04-p2822-0000.cfg --brcommand tegra194-mb1-bct-reset-p2888-0000-p2822-0000.cfg --prod tegra19x-mb1-prod-p2888-0000-p2822-0000.cfg --gpioint tegra194-mb1-bct-gpioint-p2888-0000-p2822-0000.cfg --uphy tegra194-mb1-uphy-lane-p2888-0000-p2822-0000.cfg --device tegra19x-mb1-bct-device-sdmmc.cfg
[   0.0811 ] MB1-BCT version: 0x1

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

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

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

[   0.0896 ] Parsing config file :tegra194-mb1-bct-pmic-p2888-0001-a04-p2822-0000.cfg 
[   0.0898 ] Added Platform Config 4 data with size :- 348

[   0.0899 ] Parsing config file :tegra194-mb1-bct-reset-p2888-0000-p2822-0000.cfg 
[   0.0901 ] Added Platform Config 3 data with size :- 92
[   0.0901 ] 
[   0.0901 ] Parsing config file :tegra19x-mb1-prod-p2888-0000-p2822-0000.cfg 
[   0.0901 ] Added Platform Config 5 data with size :- 56
[   0.0901 ] 
[   0.0901 ] Parsing config file :tegra194-mb1-bct-gpioint-p2888-0000-p2822-0000.cfg 
[   0.0901 ] Added Platform Config 7 data with size :- 392
[   0.0901 ] 
[   0.0901 ] Parsing config file :tegra194-mb1-uphy-lane-p2888-0000-p2822-0000.cfg 
[   0.0901 ] Added Platform Config 8 data with size :- 12
[   0.0901 ] 
[   0.0901 ] Parsing config file :tegra19x-mb1-bct-device-sdmmc.cfg 
[   0.0901 ] Added Platform Config 9 data with size :- 32
[   0.0901 ] 
[   0.0907 ] tegrahost_v2 --chip 0x19 --align mb1_bct_MB1.bct
[   0.0912 ] 
[   0.0917 ] tegrahost_v2 --chip 0x19 0 --magicid MBCT --appendsigheader mb1_bct_MB1.bct zerosbk
[   0.0922 ] adding BCH for mb1_bct_MB1.bct
[   0.0926 ] 
[   0.0932 ] tegrasign_v2 --key None --list mb1_bct_MB1_sigheader.bct_list.xml
[   0.0936 ] Assuming zero filled SBK key
[   0.0937 ] 
[   0.0944 ] tegrahost_v2 --chip 0x19 0 --updatesigheader mb1_bct_MB1_sigheader.bct.encrypt mb1_bct_MB1_sigheader.bct.hash zerosbk
[   0.0949 ] 
[   0.0949 ] Generating coldboot mem-bct
[   0.0955 ] tegrabct_v2 --chip 0x19 0 --sdram /home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/3363/tmpCAM7rq1.cfg --membct /home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/3363/tmpCAM7rq1_1.bct /home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/3363/tmpCAM7rq1_2.bct /home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/3363/tmpCAM7rq1_3.bct /home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/3363/tmpCAM7rq1_4.bct
[   0.0959 ] Packing sdram param for instance[0]
[   0.1251 ] Packing sdram param for instance[1]
[   0.1252 ] Packing sdram param for instance[2]
[   0.1253 ] Packing sdram param for instance[3]
[   0.1253 ] Packing sdram param for instance[4]
[   0.1253 ] Packing sdram param for instance[5]
[   0.1253 ] Packing sdram param for instance[6]
[   0.1253 ] Packing sdram param for instance[7]
[   0.1253 ] Packing sdram param for instance[8]
[   0.1253 ] Packing sdram param for instance[9]
[   0.1253 ] Packing sdram param for instance[10]
[   0.1253 ] Packing sdram param for instance[11]
[   0.1254 ] Packing sdram param for instance[12]
[   0.1254 ] Packing sdram param for instance[13]
[   0.1254 ] Packing sdram param for instance[14]
[   0.1254 ] Packing sdram param for instance[15]
[   0.1254 ] 
[   0.1260 ] tegrahost_v2 --chip 0x19 0 --blocksize 512 --magicid MEMB --addsigheader_multi /home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/3363/tmpCAM7rq1_1.bct /home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/3363/tmpCAM7rq1_2.bct /home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/3363/tmpCAM7rq1_3.bct /home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/3363/tmpCAM7rq1_4.bct
[   0.1265 ] adding BCH for /home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/3363/tmpCAM7rq1_1.bct
[   0.1280 ] 
[   0.1280 ] Generating recovery mem-bct
[   0.1285 ] tegrabct_v2 --chip 0x19 0 --sdram /home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/3363/tmpCAM7rq1.cfg --membct /home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/3363/tmpCAM7rq1_1.bct /home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/3363/tmpCAM7rq1_2.bct /home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/3363/tmpCAM7rq1_3.bct /home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/3363/tmpCAM7rq1_4.bct
[   0.1290 ] Packing sdram param for instance[0]
[   0.1563 ] Packing sdram param for instance[1]
[   0.1564 ] Packing sdram param for instance[2]
[   0.1565 ] Packing sdram param for instance[3]
[   0.1567 ] Packing sdram param for instance[4]
[   0.1567 ] Packing sdram param for instance[5]
[   0.1567 ] Packing sdram param for instance[6]
[   0.1567 ] Packing sdram param for instance[7]
[   0.1567 ] Packing sdram param for instance[8]
[   0.1567 ] Packing sdram param for instance[9]
[   0.1567 ] Packing sdram param for instance[10]
[   0.1567 ] Packing sdram param for instance[11]
[   0.1567 ] Packing sdram param for instance[12]
[   0.1567 ] Packing sdram param for instance[13]
[   0.1567 ] Packing sdram param for instance[14]
[   0.1567 ] Packing sdram param for instance[15]
[   0.1567 ] 
[   0.1573 ] tegrahost_v2 --chip 0x19 --align /home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/3363/tmpCAM7rq1_1.bct
[   0.1578 ] 
[   0.1583 ] tegrahost_v2 --chip 0x19 0 --magicid MEMB --appendsigheader tmpCAM7rq1_1.bct zerosbk
[   0.1587 ] adding BCH for tmpCAM7rq1_1.bct
[   0.1594 ] 
[   0.1601 ] tegrasign_v2 --key None --list tmpCAM7rq1_1_sigheader.bct_list.xml
[   0.1605 ] Assuming zero filled SBK key
[   0.1606 ] 
[   0.1613 ] tegrahost_v2 --chip 0x19 0 --updatesigheader tmpCAM7rq1_1_sigheader.bct.encrypt tmpCAM7rq1_1_sigheader.bct.hash zerosbk
[   0.1618 ] 
[   0.1619 ] Boot Rom communication
[   0.1623 ] tegrarcm_v2 --chip 0x19 0 --rcm rcm_list_signed.xml
[   0.1628 ] BR_CID: 0x88021911645065c21000000002030140
[   0.1633 ] RCM version 0X190001
[   0.1759 ] Boot Rom communication completed
[   1.1915 ] 
[   2.1953 ] tegrarcm_v2 --isapplet
[   2.1978 ] Applet version 01.00.0000
[   2.2170 ] 
[   2.2171 ] Sending BCTs
[   2.2197 ] tegrarcm_v2 --download bct_bootrom br_bct_BR.bct --download bct_mb1 mb1_bct_MB1_sigheader.bct.encrypt --download bct_mem tmpCAM7rq1_1_sigheader.bct.encrypt
[   2.2222 ] Applet version 01.00.0000
[   2.2603 ] Sending bct_bootrom
[   2.2604 ] [................................................] 100%
[   2.2649 ] Sending bct_mb1
[   2.2697 ] [................................................] 100%
[   2.2764 ] Sending bct_mem
[   2.3592 ] [................................................] 100%
[   2.4701 ] 
[   2.4702 ] Generating blob
[   2.4732 ] tegrahost_v2 --chip 0x19 --align blob_nvtboot_recovery_cpu_t194.bin
[   2.4758 ] 
[   2.4784 ] tegrahost_v2 --chip 0x19 0 --magicid CPBL --appendsigheader blob_nvtboot_recovery_cpu_t194.bin zerosbk
[   2.4810 ] adding BCH for blob_nvtboot_recovery_cpu_t194.bin
[   2.4873 ] 
[   2.4879 ] tegrasign_v2 --key None --list blob_nvtboot_recovery_cpu_t194_sigheader.bin_list.xml
[   2.4884 ] Assuming zero filled SBK key
[   2.4886 ] 
[   2.4892 ] tegrahost_v2 --chip 0x19 0 --updatesigheader blob_nvtboot_recovery_cpu_t194_sigheader.bin.encrypt blob_nvtboot_recovery_cpu_t194_sigheader.bin.hash zerosbk
[   2.4899 ] 
[   2.4905 ] tegrahost_v2 --chip 0x19 --align blob_nvtboot_recovery_t194.bin
[   2.4909 ] 
[   2.4914 ] tegrahost_v2 --chip 0x19 0 --magicid MB2B --appendsigheader blob_nvtboot_recovery_t194.bin zerosbk
[   2.4919 ] adding BCH for blob_nvtboot_recovery_t194.bin
[   2.4940 ] 
[   2.4946 ] tegrasign_v2 --key None --list blob_nvtboot_recovery_t194_sigheader.bin_list.xml
[   2.4951 ] Assuming zero filled SBK key
[   2.4953 ] 
[   2.4960 ] tegrahost_v2 --chip 0x19 0 --updatesigheader blob_nvtboot_recovery_t194_sigheader.bin.encrypt blob_nvtboot_recovery_t194_sigheader.bin.hash zerosbk
[   2.4967 ] 
[   2.4973 ] tegrahost_v2 --chip 0x19 --align blob_preboot_c10_prod_cr.bin
[   2.4978 ] 
[   2.4983 ] tegrahost_v2 --chip 0x19 0 --magicid MTSP --appendsigheader blob_preboot_c10_prod_cr.bin zerosbk
[   2.4989 ] Header already present for blob_preboot_c10_prod_cr.bin
[   2.4991 ] 
[   2.4998 ] tegrasign_v2 --key None --list blob_preboot_c10_prod_cr_sigheader.bin_list.xml
[   2.5003 ] Assuming zero filled SBK key
[   2.5004 ] 
[   2.5011 ] tegrahost_v2 --chip 0x19 0 --updatesigheader blob_preboot_c10_prod_cr_sigheader.bin.encrypt blob_preboot_c10_prod_cr_sigheader.bin.hash zerosbk
[   2.5017 ] 
[   2.5024 ] tegrahost_v2 --chip 0x19 --align blob_mce_c10_prod_cr.bin
[   2.5029 ] 
[   2.5035 ] tegrahost_v2 --chip 0x19 0 --magicid MTSM --appendsigheader blob_mce_c10_prod_cr.bin zerosbk
[   2.5041 ] Header already present for blob_mce_c10_prod_cr.bin
[   2.5053 ] 
[   2.5060 ] tegrasign_v2 --key None --list blob_mce_c10_prod_cr_sigheader.bin_list.xml
[   2.5066 ] Assuming zero filled SBK key
[   2.5069 ] 
[   2.5077 ] tegrahost_v2 --chip 0x19 0 --updatesigheader blob_mce_c10_prod_cr_sigheader.bin.encrypt blob_mce_c10_prod_cr_sigheader.bin.hash zerosbk
[   2.5085 ] 
[   2.5092 ] tegrahost_v2 --chip 0x19 --align blob_mts_c10_prod_cr.bin
[   2.5098 ] 
[   2.5104 ] tegrahost_v2 --chip 0x19 0 --magicid MTSB --appendsigheader blob_mts_c10_prod_cr.bin zerosbk
[   2.5109 ] adding BCH for blob_mts_c10_prod_cr.bin
[   2.5694 ] 
[   2.5701 ] tegrasign_v2 --key None --list blob_mts_c10_prod_cr_sigheader.bin_list.xml
[   2.5706 ] Assuming zero filled SBK key
[   2.5726 ] 
[   2.5732 ] tegrahost_v2 --chip 0x19 0 --updatesigheader blob_mts_c10_prod_cr_sigheader.bin.encrypt blob_mts_c10_prod_cr_sigheader.bin.hash zerosbk
[   2.5760 ] 
[   2.5766 ] tegrahost_v2 --chip 0x19 --align blob_bpmp_t194.bin
[   2.5770 ] 
[   2.5775 ] tegrahost_v2 --chip 0x19 0 --magicid BPMF --appendsigheader blob_bpmp_t194.bin zerosbk
[   2.5779 ] adding BCH for blob_bpmp_t194.bin
[   2.5911 ] 
[   2.5919 ] tegrasign_v2 --key None --list blob_bpmp_t194_sigheader.bin_list.xml
[   2.5923 ] Assuming zero filled SBK key
[   2.5929 ] 
[   2.5936 ] tegrahost_v2 --chip 0x19 0 --updatesigheader blob_bpmp_t194_sigheader.bin.encrypt blob_bpmp_t194_sigheader.bin.hash zerosbk
[   2.5947 ] 
[   2.5953 ] tegrahost_v2 --chip 0x19 --align blob_tegra194-a02-bpmp-p2888-a04.dtb
[   2.5958 ] 
[   2.5962 ] tegrahost_v2 --chip 0x19 0 --magicid BPMD --appendsigheader blob_tegra194-a02-bpmp-p2888-a04.dtb zerosbk
[   2.5966 ] adding BCH for blob_tegra194-a02-bpmp-p2888-a04.dtb
[   2.6052 ] 
[   2.6059 ] tegrasign_v2 --key None --list blob_tegra194-a02-bpmp-p2888-a04_sigheader.dtb_list.xml
[   2.6063 ] Assuming zero filled SBK key
[   2.6068 ] 
[   2.6075 ] tegrahost_v2 --chip 0x19 0 --updatesigheader blob_tegra194-a02-bpmp-p2888-a04_sigheader.dtb.encrypt blob_tegra194-a02-bpmp-p2888-a04_sigheader.dtb.hash zerosbk
[   2.6085 ] 
[   2.6090 ] tegrahost_v2 --chip 0x19 --align blob_spe_t194.bin
[   2.6095 ] 
[   2.6100 ] tegrahost_v2 --chip 0x19 0 --magicid SPEF --appendsigheader blob_spe_t194.bin zerosbk
[   2.6105 ] adding BCH for blob_spe_t194.bin
[   2.6120 ] 
[   2.6127 ] tegrasign_v2 --key None --list blob_spe_t194_sigheader.bin_list.xml
[   2.6133 ] Assuming zero filled SBK key
[   2.6134 ] 
[   2.6142 ] tegrahost_v2 --chip 0x19 0 --updatesigheader blob_spe_t194_sigheader.bin.encrypt blob_spe_t194_sigheader.bin.hash zerosbk
[   2.6148 ] 
[   2.6155 ] tegrahost_v2 --chip 0x19 --align blob_tos_t194.img
[   2.6160 ] 
[   2.6166 ] tegrahost_v2 --chip 0x19 0 --magicid TOSB --appendsigheader blob_tos_t194.img zerosbk
[   2.6172 ] adding BCH for blob_tos_t194.img
[   2.6188 ] 
[   2.6195 ] tegrasign_v2 --key None --list blob_tos_t194_sigheader.img_list.xml
[   2.6200 ] Assuming zero filled SBK key
[   2.6202 ] 
[   2.6210 ] tegrahost_v2 --chip 0x19 0 --updatesigheader blob_tos_t194_sigheader.img.encrypt blob_tos_t194_sigheader.img.hash zerosbk
[   2.6218 ] 
[   2.6225 ] tegrahost_v2 --chip 0x19 --align blob_eks.img
[   2.6231 ] 
[   2.6238 ] tegrahost_v2 --chip 0x19 0 --magicid EKSB --appendsigheader blob_eks.img zerosbk
[   2.6244 ] adding BCH for blob_eks.img
[   2.6244 ] 
[   2.6252 ] tegrasign_v2 --key None --list blob_eks_sigheader.img_list.xml
[   2.6259 ] Assuming zero filled SBK key
[   2.6260 ] 
[   2.6269 ] tegrahost_v2 --chip 0x19 0 --updatesigheader blob_eks_sigheader.img.encrypt blob_eks_sigheader.img.hash zerosbk
[   2.6276 ] 
[   2.6284 ] tegrahost_v2 --chip 0x19 --align blob_camera-rtcpu-sce.bin
[   2.6291 ] 
[   2.6298 ] tegrahost_v2 --chip 0x19 0 --magicid DATA --appendsigheader blob_camera-rtcpu-sce.bin zerosbk
[   2.6305 ] adding BCH for blob_camera-rtcpu-sce.bin
[   2.6333 ] 
[   2.6342 ] tegrasign_v2 --key None --list blob_camera-rtcpu-sce_sigheader.bin_list.xml
[   2.6349 ] Assuming zero filled SBK key
[   2.6352 ] 
[   2.6362 ] tegrahost_v2 --chip 0x19 0 --updatesigheader blob_camera-rtcpu-sce_sigheader.bin.encrypt blob_camera-rtcpu-sce_sigheader.bin.hash zerosbk
[   2.6371 ] 
[   2.6379 ] tegrahost_v2 --chip 0x19 --align blob_tegra194-p2888-0001-p2822-0000.dtb
[   2.6387 ] 
[   2.6394 ] tegrahost_v2 --chip 0x19 0 --magicid CDTB --appendsigheader blob_tegra194-p2888-0001-p2822-0000.dtb zerosbk
[   2.6401 ] adding BCH for blob_tegra194-p2888-0001-p2822-0000.dtb
[   2.6469 ] 
[   2.6480 ] tegrasign_v2 --key None --list blob_tegra194-p2888-0001-p2822-0000_sigheader.dtb_list.xml
[   2.6487 ] Assuming zero filled SBK key
[   2.6492 ] 
[   2.6505 ] tegrahost_v2 --chip 0x19 0 --updatesigheader blob_tegra194-p2888-0001-p2822-0000_sigheader.dtb.encrypt blob_tegra194-p2888-0001-p2822-0000_sigheader.dtb.hash zerosbk
[   2.6517 ] 
[   2.6527 ] tegrahost_v2 --chip 0x19 --generateblob blob.xml blob.bin
[   2.6535 ] number of images in blob are 14
[   2.6537 ] blobsize is 46953016
[   2.6538 ] Added binary blob_nvtboot_recovery_cpu_t194_sigheader.bin.encrypt of size 236096
[   2.6707 ] Added binary blob_nvtboot_recovery_t194_sigheader.bin.encrypt of size 121632
[   2.6710 ] Added binary blob_preboot_c10_prod_cr_sigheader.bin.encrypt of size 25024
[   2.6714 ] Added binary blob_mce_c10_prod_cr_sigheader.bin.encrypt of size 144080
[   2.6718 ] Added binary blob_mts_c10_prod_cr_sigheader.bin.encrypt of size 3321168
[   2.6725 ] Added binary blob_bpmp_t194_sigheader.bin.encrypt of size 909552
[   2.6733 ] Added binary blob_tegra194-a02-bpmp-p2888-a04_sigheader.dtb.encrypt of size 606528
[   2.6738 ] Added binary blob_spe_t194_sigheader.bin.encrypt of size 95184
[   2.6741 ] Added binary blob_tos_t194_sigheader.img.encrypt of size 91008
[   2.6744 ] Added binary blob_eks_sigheader.img.encrypt of size 5184
[   2.6746 ] Added binary blob_boot.img of size 40726528
[   2.6944 ] Added binary blob_tegra194-p2888-0001-p2822-0000.dtb of size 270528
[   2.6999 ] Added binary blob_camera-rtcpu-sce_sigheader.bin.encrypt of size 125648
[   2.7003 ] Added binary blob_tegra194-p2888-0001-p2822-0000_sigheader.dtb.encrypt of size 274624
[   2.7167 ] 
[   2.7167 ] Sending bootloader and pre-requisite binaries
[   2.7174 ] tegrarcm_v2 --download blob blob.bin
[   2.7178 ] Applet version 01.00.0000
[   2.7407 ] Sending blob
[   2.7408 ] [................................................] 100%
[   9.1557 ] 
[   9.1585 ] tegrarcm_v2 --boot rcm
[   9.1610 ] Applet version 01.00.0000
[   9.1885 ] 
[   9.1885 ] RCM-boot started

*** The target t186ref has been flashed successfully. ***
Make target nfsroot(172.0.0.123:/data/nfs/general/) exported on the network and reset the board to boot

However, so far I managed to sort out how to get all filesystems read only with

echo u > /proc/sysrq-trigger

Now the issue seems to read from it somehow, that seems doable with the command below:

dd if=/dev/mmcblk0p1 | ssh user@hostpc dd of=/data/image.raw
30064771072 bytes (30 GB, 28 GiB) copied, 2579,47 s, 11,7 MB/s

Next challenge will be to write the image back to the partition.

ssh user@server dd if=/data/image.raw | dd of=/dev/mmcblk0p1 status=progress

Moreover, as it turned out and that I had a chance to test successfully at my environment is that
steps below will improve the backup in a way it will be distribute-able from the cloned image above to other devices:

cd /home/nvidia/Downloads/Xavier/Linux_for_Tegra/bootloader/
  sudo ./mksparse  -v --fillpattern=0 /data/image.raw system.img

then

cd /home/nvidia/Downloads/Xavier/Linux_for_Tegra/
  sudo ./flash.sh -r jetson-xavier mmcblk0p1

References:
Magic Sys RQ key

NFS rescue! I like it! :P

I’m not sure, but one thought does occur: The boot configuration could still exist in part in “/boot” of eMMC. Once boot completes (and I don’t know if anything on eMMC is actually used) I would expect eMMC to be completely free for modification. This isn’t likely a problem, but have you considered editing the “chosen” entry of the device tree for cases where it doesn’t do as expected?

You could also reverse compile the device tree and inspect it to see if something there might be getting in the way (or just look at file “/proc/device-tree/chosen/bootargs”). Make sure also any extlinux.conf entry isn’t getting in the way.

Thank you for pointing out!
I was intending to revise boot files [chosen order] wile being reading documentation on that, but than I have completely forgotten about that intention. Will revise them, indeed.

cat /proc/device-tree/chosen/bootargs
root=/dev/mmcblk0p1 rw rootwait console=ttyTCU0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 rootfstype=ext4 OS=l4t video=tegrafb no_console_suspend=1 earlycon=tegra_comb_uart,mmio32,0x0c168000 gpt usbcore.old_scheme_first=1 tegraid=19.1.2.0.0 maxcpus=8 boot.slot_suffix= boot.ratchetvalues=0.2.2 sdhci_tegra.en_boot_part_access=1

After setting a device to boot from NFS, using the mentioned:

sudo ./flash.sh -N <ip-addr-of-linux-host>:/<path-to-NFS-rootfs> --rcm-boot jetson-xavier eth0

Is it possible to set that device back to booting from eMMC without re-flashing the entire image? I wouldn’t think you would want to risk re-flashing the source of the clone (at least not prior to verifying the dd image on another device).

Thanks for the good advice in this thread!

I will suggest cloning first, saving a copy of the clone (the raw imagine, not the smaller sparse image), and then loopback mounting (read-write) a copy (sorry, lots of disk space…unavoidable) of the clone on the “Linux_for_Tegra/rootfs/” location. Then flash normally. There are issues with changes in how boot is structured which prevent making many changes in any easy way, and although there are times you can get around altering the root partition odds are high you will lose original content before figuring out the correct options.

I was able to successfully “clone” using dd and netcat the old fashioned way, granted you need a boot-able system.

On receiving PC
Listen on desired port and save to file

netcat -l -p <port> > your_image_file

On Xavier system
Set mounted file systems to read only

echo u > /proc/sysrq-trigger

Create the image and pipe to listener IP and port

sudo dd if=/dev/mmcblk0p1 | netcat <ip_address> <port>

Then follow the other directions in this thread to make sparse image and flash.

Hi guys,

do you have any updates on cloning Xavier while being in recovery mode?

I have not heard anything, but I am guessing the next release will have some update. I have no information on when that next release is, but once again (as a guess) I suspect that release will be “soon” (not sure if that is metric or American “soon”…I may have some conversion error in that :).

Thanks a lot @linuxdev :) Let’s hope that the “soon” will be a matter of weeks, less than a month :)