# New FX30s - Problem Downloading Custom Firmware Image

**URL:** <https://forum.sierrawireless.com/t/new-fx30s-problem-downloading-custom-firmware-image/30927>\
**Category:** FX30\
**Created:** [October 26, 2023, 2:59pm UTC](https://forum.sierrawireless.com/t/new-fx30s-problem-downloading-custom-firmware-image/30927 "2023-10-26T14:59:15Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![eddie435](https://avatars.discourse-cdn.com/v4/letter/e/e9bcb4/32.png) [@eddie435](https://forum.sierrawireless.com/u/eddie435)\
**Post date:** [October 26, 2023, 2:59pm UTC](https://forum.sierrawireless.com/t/new-fx30s-problem-downloading-custom-firmware-image/30927/1 "2023-10-26T14:59:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [October 26, 2023, 3:43pm UTC](https://forum.sierrawireless.com/t/new-fx30s-problem-downloading-custom-firmware-image/30927/2 "2023-10-26T15:43:29Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![eddie435](https://avatars.discourse-cdn.com/v4/letter/e/e9bcb4/32.png) [@eddie435](https://forum.sierrawireless.com/u/eddie435)\
**Post date:** [October 26, 2023, 3:57pm UTC](https://forum.sierrawireless.com/t/new-fx30s-problem-downloading-custom-firmware-image/30927/3 "2023-10-26T15:57:24Z")

</div>

I’m not familiar with how to do that.

Eddie

---

<div class="post-metadata">

**Author:** ![eddie435](https://avatars.discourse-cdn.com/v4/letter/e/e9bcb4/32.png) [@eddie435](https://forum.sierrawireless.com/u/eddie435)\
**Post date:** [October 26, 2023, 4:03pm UTC](https://forum.sierrawireless.com/t/new-fx30s-problem-downloading-custom-firmware-image/30927/4 "2023-10-26T16:03:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [October 26, 2023, 4:03pm UTC](https://forum.sierrawireless.com/t/new-fx30s-problem-downloading-custom-firmware-image/30927/5 "2023-10-26T16:03:43Z")

</div>

you can see here on how to compile legato image:

> **[Errors Creating Image after Python3 automatic update](https://forum.legato.io/t/errors-creating-image-after-python3-automatic-update/6601/9)**
>
> I changed the folder as suggested and ran the “make wp77xx” command. It compiled but returned 2 errors. (lsh:FX30S-15-1) eddie@Q87CRM:~/Workspace/leaf-data/current/fx30-catm-legato$ make wp77xx Building Legato for target ‘wp77xx’ ...

---

<div class="post-metadata">

**Author:** ![eddie435](https://avatars.discourse-cdn.com/v4/letter/e/e9bcb4/32.png) [@eddie435](https://forum.sierrawireless.com/u/eddie435)\
**Post date:** [October 26, 2023, 8:53pm UTC](https://forum.sierrawireless.com/t/new-fx30s-problem-downloading-custom-firmware-image/30927/6 "2023-10-26T20:53:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [October 27, 2023, 12:40am UTC](https://forum.sierrawireless.com/t/new-fx30s-problem-downloading-custom-firmware-image/30927/7 "2023-10-27T00:40:19Z")

</div>

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](https://forum.sierrawireless.com/uploads/short-url/9lnMq59Xpnv38MUOK7Y7eHXCW5M.cwe) (7.0 MB)

Legato version is changed like this:

```auto
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

```

---

<div class="post-metadata">

**Author:** ![eddie435](https://avatars.discourse-cdn.com/v4/letter/e/e9bcb4/32.png) [@eddie435](https://forum.sierrawireless.com/u/eddie435)\
**Post date:** [October 30, 2023, 1:54pm UTC](https://forum.sierrawireless.com/t/new-fx30s-problem-downloading-custom-firmware-image/30927/8 "2023-10-30T13:54:04Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [October 30, 2023, 2:00pm UTC](https://forum.sierrawireless.com/t/new-fx30s-problem-downloading-custom-firmware-image/30927/9 "2023-10-30T14:00:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![eddie435](https://avatars.discourse-cdn.com/v4/letter/e/e9bcb4/32.png) [@eddie435](https://forum.sierrawireless.com/u/eddie435)\
**Post date:** [October 30, 2023, 2:15pm UTC](https://forum.sierrawireless.com/t/new-fx30s-problem-downloading-custom-firmware-image/30927/10 "2023-10-30T14:15:16Z")

</div>

Yes, the response is the same.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [October 30, 2023, 2:32pm UTC](https://forum.sierrawireless.com/t/new-fx30s-problem-downloading-custom-firmware-image/30927/11 "2023-10-30T14:32:21Z")

</div>

see if this helps by installing cmake

> **[Ssh tunnel : permission denied](https://forum.legato.io/t/ssh-tunnel-permission-denied/5177/19)**
>
> Yes, I thought that was the correct way: (lsh:profile1) dave-k@davek-HP-ProBook-640-G1:~/leafSept29/leaf-data/profile1/wp76-legato$ make (lsh:profile1) dave-k@davek-HP-ProBook-640-G1:~/leafSept29/leaf-data/profile1/wp76-legato$ make wp76xx (I’m...

---

<div class="post-metadata">

**Author:** ![eddie435](https://avatars.discourse-cdn.com/v4/letter/e/e9bcb4/32.png) [@eddie435](https://forum.sierrawireless.com/u/eddie435)\
**Post date:** [October 30, 2023, 4:01pm UTC](https://forum.sierrawireless.com/t/new-fx30s-problem-downloading-custom-firmware-image/30927/12 "2023-10-30T16:01:29Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [October 30, 2023, 4:06pm UTC](https://forum.sierrawireless.com/t/new-fx30s-problem-downloading-custom-firmware-image/30927/13 "2023-10-30T16:06:14Z")

</div>

you can see here as example:

> **[Flash size wp7607](https://forum.legato.io/t/flash-size-wp7607/3805/35)**
>
> you can go to legato-19.02.0/modules/WiFi/wifi.sdef, under “apps:” section, add e.g. $LEGATO\_ROOT/apps/sample/helloWorld/helloWorld.adef Now the new app will be included in legato.cwe. Please also note that the max size for legato partition...

---

<div class="post-metadata">

**Author:** ![eddie435](https://avatars.discourse-cdn.com/v4/letter/e/e9bcb4/32.png) [@eddie435](https://forum.sierrawireless.com/u/eddie435)\
**Post date:** [October 30, 2023, 5:31pm UTC](https://forum.sierrawireless.com/t/new-fx30s-problem-downloading-custom-firmware-image/30927/14 "2023-10-30T17:31:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [October 30, 2023, 5:39pm UTC](https://forum.sierrawireless.com/t/new-fx30s-problem-downloading-custom-firmware-image/30927/15 "2023-10-30T17:39:25Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![eddie435](https://avatars.discourse-cdn.com/v4/letter/e/e9bcb4/32.png) [@eddie435](https://forum.sierrawireless.com/u/eddie435)\
**Post date:** [October 30, 2023, 6:42pm UTC](https://forum.sierrawireless.com/t/new-fx30s-problem-downloading-custom-firmware-image/30927/16 "2023-10-30T18:42:25Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [October 30, 2023, 11:52pm UTC](https://forum.sierrawireless.com/t/new-fx30s-problem-downloading-custom-firmware-image/30927/17 "2023-10-30T23:52:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![eddie435](https://avatars.discourse-cdn.com/v4/letter/e/e9bcb4/32.png) [@eddie435](https://forum.sierrawireless.com/u/eddie435)\
**Post date:** [October 31, 2023, 1:40pm UTC](https://forum.sierrawireless.com/t/new-fx30s-problem-downloading-custom-firmware-image/30927/18 "2023-10-31T13:40:45Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [October 31, 2023, 1:42pm UTC](https://forum.sierrawireless.com/t/new-fx30s-problem-downloading-custom-firmware-image/30927/19 "2023-10-31T13:42:53Z")

</div>

You can make some test, i never try this
