# Which .cwe image is the correct one?

**URL:** <https://forum.legato.io/t/which-cwe-image-is-the-correct-one/3308>\
**Category:** Legato Application Framework\
**Created:** [May 30, 2018, 12:17pm UTC](https://forum.legato.io/t/which-cwe-image-is-the-correct-one/3308 "2018-05-30T12:17:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![annaertd](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@annaertd](https://forum.legato.io/u/annaertd)\
**Post date:** [May 30, 2018, 12:17pm UTC](https://forum.legato.io/t/which-cwe-image-is-the-correct-one/3308/1 "2018-05-30T12:17:13Z")

</div>

Hi,

I started form the mangOH sources on github (for legato 16.10) to create my own Legato system.  
This should run on my mangOH green board with a WP8548 module.  
The build process in my Developer Studio IDE resulted in a \Target\_Legato\_Release folder with a number of files and subfolders.  
It contains a file mangOH\_Green.wp85.update which can be installed via the button ‘Build and Install app’.  
If I want to ‘Flash firmware from external file’ there are a number of .cwe files that can be chosen:

- legato-squashfs.ubi.cwe
- legatoz-squashfs.ubi.cwe
- legato-yaffs2.cwe
- legatoz-yaffs2.cwe
- legato.cwe
- legatoz.cwe

What is the difference between these .cwe files, and which one do I have to use?

greetings,  
annaertd

---

<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:** [May 31, 2018, 1:46am UTC](https://forum.legato.io/t/which-cwe-image-is-the-correct-one/3308/2 "2018-05-31T01:46:03Z")

</div>

legato.cwe is the symbolic link legato-squashfs.ubi.cwe  
legatoz.cwe is the symbolic link legatoz-squashfs.ubi.cwe  
“legato-squashfs.ubi.cwe” is the one I normally downloaded to the module.  
“legatoz-squashfs.ubi.cwe” is the compressed version.

I cannot find “legato-yaffs2.cwe” in legato 18.4.0. But I believe it is about the rootfs partition.

* * *

owner@owner-ThinkPad-T440p:~$ ls ./legato/packages/legato.framework.18.4.0.rc3.wp85-wp750x-201805031818/resources/legato/build/wp85/\*.cwe -l  
lrwxrwxrwx 1 owner owner 23 May 29 16:26 ./legato/packages/legato.framework.18.4.0.rc3.wp85-wp750x-201805031818/resources/legato/build/wp85/legato.cwe → legato-squashfs.ubi.cwe  
lrwxrwxrwx 1 owner owner 10 May 29 16:26 ./legato/packages/legato.framework.18.4.0.rc3.wp85-wp750x-201805031818/resources/legato/build/wp85/legato\_rw.cwe → legato.cwe  
-rw-rw-r-- 1 owner owner 3277600 May 29 16:26 ./legato/packages/legato.framework.18.4.0.rc3.wp85-wp750x-201805031818/resources/legato/build/wp85/legato-squashfs.ubi.cwe  
lrwxrwxrwx 1 owner owner 24 May 29 16:26 ./legato/packages/legato.framework.18.4.0.rc3.wp85-wp750x-201805031818/resources/legato/build/wp85/legatoz.cwe → legatoz-squashfs.ubi.cwe  
-rw-rw-r-- 1 owner owner 2847405 May 29 16:26 ./legato/packages/legato.framework.18.4.0.rc3.wp85-wp750x-201805031818/resources/legato/build/wp85/legatoz-squashfs.ubi.cwe

* * *

---

<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:** [June 1, 2018, 9:52pm UTC](https://forum.legato.io/t/which-cwe-image-is-the-correct-one/3308/3 "2018-06-01T21:52:22Z")

</div>

`yaffs2` format is deprecated, so you should go with the `squashfs` one.

`squashfs` is already compressed so the compression at the packaging (cwe) level is mostly useless.

So the most ‘correct’ one would be `legato.cwe`.
