# Custom Legato Image Generation

**URL:** <https://forum.legato.io/t/custom-legato-image-generation/7014>\
**Category:** Legato Application Framework\
**Created:** [June 12, 2026, 6:20pm UTC](https://forum.legato.io/t/custom-legato-image-generation/7014 "2026-06-12T18:20:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 13, 2026, 2:04am UTC](https://forum.legato.io/t/custom-legato-image-generation/7014/2 "2026-06-13T02:04:58Z")

</div>

Q1 and Q2: if you build a simple hello world application with same procedure, can it be run? If yes, then your procedure is correct. FYI, I used this method to build the legato.cwe together with my application:

> [@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.

Q3: you can use “more /proc/mtd” to check the current legato partition size. To enlarge the partition size, you need to contact distributor to get a tool or enable the AT!PARTITION command:

> **[Repartition wp7702](https://forum.sierrawireless.com/t/repartition-wp7702/22662)**
>
> There is an older forum topic on this. But has anyone found a way to repartition the WP7702 to increase the size of the rootfs as of 2021? The AT!PARTITION is not supposed to work on WP77xx as per the AT command reference r8, but does show the...

Q4: you can have a look here:

> [@R16-WP7608-Partition-Size-Change](https://forum.legato.io/t/r16-wp7608-partition-size-change/5645/10):
>
> This is hard to compare as the code in legato framework is totally different. But seems there is significant decrease on the size and I think you can add your app and see if it can work on the module in the field.

---

_[View the full topic](https://forum.legato.io/t/custom-legato-image-generation/7014)._
