Unable to backup reComputer Industrial J4011 on Jetpack 5.1.1

Hi,
I’m currently trying to create a backup of a reComputer Industrial running Jetpack 5.1.1 in order to set up a number of other devices identically. I’m following the instructions provided here:

After downloading both the Jetpack 5.1.1 image for the J4011 and the BSP for L4T 35.3.1 and copying the files across, I get the following error when trying to run the backup script:

> sudo ./tools/backup_restore/l4t_backup_restore.sh -e nvme0n1 -b recomputer-orin
[sudo] password for user: 
./tools/backup_restore/l4t_backup_restore.sh: illegal option -- e
Usage: l4t_backup_restore.sh -b [ -c ] <board-name> 
       l4t_backup_restore.sh -r <board-name> 

	This script creates a backup image of a Jetson device or restores a Jetson device using a backup image.

	This script should be run inside initramfs.

	Options:
		<board-name>                 Indicate which board to use.
		-u <PKC key file>            PKC key used for odm fused board.
		-v <SBK key file>            SBK key used for encryptions
		-h | --help : Display this message
		-b : Generate the backup image and store it in /home/user/seeed-flash/mfi_recomputer-orin-industrial/tools/backup_restore/images
		-r : Restore the backup image from /home/user/seeed-flash/mfi_recomputer-orin-industrial/tools/backup_restore/images
		--raw-image ---------------- Specify the path of the raw disk image to be restored into storage devce.

Omitting this -e option also fails to run with a different error:

> sudo ./tools/backup_restore/l4t_backup_restore.sh -b recomputer-orin-industrial
/home/user/seeed-flash/mfi_recomputer-orin-industrial/tools/kernel_flash/l4t_initrd_flash_internal.sh --no-flash --initrd --showlogs recomputer-orin-industrial mmcblk0p1
******************************************
*                                        *
*  Step 1: Generate rcm boot commandline *
*                                        *
******************************************
/home/user/seeed-flash/mfi_recomputer-orin-industrial/flash.sh  --no-flash --rcm-boot recomputer-orin-industrial mmcblk0p1
###############################################################################
# L4T BSP Information:
# R35 , REVISION: 3.1
# User release: 0.0
###############################################################################
Board ID() version() sku() revision()
Chip SKU() ramcode() fuselevel(fuselevel_production) board_FAB()
emc_opt_disable_fuse:(0)
Copy /home/user/seeed-flash/mfi_recomputer-orin-industrial/kernel/dtb/tegra234-p3767-0000-p3509-a02.dtb to /home/user/seeed-flash/mfi_recomputer-orin-industrial/kernel/dtb/tegra234-p3767-0000-p3509-a02.dtb.rec
copying bctfile(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/t186ref/BCT/tegra234-p3767-0000-sdram-l4t.dts)... done.
copying minratchet_config(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/t186ref/BCT/tegra234-mb1-bct-ratchet-p3767-0000.dts)... done.
copying device_config(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/t186ref/BCT/tegra234-mb1-bct-device-p3767-0000.dts)... done.
copying misc_config(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/t186ref/BCT/tegra234-mb1-bct-misc-p3767-0000.dts)... done.
copying pinmux_config(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/t186ref/BCT/tegra234-mb1-bct-pinmux-p3767-hdmi-a03.dtsi)... done.
copying gpioint_config(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/t186ref/BCT/tegra234-mb1-bct-gpioint-p3767-0000.dts)... done.
copying pmic_config(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/t186ref/BCT/tegra234-mb1-bct-pmic-p3767-0000-a02.dts)... done.
copying pmc_config(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/t186ref/BCT/tegra234-mb1-bct-padvoltage-p3767-hdmi-a03.dtsi)... done.
copying deviceprod_config(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/t186ref/BCT/tegra234-mb1-bct-cprod-p3767-0000.dts)... done.
copying prod_config(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/t186ref/BCT/tegra234-mb1-bct-prod-p3767-0000.dts)... done.
copying scr_config(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/t186ref/BCT/tegra234-mb2-bct-scr-p3767-0000.dts)... done.
copying wb0sdram(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/t186ref/BCT/tegra234-p3767-0000-wb0sdram-l4t.dts)... done.
copying bootrom_config(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/t186ref/BCT/tegra234-mb1-bct-reset-p3767-0000.dts)... done.
Existing uphylane_config(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/tegra234-mb1-bct-uphylane-si.dtsi) reused.
copying dev_params(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/t186ref/BCT/tegra234-br-bct-p3767-0000-l4t.dts)... done.
copying dev_params_b(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/t186ref/BCT/tegra234-br-bct_b-p3767-0000-l4t.dts)... done.
copying mb2bct_cfg(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/t186ref/BCT/tegra234-mb2-bct-misc-p3767-0000.dts)... done.
Existing pscfwfile(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/pscfw_t234_prod.bin) reused.
Existing pscbl1file(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/psc_bl1_t234_prod.bin) reused.
Existing mtsmcefile(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/mce_flash_o10_cr_prod.bin) reused.
Existing mb2applet(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/applet_t234.bin) reused.
Existing bootloader(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/mb2_t234.bin) reused.
copying initrd(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/l4t_initrd.img)... done.
bl is uefi
Making Boot image... done.
Not signing of boot.img
Making recovery ramdisk for recovery image...
Re-generating recovery ramdisk for recovery image...
/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/ramdisk_tmp /home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader /home/user/seeed-flash/mfi_recomputer-orin-industrial
39726 blocks

gzip: /home/user/seeed-flash/mfi_recomputer-orin-industrial/kernel/Image: not in gzip format
_BASE_KERNEL_VERSION=5.10.104-tegra
56174 blocks
Making Recovery image...
copying recdtbfile(/home/user/seeed-flash/mfi_recomputer-orin-industrial/kernel/dtb/tegra234-p3767-0000-p3509-a02.dtb.rec)... done.
20+0 records in
20+0 records out
20 bytes copied, 7.2158e-05 s, 277 kB/s
Existing sosfile(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/mb1_t234_prod.bin) reused.
Existing tegraboot(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/mb2_t234.bin) reused.
Existing cpu_bootloader(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/mb2_t234.bin) reused.
Existing mb2blfile(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/mb2_t234.bin) reused.
Existing xusbfile(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/xusb_t234_prod.bin) reused.
Existing dcefile(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/display-t234-dce.bin) reused.
Existing nvdecfile(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/nvdec_t234_prod.fw) reused.
Existing psc_rf(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/psc_rf_t234_prod.bin) reused.
Existing mb2_rf(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/mb2rf_t234.bin) reused.
Existing mb1file(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/mb1_t234_prod.bin) reused.
Existing bpffile(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/bpmp_t234-TE990M-A1_prod.bin) reused.
copying bpfdtbfile(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/t186ref/tegra234-bpmp-3767-0000-a02-3509-a02.dtb)... done.
Existing scefile(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/camera-rtcpu-sce.img) reused.
Existing camerafw(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/camera-rtcpu-t234-rce.img) reused.
Existing apefile(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/adsp-fw.bin) reused.
Existing spefile(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/spe_t234.bin) reused.
Existing wb0boot(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/sc7_t234_prod.bin) reused.
Existing tosfile(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/tos-optee_t234.img) reused.
Existing eksfile(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/eks_t234.img) reused.
copying dtbfile(/home/user/seeed-flash/mfi_recomputer-orin-industrial/kernel/dtb/tegra234-p3767-0000-p3509-a02.dtb)... done.
Copying nv_boot_control.conf to rootfs
Skip generating system.img
Not signing of kernel-dtb
Existing tbcfile(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/uefi_jetson.bin) reused.
131072+0 records in
131072+0 records out
67108864 bytes (67 MB, 64 MiB) copied, 0.0914631 s, 734 MB/s
	Sync'ing esp.img ... done.
copying tbcdtbfile(/home/user/seeed-flash/mfi_recomputer-orin-industrial/kernel/dtb/tegra234-p3767-0000-p3509-a02.dtb)... done.
copying cfgfile(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/t186ref/cfg/flash_t234_qspi_sd.xml) to flash.xml... done.
Existing flashapp(/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/tegraflash.py) reused.
copying overlay_dtb(/home/user/seeed-flash/mfi_recomputer-orin-industrial/kernel/dtb/L4TConfiguration.dtbo)... done.
copying overlay_dtb(/home/user/seeed-flash/mfi_recomputer-orin-industrial/kernel/dtb/tegra234-p3767-overlay.dtbo)... done.
/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/L4TConfiguration_updated.dts: Warning (unit_address_vs_reg): Node /fragment@0 has a unit name, but no reg property
/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/L4TConfiguration.dtbo: Warning (unit_address_vs_reg): Node /fragment@0 has a unit name, but no reg property
./tegraflash.py  --bl uefi_jetson_with_dtb.bin  --concat_cpubl_bldtb --cpubl uefi_jetson.bin --sdram_config tegra234-p3767-0000-sdram-l4t.dts  --odmdata gbe-uphy-config-8,hsstp-lane-map-3,hsio-uphy-config-0  --overlay_dtb L4TConfiguration.dtbo,tegra234-p3767-overlay.dtbo,orin-nx-seeed-industry.dtbo, --bldtb tegra234-p3767-0000-p3509-a02.dtb --applet mb1_t234_prod.bin --cmd "sign"  --cfg flash.xml --chip 0x23 --minratchet_config tegra234-mb1-bct-ratchet-p3767-0000.dts --device_config tegra234-mb1-bct-device-p3767-0000.dts --misc_config tegra234-mb1-bct-misc-p3767-0000.dts --pinmux_config tegra234-mb1-bct-pinmux-p3767-hdmi-a03.dtsi --gpioint_config tegra234-mb1-bct-gpioint-p3767-0000.dts --pmic_config tegra234-mb1-bct-pmic-p3767-0000-a02.dts --pmc_config tegra234-mb1-bct-padvoltage-p3767-hdmi-a03.dtsi --deviceprod_config tegra234-mb1-bct-cprod-p3767-0000.dts --prod_config tegra234-mb1-bct-prod-p3767-0000.dts --scr_config tegra234-mb2-bct-scr-p3767-0000.dts --wb0sdram_config tegra234-p3767-0000-wb0sdram-l4t.dts --br_cmd_config tegra234-mb1-bct-reset-p3767-0000.dts --uphy tegra234-mb1-bct-uphylane-si.dtsi --dev_params tegra234-br-bct-p3767-0000-l4t.dts,tegra234-br-bct_b-p3767-0000-l4t.dts --mb2bct_cfg tegra234-mb2-bct-misc-p3767-0000.dts  --bins "psc_fw pscfw_t234_prod.bin; mts_mce mce_flash_o10_cr_prod.bin; mb2_applet applet_t234.bin; mb2_bootloader mb2_t234.bin; xusb_fw xusb_t234_prod.bin; dce_fw display-t234-dce.bin; nvdec nvdec_t234_prod.fw; bpmp_fw bpmp_t234-TE990M-A1_prod.bin; bpmp_fw_dtb tegra234-bpmp-3767-0000-a02-3509-a02.dtb; sce_fw camera-rtcpu-sce.img; rce_fw camera-rtcpu-t234-rce.img; ape_fw adsp-fw.bin; spe_fw spe_t234.bin; tos tos-optee_t234.img; eks eks_t234.img; kernel boot.img; kernel_dtb tegra234-p3767-0000-p3509-a02.dtb"  --secondary_gpt_backup  --bct_backup  --boot_chain A  
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.0080 ] tegrasign_v3.py --key None --getmode mode.txt
[   0.0081 ] Assuming zero filled SBK key
[   0.0067 ] Parsing partition layout
[   0.0072 ] tegraparser_v2 --pt flash.xml.tmp
[   0.0095 ] Change tegra234-bpmp-3767-0000-a02-3509-a02.dtb to tegra234-bpmp-3767-0000-a02-3509-a02_with_odm.dtb
[   0.0095 ] Change tegra234-bpmp-3767-0000-a02-3509-a02.dtb to tegra234-bpmp-3767-0000-a02-3509-a02_with_odm.dtb
[   0.0196 ] /usr/bin/python3 dtbcheck.py -c t234 -o tegra234-bpmp-3767-0000-a02-3509-a02_with_odm.dtb tegra234-bpmp-3767-0000-a02-3509-a02_with_odm_tmp.dtb
[   0.1495 ] Concatenating L4TConfiguration.dtbo,tegra234-p3767-overlay.dtbo,orin-nx-seeed-industry.dtbo to tegra234-p3767-0000-p3509-a02_with_odm_overlay.dtb
Traceback (most recent call last):
  File "/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/./tegraflash.py", line 1383, in <module>
    tegraflash_run_commands()
  File "/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/./tegraflash.py", line 1217, in tegraflash_run_commands
    interpreter.onecmd(command)
  File "/usr/lib/python3.11/cmd.py", line 217, in onecmd
    return func(arg)
           ^^^^^^^^^
  File "/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/./tegraflash.py", line 730, in do_sign
    self.chip_inst.tegraflash_sign(exports)
  File "/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/tegraflash_impl_t234.py", line 2582, in tegraflash_sign
    self.tegraflash_parse_partitionlayout()
  File "/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/tegraflash_impl_t234.py", line 471, in tegraflash_parse_partitionlayout
    tegraflash_concat_overlay_dtb()
  File "/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/tegraflash_internal.py", line 4518, in tegraflash_concat_overlay_dtb
    concat_file_4k(cpubl_dtb, dtb_files)
  File "/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader/tegraflash_internal.py", line 4505, in concat_file_4k
    with open(infilename, 'rb') as infile:
         ^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'orin-nx-seeed-industry.dtbo'
cp: cannot stat 'signed/*': No such file or directory
cp: cannot stat 'signed/flash.xml.tmp': No such file or directory
sed: can't read flash.xml.tmp: No such file or directory
Using bpmp-dtb concatenated with odmdata in blob for t23x
./tegraflash.py --bl uefi_jetson_with_dtb_sigheader.bin.encrypt --bct br_bct_BR.bct --securedev  --bldtb tegra234-p3767-0000-p3509-a02.dtb --applet rcm_2_encrypt.rcm --applet_softfuse rcm_1_encrypt.rcm --cmd "rcmboot"  --cfg secureflash.xml --chip 0x23 --mb1_bct mb1_bct_MB1_sigheader.bct.encrypt --mem_bct mem_rcm_sigheader.bct.encrypt --mb1_cold_boot_bct mb1_cold_boot_bct_MB1_sigheader.bct.encrypt --mb1_bin mb1_t234_prod_aligned_sigheader.bin.encrypt --psc_bl1_bin psc_bl1_t234_prod_aligned_sigheader.bin.encrypt --mem_bct_cold_boot mem_coldboot_sigheader.bct.encrypt  --bins "psc_fw pscfw_t234_prod_sigheader.bin.encrypt; mts_mce mce_flash_o10_cr_prod_sigheader.bin.encrypt; mb2_applet applet_t234_sigheader.bin.encrypt; mb2_bootloader mb2_t234_with_mb2_cold_boot_bct_MB2_sigheader.bin.encrypt; xusb_fw xusb_t234_prod_sigheader.bin.encrypt; dce_fw display-t234-dce_sigheader.bin.encrypt; nvdec nvdec_t234_prod_sigheader.fw.encrypt; bpmp_fw bpmp_t234-TE990M-A1_prod_sigheader.bin.encrypt; bpmp_fw_dtb tegra234-bpmp-3767-0000-a02-3509-a02_with_odm_sigheader.dtb.encrypt; sce_fw camera-rtcpu-sce_sigheader.img.encrypt; rce_fw camera-rtcpu-t234-rce_sigheader.img.encrypt; ape_fw adsp-fw_sigheader.bin.encrypt; spe_fw spe_t234_sigheader.bin.encrypt; tos tos-optee_t234_sigheader.img.encrypt; eks eks_t234_sigheader.img.encrypt; kernel boot.img; kernel_dtb tegra234-p3767-0000-p3509-a02.dtb"    --secondary_gpt_backup  --bct_backup  --boot_chain A 
saving flash command in flashcmd.txt

*** no-flash flag enabled. Exiting now... *** 

User can run above saved command in factory environment without 
providing pkc and sbk keys to flash a device

Example:

    $ cd bootloader 
    $ sudo bash ./flashcmd.txt

Save initrd flashing command parameters to /home/user/seeed-flash/mfi_recomputer-orin-industrial/tools/kernel_flash/initrdflashparam.txt
/tmp/tmp.c5wIK64y0A /home/user/seeed-flash/mfi_recomputer-orin-industrial
writing boot image config in bootimg.cfg
extracting kernel in zImage
extracting ramdisk in initrd.img
/tmp/tmp.c5wIK64y0A/initrd /tmp/tmp.c5wIK64y0A /home/user/seeed-flash/mfi_recomputer-orin-industrial
56174 blocks
64962 blocks
/tmp/tmp.c5wIK64y0A /home/user/seeed-flash/mfi_recomputer-orin-industrial
flashimg0=boot0.img
/home/user/seeed-flash/mfi_recomputer-orin-industrial
Success
Cleaning up...
Finish generating flash package.
/home/user/seeed-flash/mfi_recomputer-orin-industrial/tools/kernel_flash/l4t_initrd_flash_internal.sh --initrd --usb-instance 1-8 --device-instance 0 --flash-only --initrd recomputer-orin-industrial mmcblk0p1
**********************************************
*                                            *
*  Step 1: Build the flashing environment    *
*                                            *
**********************************************
Create flash environment 0
/home/user/seeed-flash/mfi_recomputer-orin-industrial/bootloader /home/user/seeed-flash/mfi_recomputer-orin-industrial
/home/user/seeed-flash/mfi_recomputer-orin-industrial
Finish creating flash environment 0.
****************************************************
*                                                  *
*  Step 2: Boot the device with flash initrd image *
*                                                  *
****************************************************
/home/user/seeed-flash/mfi_recomputer-orin-industrial/temp_initrdflash/bootloader0 /home/user/seeed-flash/mfi_recomputer-orin-industrial
./tegraflash.py --bl uefi_jetson_with_dtb_sigheader.bin.encrypt --bct br_bct_BR.bct --securedev  --bldtb tegra234-p3767-0000-p3509-a02.dtb --applet rcm_2_encrypt.rcm --applet_softfuse rcm_1_encrypt.rcm --cmd "rcmboot"  --cfg secureflash.xml --chip 0x23 --mb1_bct mb1_bct_MB1_sigheader.bct.encrypt --mem_bct mem_rcm_sigheader.bct.encrypt --mb1_cold_boot_bct mb1_cold_boot_bct_MB1_sigheader.bct.encrypt --mb1_bin mb1_t234_prod_aligned_sigheader.bin.encrypt --psc_bl1_bin psc_bl1_t234_prod_aligned_sigheader.bin.encrypt --mem_bct_cold_boot mem_coldboot_sigheader.bct.encrypt  --bins "psc_fw pscfw_t234_prod_sigheader.bin.encrypt; mts_mce mce_flash_o10_cr_prod_sigheader.bin.encrypt; mb2_applet applet_t234_sigheader.bin.encrypt; mb2_bootloader mb2_t234_with_mb2_cold_boot_bct_MB2_sigheader.bin.encrypt; xusb_fw xusb_t234_prod_sigheader.bin.encrypt; dce_fw display-t234-dce_sigheader.bin.encrypt; nvdec nvdec_t234_prod_sigheader.fw.encrypt; bpmp_fw bpmp_t234-TE990M-A1_prod_sigheader.bin.encrypt; bpmp_fw_dtb tegra234-bpmp-3767-0000-a02-3509-a02_with_odm_sigheader.dtb.encrypt; sce_fw camera-rtcpu-sce_sigheader.img.encrypt; rce_fw camera-rtcpu-t234-rce_sigheader.img.encrypt; ape_fw adsp-fw_sigheader.bin.encrypt; spe_fw spe_t234_sigheader.bin.encrypt; tos tos-optee_t234_sigheader.img.encrypt; eks eks_t234_sigheader.img.encrypt; kernel boot0.img; kernel_dtb tegra234-p3767-0000-p3509-a02.dtb"    --secondary_gpt_backup  --bct_backup  --boot_chain A  --instance 1-8
Traceback (most recent call last):
  File "/home/user/seeed-flash/mfi_recomputer-orin-industrial/temp_initrdflash/bootloader0/./tegraflash.py", line 1377, in <module>
    exports['--cfg'] = tegraflash_update_img_path(exports['--cfg'], exports['--image_dirs'])
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/seeed-flash/mfi_recomputer-orin-industrial/temp_initrdflash/bootloader0/tegraflash_internal.py", line 4913, in tegraflash_update_img_path
    xml_tree = ElementTree.parse(file)
               ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/xml/etree/ElementTree.py", line 1218, in parse
    tree.parse(source, parser)
  File "/usr/lib/python3.11/xml/etree/ElementTree.py", line 580, in parse
    self._root = parser._parse_whole(source)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
xml.etree.ElementTree.ParseError: no element found: line 1, column 0
Cleaning up...

Am I going about this in the right way or is there a different method I need to use for this version of Jetpack?

Using a copy of l4t_backup_restore.sh from a later version of L4T which does support the -e option also fails and gives the second error shown above.

Thanks,
Adam

Please check if the parameters you used when executing the script are correct. The parameter after “-b” refers to your device. Please replace it with your current device.

Thanks for your reply, sorry - missed that step, I’m now using the correct device name, however getting the same error.

sudo ./tools/backup_restore/l4t_backup_restore.sh -e nvme0n1 -b recomputer-orin-industrial

It seems like something in the script is deleting the content of bootloader/secureflash.xml which is causing the error. Replacing it with the copy from the image for the industrial J4011 and running the command empties the file out and gives the error again.

During this process, your device may reboot many times like the flashing process, you are not recommended to use virtual machines or WSL because it might lose connection and cause the backup/restore process failed. You may encounter some missing files; you can open the recomputer-orin.conf and remove the file that didn’t exist. Usually these are temporary device tree overlay object files; they don’t affect the backup and restore results. But if you made modifications to BSP, you will need to merge your overlay files.

I’ve been trying the script on a real device running Ubuntu 18.04 - I don’t see any reference to secureflash.xml in recomputer-orin-industrial.conf and I havent made any changes other than tweaking the script to fix the -e error.

These are the steps I’m running:

tar -vxjf Jetson_Linux_R35.3.1_aarch64.tbz2
sudo tar -xvf mfi_recomputer-orin-nx-8g-industrial-5.1-35.3.1-2023-08-04.tar.gz
cd Linux_for_Tegra/

# Apply patch for Jetpack 5.1.1 to fix the device name
wget -O orin_backup_restore.patch -c https://github.com/forecr/forecr_blog_files/raw/master/patch_files/orin_backup_restore_JP511.patch
chmod +x orin_backup_restore.patch
sudo patch -p1 -i orin_backup_restore.patch

cd ..
sudo cp -rn Linux_for_Tegra/* mfi_recomputer-orin-industrial/
cd mfi_recomputer-orin-industrial/
sudo ./tools/backup_restore/l4t_backup_restore.sh -b recomputer-orin-industrial

The patch file is from these instructions:

However I get the same error (the second one in my initial post) whether I do these additional patching steps or not.

Thank you for your prompt response. Next, we will conduct tests using the equipment. We will reply to you immediately once we have the results.

1 Like

I have just now also tried using the backup and restore script in this repo: GitHub - Seeed-Studio/Linux_for_Tegra: Seeed Jetson reComputer && reServer default Image source code.🎁 🎁 🎁, specifically I checked out branch r35.3.1.

Unfortunately this also fails, albeit with a slightly different error:

Save initrd flashing command parameters to /home/nx/flash/seeed_l4t/Linux_for_Tegra-r35.3.1/tools/kernel_flash/initrdflashparam.txt
/tmp/tmp.5qku8cwBXw ~/flash/seeed_l4t/Linux_for_Tegra-r35.3.1
writing boot image config in bootimg.cfg
extracting kernel in zImage
extracting ramdisk in initrd.img
/tmp/tmp.5qku8cwBXw/initrd /tmp/tmp.5qku8cwBXw ~/flash/seeed_l4t/Linux_for_Tegra-r35.3.1
55735 blocks
cp: cannot stat '/home/nx/flash/seeed_l4t/Linux_for_Tegra-r35.3.1/rootfs/lib/modules/5.10.104-tegra/kernel/drivers/mtd': No such file or directory
Cleaning up...

The entire log can be found in here:
seeed_github_l4t_log.zip (12.8 KB)

OK, thank you for your detailed feedback. We are currently conducting the test. Once we have a solution, we will promptly reply to you.