Wipe the update partition
The main purpose of the update partition is the storage of firmware update files prior to launching a firmware update process on the device. Recovery utils software package includes support to easily wipe the update partition of your device from the command line or from your custom application:
To wipe the update partition from the command line, execute the following command:
$ recovery-reboot --wipe-update-partition
See Recovery partition and utils for more information.
To wipe the update partition from your application, use the API provided by Digi. See Recovery library (firmware update).
int ret = 0; [...] /* Configure recovery commands to format 'update' partition */ ret = wipe_update_partition(); if (ret) { printf("Error: wipe_update_partition\n"); } /* Reboot to recovery */ ret = reboot_recovery(reboot_timeout); if (ret) { printf("Error: reboot_recovery\n"); } [...]