# How to make a system file for WP85?

**URL:** <https://mangoh.discourse.group/t/how-to-make-a-system-file-for-wp85/524>\
**Category:** Uncategorized\
**Created:** [May 11, 2017, 7:29am UTC](https://mangoh.discourse.group/t/how-to-make-a-system-file-for-wp85/524 "2017-05-11T07:29:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chase.jang](https://avatars.discourse-cdn.com/v4/letter/c/b5ac83/32.png) [@chase.jang](https://mangoh.discourse.group/u/chase.jang)\
**Post date:** [May 11, 2017, 7:29am UTC](https://mangoh.discourse.group/t/how-to-make-a-system-file-for-wp85/524/1 "2017-05-11T07:29:09Z")

</div>

Hi All,

I’d like to make a system file for WP85.  
But, there is a error as below when do ‘make wp85’.  
\*\* ERROR:  
/home/chasejang/Projects/Legato/legato/apps/tools/devMode.adef:7:8: error: File not found: ‘/home/chasejang/legato/packages/legato.toolchain.1.7.3.fw\_SWI9X15Y\_07110900-wp85-wp750x-native-x86\_64-201608171142/resources/native/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/bin/gdbserver’

How to resolve this problem?

Thanks,  
Chase

---

<div class="post-metadata">

**Author:** ![Wavefront\_yk](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/wavefront_yk/32/176_2.png) [@Wavefront\_yk](https://mangoh.discourse.group/u/Wavefront_yk)\
**Post date:** [May 11, 2017, 5:07pm UTC](https://mangoh.discourse.group/t/how-to-make-a-system-file-for-wp85/524/2 "2017-05-11T17:07:10Z")

</div>

In order to “make wp85”, you have to cd into the legato framework: $LEGATO\_ROOT folder

For example mine is:

> echo $LEGATO\_ROOT  
> /home/mangoh/legato/packages/legato.framework.16.10.1.wp85-wp750x-201701111029/resources/legato

If $LEGATO\_ROOT is not defined. You need to find “bin/legs” file in $LEGATO\_ROOT and execute it.  
/home/mangoh/legato/packages/legato.framework.16.10.1.wp85-wp750x-201701111029/resources/legato/bin

PS: If you download github sample code, you may also want to add EXPORT MANGOH\_ROOT=/path\_to\_the\_github\_code\_folder. This will solve issues that looking for biding dependencies.

Hope this help.

---

<div class="post-metadata">

**Author:** ![chase.jang](https://avatars.discourse-cdn.com/v4/letter/c/b5ac83/32.png) [@chase.jang](https://mangoh.discourse.group/u/chase.jang)\
**Post date:** [May 12, 2017, 2:56am UTC](https://mangoh.discourse.group/t/how-to-make-a-system-file-for-wp85/524/3 "2017-05-12T02:56:57Z")

</div>

Hi YKKuang,

Thanks for the reply. But, it’s not helpful for me.  
$LEGATO\_ROOT already have defined. I think it doesn’t seems to be related to the environment.

Anyway, I have copied a ‘gdbserver’ to ‘/home/chasejang/legato/packages/legato.toolchain.1.7.3.fw\_SWI9X15Y\_07110900-wp85-wp750x-native-x86\_64-201608171142/resources/native/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/bin/’ folder. And then, do ‘make wp85’.

There is another error as below.

[86/531] Compiling C source  
FAILED: /home/chasejang/legato/packages/legato.toolchain.1.7.3.fw\_SWI9X15Y\_07110900-wp85-wp750x-native-x86\_64-201608171142/resources/native/wrapper/arm-poky-linux-gnueabi-gcc --sysroot=/home/chasejang/legato/packages/legato.toolchain.1.7.3.fw\_SWI9X15Y\_07110900-wp85-wp750x-native-x86\_64-201608171142/resources/native/sysroots/armv7a-vfp-neon-poky-linux-gnueabi -MMD -MF build/wp85/system/component/f813a2dd799fd62ee474e5d9aa3e7da3/obj/92f0494837fc28d6f075e0eee79c54d4.o.d -c /home/chasejang/Projects/Legato/legato/components/airVantage/avcDaemon/assetData.c -o build/wp85/system/component/f813a2dd799fd62ee474e5d9aa3e7da3/obj/92f0494837fc28d6f075e0eee79c54d4.o -DLE\_FILENAME=`basename /home/chasejang/Projects/Legato/legato/components/airVantage/avcDaemon/assetData.c` -Wall -fPIC -Werror -fvisibility=hidden -DMK\_TOOLS\_BUILD -DLEGATO\_EMBEDDED -DPCM\_IF=AUX -DI2S\_IF=PRI -DUSB\_IF=AFE\_PCM -DCODEC\_IF=PRI -DMM\_1\_ALSA\_MIXER\_CTRL=MultiMedia1 -DMM\_1\_ALSA\_PCM\_DEVICE\_ID=0 -DMM\_2\_ALSA\_MIXER\_CTRL=MultiMedia2 -DMM\_2\_ALSA\_PCM\_DEVICE\_ID=1 -DADC\_BEGIN\_NUM=0 -DADC\_COUNT=4 -I/home/chasejang/Projects/Legato/legato/interfaces -I/home/chasejang/Projects/Legato/legato/framework/c/inc -I. -Iinterfaces/modemServices -Iinterfaces/positioning -Ibuild/wp85/system/component/f813a2dd799fd62ee474e5d9aa3e7da3/src -Ibuild/wp85/system/api/98b98f5eabd1649f884543de21206b77/server -Ibuild/wp85/system/api/bdfaaf0ac7e5045716b3af166ffe9821/server -Ibuild/wp85/system/api/4cbbe54b1fedcc71f8e60fc74e80c0bd/client -Ibuild/wp85/system/api/9b62943633ae5532dbf243ef97fd4d38/client -Ibuild/wp85/system/api/86aadabbf5321e70c8b397b829a1d8c4/server -Ibuild/wp85/system/api/86aadabbf5321e70c8b397b829a1d8c4/client -DLE\_COMPONENT\_NAME=avcDaemon -DLE\_LOG\_SESSION=avcDaemon\_LogSession -DLE\_LOG\_LEVEL\_FILTER\_PTR=avcDaemon\_LogLevelFilterPtr “-DCOMPONENT\_INIT=LE\_CI\_LINKAGE LE\_SHARED void \_avcDaemon\_COMPONENT\_INIT()” -DLEGATO\_FEATURE\_OBSERVE -DLEGATO\_FEATURE\_TIMESERIES -I/home/chasejang/Projects/Legato/legato/components/airVantage/platformAdaptor/inc -I/home/chasejang/Projects/Legato/legato/framework/c/src  
/home/chasejang/Projects/Legato/legato/components/airVantage/avcDaemon/assetData.c:30:27: fatal error: tinycbor/cbor.h: No such file or directory  
#include “tinycbor/cbor.h”  
^  
compilation terminated.  
[86/531] Compiling C source  
ninja: build stopped: subcommand failed.  
make: \*\*\* [system\_wp85] Error 1

---

<div class="post-metadata">

**Author:** ![Wavefront\_yk](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/wavefront_yk/32/176_2.png) [@Wavefront\_yk](https://mangoh.discourse.group/u/Wavefront_yk)\
**Post date:** [May 12, 2017, 4:51pm UTC](https://mangoh.discourse.group/t/how-to-make-a-system-file-for-wp85/524/4 "2017-05-12T16:51:36Z")

</div>

Here is the instruction how I install my Legato Machine on Ubuntu 16.04.

1. Download dependencies

> sudo apt-get install build-essential python python-jinja2 cmake git subversion libsdl-dev diffstat texinfo gawk chrpath wget cpio vim zsh bash ninja-build screen sshpass bc python-git unzip libxml2-utils gcovr libcurl4-gnutls-dev zlib1g-dev libbz2-dev bsdiff libssl-dev

1. Download the latest version of toolchain. For example, 64-bit Toolchain, Dec 23 2016 using  
wget (Open website: [https://source.sierrawireless.com/resources/legato/downloads/](https://source.sierrawireless.com/resources/legato/downloads/))

> cd ~/Downloads  
> wget [http://downloads.sierrawireless.com/legato/16101/poky-swi-ext-glibc-x86\_64-meta-toolchain-swi-ext-armv7a-vfp-neon-toolchain-swi-ext-1.7.3.sh](http://downloads.sierrawireless.com/legato/16101/poky-swi-ext-glibc-x86_64-meta-toolchain-swi-ext-armv7a-vfp-neon-toolchain-swi-ext-1.7.3.sh)

1. Execute downloaded sh file from step#2

> cd ~/Downloads  
> bash poky-swi-ext-glibc-x86\_64-meta-toolchain-swi-ext-armv7a-vfp-neon-toolchain-swi-ext-1.7.3.sh

1. Download phablet-tools

> sudo apt-get install phablet-tools

1. Download legato manifest and sync with git. Go to [https://github.com/legatoproject/manifest/tree/master/legato/releases](https://github.com/legatoproject/manifest/tree/master/legato/releases) and find out the latest version of xml. Replace “16.10.2.xml” below

> Cd ~; mkdir workspace; cd workspace  
> repo init -u git://github.com/legatoproject/manifest -m legato/releases/16.10.2.xml

1. Sync repos with github and type the following commands in the console to make wp85:

> repo sync  
> cd legato  
> make wp85  
> bin/legs  
> instlegato --help  
> instsys --help  
> instapp --help  
> instlegato wp85 192.168.2.2

If you would like to make the mangOH Green system file from github which include mqtt, dataroute and more apps, you can follow this instructions. In this “Mikefile”, you will see how to create your own system file (.sdef)

> cd ~  
> git clone --recursive git://github.com/mangOH/mangOH mangOH\_from\_github  
> cd mangOH\_from\_github

Open Makefile and make sure the mangOH\_Green.sdef is selected.

> vi Makefile  
> make --include-dir=$LEGATO\_ROOT wp85  
> app install mangOH\_Green.wp85.update 192.168.2.2  
> ssh [root@192.168.2.2](mailto:root@192.168.2.2)  
> app status

---

<div class="post-metadata">

**Author:** ![chase.jang](https://avatars.discourse-cdn.com/v4/letter/c/b5ac83/32.png) [@chase.jang](https://mangoh.discourse.group/u/chase.jang)\
**Post date:** [May 13, 2017, 7:18am UTC](https://mangoh.discourse.group/t/how-to-make-a-system-file-for-wp85/524/5 "2017-05-13T07:18:57Z")

</div>

Hi YKKuang,

Thanks for your kindly reply.  
I found a root cause(but not 100% sure). It seems to be related to the Legato version.  
I have tested it with 16.10.3, there is a problem.  
But, It’s working fine when I try it with 16.10.1.

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/dfrey/32/303_2.png) [@dfrey](https://mangoh.discourse.group/u/dfrey)\
**Post date:** [May 15, 2017, 3:24pm UTC](https://mangoh.discourse.group/t/how-to-make-a-system-file-for-wp85/524/6 "2017-05-15T15:24:09Z")

</div>

See this post on the Legato forum here: [http://forum.legato.io/t/legato-16-10-03-now-available-on-legato-io/2435](http://forum.legato.io/t/legato-16-10-03-now-available-on-legato-io/2435)

The TLDR is that 16.10.3 isn’t really usable until the Release14 modem firmware is available. I’m not personally aware of what is preventing the Release14 firmware from being posted on [source.sierrawireless.com](http://source.sierrawireless.com).
