# Flash size wp7607

**URL:** <https://forum.legato.io/t/flash-size-wp7607/3805>\
**Category:** Uncategorized\
**Created:** [October 23, 2018, 3:16am UTC](https://forum.legato.io/t/flash-size-wp7607/3805 "2018-10-23T03:16:30Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![deadpoolcode](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/deadpoolcode/32/382_2.png) [@deadpoolcode](https://forum.legato.io/u/deadpoolcode)\
**Post date:** [October 23, 2018, 3:16am UTC](https://forum.legato.io/t/flash-size-wp7607/3805/1 "2018-10-23T03:16:30Z")

</div>

Hello

as mentioned in the data sheet the wp7607 flash size is 256MB

however, the root FS size as defined by Yocto is ~40MB, how can I expend the FS size?

how much space is actually available on the wp7607?

additionally, I noticed that modifying the partitions is not supported by the wp7607 (a post from 12.17)

is there any update on that issue?

---

<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:** [October 24, 2018, 1:17am UTC](https://forum.legato.io/t/flash-size-wp7607/3805/2 "2018-10-24T01:17:12Z")

</div>

I don’t see there is way to resize the partitions now…  
But in case you want to include more file in FS, you can try modifying ./meta-swi/meta-swi-mdm9x28/conf/machine/swi-mdm9x28.conf ? (parameter UBI\_ROOTFS\_SIZE)

---

<div class="post-metadata">

**Author:** ![deadpoolcode](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/deadpoolcode/32/382_2.png) [@deadpoolcode](https://forum.legato.io/u/deadpoolcode)\
**Post date:** [January 28, 2019, 5:44pm UTC](https://forum.legato.io/t/flash-size-wp7607/3805/3 "2019-01-28T17:44:37Z")

</div>

I did that and I succeed in creating a larger FS

but, without the option to modify partition sizes, when I flash that image the device stops functioning properly (legato components do not function well)

this is well understood since I “overrun” existing functionality

please advice how it’s possible to use a larger FS

thank you

---

<div class="post-metadata">

**Author:** ![CoRfr](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/corfr/32/69_2.png) [@CoRfr](https://forum.legato.io/u/CoRfr)\
**Post date:** [January 28, 2019, 8:07pm UTC](https://forum.legato.io/t/flash-size-wp7607/3805/4 "2019-01-28T20:07:59Z")

</div>

The UBIFS size is something a bit from the past, as we are currently not using the generated ubifs rootfs (which has a static size) and use a squashfs rootfs instead (dynamic size, compressed and read-only).

The flash layout is fixed on wp76, so it is not possible to resize the rootfs partition once the max is reached. The system can be extended through Legato applications, and/or by putting content in bigger partitions such as /mnt/flash.  
Overall we recommend the rootfs to remain small for security reason.

---

<div class="post-metadata">

**Author:** ![deadpoolcode](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/deadpoolcode/32/382_2.png) [@deadpoolcode](https://forum.legato.io/u/deadpoolcode)\
**Post date:** [January 29, 2019, 4:53am UTC](https://forum.legato.io/t/flash-size-wp7607/3805/5 "2019-01-29T04:53:48Z")

</div>

I understand.

but in my case, for example I would like to include ffmpeg to the Yocto build, now image created is bigger then UBI\_ROOTFS\_SIZE so image is not getting built.

however if I resize parameter UBI\_ROOTFS\_SIZE, image can be built.

how else can I accomplish including more packages to the Yocto build ?

---

<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:** [January 29, 2019, 5:11am UTC](https://forum.legato.io/t/flash-size-wp7607/3805/6 "2019-01-29T05:11:09Z")

</div>

not sure if you can remove some packages so that you can run your yocto.  
e.g. ./meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image.inc

---

<div class="post-metadata">

**Author:** ![CoRfr](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/corfr/32/69_2.png) [@CoRfr](https://forum.legato.io/u/CoRfr)\
**Post date:** [January 29, 2019, 5:38pm UTC](https://forum.legato.io/t/flash-size-wp7607/3805/7 "2019-01-29T17:38:54Z")

</div>

And since you’re unlikely to use the ubifs image, you can disable it’s generation by commenting out the 2 lines in `meta-swi/meta-swi-mdm9x28/conf/machine/swi-mdm9x28.conf`:

```auto
# Add ubifs file system
IMAGE_FSTYPES += "2k.ubifs"
IMAGE_FSTYPES += "4k.ubifs"

```

So after it should look like:

```auto
# Add ubifs file system
#IMAGE_FSTYPES += "2k.ubifs"
#IMAGE_FSTYPES += "4k.ubifs"

```

You might also need to edit `meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image.inc` to change

```auto
for rootfs_type in ubifs squashfs; do

```

by

```auto
for rootfs_type in ubifs; do

```

---

<div class="post-metadata">

**Author:** ![deadpoolcode](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/deadpoolcode/32/382_2.png) [@deadpoolcode](https://forum.legato.io/u/deadpoolcode)\
**Post date:** [January 30, 2019, 11:29am UTC](https://forum.legato.io/t/flash-size-wp7607/3805/8 "2019-01-30T11:29:14Z")

</div>

while it does solves the error in build issue, when I flash 'yocto\_wp76xx.4k.cwe" the wp76xx still starting to experience “strage” behaviour, that is because of course the on-board partitioning does not support the image size

please advice

---

<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:** [January 30, 2019, 1:09pm UTC](https://forum.legato.io/t/flash-size-wp7607/3805/9 "2019-01-30T13:09:49Z")

</div>

Have you tried to remove some packages?

---

<div class="post-metadata">

**Author:** ![deadpoolcode](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/deadpoolcode/32/382_2.png) [@deadpoolcode](https://forum.legato.io/u/deadpoolcode)\
**Post date:** [January 31, 2019, 3:52pm UTC](https://forum.legato.io/t/flash-size-wp7607/3805/10 "2019-01-31T15:52:58Z")

</div>

I can not be limited with the rootFS size to 38MB only

I want to make sure, after performing the steps you described:

modify: meta-swi/meta-swi-mdm9x28/conf/machine/swi-mdm9x28.conf

modify: meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image.inc

do I still download the image: yocto\_wp76xx.4k.cwe ?

---

<div class="post-metadata">

**Author:** ![deadpoolcode](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/deadpoolcode/32/382_2.png) [@deadpoolcode](https://forum.legato.io/u/deadpoolcode)\
**Post date:** [January 31, 2019, 4:28pm UTC](https://forum.legato.io/t/flash-size-wp7607/3805/11 "2019-01-31T16:28:26Z")

</div>

if I would like to go in the path of removing existing Yocto packages (still a risk, since it means I always need to fear to reach the maximum limit)

can you recommend of large packages I can remove (for example I do not need python support)

since ffmpeg is quite large

thank you

---

<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:** [February 1, 2019, 12:00am UTC](https://forum.legato.io/t/flash-size-wp7607/3805/12 "2019-02-01T00:00:46Z")

</div>

Of course you should download yocto\_wp76xx.4k.cwe

---

<div class="post-metadata">

**Author:** ![abhishekc](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@abhishekc](https://forum.legato.io/u/abhishekc)\
**Post date:** [April 23, 2020, 6:21am UTC](https://forum.legato.io/t/flash-size-wp7607/3805/13 "2020-04-23T06:21:29Z")

</div>

> [@CoRfr](#):
>
> UBIFS size is som

Hi,  
Is there any update on the issue above? I ran into same issue with WP7609. I have to include some python packages and other modules, and if I increase UBI\_ROOTFS\_SIZE then system starts behaving strange.  
I would appreciate your help.  
Thanks.  
Abhishek

---

<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:** [April 23, 2020, 7:30am UTC](https://forum.legato.io/t/flash-size-wp7607/3805/14 "2020-04-23T07:30:23Z")

</div>

not sure if this helps you:

> [@Example on running additional python library in RAM](https://forum.legato.io/t/example-on-running-additional-python-library-in-ram/4946):
>
> As there are plenty of python libraries which are large to be integrated in yocto image, this document will show you how to run additional library to RAM so that python can run more library in the py script. Enjoy!

---

<div class="post-metadata">

**Author:** ![abhishekc](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@abhishekc](https://forum.legato.io/u/abhishekc)\
**Post date:** [April 23, 2020, 7:53am UTC](https://forum.legato.io/t/flash-size-wp7607/3805/15 "2020-04-23T07:53:05Z")

</div>

Thank you @jyijyi for sharing this document.  
But I am trying to get image (xxx.cwe) file ready for production and it requires all modules with my application included during the build time.  
I have a build setup and able to build image successfully using make image\_bin.  
I would really appreciate if you could help me with resolving this issue.  
Cheers,

---

<div class="post-metadata">

**Author:** ![abhishekc](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@abhishekc](https://forum.legato.io/u/abhishekc)\
**Post date:** [April 23, 2020, 8:03am UTC](https://forum.legato.io/t/flash-size-wp7607/3805/16 "2020-04-23T08:03:08Z")

</div>

@jyijyi Or is there a way to add files to User Data or User App partition during build time?

---

<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:** [April 23, 2020, 8:16am UTC](https://forum.legato.io/t/flash-size-wp7607/3805/17 "2020-04-23T08:16:44Z")

</div>

How about download the legato app which brings those binary files to module?

---

<div class="post-metadata">

**Author:** ![abhishekc](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@abhishekc](https://forum.legato.io/u/abhishekc)\
**Post date:** [April 23, 2020, 8:58am UTC](https://forum.legato.io/t/flash-size-wp7607/3805/18 "2020-04-23T08:58:47Z")

</div>

I have setup visual studio code with leaf and installed complete SDKs for WP7609.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/1X/49ec2e4adc861a94a2dbb28d68a24ecd2a8b88d9.png)

How can I add my files to the legato app and can I incorporate these with yocto build?  
Thanks.

---

<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:** [April 23, 2020, 9:33am UTC](https://forum.legato.io/t/flash-size-wp7607/3805/19 "2020-04-23T09:33:32Z")

</div>

you can see here on how to bundle file into legato application.

> <https://github.com/legatoproject/legato-af/blob/master/apps/test/audio/audioPlaybackRec/audioPlaybackRec.adef>

---

<div class="post-metadata">

**Author:** ![abhishekc](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@abhishekc](https://forum.legato.io/u/abhishekc)\
**Post date:** [April 23, 2020, 10:34am UTC](https://forum.legato.io/t/flash-size-wp7607/3805/20 "2020-04-23T10:34:52Z")

</div>

> [@jyijyi](#):
>
> ere o

@jyijyi Thanks for responding.  
So there is no way for me to add large packages with the yocto build. eg. ffmpeg, qt5 in this module?

[Next page](https://forum.legato.io/t/flash-size-wp7607/3805.md?page=2)
