About partitions flash and erase

I have created my own partitions on the eMMC. I want to perform a full flashing without formatting the data and data_bak partitions. Are there any solutions to achieve this?

Hi,

If you want to do the full flashing, it will erase whole the eMMC storage including data and data_bak.

Thanks

Thank you for your reply. Is there any solution to protect partition content? For example, backup and the like, but copying requires a second entry into recovery. Is there any better solution that can be implemented.

Hi,

To check whether updating specific partitions would meet your needs, could you please share:

  1. Your current flashing command.
  2. Whether you need to reflash the entire BSP or only update specific partitions, such as the root filesystem or kernel.

Thanks.

my current flashing command:
sudo ROOTFS_AB=1 \
     ROOTFS_RETRY_COUNT_MAX=3 \
     NO_RECOVERY_IMG=1 \
     BOARDID=3701 \
     BOARDSKU=0004 \
     FAB=502 \
     BOARDREV= \
     flash.sh \
       --no-systemimg \
       jetson-agx-orin-devkit-super \
       internal

Hi,

Which components do you need to update with this command—for example, the bootloader, kernel, root filesystem, or the entire BSP?

Thanks.

entire BSP

Hi,

For a full BSP reflash, we do not have a documented option to leave data and data_bak untouched.

NVIDIA’s backup/restore tools can capture all internal eMMC and QSPI partitions, including the system, installed software, settings, and data stored there.

Regarding the second recovery entry, could you share your backup command and indicate which step requires entering recovery again? We need to check that sequence before confirming whether the additional recovery entry can be avoided.

Thanks.

Hi,

My flashing logic is like this:

cd <Linux_for_Tegra>

1) Backup DATA

sudo BOARDID=3701 BOARDSKU=0004 FAB=502 \
./flash.sh -k DATA -G data_backup.img \
jetson-agx-orin-devkit-super internal

2) Backup DATA_BACK

sudo BOARDID=3701 BOARDSKU=0004 FAB=502 \
./flash.sh -k DATA_BACK -G data_back_backup.img \
jetson-agx-orin-devkit-super internal

3) Full reflash (Recovery again):

Where the extra Recovery entry comes from:
In our runs, each flash.sh -k … session ends after the partition operation (USB/RCM session closes; board often leaves Recovery / reboots). The next -k (or the full flash) then fails with BootROM/USB errors (e.g. tegrarcm_v2 return 8 / probing failed) unless we put the board back into Force Recovery.

So the step that “requires entering recovery again” is not a special NVIDIA option — it is every subsequent flash.sh -k (or full flash) after the previous -k finished.

This will lead to the trouble of repeatedly entering recovery. Do you have any suggestions

Thanks

Hello @1037379694 , just wanted to add this:

If the system is still bootable, you could back up DATA and DATA_BACK directly from Linux using tools such as rsync, tar, or dd, instead of using flash.sh -G for each partition.

That way, you would only need to enter Force Recovery once for the full BSP flash, then restore the data afterward.

RidgeRun has a Jetson AGX Orin flashing guide that may be useful as a reference for the flashing workflow:

Hi @1037379694,

NVIDIA’s backup tool can consolidate your two partition backups into one operation. The backup and full BSP reflash remain separate operations.

The workflow is:

  1. Enter Force Recovery and start the backup. Follow the prerequisites and Workflow 1 in Linux_for_Tegra/tools/backup_restore/README_backup_restore.txt.
  2. Back up all internal partitions in one operation. The tool boots a temporary Linux environment and backs up the internal eMMC and QSPI partitions, including DATA, DATA_BACK, and the system, software, and settings stored elsewhere on those devices. No manual Recovery entry is needed between individual partition backups.
  3. Verify the backup on the host. The backup is saved under Linux_for_Tegra/tools/backup_restore/images/. Allow sufficient host disk space and confirm the backup completed successfully before reflashing.
  4. Enter Force Recovery again for the full BSP reflash. The backup preserves a copy on the host; it does not prevent the original partitions from being erased during flashing.

Restoration remains a separate consideration. Restoring the complete backup also restores the captured BSP, overwriting the BSP you just flashed. Keeping the freshly flashed BSP while restoring only DATA and DATA_BACK requires a separate restoration procedure that we have not yet verified for your setup.

This approach reduces repeated Recovery entries during backup, but it is not yet a complete solution for your full-reflash-and-data-retention requirement.

Thanks.

Thanks for the clear explanation!

We’ll use the NVIDIA backup tool to back up all internal partitions in one Recovery session, verify the images on the host, then do a separate Force Recovery full BSP reflash. We also understand that a full restore would overwrite the newly flashed BSP, so restoring only DATA / DATA_BACK still needs a separate procedure.

This already helps a lot by reducing repeated Recovery entries during backup. We’ll proceed with this approach and continue looking into selective data restore.

Closing this topic. Really appreciate the support!