How to make a system file for WP85?


Hi All,

I’d like to make a system file for WP85.
But, there is a error as below when do ‘make wp85’.
/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?



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

For example mine is:


If $LEGATO_ROOT is not defined. You need to find “bin/legs” file in $LEGATO_ROOT and execute it.

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.


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


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:

cd ~/Downloads

  1. Execute downloaded sh file from step#2

cd ~/Downloads

  1. Download phablet-tools

sudo apt-get install phablet-tools

  1. Download legato manifest and sync with git. Go to and find out the latest version of xml. Replace “16.10.2.xml” below

Cd ~; mkdir workspace; cd workspace
repo init -u git:// -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
instlegato --help
instsys --help
instapp --help
instlegato wp85

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:// 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
ssh root@
app status


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.


See this post on the Legato forum here:

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