Flashing a cloned system.img Jetson Orin Nanon Developer Kit

Please try to configure nvpartitionmap.txt before you restore.

If I try restoring it with the l4t_backup_restore.sh script I get the following flashing error:


***************************************
*                                     *
*  Step 3: Start the flashing process *
*                                     *
***************************************
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for device to expose ssh ......Waiting for device to expose ssh ...Device has booted into initrd. You can ssh to the target by the command:
$ ssh root@fc00:1:1:0::2
Cleaning up...
Log is saved to Linux_for_Tegra/initrdlog/flash_1-6_0_20241122-104824.log 
Run command: 
ln -s /proc/self/fd /dev/fd && mount -o nolock [fc00:1:1::1]:/home/angela/nvidia/nvidia_sdk/JetPack_6.0_Linux_JETSON_ORIN_NANO_TARGETS/Linux_for_Tegra/tools/backup_restore /mnt && /mnt/nvrestore_partitions.sh -e nvme0n1 -n 
 on root@fc00:1:1::2
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
/mnt/images ~
nvrestore_partitions.sh: Use the default nvpartitionmap.txt as the index file.
40+0 records in
40+0 records out
20480 bytes (20 kB, 20 KiB) copied, 0.0012433 s, 16.5 MB/s
nvrestore_partitions.sh Restoring gpt_2 with image gptbackup.img...
33+0 records in
33+0 records out
16896 bytes (17 kB, 16 KiB) copied, 0.000332704 s, 50.8 MB/s
nvrestore_partitions.sh Restoring nvme0n1 with image nvme0n1p1_bak.img...
498462523904 bytes (498 GB, 464 GiB) copied, 3500 s, 142 MB/s 
973723072+0 records in
973723072+0 records out
498546212864 bytes (499 GB, 464 GiB) copied, 3502.75 s, 142 MB/s
nvrestore_partitions.sh Restoring  with image ...
sha256sum: '': No such file or directory
dd: failed to open '/dev/': Is a directory
gzip: img: No such file or directory
~
Error flashing non-qspi storage

not sure if I did everything correctly. I created the backup by following the steps in the README_backup_restore.txt file.
E.g executing the commands and connecting the jetson I want to create the image from in recovery mode:

      $ systemctl stop udisks2.service
      $ sudo tools/l4t_flash_prerequisites.sh 
      $ sudo service nfs-kernel-server start
      $ sudo ./tools/backup_restore/l4t_backup_restore.sh -e nvme0n1 -b jetson-orin-nano-devkit

Than I modified the nvpartitionmap.txt file in the folder ./tools/backup_restore/images to only contain the lines:

board_spec,3767-300-0005-M.1-1-1-jetson-orin-nano-devkit-
gptmbr.img,gpt_1,0,40,,1b8a53b891fcbf625040bfb640bac9666108bb52418d4daebc4876d3f233629b
gptbackup.img,gpt_2,976773135,33,,22b2382387f9103962255a6a2f4db6229a0878d1dd5b86217fc8a0b0a1b2ef5e
nvme0n1p1_bak.img,nvme0n1,3050048,973723072,,b3e51a316baee5545c0ace79324263b23eb94c61c908a0f1a1a94138be4b6d69

after this I connected another jetson which was initial flashed with the sdk-manager in recovery mode. On this jetson I want to restore the backuped app partition. I tried to do this with the following command.

sudo ./tools/backup_restore/l4t_backup_restore.sh -e nvme0n1 -r jetson-orin-nano-devkit

I also attached the flashing log file
flash_1-6_0_20241122-104824.log (6.9 KB)

May I know why you just want to restore APP partition rather than every partitions?

Would it work if you don’t modify nvpartitionmap.txt and let it restore whole disk?

I don’t want to restore the partition, I want to clone the jetson setup onto another jetson.

Backup/restore script for all partitions would also meet your requirement to “clone the jetson setup onto another jetson”.
If you clone system image from one NVMe SSD on 1st board and restore it to NVMe SSD on 2nd board with different size for APP partition, there might be the error.
So, we would suggest just performing backup/restore script for all partitions.

Please also try using the following command instead.

$ sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -c ./tools/kernel_flash/flash_l4t_external.xml -k APP --flash-only --external-only jetson-orin-nano-devkit external

Attached log for reference:
flashNVMeAPPonly-r36.4.0.log (12.5 KB)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.