I am wanting to be able to preserve a sizeable chunk of data in the eMMC while performing the recovery flash process. My initial thought was to put the data that should be persistent across the flashing process in the UDA partition. However, one of the steps during the flashing process is erasing the eMMC, including the UDA partition, so all the data is erased in the process. My second attempt was to perform a partition read of UDA before beginning to flash in order to allow restoring the UDA partition following the flashing process. However, it does not appear that the reading the UDA partition is supported by the flashing utilities:
sudo ./flash.sh -r -k UDA -G uda.img jetson-tx2 mmcblk0p1
…
*** Update [UDA] is not supported. ***
I am looking for a solution that only requires the device to be able to boot into recovery mode with functional USB support. I am not interested in any ideas to use an SD card, write the data to an external device on your board, save it in the EEPROM, etc.
So my question, is there a way to preserve several MBs of data while flashing an entire system image through the Recovery mechanism?