Error creating backup.img

Hi,
I want to create a backup image from my NX. This command should do the job :
sudo ./flash.sh -r -k APP -G backup.img jetson-xavier mmcblk0p1
but it gives me :
Error: return value 8
and backup.img no such file or directory

Full log

louis@louis-All-Series:~/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra$ sudo ./flash.sh -r -k APP -G backup.img jetson-xavier mmcblk0p1
###############################################################################

L4T BSP Information:

R32 , REVISION: 5.1

###############################################################################

Target Board Information:

Name: jetson-xavier, Board Family: t186ref, SoC: Tegra 194,

OpMode: production, Boot Authentication: NS,

Disk encryption: disabled ,

###############################################################################
copying soft_fuses(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-soft-fuses-l4t.cfg)… done.
./tegraflash.py --chip 0x19 --applet “/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/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.0037 ] Generating RCM messages
[ 0.0044 ] tegrahost_v2 --chip 0x19 0 --magicid MB1B --appendsigheader /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/mb1_t194_prod.bin zerosbk
[ 0.0050 ] Header already present for /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/mb1_t194_prod.bin
[ 0.0081 ]
[ 0.0088 ] tegrasign_v2 --key None --getmode mode.txt
[ 0.0094 ] Assuming zero filled SBK key
[ 0.0095 ]
[ 0.0102 ] tegrasign_v2 --key None --file /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.bin --offset 2960 --length 1136 --pubkeyhash pub_key.key
[ 0.0108 ] Assuming zero filled SBK key
[ 0.0113 ]
[ 0.0120 ] tegrahost_v2 --chip 0x19 0 --updatesigheader /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.bin /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.hash zerosbk
[ 0.0158 ]
[ 0.0168 ] tegrabct_v2 --chip 0x19 0 --sfuse tegra194-mb1-soft-fuses-l4t.cfg.pdf sfuse.bin
[ 0.0176 ]
[ 0.0185 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x19 0 --sfuses sfuse.bin --download rcm /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.bin 0 0
[ 0.0192 ] RCM 0 is saved as rcm_0.rcm
[ 0.0233 ] RCM 1 is saved as rcm_1.rcm
[ 0.0233 ] RCM 2 is saved as rcm_2.rcm
[ 0.0233 ] List of rcm files are saved in rcm_list.xml
[ 0.0233 ]
[ 0.0234 ] Signing RCM messages
[ 0.0241 ] tegrasign_v2 --key None --list rcm_list.xml --pubkeyhash pub_key.key --getmontgomeryvalues montgomery.bin
[ 0.0248 ] Assuming zero filled SBK key
[ 0.0253 ]
[ 0.0254 ] Copying signature to RCM mesages
[ 0.0261 ] tegrarcm_v2 --chip 0x19 0 --updatesig rcm_list_signed.xml
[ 0.0274 ]
[ 0.0274 ] Boot Rom communication
[ 0.0282 ] tegrarcm_v2 --chip 0x19 0 --rcm rcm_list_signed.xml --skipuid
[ 0.0289 ] RCM version 0X190001
[ 0.0299 ] Boot Rom communication completed
[ 1.0450 ]
[ 2.0485 ] tegrarcm_v2 --isapplet
[ 2.0505 ] Applet version 01.00.0000
[ 2.0534 ]
[ 2.0554 ] tegrarcm_v2 --ismb2
[ 2.0774 ]
[ 2.0790 ] tegrahost_v2 --chip 0x19 --align nvtboot_applet_t194.bin
[ 2.0805 ]
[ 2.0819 ] tegrahost_v2 --chip 0x19 0 --magicid PLDT --appendsigheader nvtboot_applet_t194.bin zerosbk
[ 2.0830 ] adding BCH for nvtboot_applet_t194.bin
[ 2.0882 ]
[ 2.0904 ] tegrasign_v2 --key None --list nvtboot_applet_t194_sigheader.bin_list.xml --pubkeyhash pub_key.key
[ 2.0912 ] Assuming zero filled SBK key
[ 2.0916 ]
[ 2.0928 ] tegrahost_v2 --chip 0x19 0 --updatesigheader nvtboot_applet_t194_sigheader.bin.encrypt nvtboot_applet_t194_sigheader.bin.hash zerosbk
[ 2.0954 ]
[ 2.0962 ] tegrarcm_v2 --download mb2 nvtboot_applet_t194_sigheader.bin.encrypt
[ 2.0969 ] Applet version 01.00.0000
[ 2.1134 ] Sending mb2
[ 2.1135 ] […] 100%
[ 2.1266 ]
[ 2.1286 ] tegrarcm_v2 --boot recovery
[ 2.1302 ] Applet version 01.00.0000
[ 2.1529 ]
[ 3.1556 ] tegrarcm_v2 --isapplet
[ 3.1593 ]
[ 3.1606 ] tegrarcm_v2 --ismb2
[ 3.1617 ] MB2 Applet version 01.00.0000
[ 3.1781 ]
[ 3.1797 ] tegrarcm_v2 --ismb2
[ 3.1810 ] MB2 Applet version 01.00.0000
[ 3.1981 ]
[ 3.1998 ] Retrieving board information
[ 3.2014 ] tegrarcm_v2 --oem platformdetails chip chip_info.bin
[ 3.2027 ] MB2 Applet version 01.00.0000
[ 3.2198 ] Saved platform info in chip_info.bin
[ 3.2242 ] Chip minor revision: 2
[ 3.2245 ] Bootrom revision: 0xf
[ 3.2247 ] Ram code: 0x0
[ 3.2247 ] Chip sku: 0xde
[ 3.2247 ] Chip Sample: non es
[ 3.2247 ]
[ 3.2251 ] Retrieving EEPROM data
[ 3.2252 ] tegrarcm_v2 --oem platformdetails eeprom cvm /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/cvm.bin
[ 3.2267 ] MB2 Applet version 01.00.0000
[ 3.2442 ] Saved platform info in /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/cvm.bin
[ 3.2786 ]
[ 3.2788 ] Rebooting to recovery mode
[ 3.2803 ] tegrarcm_v2 --ismb2
[ 3.2810 ] MB2 Applet version 01.00.0000
[ 3.2834 ]
[ 3.2834 ] Rebooting to recovery mode
[ 3.2842 ] tegrarcm_v2 --reboot recovery
[ 3.2850 ] MB2 Applet version 01.00.0000
[ 3.3087 ]
Board ID(3668) version(200) sku(0001) revision(G.0)
Copy /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/kernel/dtb/tegra194-p2888-0001-p2822-0000.dtb to /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/kernel/dtb/tegra194-p2888-0001-p2822-0000.dtb.rec
copying bctfile(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-memcfg-p2888.cfg)… done.
copying bctfile1(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-memcfg-sw-override.cfg)… done.
copying uphy_config(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-uphy-lane-p2888-0000-p2822-0000.cfg)… done.
copying device_config(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-bct-device-sdmmc.cfg)… done.
copying misc_cold_boot_config(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-misc-l4t.cfg)… done.
copying misc_config(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-misc-flash.cfg)… done.
copying pinmux_config(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-pinmux-p2888-0000-a04-p2822-0000-b01.cfg)… done.
copying gpioint_config(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-gpioint-p2888-0000-p2822-0000.cfg)… done.
copying pmic_config(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-pmic-p2888-0001-a01-p2822-0000.cfg)… done.
copying pmc_config(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-padvoltage-p2888-0000-a00-p2822-0000-a00.cfg)… done.
copying prod_config(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-prod-p2888-0000-p2822-0000.cfg)… done.
copying scr_config(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-scr-cbb-mini.cfg)… done.
copying scr_cold_boot_config(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-scr-cbb-mini.cfg)… done.
copying bootrom_config(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-reset-p2888-0000-p2822-0000.cfg)… done.
copying dev_params(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-br-bct-sdmmc.cfg)… done.
Existing bootloader(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/nvtboot_cpu_t194.bin) reused.
copying initrd(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/l4t_initrd.img)… done.
Making Boot image… done.
/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/tegraflash.py --chip 0x19 --key --cmd sign boot.img
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.0004 ] Generating signature
[ 0.0011 ] tegrasign_v2 --key --getmode mode.txt
[ 0.0016 ] Assuming zero filled SBK key
[ 0.0018 ]
[ 0.0020 ] header_magic: 414e4452
[ 0.0026 ] tegrahost_v2 --chip 0x19 --align 1_boot.img
[ 0.0032 ]
[ 0.0040 ] tegrahost_v2 --chip 0x19 0 --magicid DATA --appendsigheader 1_boot.img zerosbk
[ 0.0047 ] adding BCH for 1_boot.img
[ 0.9815 ]
[ 0.9830 ] tegrasign_v2 --key --list 1_boot_sigheader.img_list.xml --pubkeyhash pub_key.key
[ 0.9837 ] Assuming zero filled SBK key
[ 1.0236 ]
[ 1.0246 ] tegrahost_v2 --chip 0x19 0 --updatesigheader 1_boot_sigheader.img.encrypt 1_boot_sigheader.img.hash zerosbk
[ 1.9074 ]
[ 1.9416 ] Signed file: /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/temp_user_dir/boot_sigheader.img.encrypt
l4t_sign_image.sh: Generate header for boot_sigheader.img.encrypt
l4t_sign_image.sh: chip 0x19: add 0x2827000 to offset 0x8 in sig file
l4t_sign_image.sh: Generate 16-byte-size-aligned base file for boot_sigheader.img.encrypt
l4t_sign_image.sh: the signed file is /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/temp_user_dir/boot_sigheader.img.encrypt
done.
Making recovery ramdisk for recovery image…
Re-generating recovery ramdisk for recovery image…
~/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/ramdisk_tmp ~/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader ~/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra
30402 blocs
_BASE_KERNEL_VERSION=4.9.201-tegra
~/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/ramdisk_tmp/lib ~/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/ramdisk_tmp ~/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader ~/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra
115053 blocs
Making Recovery image…
copying recdtbfile(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/kernel/dtb/tegra194-p2888-0001-p2822-0000.dtb.rec)… done.
20+0 enregistrements lus
20+0 enregistrements écrits
20 bytes copied, 0,000397911 s, 50,3 kB/s
Existing sosfile(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/mb1_t194_prod.bin) reused.
Existing tegraboot(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/nvtboot_t194.bin) reused.
Existing cpu_bootloader(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/nvtboot_cpu_t194.bin) reused.
Existing mb2blfile(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/nvtboot_recovery_t194.bin) reused.
Existing mtspreboot(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/preboot_c10_prod_cr.bin) reused.
Existing mcepreboot(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/mce_c10_prod_cr.bin) reused.
Existing mtsproper(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/mts_c10_prod_cr.bin) reused.
Existing mb1file(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/mb1_t194_prod.bin) reused.
Existing bpffile(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/bpmp_t194.bin) reused.
copying bpfdtbfile(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/t186ref/tegra194-a02-bpmp-p2888-a01.dtb)… done.
Existing scefile(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/camera-rtcpu-sce.img) reused.
Existing camerafw(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/camera-rtcpu-rce.img) reused.
Existing spefile(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/spe_t194.bin) reused.
Existing drameccfile(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/dram-ecc.bin) reused.
Existing badpagefile(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/badpage.bin) reused.
Existing wb0boot(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/warmboot_t194_prod.bin) reused.
Existing tosfile(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/tos-trusty_t194.img) reused.
Existing eksfile(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/eks.img) reused.
copying soft_fuses(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-soft-fuses-l4t.cfg)… done.
copying dtbfile(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/kernel/dtb/tegra194-p2888-0001-p2822-0000.dtb)… done.
Copying nv_boot_control.conf to rootfs
/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/tegraflash.py --chip 0x19 --key --cmd sign kernel_tegra194-p2888-0001-p2822-0000.dtb
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands

[ 0.0004 ] Generating signature
[ 0.0011 ] tegrasign_v2 --key --getmode mode.txt
[ 0.0019 ] Assuming zero filled SBK key
[ 0.0021 ]
[ 0.0022 ] header_magic: d00dfeed
[ 0.0030 ] tegrahost_v2 --chip 0x19 --align 1_kernel_tegra194-p2888-0001-p2822-0000.dtb
[ 0.0040 ]
[ 0.0047 ] tegrahost_v2 --chip 0x19 0 --magicid DATA --appendsigheader 1_kernel_tegra194-p2888-0001-p2822-0000.dtb zerosbk
[ 0.0053 ] adding BCH for 1_kernel_tegra194-p2888-0001-p2822-0000.dtb
[ 0.0125 ]
[ 0.0138 ] tegrasign_v2 --key --list 1_kernel_tegra194-p2888-0001-p2822-0000_sigheader.dtb_list.xml --pubkeyhash pub_key.key
[ 0.0144 ] Assuming zero filled SBK key
[ 0.0148 ]
[ 0.0157 ] tegrahost_v2 --chip 0x19 0 --updatesigheader 1_kernel_tegra194-p2888-0001-p2822-0000_sigheader.dtb.encrypt 1_kernel_tegra194-p2888-0001-p2822-0000_sigheader.dtb.hash zerosbk
[ 0.0198 ]
[ 0.0202 ] Signed file: /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/temp_user_dir/kernel_tegra194-p2888-0001-p2822-0000_sigheader.dtb.encrypt
l4t_sign_image.sh: Generate header for kernel_tegra194-p2888-0001-p2822-0000_sigheader.dtb.encrypt
l4t_sign_image.sh: chip 0x19: add 0x45209 to offset 0x8 in sig file
l4t_sign_image.sh: Generate 16-byte-size-aligned base file for kernel_tegra194-p2888-0001-p2822-0000_sigheader.dtb.encrypt
l4t_sign_image.sh: the sign header is saved at kernel_tegra194-p2888-0001-p2822-0000.dtb.sig
done.
/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/tegraflash.py --chip 0x19 --key --cmd sign kernel_tegra194-p2888-0001-p2822-0000.dtb
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands

[ 0.0004 ] Generating signature
[ 0.0011 ] tegrasign_v2 --key --getmode mode.txt
[ 0.0017 ] Assuming zero filled SBK key
[ 0.0018 ]
[ 0.0020 ] header_magic: d00dfeed
[ 0.0027 ] tegrahost_v2 --chip 0x19 --align 1_kernel_tegra194-p2888-0001-p2822-0000.dtb
[ 0.0035 ]
[ 0.0042 ] tegrahost_v2 --chip 0x19 0 --magicid DATA --appendsigheader 1_kernel_tegra194-p2888-0001-p2822-0000.dtb zerosbk
[ 0.0048 ] adding BCH for 1_kernel_tegra194-p2888-0001-p2822-0000.dtb
[ 0.0120 ]
[ 0.0133 ] tegrasign_v2 --key --list 1_kernel_tegra194-p2888-0001-p2822-0000_sigheader.dtb_list.xml --pubkeyhash pub_key.key
[ 0.0141 ] Assuming zero filled SBK key
[ 0.0146 ]
[ 0.0155 ] tegrahost_v2 --chip 0x19 0 --updatesigheader 1_kernel_tegra194-p2888-0001-p2822-0000_sigheader.dtb.encrypt 1_kernel_tegra194-p2888-0001-p2822-0000_sigheader.dtb.hash zerosbk
[ 0.0199 ]
[ 0.0203 ] Signed file: /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/temp_user_dir/kernel_tegra194-p2888-0001-p2822-0000_sigheader.dtb.encrypt
l4t_sign_image.sh: Generate header for kernel_tegra194-p2888-0001-p2822-0000_sigheader.dtb.encrypt
l4t_sign_image.sh: chip 0x19: add 0x45209 to offset 0x8 in sig file
l4t_sign_image.sh: Generate 16-byte-size-aligned base file for kernel_tegra194-p2888-0001-p2822-0000_sigheader.dtb.encrypt
l4t_sign_image.sh: the signed file is /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/temp_user_dir/kernel_tegra194-p2888-0001-p2822-0000_sigheader.dtb.encrypt
done.
Skip generating system.img
Existing tbcfile(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/cboot_t194.bin) reused.
copying tbcdtbfile(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/kernel/dtb/tegra194-p2888-0001-p2822-0000.dtb)… done.
copying cfgfile(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/t186ref/cfg/flash_t194_sdmmc.xml) to flash.xml… done.
Existing flasher(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/nvtboot_recovery_cpu_t194.bin) reused.
Existing flashapp(/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/tegraflash.py) reused.
*** Reading [APP] and storing to /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/backup.img ***
./tegraflash.py --bl nvtboot_recovery_cpu_t194.bin --chip 0x19 --applet mb1_t194_prod.bin --sdram_config tegra194-mb1-bct-memcfg-p2888.cfg,tegra194-memcfg-sw-override.cfg --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-a01-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 --soft_fuses tegra194-mb1-soft-fuses-l4t.cfg --cfg flash.xml --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-a01.dtb; spe_fw spe_t194.bin; tlk tos-trusty_t194.img; eks eks.img; bootloader_dtb tegra194-p2888-0001-p2822-0000.dtb” --odmdata 0x9190000 --cmd “read APP /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/backup.img”
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.0066 ] Generating RCM messages
[ 0.0072 ] tegrahost_v2 --chip 0x19 0 --magicid MB1B --appendsigheader mb1_t194_prod.bin zerosbk
[ 0.0079 ] Header already present for mb1_t194_prod.bin
[ 0.0109 ]
[ 0.0116 ] tegrasign_v2 --key None --getmode mode.txt
[ 0.0122 ] Assuming zero filled SBK key
[ 0.0123 ]
[ 0.0130 ] tegrasign_v2 --key None --file mb1_t194_prod_sigheader.bin --offset 2960 --length 1136 --pubkeyhash pub_key.key
[ 0.0137 ] Assuming zero filled SBK key
[ 0.0142 ]
[ 0.0150 ] tegrahost_v2 --chip 0x19 0 --updatesigheader mb1_t194_prod_sigheader.bin mb1_t194_prod_sigheader.hash zerosbk
[ 0.0188 ]
[ 0.0194 ] tegrabct_v2 --chip 0x19 0 --sfuse tegra194-mb1-soft-fuses-l4t.cfg sfuse.bin
[ 0.0202 ]
[ 0.0209 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x19 0 --sfuses sfuse.bin --download rcm mb1_t194_prod_sigheader.bin 0 0
[ 0.0214 ] RCM 0 is saved as rcm_0.rcm
[ 0.0251 ] RCM 1 is saved as rcm_1.rcm
[ 0.0252 ] RCM 2 is saved as rcm_2.rcm
[ 0.0252 ] List of rcm files are saved in rcm_list.xml
[ 0.0252 ]
[ 0.0253 ] Signing RCM messages
[ 0.0259 ] tegrasign_v2 --key None --list rcm_list.xml --pubkeyhash pub_key.key --getmontgomeryvalues montgomery.bin
[ 0.0264 ] Assuming zero filled SBK key
[ 0.0269 ]
[ 0.0269 ] Copying signature to RCM mesages
[ 0.0276 ] tegrarcm_v2 --chip 0x19 0 --updatesig rcm_list_signed.xml
[ 0.0287 ]
[ 0.0287 ] Boot Rom communication
[ 0.0294 ] tegrarcm_v2 --chip 0x19 0 --rcm rcm_list_signed.xml
[ 0.0300 ] BR_CID: 0x8802191164705706200000000f008040
[ 0.0305 ] RCM version 0X190001
[ 0.0435 ] Boot Rom communication completed
[ 1.0588 ]
[ 2.0630 ] tegrarcm_v2 --isapplet
[ 2.0656 ] Applet version 01.00.0000
[ 2.0813 ]
[ 2.0832 ] tegrasign_v2 --key None --getmode mode.txt
[ 2.0850 ] Assuming zero filled SBK key
[ 2.0853 ]
[ 2.0856 ] Parsing partition layout
[ 2.0872 ] tegraparser_v2 --pt flash.xml.tmp
[ 2.0892 ]
[ 2.0893 ] Creating list of images to be signed
[ 2.0906 ] tegrahost_v2 --chip 0x19 0 --partitionlayout flash.xml.bin --list images_list.xml zerosbk
[ 2.0917 ] MB1: Nvheader already present is mb1_t194_prod.bin
[ 2.0926 ] Header already present for mb1_t194_prod_sigheader.bin
[ 2.0932 ] MB1: Nvheader already present is mb1_t194_prod.bin
[ 2.0987 ] Header already present for mb1_t194_prod_sigheader.bin
[ 2.0998 ] adding BCH for spe_t194.bin
[ 2.1049 ] adding BCH for spe_t194.bin
[ 2.1079 ] adding BCH for nvtboot_t194.bin
[ 2.1100 ] adding BCH for nvtboot_t194.bin
[ 2.1137 ] Header already present for preboot_c10_prod_cr.bin
[ 2.1174 ] Header already present for preboot_c10_prod_cr.bin
[ 2.1178 ] Header already present for mce_c10_prod_cr.bin
[ 2.1181 ] Header already present for mce_c10_prod_cr.bin
[ 2.1198 ] adding BCH for mts_c10_prod_cr.bin
[ 2.1231 ] adding BCH for mts_c10_prod_cr.bin
[ 2.1991 ] adding BCH for cboot_t194.bin
[ 2.2745 ] adding BCH for cboot_t194.bin
[ 2.2843 ] adding BCH for tegra194-p2888-0001-p2822-0000.dtb
[ 2.2942 ] adding BCH for tegra194-p2888-0001-p2822-0000.dtb
[ 2.3006 ] adding BCH for tos-trusty_t194.img
[ 2.3069 ] adding BCH for tos-trusty_t194.img
[ 2.3158 ] adding BCH for eks.img
[ 2.3242 ] adding BCH for eks.img
[ 2.3243 ] adding BCH for bpmp_t194.bin
[ 2.3250 ] adding BCH for bpmp_t194.bin
[ 2.3445 ] adding BCH for tegra194-a02-bpmp-p2888-a01.dtb
[ 2.3646 ] adding BCH for tegra194-a02-bpmp-p2888-a01.dtb
[ 2.3814 ] adding BCH for camera-rtcpu-rce.img
[ 2.3982 ] adding BCH for camera-rtcpu-rce.img
[ 2.4041 ] adding BCH for adsp-fw.bin
[ 2.4099 ] adding BCH for adsp-fw.bin
[ 2.4117 ] Header already present for warmboot_t194_prod.bin
[ 2.4137 ] Header already present for warmboot_t194_prod.bin
[ 2.4144 ] adding BCH for recovery.img
[ 2.4421 ] adding BCH for tegra194-p2888-0001-p2822-0000.dtb.rec
[ 3.6874 ] adding BCH for boot.img
[ 3.7140 ] adding BCH for boot.img
[ 4.6513 ] adding BCH for kernel_tegra194-p2888-0001-p2822-0000.dtb
[ 5.9241 ] adding BCH for kernel_tegra194-p2888-0001-p2822-0000.dtb
[ 5.9420 ]
[ 5.9420 ] Filling MB1 storage info
[ 5.9420 ] Generating br-bct
[ 5.9429 ] Performing cfg overlay
[ 5.9430 ] [‘tegra194-mb1-bct-memcfg-p2888.cfg’, ‘tegra194-memcfg-sw-override.cfg’]
[ 5.9432 ] sw_memcfg_overlay.pl -c tegra194-mb1-bct-memcfg-p2888.cfg -s tegra194-memcfg-sw-override.cfg -o /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/18691/tmpfkd794o11.cfg
[ 5.9761 ]
[ 5.9762 ] Updating dev and MSS params in BR BCT
[ 5.9763 ] tegrabct_v2 --dev_param tegra194-br-bct-sdmmc.cfg --sdram /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/18691/tmpfkd794o11.cfg --brbct br_bct.cfg --sfuse tegra194-mb1-soft-fuses-l4t.cfg --chip 0x19 0
[ 6.0263 ]
[ 6.0264 ] Updating bl info
[ 6.0272 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --updateblinfo flash.xml.bin
[ 6.0290 ]
[ 6.0290 ] Generating signatures
[ 6.0297 ] tegrasign_v2 --key None --list images_list.xml --pubkeyhash pub_key.key
[ 6.0303 ] Assuming zero filled SBK key
[ 6.5244 ]
[ 6.5244 ] Send BCT from Host
[ 6.5244 ] Generating br-bct
[ 6.5255 ] Performing cfg overlay
[ 6.5256 ] [’/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/18691/tmpfkd794o11.cfg’]
[ 6.5256 ] Updating dev and MSS params in BR BCT
[ 6.5256 ] tegrabct_v2 --dev_param tegra194-br-bct-sdmmc.cfg --sdram /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/18691/tmpfkd794o11.cfg --brbct br_bct.cfg --sfuse tegra194-mb1-soft-fuses-l4t.cfg --chip 0x19 0
[ 6.5840 ]
[ 6.5840 ] Updating bl info
[ 6.5848 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --updateblinfo flash.xml.bin --updatesig images_list_signed.xml
[ 6.5883 ]
[ 6.5883 ] Updating smd info
[ 6.5890 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 --updatesmdinfo flash.xml.bin
[ 6.5899 ]
[ 6.5899 ] Updating Odmdata
[ 6.5906 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --updatefields Odmdata =0x9190000
[ 6.5915 ]
[ 6.5915 ] Get Signed section of bct
[ 6.5921 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --listbct bct_list.xml
[ 6.5928 ]
[ 6.5935 ] tegrasign_v2 --key None --list bct_list.xml --pubkeyhash pub_key.key --getmontgomeryvalues montgomery.bin
[ 6.5940 ] Assuming zero filled SBK key
[ 6.5942 ]
[ 6.5942 ] Updating BCT with signature
[ 6.5949 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --updatesig bct_list_signed.xml
[ 6.5958 ]
[ 6.5958 ] Generating coldboot mb1-bct
[ 6.5967 ] tegrabct_v2 --chip 0x19 0 --mb1bct mb1_cold_boot_bct.cfg --sdram /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/18691/tmpfkd794o11.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-a01-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
[ 6.5972 ] MB1-BCT version: 0x1

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

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

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

[ 6.6167 ] Parsing config file :tegra194-mb1-bct-pmic-p2888-0001-a01-p2822-0000.cfg
[ 6.6171 ] File read failed
[ 6.6172 ] File read failed
[ 6.6172 ] Added Platform Config 4 data with size :- 380
[ 6.6174 ]
[ 6.6174 ] Parsing config file :tegra194-mb1-bct-reset-p2888-0000-p2822-0000.cfg
[ 6.6174 ] Added Platform Config 3 data with size :- 92
[ 6.6174 ]
[ 6.6174 ] Parsing config file :tegra19x-mb1-prod-p2888-0000-p2822-0000.cfg
[ 6.6174 ] Added Platform Config 5 data with size :- 56
[ 6.6174 ]
[ 6.6174 ] Parsing config file :tegra194-mb1-bct-gpioint-p2888-0000-p2822-0000.cfg
[ 6.6174 ] Added Platform Config 7 data with size :- 392
[ 6.6174 ]
[ 6.6174 ] Parsing config file :tegra194-mb1-uphy-lane-p2888-0000-p2822-0000.cfg
[ 6.6174 ] Added Platform Config 8 data with size :- 12
[ 6.6174 ]
[ 6.6174 ] Parsing config file :tegra19x-mb1-bct-device-sdmmc.cfg
[ 6.6174 ] Added Platform Config 9 data with size :- 32
[ 6.6174 ]
[ 6.6175 ] Updating mb1-bct with firmware information
[ 6.6182 ] tegrabct_v2 --chip 0x19 --mb1bct mb1_cold_boot_bct_MB1.bct --updatefwinfo flash.xml.bin
[ 6.6187 ] MB1-BCT version: 0x1
[ 6.6198 ]
[ 6.6198 ] Updating mb1-bct with storage information
[ 6.6205 ] tegrabct_v2 --chip 0x19 --mb1bct mb1_cold_boot_bct_MB1.bct --updatestorageinfo flash.xml.bin
[ 6.6210 ] MB1-BCT version: 0x1
[ 6.6213 ]
[ 6.6220 ] tegrahost_v2 --chip 0x19 --align mb1_cold_boot_bct_MB1.bct
[ 6.6226 ]
[ 6.6233 ] tegrahost_v2 --chip 0x19 0 --magicid MBCT --appendsigheader mb1_cold_boot_bct_MB1.bct zerosbk
[ 6.6239 ] adding BCH for mb1_cold_boot_bct_MB1.bct
[ 6.6246 ]
[ 6.6255 ] tegrasign_v2 --key None --list mb1_cold_boot_bct_MB1_sigheader.bct_list.xml --pubkeyhash pub_key.key
[ 6.6260 ] Assuming zero filled SBK key
[ 6.6262 ]
[ 6.6270 ] tegrahost_v2 --chip 0x19 0 --updatesigheader mb1_cold_boot_bct_MB1_sigheader.bct.encrypt mb1_cold_boot_bct_MB1_sigheader.bct.hash zerosbk
[ 6.6281 ]
[ 6.6282 ] Generating recovery mb1-bct
[ 6.6289 ] tegrabct_v2 --chip 0x19 0 --mb1bct mb1_bct.cfg --sdram /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/18691/tmpfkd794o11.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-a01-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
[ 6.6295 ] MB1-BCT version: 0x1

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

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

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

[ 6.6466 ] Parsing config file :tegra194-mb1-bct-pmic-p2888-0001-a01-p2822-0000.cfg
[ 6.6471 ] File read failed
[ 6.6472 ] File read failed
[ 6.6472 ] Added Platform Config 4 data with size :- 380
[ 6.6472 ]
[ 6.6472 ] Parsing config file :tegra194-mb1-bct-reset-p2888-0000-p2822-0000.cfg
[ 6.6472 ] Added Platform Config 3 data with size :- 92
[ 6.6472 ]
[ 6.6472 ] Parsing config file :tegra19x-mb1-prod-p2888-0000-p2822-0000.cfg
[ 6.6472 ] Added Platform Config 5 data with size :- 56
[ 6.6472 ]
[ 6.6472 ] Parsing config file :tegra194-mb1-bct-gpioint-p2888-0000-p2822-0000.cfg
[ 6.6472 ] Added Platform Config 7 data with size :- 392
[ 6.6472 ]
[ 6.6472 ] Parsing config file :tegra194-mb1-uphy-lane-p2888-0000-p2822-0000.cfg
[ 6.6472 ] Added Platform Config 8 data with size :- 12
[ 6.6473 ]
[ 6.6473 ] Parsing config file :tegra19x-mb1-bct-device-sdmmc.cfg
[ 6.6473 ] Added Platform Config 9 data with size :- 32
[ 6.6473 ]
[ 6.6473 ] Updating mb1-bct with firmware information
[ 6.6479 ] tegrabct_v2 --chip 0x19 --mb1bct mb1_bct_MB1.bct --updatefwinfo flash.xml.bin
[ 6.6484 ] MB1-BCT version: 0x1
[ 6.6488 ]
[ 6.6489 ] Updating mb1-bct with storage information
[ 6.6495 ] tegrabct_v2 --chip 0x19 --mb1bct mb1_bct_MB1.bct --updatestorageinfo flash.xml.bin
[ 6.6501 ] MB1-BCT version: 0x1
[ 6.6504 ]
[ 6.6510 ] tegrahost_v2 --chip 0x19 --align mb1_bct_MB1.bct
[ 6.6516 ]
[ 6.6523 ] tegrahost_v2 --chip 0x19 0 --magicid MBCT --appendsigheader mb1_bct_MB1.bct zerosbk
[ 6.6528 ] adding BCH for mb1_bct_MB1.bct
[ 6.6536 ]
[ 6.6544 ] tegrasign_v2 --key None --list mb1_bct_MB1_sigheader.bct_list.xml --pubkeyhash pub_key.key
[ 6.6550 ] Assuming zero filled SBK key
[ 6.6552 ]
[ 6.6560 ] tegrahost_v2 --chip 0x19 0 --updatesigheader mb1_bct_MB1_sigheader.bct.encrypt mb1_bct_MB1_sigheader.bct.hash zerosbk
[ 6.6570 ]
[ 6.6571 ] Generating coldboot mem-bct
[ 6.6578 ] tegrabct_v2 --chip 0x19 0 --sdram /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/18691/tmpfkd794o11.cfg --membct /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/18691/tmpfkd794o11_1.bct /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/18691/tmpfkd794o11_2.bct /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/18691/tmpfkd794o11_3.bct /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/18691/tmpfkd794o11_4.bct
[ 6.6583 ] Packing sdram param for instance[0]
[ 6.7085 ] Packing sdram param for instance[1]
[ 6.7088 ] Packing sdram param for instance[2]
[ 6.7089 ] Packing sdram param for instance[3]
[ 6.7089 ] Packing sdram param for instance[4]
[ 6.7089 ] Packing sdram param for instance[5]
[ 6.7089 ] Packing sdram param for instance[6]
[ 6.7089 ] Packing sdram param for instance[7]
[ 6.7090 ] Packing sdram param for instance[8]
[ 6.7090 ] Packing sdram param for instance[9]
[ 6.7090 ] Packing sdram param for instance[10]
[ 6.7090 ] Packing sdram param for instance[11]
[ 6.7090 ] Packing sdram param for instance[12]
[ 6.7090 ] Packing sdram param for instance[13]
[ 6.7090 ] Packing sdram param for instance[14]
[ 6.7090 ] Packing sdram param for instance[15]
[ 6.7090 ]
[ 6.7090 ] Getting sector size from pt
[ 6.7097 ] tegraparser_v2 --getsectorsize flash.xml.bin sector_info.bin
[ 6.7104 ]
[ 6.7105 ] BlockSize read from layout is 200

[ 6.7111 ] tegrahost_v2 --chip 0x19 0 --blocksize 512 --magicid MEMB --addsigheader_multi /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/18691/tmpfkd794o11_1.bct /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/18691/tmpfkd794o11_2.bct /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/18691/tmpfkd794o11_3.bct /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/18691/tmpfkd794o11_4.bct
[ 6.7116 ] adding BCH for /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/18691/tmpfkd794o11_1.bct
[ 6.7143 ]
[ 6.7151 ] tegrahost_v2 --chip 0x19 --align mem_coldboot.bct
[ 6.7161 ]
[ 6.7168 ] tegrahost_v2 --chip 0x19 0 --magicid MEMB --appendsigheader mem_coldboot.bct zerosbk
[ 6.7175 ] Header already present for mem_coldboot.bct
[ 6.7179 ]
[ 6.7186 ] tegrasign_v2 --key None --list mem_coldboot_sigheader.bct_list.xml --pubkeyhash pub_key.key
[ 6.7192 ] Assuming zero filled SBK key
[ 6.7197 ]
[ 6.7206 ] tegrahost_v2 --chip 0x19 0 --updatesigheader mem_coldboot_sigheader.bct.encrypt mem_coldboot_sigheader.bct.hash zerosbk
[ 6.7215 ]
[ 6.7216 ] Generating recovery mem-bct
[ 6.7222 ] tegrabct_v2 --chip 0x19 0 --sdram /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/18691/tmpfkd794o11.cfg --membct /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/18691/tmpfkd794o11_1.bct /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/18691/tmpfkd794o11_2.bct /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/18691/tmpfkd794o11_3.bct /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/bootloader/18691/tmpfkd794o11_4.bct
[ 6.7228 ] Packing sdram param for instance[0]
[ 6.7743 ] Packing sdram param for instance[1]
[ 6.7745 ] Packing sdram param for instance[2]
[ 6.7746 ] Packing sdram param for instance[3]
[ 6.7748 ] Packing sdram param for instance[4]
[ 6.7748 ] Packing sdram param for instance[5]
[ 6.7748 ] Packing sdram param for instance[6]
[ 6.7748 ] Packing sdram param for instance[7]
[ 6.7748 ] Packing sdram param for instance[8]
[ 6.7748 ] Packing sdram param for instance[9]
[ 6.7748 ] Packing sdram param for instance[10]
[ 6.7748 ] Packing sdram param for instance[11]
[ 6.7748 ] Packing sdram param for instance[12]
[ 6.7748 ] Packing sdram param for instance[13]
[ 6.7749 ] Packing sdram param for instance[14]
[ 6.7749 ] Packing sdram param for instance[15]
[ 6.7749 ]
[ 6.7750 ] Reading ramcode from backup chip_info.bin file
[ 6.7750 ] RAMCODE Read from Device: 0

[ 6.7751 ] Disabled BPMP dtb trim, using default dtb
[ 6.7751 ]
[ 6.7760 ] tegrahost_v2 --chip 0x19 --align mem_rcm.bct
[ 6.7766 ]
[ 6.7772 ] tegrahost_v2 --chip 0x19 0 --magicid MEMB --appendsigheader mem_rcm.bct zerosbk
[ 6.7778 ] adding BCH for mem_rcm.bct
[ 6.7791 ]
[ 6.7799 ] tegrasign_v2 --key None --list mem_rcm_sigheader.bct_list.xml --pubkeyhash pub_key.key
[ 6.7805 ] Assuming zero filled SBK key
[ 6.7807 ]
[ 6.7816 ] tegrahost_v2 --chip 0x19 0 --updatesigheader mem_rcm_sigheader.bct.encrypt mem_rcm_sigheader.bct.hash zerosbk
[ 6.7831 ]
[ 6.7832 ] Sending BCTs
[ 6.7837 ] tegrarcm_v2 --download bct_bootrom br_bct_BR.bct --download bct_mb1 mb1_bct_MB1_sigheader.bct.encrypt --download bct_mem mem_rcm_sigheader.bct.encrypt
[ 6.7843 ] Applet version 01.00.0000
[ 6.8011 ] Sending bct_bootrom
[ 6.8012 ] […] 100%
[ 6.8025 ] Sending bct_mb1
[ 6.8073 ] […] 100%
[ 6.8109 ] Sending bct_mem
[ 6.8672 ] […] 100%
[ 6.9848 ]
Error: Return value 8
Command tegrarcm_v2 --download bct_bootrom br_bct_BR.bct --download bct_mb1 mb1_bct_MB1_sigheader.bct.encrypt --download bct_mem mem_rcm_sigheader.bct.encrypt
*** The [APP] has been read successfully. ***
Converting RAW image to Sparse image… mv: impossible d’évaluer ‘/home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/backup.img’: Aucun fichier ou dossier de ce type
open input file /home/louis/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra/backup.img.raw failed.

Setup :

  • Jetpack 4.5.1
  • Jetson NX Xavier on a ANX-110.
  • Host pc on Ubuntu 18.04

I want to have a backup file so I can safely modify the BSP of my NX to use it with another career board.

You are using the wrong board name. “jetson-xavier” is for AGX but not NX. Please check the quick start guide in our download center to know how to use flash.sh.

I just saw you are using custom board. If the vendor provides their own board config, please use their board config instead.

Thanks for reply,
They have a documentation for cloning the image which says :

Cloning the Image
cd into the directory containing the L4T installation package on the host PC. The command
below will save the platform’s APP partition image to the specified file on the host.
$ sudo ./flash.sh -r -k APP -G backup.img platform mmcblk0p1
Where platform specifies the type of the target device:
• For Jetson AGX Xavier: jetson-xavier
• For Jetson TX2: jetson-tx2
• For Jetson TX1: jetson-tx1
• For Jetson Nano eMMC module: jetson-nano-emmc

You are using the wrong board name. “jetson-xavier” is for AGX but not NX. Please check the quick start guide in our download center to know how to use flash.sh.

Can you point me in which file i can find this information ?

This is the download center where we put all the source code and document:

And the quick start guide will teach you which board config you shall use.

Thanks, i found it with google.
Trying with jetson-xavier-nx doesn’t work.
But if i try the completion for the ${BOARD} argument I only get this :

louis@louis-All-Series:~/nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra$ sudo ./flash.sh -r -k APP -G backup.img jetson- mmcblk0p1
jetson-agx-xavier-devkit-8gb.conf    jetson-tx2-devkit-4gb.conf           jetson-xavier-as-8gb.conf            jetson-xavier-nx-devkit-emmc.conf
jetson-agx-xavier-devkit.conf        jetson-tx2-devkit.conf               jetson-xavier-as-xavier-nx.conf      jetson-xavier-nx-devkit-qspi.conf
jetson-tx2-4GB.conf                  jetson-tx2-devkit-tx2i.conf          jetson-xavier.conf                   jetson-xavier-nx-devkit-tx2-nx.conf
jetson-tx2-as-4GB.conf               jetson-tx2i.conf                     jetson-xavier-maxn.conf              jetson-xavier-slvs-ec.conf
jetson-tx2.conf                      jetson-xavier-8gb.conf               jetson-xavier-nx-devkit.conf

What was your board config when you flashed this board in its first time?
The board name here is just those *.conf files as your comment.

Just make it easier to understand, if there is a board config with name “12345678.conf”, then you can use it in flash.sh as

sudo ./flash.sh 12345678 mmcblk0p1

Thus, use the board config name that matches your module. Because you are using custom board, I am not sure if your vendor needs to provide a config or not. Or they claim their board can work with our jetpack board config. If so, then I guess you shall use jetson-xavier-nx-devkit-emmc.conf

What was your board config when you flashed this board in its first time?

NX configuration is provided by the vendor with all the modification required to work with the board.

Just make it easier to understand, if there is a board config with name “12345678.conf”, then you can use it in flash.sh as

Okay, thanks for the information.

So my actual configuration is one of those .conf files ?

Your board config should be this one. But not any of them from jetpack.

So it should be in this directory because, the cloning guide specifies that

cd into the directory containing the L4T installation package on the host PC.

It’s in the /nvidia/nvidia_sdk/JetPack_4.5.1_Linux_JETSON_XAVIER_NX/Linux_for_Tegra path, and those config were those that I enumerated. So my actual config is probably one in this directory.

What are the exact files that provided by your vendor?

Just make it easier to understand, the board config is just same as the first time you used to flash the board.

I don’t know what they did to this, it just came ready with all the config installed.

What is just came ready with all the config installed? The module + carrier board?

Do they provide any document for the setup? Or they just ask you to use sdkmanager? Did you ever flash the board before?

What is just came ready with all the config installed? The module + carrier board?

Yes

Do they provide any document for the setup?

No

Did you ever flash the board before?

I don’t think so, but this may explain the reason why I can’t found this board config. I used sdkmanager to add the nvidia tools, but I don’t think I flashed it. My NX + Aetina carrier board works well.

But if I reflashed it, I should be able to copy the backup image created by the SDKM.

Not asking you to re-flash the board. I was just asking if you ever flashed it before.

Checked the website of the vendor, they provide a package here. Please read the vendor site first.

I know I was just describing what I did.

  1. If their board doesn’t require specific board config, then you can use jetson-xavier-nx-devkit-emmc.conf to clone your board.

  2. Otherwise, If they provide their own board config and driver package, then you should use what they provided to do the clone work.

After contacting with the vendor, I can confirm that they just send the system (board + NX) ready to launch, and the user as no modification to do. I then explained my issued and they will get back to me when they can.
Using the command sudo ./flash.sh -r -k APP -G backup.img jetson-xavier-nx-devkit-emmc mmcblk0p1 is currently working, i will keep you updated.

1 Like

Backup.img correctly created ! Please tell me if i’m wrong : It means that they use initial .conf file (jetson-xavier-nx-devkit-emmc.conf) then add their package, but it didn’t create a new .conf file ?

Thank you for your reactivity and patience @WayneWWW