We have encountered an issue using fwupdate on a unit deployed to a customer. This was only seen once after thousands of successful uses, but we need to understand what can be done to either recover or workaround it.
This is on a WP7610 module, based on Sierra Release 16.1 (Legato 19.11.6).
The spk that we use during the update contains the linux distribution, modem firmware, and legato framework including our applications.
fwupdate downloadOnly is used first, then several hours later fwupdate install is used.
The issue observed was that the linux distritbution was installed successfully, but not the legato framework and apps. This led our product to stop working properly without a way to recover.
Looking at the logs, no error were seen during the install that would indicate the issue. However, /mnt/legato is empty.
Is there a way to troubleshoot this further to understand why the install failed?
Now that fwupdate isn’t available anymore, is there a way to reinstall the legato framework in order to recover?
do you see any fwupdate binary?
BTW, what is status of legato framework?
root@fx30:~# find / -name "fwupdate"
/data/le_fs/fwupdate
/mnt/flash/ufs/data/le_fs/fwupdate
/mnt/legato/apps/f4d8baa0a5ca46871166afa697dd8e2e/read-only/bin/fwupdate
/mnt/legato/system/bin/fwupdate
find: /proc/3348: No such file or directory
root@fx30:~# legato status
Systems installed:
23 [good] <-- current
Legato framework is running.
root@hhv2-009280:/mnt/flash/legato# fwupdate
-sh: fwupdate: not found
root@hhv2-009280:/mnt/flash/legato# legato status
-sh: legato: not found
root@hhv2-009280:/mnt/flash/legato# find / -name "fwupdate"
/data/le_fs/fwupdate
/legato/systems/current/appsWriteable/tools/bin/fwupdate
/mnt/flash/ufs/data/le_fs/fwupdate
/mnt/flash/legato/systems/current/appsWriteable/tools/bin/fwupdate
find: /proc/30659: No such file or directory
find: /proc/30677: No such file or directory
Since the rate of reproducibity is so low (<0.1%) , it is better to think some workaround
I agree, having a way to work around the issue would be sufficient. If I make a copy of the fwupdate app somewhere, do you think I could reuse it during a startup script to identify and recover from the issue (attempting to flash again)?
do you have an external PC connecting to the problematic module?
Yes, we have retrieved the module. I have been comparing logs but there is no error during the update that indicates the problem (when comparing to a unit which updated successfully).
Will you consider to use AVMS FOTA upgrade ?
AVMS FOTA upgrade used to not be usable over ethernet. The FOTA Service was also forcing the route to use cellular connection, even if an ethernet connection was available. Those aspects were showstoppers for our application.