I am having an issue with the update command filling up the flash unnecessarily on failed updates. How can remove any files associated with a failed update?
Prior to an update attempt the flash was at 90% usage
root@p0xx-119-nosn:~# df | grep flash
df: /dev/mqueue: No such file or directory
df: /dev/mqueue: No such file or directory
/dev/ubi3_0 107036 90952 11248 89% /mnt/flash
The update failes and i no longer have any flash space:
root@p0xx-119-nosn:~/wpupdate-0-0-9893-dockerbld# ./WP77XX.sh
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
***Error: Internal error during update. See log for details.
FAILED
root@p0xx-119-nosn:~/wpupdate-0-0-9893-dockerbld# df | grep flash
df: /dev/mqueue: No such file or directory
df: /dev/mqueue: No such file or directory
/dev/ubi3_0 107036 107028 0 100% /mnt/flash
I need to audit the flash/overlay in general to figure out where i can get more space; however, as a failed update eats up 10% of the flash, I need to know how to free that memory.
Can’t do that as there are other files i need to keep. So let’s try to scope this to figuring out how the update command works and see if its behavior can be modified.
Right now the issue is that there are basically 3 versions of my app on the device at any time. The app is currently 50MB uncompressed so the combined 150MB is primary reason the flash is filling up. Is there any way to delete the old version of the app (in the case below it would be 1.0.0.9891.dockerbld) to free up flash?