Hi:
I want to backup orin nano’s image,but the script doesn’t work.
The L4T version is 35.3.1,and the script I used is “tools/backup_restore/l4t_backup_restore.sh”.First I find some issues in the original script,not available for NVME.So I changed a few things: changed mmcblk0 in both the scripts “nvbackup_partitions.sh” and “nvrestore_partitions.sh” to nvme0n1.It can backup the image, but cannot restore it.
I have two orin nano modules(nano1 and nano2) and two identical nvmes(nvme1 and nvme 2).The size of the nvme is 128G.Here are my steps:
can you try something like flashing the system to an SD card on either device, attaching the SSD #2, booting into the system to see if it can be correctly detected?
Based on your reply, there may be some issue about your SSD that fails to flash.
I mean, it may be specific to your NVMe 2.
Like, just as what you tried, if the same image can be restored to different modules installed with different SSDes, then it’s clear that you have some problem with your NVMe 2.
so the situation is that you have two Orin Nano modules and multiple NVMe SSD, and you can flash every combination of them with initrd flash, but when it comes to restoring, some of them will fail, while others still work.
After testing, backups and restores between the same storage sizes will fail.If I backup from small storage sizes nvme,and restores to a large storage sizes,it will success.
then maybe there’s very slight difference in the size of these SSD. Like, maybe the NAND flash chips on an SSD add up to 128GB, but for some reason, it’s labeled as only 120GB.
Can you help to check that?
Or tell us the product models of SSD that you think that are the same in size but you fail to backup/restore in between.
thanks for the information.
Then can you try dump UART log when you fail to restore the image?
Also, I’m not sure if it makes any difference, but always format the SSD as ext4 before flashing/restoring.