# Cwe install fails

**URL:** <https://forum.legato.io/t/cwe-install-fails/5818>\
**Category:** Legato Application Framework\
**Created:** [June 1, 2021, 8:45am UTC](https://forum.legato.io/t/cwe-install-fails/5818 "2021-06-01T08:45:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nilsa](https://avatars.discourse-cdn.com/v4/letter/n/cab0a1/32.png) [@nilsa](https://forum.legato.io/u/nilsa)\
**Post date:** [June 1, 2021, 8:45am UTC](https://forum.legato.io/t/cwe-install-fails/5818/1 "2021-06-01T08:45:43Z")

</div>

Hello

Have built a system with lighttpd and mqtt apps for the WP76. If I install the **.update** bundle as an overlay everything works fine.  
But If I use **systoimg** and build a **.cwe** that I install with fwupdate the module reboots and legato is no longer running and can’t be started.

If I exclude the lighttpd module it works. My .cwe file is about 9MB with the lighttpd components and 8.9MB without. Is this a size issue or what is it?

Can’t find any error messages that indicate what’s the problem.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [June 1, 2021, 9:18am UTC](https://forum.legato.io/t/cwe-install-fails/5818/2 "2021-06-01T09:18:06Z")

</div>

you can check the legato framework size by " more /proc/mtd" command.

You can also modify the wifi.sdef to include the application into legato.cwe.

> [@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 [image] Now the new app will be included in legato.cwe. Please also note that the max size for legato partition is 8MB.

---

<div class="post-metadata">

**Author:** ![nilsa](https://avatars.discourse-cdn.com/v4/letter/n/cab0a1/32.png) [@nilsa](https://forum.legato.io/u/nilsa)\
**Post date:** [June 1, 2021, 10:12am UTC](https://forum.legato.io/t/cwe-install-fails/5818/3 "2021-06-01T10:12:33Z")

</div>

Not sure how to use the “more /proc/mtd” and what mtd im looking for?  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/d/d6c3a94da8fc3b70195def2717a78dca1f0b98ed.png)

But I guess the legato size is the issue?

 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/c/c8f4392e1480d6d1fdd151d043b54652f092fe8c.png)  
ubi4\_0 is only 8.7MB

Tried to exclude the wifi apps with “export LE\_CONFIG\_ENABLE\_WIFI=n” as my hardware don’t have wifi but the wifi apps are still included.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [June 1, 2021, 10:41am UTC](https://forum.legato.io/t/cwe-install-fails/5818/4 "2021-06-01T10:41:42Z")

</div>

Didn’t lefwkro is the legato partition?

You need to modify wifi.sdef to remove wifi app

---

<div class="post-metadata">

**Author:** ![nilsa](https://avatars.discourse-cdn.com/v4/letter/n/cab0a1/32.png) [@nilsa](https://forum.legato.io/u/nilsa)\
**Post date:** [June 1, 2021, 12:02pm UTC](https://forum.legato.io/t/cwe-install-fails/5818/5 "2021-06-01T12:02:44Z")

</div>

Ok. lefwkro is 08C000 and that is 9 175 040 bytes. Explains why my system with lighttpd is just a bit too big to install.

Will try to remove unused apps like wifi\_samples and check what else I can remove.

---

<div class="post-metadata">

**Author:** ![Pankaj](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/pankaj/32/1317_2.png) [@Pankaj](https://forum.legato.io/u/Pankaj)\
**Post date:** [June 2, 2021, 8:32am UTC](https://forum.legato.io/t/cwe-install-fails/5818/6 "2021-06-02T08:32:27Z")

</div>

Are you using Airvantage Services?

---

<div class="post-metadata">

**Author:** ![nilsa](https://avatars.discourse-cdn.com/v4/letter/n/cab0a1/32.png) [@nilsa](https://forum.legato.io/u/nilsa)\
**Post date:** [June 2, 2021, 9:06am UTC](https://forum.legato.io/t/cwe-install-fails/5818/7 "2021-06-02T09:06:47Z")

</div>

Yes I’m using Airvantage for updates, heartbeat and status report.

Did mask defaultAtCommands.sinc and now it works. (My .cwe is 8,651,552 bytes) Not sure if this is something I need. AT commands still work. Did also mask out wifi.adef from wifi.sinc.
