How to flash a backup system.img to NX external sd card

Hi,

By following Jetson/L4T/Boot From External Device - eLinux.org steps,My NX is success to boot from SD card rootfs,but Ubuntu need to be “System Configuration” to start desktop.And I use my full backup system.img to reflash sd card rootfs: sudo ./flash.sh jetson-xavier-nx-devkit-emmc external,and I still got the same issue.
So how to flash a full backup system.img to NX external sd card?

Thanks

hello suchb,

may I know which version of Jetson Xavier NX you’re working with? is it eMMC or SD-card version?

Hi,Jerry

JP version is JetPack4.4.1,NX is emmc version.

hello suchb,

you may enable -G <file_name> options to reads the boot partition and saves the image to the specified file for backing up system image.
please check developer guide, here’s a session To clone a Jetson device and flash, it demonstrates the sample pipelines.
thanks

Hi, @JerryChang

Your link is for 32.5 Release,does it work for 32.4.4 release?

My system.img is generated by below cmd:

sudo ./flash.sh -r -k APP -G my_backup.img  jetson-xavier-nx-devkit-emmc mmcblk0p1

and you mean I have to use below cmd to reflash the full backup system.img to nx external device?

sudo ./flash.sh -r -k APP jetson-xavier-nx-devkit-emmc external

Look forward to your reply.

hello suchb,

yes,
you may use my_backup.img to overwrite the default system.img, and perform the flash commands to restore it.

Hi,
I got error when finish flash sd card and system restart:

mount:wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error
In some cases userful info is found in syslog - try dmesg | tail or so.

And when I finish flash NX emmc and system restart, still the same error:

mount:wrong fs type, bad option, bad superblock on /dev/mmcblk0p1, missing codepage or helper program, or other error
In some cases userful info is found in syslog - try dmesg | tail or so.

hello suchb,

please check this session, Flashing to an SD Card for utilizing an SD-card.
if the rootfs partition size is different to restore image with eMMC, you may adding -S options to the flash command-line. please refer to Increasing Internal Memory Partition for Root File System for details.
thanks

Hi,

Flashing to a USB Drive

Flashing to an NVMe Drive

Flashing to an SD Card

Flashing to an External Storage Device

If I use a USB-MircoSD converter to flash sd card,which flash step I should follow?
And if I use NX sdio hw interface, which flash step I should follow?

Thanks

hello suchb,

you may check driver’s device names for confirmation,
for example,
USB device should show drive’s device name as /dev/sdb,
SD card device should shown as /dev/mmcblk*