How do I build an executable for windows that contains an installer and my customized system.update legato image?
I’m looking for something similar to the way a firmware update is done - plug the device in, run the exe, all done. I can sort of do it in linux by creating a .cwe or .spk and using swiflash - but I need to do it in Windows.
Having the user scp’ing the .update file to the WP and then running native linux commands on the WP is NOT an option! You wouldn’t believe the mess we got into trying that…
if you extract the official FW upgrade exe file, there is a fdt2.exe which I believe it is used to download the FW to module.
If you open the .exe by WINRAR, you can see
; Auto-generated, Do not edit - contains SFX script commands
;
; CWE File: WP76xx_Release9_RC4_TELSTRA_test.spk
It’s not much documented (well… not at all…) but the swiflash ZIP file (see https://source.sierrawireless.com/resources/airprime/software/swiflash/) contains both FDT and a swiflash.bat script that replicates the swiflash interface for Windows.
That’s what was used by DS to address recovery use cases on Windows.
Note that if you’re on Windows 10, swiflash deb package contains it as well, so that if you install swiflash on WSL, it routes to FDT in order to give the same behavior than on Linux.
(Please be kind: those procedures haven’t be tested for a while, but the is a good chance they can fit your need )
Side node: having a standalone exe won’t dispense the final user to install the Windows USB driver to use it.
I seem to hacked together something that sort of works using 7zip and the bits I pulled out of a WP77 firmware update package. Not 100% happy with it, but it will get me started.
As an aside, what’s teh difference between a cwe file and a spk file? The linux tools build a cwe file, but the installer uses a spk file - although is seems to be able to use a cwe file as well.
I’ve managed to hack together a windows based installer that mostly works.
fdt2 appears to connect to the module and upload the .cwe file - but then never reconnects after forcing a reboot, and a couple of screens of errors are thrown before the dosbox closes.
Application seems to have been uploaded OK though.