New FX30s - Problem Downloading Custom Firmware Image

Hi All,

We recently purchased new FX30S modems with the latest firmware on them. I used Leaf to recompile our apps on the same firmware level (R15.1.0.004) so we can download to the new FX30S.

These are the commands I use to compile and build the new image file:

  • mksys -t wp77xx FX30S_Cell.sdef
  • systoimg wp77xx FX30S_Cell.wp77xx.update BuildFiles
  • swicwe -o FX30S_Cell.spk -c <GenericFull.spk> <legato.cwe>

These work well and I’m able to create the firmware image with our apps, but when I download the file to the modem it fails.

I have tried downloading the file from my linux development VM, from my Window PC, and also I copied directly to the modem and tried “fwupdate download MyAppfile.spk”

The download always fails. See below:

FDT version: 2.0.2012.0
Awaiting suitable port or adapter …
Switching to boot & hold mode …
Disabling selective suspend …
Awaiting download port …
Switching to streaming mode …
Downloading images …
Writing image C:\Legato\Firmware\advantorcell_full_v2.spk -
Flashing image |
Firmware download failed.
Primary error code: 77 - Failed in streaming download stage.
Secondary error code: 68 - Received incorrect response.
Device error code: 0x83 - Image size out of range.
Preexisting images information:
Current:
Firmware:
ImageId: 001.079_000
BuildId: 02.36.08.09_GENERIC
Configuration:
ImageId: 001.079_000
BuildId: 02.36.08.09_GENERIC
Final images information:
Current:
Firmware:
ImageId:
BuildId:
Configuration:
ImageId:
BuildId:
OEM PRI:
IMEI:
Total time elapsed: 52782 ms.
Time to switch to boot mode: 24469 ms.
Images downloaded:
Image ID: 001.079_000
Build ID: 02.36.08.09_GENERIC
failed
Time to reset to application mode: -1 ms.

Any help is appreciated. Thanks!

Eddie

is it OK to compile and download the legato image with “make wp77xx”?

I’m not familiar with how to do that.

Eddie

If I use the command “update myapp.wp77xx.update 192.168.2.2” it works.

But when I download it as an image file that I created, then it fails.

Eddie

you can see here on how to compile legato image:

Is anybody else having this same problem with the latest FX30S modem with firmware version R15.1.0.004 and downloading a custom full image?
This is the error I’m getting:

FDT version: 2.0.2012.0
Awaiting suitable port or adapter …
Downloading images …
Writing image C:\Legato\Firmware\advantorcell_full_v2-0-0.spk -
Flashing image |
Firmware download failed.
Primary error code: 77 - Failed in streaming download stage.
Secondary error code: 68 - Received incorrect response.
Device error code: 0x83 - Image size out of range.
Preexisting images information:
Current:
Firmware:
ImageId:
BuildId:
Configuration:
ImageId:
BuildId:
Final images information:
Current:
Firmware:
ImageId:
BuildId:
Configuration:
ImageId:
BuildId:
OEM PRI:
IMEI:
Total time elapsed: 31313 ms.
Images downloaded:
Image ID: 001.079_000
Build ID: 02.36.08.09_GENERIC
failed
Time to reset to application mode: -1 ms.

Also, if I try downloading from my Ubuntu18 environment with fwupdate, it also fails.

I can successfully build my custom full generic image and download it to my older FX30S (R14.1.1.002) with no problem at all.

Thanks

Eddie

If you directly jump to custom image, it is hard to isolate different factors like fw change, tool problem or image problem

I just compiled the legato image by “make wp77xx” from leaf package swi-wp77_6.0.1 which is for R15.1, no problem is found to download to WP77 modue, you can have a try on my image.
legato.cwe (7.0 MB)

Legato version is changed like this:

ati3
Manufacturer: Sierra Wireless, Incorporated
Model: WP7702
Revision: SWI9X06Y_02.36.08.09 c094f4 jenkins 2022/06/24 03:14:28
IMEI: 352653090612345
IMEI SV:  8
FSN: VU213430812345
+GCAP: +CGSM

OK
ati8
Legato Ver: 21.05.0_ad3afbfe0f41835dc3fac580348df5ff
Yocto Ver:  SWI9X06Y_03.00.13.00 2022-12-27_09:10:00
OS Ver: Linux version 4.14.253 (oe-user@oe-host) ( gcc version 9.3.0 (GCC), GNU ld (GNU Binutils) 2.34.0.20200220) #1 PREEMPT Tue Dec 27 08:09:00 UTC 2022
LK Ver: SWI9X06Y_03.00.13.00
RootFS Ver: SWI9X06Y_03.00.13.00 2022-12-27_09:10:00
UserFS Ver: unknown
MCU Ver: 002.015

OK

I just tried “make wp77xx” and got the following error:

(lsh:FX30s-v2) advantor@Ubuntu-18:~/Workspace/leaf-data/current/fx30-catm-legato$ make wp77xx
Building Legato for target ‘wp77xx’
modules/WiFi/moduleDefs:12: Legato WiFi version is undefined…
GEN version
MAKE tools
make[1]: Entering directory ‘/home/advantor/.leaf/fx30-catm-legato_21.05.0’
Using ninja installed at: /usr/bin/ninja
GEN /home/advantor/.leaf/fx30-catm-legato_21.05.0/build/tools/build.ninja
Tools arch: x86_64
MAKE mkPatch
make[2]: Entering directory ‘/home/advantor/.leaf/fx30-catm-legato_21.05.0/framework/tools/mkPatch’
make[2]: ‘/home/advantor/.leaf/fx30-catm-legato_21.05.0/bin/mkPatch’ is up to date.
make[2]: Leaving directory ‘/home/advantor/.leaf/fx30-catm-legato_21.05.0/framework/tools/mkPatch’
NINJA /home/advantor/.leaf/fx30-catm-legato_21.05.0/build/tools/build.ninja
ninja: no work to do.
make[1]: Leaving directory ‘/home/advantor/.leaf/fx30-catm-legato_21.05.0’
GEN sources.md5
GEN package.properties
MAKE framework
make[1]: Entering directory ‘/home/advantor/.leaf/fx30-catm-legato_21.05.0’
NINJA /home/advantor/.leaf/fx30-catm-legato_21.05.0/build/wp77xx/framework/build.ninja
ninja: no work to do.
MKEXE /home/advantor/.leaf/fx30-catm-legato_21.05.0/build/wp77xx/framework/bin/supervisor
[10/10] Linking C executable
MKEXE /home/advantor/.leaf/fx30-catm-legato_21.05.0/build/wp77xx/framework/bin/serviceDirectory
[4/4] Linking C executable
MKEXE /home/advantor/.leaf/fx30-catm-legato_21.05.0/build/wp77xx/framework/bin/logCtrlDaemon
[5/5] Linking C executable
MKEXE /home/advantor/.leaf/fx30-catm-legato_21.05.0/build/wp77xx/framework/bin/configTree
[14/14] Linking C executable
MKEXE /home/advantor/.leaf/fx30-catm-legato_21.05.0/build/wp77xx/framework/bin/watchdog
[7/7] Linking C executable
MKEXE /home/advantor/.leaf/fx30-catm-legato_21.05.0/build/wp77xx/framework/bin/updateDaemon
[16/16] Linking C executable
MAKE targetTools
make[2]: Entering directory ‘/home/advantor/.leaf/fx30-catm-legato_21.05.0’
CMAKE /home/advantor/.leaf/fx30-catm-legato_21.05.0/build/wp77xx/framework/lib/libjansson.so
Makefile.targetTools:108: recipe for target ‘/home/advantor/.leaf/fx30-catm-legato_21.05.0/build/wp77xx/framework/lib/libjansson.so’ failed
make[2]: *** [/home/advantor/.leaf/fx30-catm-legato_21.05.0/build/wp77xx/framework/lib/libjansson.so] Error 127
make[2]: Leaving directory ‘/home/advantor/.leaf/fx30-catm-legato_21.05.0’
Makefile.framework:249: recipe for target ‘targetTools’ failed
make[1]: *** [targetTools] Error 2
make[1]: Leaving directory ‘/home/advantor/.leaf/fx30-catm-legato_21.05.0’
Makefile:552: recipe for target ‘framework’ failed
make: *** [framework] Error 2

I haven’t tried loading your image fill yet. I’ll try it here shortly.
Any clues on what’s happening above?

If you type 2nd time “make wp77xx”, is it failed on same error?

Yes, the response is the same.

see if this helps by installing cmake

Installing cmake worked and I successfully ran “make wp77xx”.

I also successfully downloaded the legato-squashfs.ubi.cwe to my FX30S modem with the “swiflash -m wp77xx -i legato-squashfs.ubi.cwe” command.

How do I now add my custom apps to the firmware image?

Thanks.

you can see here as example:

I think my problem is the legato max partition size. After creating the image, my legato-squashfs.ubi.cwe file goes to 10.2MB, and your example says max size is 8MB.

Is there a way to get around this problem?

My app doesn’t change from R14.1.1.002 to R15.1.0.004, but I see the legato-squashfs.ubi.cwe file go from 8.7MB to 10.2MB

You need to contact distributor to get a tool to resize partition

Another way is you install the .update file bu"update xxx.update", it would then install in userapp partition

I have successfully installed the update file and tested my apps successfully. The reason I wanted to create an image file is because if the FX30S default to the factory settings, I want my app to also be restored. I don’t any other way to accomplish that.

Then you need to contact distributor to get a tool to resize partition by using at!partition command

Is there anyway to make the legato image smaller? For example, I don’t use the wifi services at all. Could I just remove all those related files?

You can make some test, i never try this