# Help creating full system spk for FX30 Cat1

**URL:** <https://forum.sierrawireless.com/t/help-creating-full-system-spk-for-fx30-cat1/29063>\
**Category:** FX30\
**Created:** [February 17, 2023, 2:29pm UTC](https://forum.sierrawireless.com/t/help-creating-full-system-spk-for-fx30-cat1/29063 "2023-02-17T14:29:56Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![karlkuhn](https://avatars.discourse-cdn.com/v4/letter/k/977dab/32.png) [@karlkuhn](https://forum.sierrawireless.com/u/karlkuhn)\
**Post date:** [February 17, 2023, 2:29pm UTC](https://forum.sierrawireless.com/t/help-creating-full-system-spk-for-fx30-cat1/29063/1 "2023-02-17T14:29:56Z")

</div>

Hi, I am trying to create a full system spk (with all parts) however I am struggling to create an spk the modem will accept. I am using “fwupdate download [spk file]” to download the spk…

I’ve built my own legato.cwe using a sdef file → mksys → systocwe  
I then build my spk using

> swicwe -c …/leaf-data/current/fx30-cat1-image/9999999\_9907152\_SWI9X07Y\_02.37.03.00\_00\_GENERIC\_002.095\_000-full.spk …/leaf-data/current/fx30-cat1-linux-image/linux.cwe legato.wp76xx.cwe -o full.wp76x.spk

Am I doing this incorrectly? Am I including the incorrect images?

The update fails with the bootloader… running fwupdate checkStatus gives

```
 `Bad status (Bootloader failed), install not possible.`

```

PS. The reason for this is to aid the production process, but also to ensure the apps are part of the base legato image so that they cannot be removed…

---

<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:** [February 17, 2023, 3:04pm UTC](https://forum.sierrawireless.com/t/help-creating-full-system-spk-for-fx30-cat1/29063/2 "2023-02-17T15:04:16Z")

</div>

Have you downloaded one by one by fwupdate to make sure those three images are good?

---

<div class="post-metadata">

**Author:** ![karlkuhn](https://avatars.discourse-cdn.com/v4/letter/k/977dab/32.png) [@karlkuhn](https://forum.sierrawireless.com/u/karlkuhn)\
**Post date:** [February 17, 2023, 3:06pm UTC](https://forum.sierrawireless.com/t/help-creating-full-system-spk-for-fx30-cat1/29063/3 "2023-02-17T15:06:30Z")

</div>

Having dug into this a little more… the problem seems to be with my legato.cwe file…

As just trying to fwupdate that results in the same problem…

I’ve created it as follows

> systocwe wp76xx System.wp76xx.update \_build\_cwe\_wp76xx

I can confirm that the System.wp76xx.update can be applied by itself successfully, but the generated legato.cwe cannot…

How could I debug this? Or is there something obvious I am doing incorrectly…

Thanks,  
Karl

---

<div class="post-metadata">

**Author:** ![karlkuhn](https://avatars.discourse-cdn.com/v4/letter/k/977dab/32.png) [@karlkuhn](https://forum.sierrawireless.com/u/karlkuhn)\
**Post date:** [February 17, 2023, 3:08pm UTC](https://forum.sierrawireless.com/t/help-creating-full-system-spk-for-fx30-cat1/29063/4 "2023-02-17T15:08:22Z")

</div>

The modem image can be flashed on its own…

---

<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:** [February 17, 2023, 3:08pm UTC](https://forum.sierrawireless.com/t/help-creating-full-system-spk-for-fx30-cat1/29063/5 "2023-02-17T15:08:35Z")

</div>

I don’t use systocwe, instead i make the legato.cwe directly by “make wp76xx” in the legato source package

---

<div class="post-metadata">

**Author:** ![karlkuhn](https://avatars.discourse-cdn.com/v4/letter/k/977dab/32.png) [@karlkuhn](https://forum.sierrawireless.com/u/karlkuhn)\
**Post date:** [February 17, 2023, 3:10pm UTC](https://forum.sierrawireless.com/t/help-creating-full-system-spk-for-fx30-cat1/29063/6 "2023-02-17T15:10:06Z")

</div>

Hmm ok I could try that… that would require me changing default.sdef file would it not?

systocwe should work though? should it not?.. by the way I am assuming systocwe is the same as systoimg?

---

<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:** [February 17, 2023, 3:11pm UTC](https://forum.sierrawireless.com/t/help-creating-full-system-spk-for-fx30-cat1/29063/7 "2023-02-17T15:11:06Z")

</div>

Here shows how to add application directly to legato.cwe by modifying wifi.sdef

> **[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 is...

---

<div class="post-metadata">

**Author:** ![karlkuhn](https://avatars.discourse-cdn.com/v4/letter/k/977dab/32.png) [@karlkuhn](https://forum.sierrawireless.com/u/karlkuhn)\
**Post date:** [February 17, 2023, 3:13pm UTC](https://forum.sierrawireless.com/t/help-creating-full-system-spk-for-fx30-cat1/29063/8 "2023-02-17T15:13:38Z")

</div>

why do you modify wifi.sdef? that seems odd?

---

<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:** [February 17, 2023, 3:14pm UTC](https://forum.sierrawireless.com/t/help-creating-full-system-spk-for-fx30-cat1/29063/9 "2023-02-17T15:14:21Z")

</div>

It works for me to add app to the image  
You can try other sdef file if you want

---

<div class="post-metadata">

**Author:** ![karlkuhn](https://avatars.discourse-cdn.com/v4/letter/k/977dab/32.png) [@karlkuhn](https://forum.sierrawireless.com/u/karlkuhn)\
**Post date:** [February 17, 2023, 3:18pm UTC](https://forum.sierrawireless.com/t/help-creating-full-system-spk-for-fx30-cat1/29063/10 "2023-02-17T15:18:50Z")

</div>

Do you run make from the Wifi folder or from the legato root folder?

---

<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:** [February 17, 2023, 3:22pm UTC](https://forum.sierrawireless.com/t/help-creating-full-system-spk-for-fx30-cat1/29063/11 "2023-02-17T15:22:11Z")

</div>

I did “make wp76xx” In legato root folder

---

<div class="post-metadata">

**Author:** ![karlkuhn](https://avatars.discourse-cdn.com/v4/letter/k/977dab/32.png) [@karlkuhn](https://forum.sierrawireless.com/u/karlkuhn)\
**Post date:** [February 17, 2023, 3:41pm UTC](https://forum.sierrawireless.com/t/help-creating-full-system-spk-for-fx30-cat1/29063/12 "2023-02-17T15:41:10Z")

</div>

Hmmm I tried just running “make wp76xx -d” without changing anything and am getting the following error

Updating goal targets…  
Considering target file ‘all’.  
File ‘all’ does not exist.  
Considering target file ‘config’.  
File ‘config’ does not exist.  
Considering target file ‘/home/legato/.leaf/fx30-cat1-legato\_19.11.5/build/wp76xx/framework/lib/libjansson.so’.  
Considering target file ‘/home/legato/.leaf/fx30-cat1-legato\_19.11.5/build/wp76xx/framework/lib’.  
Finished prerequisites of target file ‘/home/legato/.leaf/fx30-cat1-legato\_19.11.5/build/wp76xx/framework/lib’.  
No need to remake target ‘/home/legato/.leaf/fx30-cat1-legato\_19.11.5/build/wp76xx/framework/lib’.  
Finished prerequisites of target file ‘/home/legato/.leaf/fx30-cat1-legato\_19.11.5/build/wp76xx/framework/lib/libjansson.so’.  
**Prerequisite ‘/home/legato/.leaf/fx30-cat1-legato\_19.11.5/build/wp76xx/framework/lib’ is newer than target ‘/home/legato/.leaf/fx30-cat1-legato\_19.11.5/build/wp76xx/framework/lib/libjansson.so’.**  
Must remake target ‘/home/legato/.leaf/fx30-cat1-legato\_19.11.5/build/wp76xx/framework/lib/libjansson.so’.

---

<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:** [February 17, 2023, 3:53pm UTC](https://forum.sierrawireless.com/t/help-creating-full-system-spk-for-fx30-cat1/29063/13 "2023-02-17T15:53:30Z")

</div>

why do you add parameter -d?  
Do you do it in leaf shell?

Not sure if you need to do a clean build for “make clean”

---

<div class="post-metadata">

**Author:** ![karlkuhn](https://avatars.discourse-cdn.com/v4/letter/k/977dab/32.png) [@karlkuhn](https://forum.sierrawireless.com/u/karlkuhn)\
**Post date:** [February 17, 2023, 3:55pm UTC](https://forum.sierrawireless.com/t/help-creating-full-system-spk-for-fx30-cat1/29063/14 "2023-02-17T15:55:26Z")

</div>

yes I’m in leaf shell… the “-d” gives me debug output of the make process…otherwise I get a more cryptic error

I tried “make clean”… no difference

---

<div class="post-metadata">

**Author:** ![karlkuhn](https://avatars.discourse-cdn.com/v4/letter/k/977dab/32.png) [@karlkuhn](https://forum.sierrawireless.com/u/karlkuhn)\
**Post date:** [February 17, 2023, 3:56pm UTC](https://forum.sierrawireless.com/t/help-creating-full-system-spk-for-fx30-cat1/29063/15 "2023-02-17T15:56:18Z")

</div>

Does this have anything to do with needing to getsrc?

---

<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:** [February 17, 2023, 3:57pm UTC](https://forum.sierrawireless.com/t/help-creating-full-system-spk-for-fx30-cat1/29063/16 "2023-02-17T15:57:01Z")

</div>

didn’t you already have the source code?

---

<div class="post-metadata">

**Author:** ![karlkuhn](https://avatars.discourse-cdn.com/v4/letter/k/977dab/32.png) [@karlkuhn](https://forum.sierrawireless.com/u/karlkuhn)\
**Post date:** [February 17, 2023, 3:57pm UTC](https://forum.sierrawireless.com/t/help-creating-full-system-spk-for-fx30-cat1/29063/17 "2023-02-17T15:57:45Z")

</div>

The error I otherwise get is

make[2]: \*\*\* [Makefile.targetTools:109: /home/legato/.leaf/fx30-cat1-legato\_19.11.5/build/wp76xx/framework/lib/libjansson.so] Error 127

I’ve only run “leaf setup xxx -p xxx”

---

<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:** [February 17, 2023, 3:58pm UTC](https://forum.sierrawireless.com/t/help-creating-full-system-spk-for-fx30-cat1/29063/18 "2023-02-17T15:58:17Z")

</div>

you can see here: (seems to be same error)

> **[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:** ![karlkuhn](https://avatars.discourse-cdn.com/v4/letter/k/977dab/32.png) [@karlkuhn](https://forum.sierrawireless.com/u/karlkuhn)\
**Post date:** [February 17, 2023, 4:06pm UTC](https://forum.sierrawireless.com/t/help-creating-full-system-spk-for-fx30-cat1/29063/19 "2023-02-17T16:06:46Z")

</div>

Thanks that was it… doh… no cmake… difficult to tell from the error messages… now to try include my apps…

It really would be easier if the systocwe worked… would be a lot easier… editing the legato files is not great…

---

<div class="post-metadata">

**Author:** ![karlkuhn](https://avatars.discourse-cdn.com/v4/letter/k/977dab/32.png) [@karlkuhn](https://forum.sierrawireless.com/u/karlkuhn)\
**Post date:** [February 20, 2023, 10:07am UTC](https://forum.sierrawireless.com/t/help-creating-full-system-spk-for-fx30-cat1/29063/20 "2023-02-20T10:07:19Z")

</div>

Hi @jyijyi, I’ve followed your suggestion of re-purposing the wifi sdef file.

The system builds fine… looking around the build output. The update files that are created in ./build/wp76xx/system/app/\* are they full update files? I ask because they are significantly different in size compared to update files created using mkapp of the same adef files?

Thanks

[Next page](https://forum.sierrawireless.com/t/help-creating-full-system-spk-for-fx30-cat1/29063.md?page=2)
