I am building a legato framework, using the developer studio
when building building ends with this error:
systocwe wp76xx mangOH.wp76xx.update cwe
***ERROR: Bad system file mangOH.wp76xx.update
Makefile:40: recipe for target ‘systocwe’ failed
Try ‘systocwe --help’ for usage instructions.
please advice
What’s your legato package version?
Can you try systocwe or systoimg manually in command line?
jyijyi
April 10, 2018, 2:07am
3
Hi,
I don’t see problem to build the legato framework on Ubuntu 14 using terminal command line.
Please follow the steps below:
install the developer studio 5.3.1.
install the package “Legato for WP76 R8” in package manager
cd /home/owner/legato/packages/legato.sdk.18.1.0.wp76xx-native-i686-201803051402/resources/framework/legato
. bin/configlegatoenv
make wp76xx
Please have a try on your side.
building from developer studio for “create legato system” and build pass OK:
systocwe wp76xx wp76xx.wp76xx.update cwe
Removing old content of cwe/_staging_wp76xx.wp76xx.update
Unpacking wp76xx.wp76xx.update …
Preparing staging directory cwe/_staging_wp76xx.wp76xx.update
Creating images from directory cwe/_staging_wp76xx.wp76xx.update
Using fakeroot /usr/bin/fakeroot …
-t wp76xx -d cwe/_staging_wp76xx.wp76xx.update -o cwe
Target: wp76xx
Input: /home/ilan/mangOH/devstudio-5.3.1-linux64/workspace/wp76xx/Target_Legato_Debug/cwe/_staging_wp76xx.wp76xx.update
Output: /home/ilan/mangOH/devstudio-5.3.1-linux64/workspace/wp76xx/Target_Legato_Debug/cwe
Version: 18.01.0 ilan-HP-EliteBook-840-G3 2018/04/12 06:41:59
wp76xx: Generating the framework image (squashfs.4k.ubi)
wp76xx: Generating the framework image (squashfs)
dlsym(acl_get_fd): /usr/lib/x86_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl_get_fd
dlsym(acl_get_file): /usr/lib/x86_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl_get_file
dlsym(acl_set_fd): /usr/lib/x86_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl_set_fd
dlsym(acl_set_file): /usr/lib/x86_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl_set_file
dlsym(acl_get_fd): /usr/lib/x86_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl_get_fd
dlsym(acl_get_file): /usr/lib/x86_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl_get_file
dlsym(acl_set_fd): /usr/lib/x86_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl_set_fd
dlsym(acl_set_file): /usr/lib/x86_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl_set_file
wp76xx: Generating the framework cwe (squashfs.4k.ubi)
wp76xx: Generating the framework image (squashfs.2k.ubi)
wp76xx: Generating the framework image (squashfs)
dlsym(acl_get_fd): /usr/lib/x86_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl_get_fd
dlsym(acl_get_file): /usr/lib/x86_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl_get_file
dlsym(acl_set_fd): /usr/lib/x86_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl_set_fd
dlsym(acl_set_file): /usr/lib/x86_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl_set_file
dlsym(acl_get_fd): /usr/lib/x86_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl_get_fd
dlsym(acl_get_file): /usr/lib/x86_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl_get_file
dlsym(acl_set_fd): /usr/lib/x86_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl_set_fd
dlsym(acl_set_file): /usr/lib/x86_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl_set_file
wp76xx: Generating the framework cwe (squashfs.2k.ubi)
make: Leaving directory ‘/home/ilan/mangOH/devstudio-5.3.1-linux64/workspace/wp76xx/Target_Legato_Debug’
06:42:01 Build Finished (took 12s.985ms)
however, building from developer studio for “create mangoH system” and build failes:
[48/49] Packaging app
[49/49] Packaging system
systocwe wp76xx mangOH.wp76xx.update cwe
***ERROR: Bad system file mangOH.wp76xx.update
Try ‘systocwe --help’ for usage instructions.
Makefile:40: recipe for target ‘systocwe’ failed
make: Leaving directory ‘/home/ilan/mangOH/devstudio-5.3.1-linux64/workspace/git/mangOH/Target_Legato_Debug’
make: *** [systocwe] Error 1
06:44:49 Build Finished (took 9s.848ms)
please advice
jyijyi
April 12, 2018, 8:32am
5
maybe you can have a try by using terminal command. You can follow here:
# mangOH
Base project containing apps and drivers for the mangOH hardware
## Setup
1. Download and install the appropriate toolchain for your WP module from
[source.sierrawireless.com](https://source.sierrawireless.com)
1. Click *AirPrime > WP Series > Your WP module > Firmware*
1. Scroll to near the bottom of the page and follow the *Release X Components* link
1. Download the 64-bit ToolChain
1. Run `chmod a+x toolchain.sh` on the toolchain file (name will vary depending on module)
1. Run the toolchain installer: `./toolchain.sh` and install to
`/opt/swi/y22-ext_SWI9X07Y_02.14.04.00`. Alter the previous path so that it is consistent
with the yocto version and Legato Linux distribution version.
1. Run `ln -sf /opt/swi/y22-ext_SWI9X07Y_02.14.04.00 /opt/swi/y22-ext-wp76xx`, again modifying
this command slightly to match the toolchain/module.
1. Yocto 1.7 based systems have a problem with their toolchain where some scripts required for
building kernel modules aren't built. This currently affects the WP85 and WP75 release 15. To
correct this issue, do the following.
This file has been truncated. show original
Seems systocwe cannot find the mangOH.wp76xx.update file as it’s not locating in Target_legato_debug folder, you can manually run systocwe wp76xx $MANGOH_ROOT/build/update_files/red/mangOH.wp76xx.update cwe command in terminal.
e.g.
#1: setup the environment: ~/legato/packages/legato.framework.18.1.0.wp76xx-201803051228/resources/legato$ source bin/configlegatoenv
#2: Go back to ~/devstudio-5.3.1/workspace/git/mangOH folder
#3: Run ~/devstudio-5.3.1/workspace/git/mangOH$ systocwe wp76xx $MANGOH_ROOT/build/update_files/red/mangOH.wp76xx.update cwe
Then you will get:
~/devstudio-5.3.1/workspace/git/mangOH/cwe$ ls
legato.cwe legatoimg legato.squashfs.2k.ubi legato.squashfs.4k.ubi _staging_mangOH.wp76xx.update
legato.default legato.squashfs legato-squashfs.2k.ubi.cwe legato-squashfs.4k.ubi.cwe
I do not have this file :
~/mangOH/build(master)$ ls
green_wp76xx
~/mangOH/build/green_wp76xx(master)$ find . -name “*.update”
./app/wifiWebAp/wifiWebAp.wp76xx.update
./app/wifiService/wifiService.wp76xx.update
./app/powerMgr/powerMgr.wp76xx.update
./app/wifi/wifi.wp76xx.update
./app/cellNetService/cellNetService.wp76xx.update
./app/tools/tools.wp76xx.update
./app/wifiApTest/wifiApTest.wp76xx.update
./app/secStore/secStore.wp76xx.update
./app/wifiClientTest/wifiClientTest.wp76xx.update
./app/fwupdateService/fwupdateService.wp76xx.update
./app/smsInboxService/smsInboxService.wp76xx.update
./app/avcService/avcService.wp76xx.update
./app/spiService/spiService.wp76xx.update
./app/audioService/audioService.wp76xx.update
./app/voiceCallService/voiceCallService.wp76xx.update
./app/dataConnectionService/dataConnectionService.wp76xx.update
./app/modemService/modemService.wp76xx.update
./app/atService/atService.wp76xx.update
./app/gpioService/gpioService.wp76xx.update
./app/positioningService/positioningService.wp76xx.update
./app/devMode/devMode.wp76xx.update
./app/portService/portService.wp76xx.update
Hi @deadpoolcode ,
I haven’t tried with the developer studio, But i had tried with command line using the below steps, I was able to build the mangoH for both the Red and green for WP76xx
Download and install the latest WP76xx toolchain from (http://downloads.sierrawireless.com/AirPrime/WP76xx/Release8/poky-swi-ext-glibc-x86_64-meta-toolchain-swi-ext-armv7a-neon-toolchain-swi-ext-2.2.2.sh )
Enable the toolchain to build kernel modules by running these commands:
a. export PATH=$PATH:/opt/swi/y22-ext/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi
b. cd /opt/swi/y22-ext/sysroots/armv7a-neon-poky-linux-gnueabi/usr/src/kernel/
c. sudo chown -R $USER .
d. ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- make scripts
e. sudo chown -R root .
Get the Legato source code, Myself used legati-18.01.0 which is the latest comes with Release 8( https://downloads.sierrawireless.com/legato/1801/legato-18.01.0.tar.bz2 )
cd
to the legato folder and run make wp76xx
Run source bin/configlegatoenv
to setup the environment variables
cd
to the home directory and clone the mangOH source code by running git clone --recursive git://github.com/mangOH/mangOH
cd
into the mangOH folder and run make red_wp76xx
or make green_wp76xx
depending on which board is being targeted.
Regards,
Muralidhara N.
it fails on:
mangOH/apps/GpioExpander/gpioExpanderService/gpioExpanderCommon/gpioExpander.c:25:32: fatal error: linux/i2c-dev-user.h: No such file or directory
#include <linux/i2c-dev-user.h>
^
compilation terminated.
[801/1066] Generating IPC interface code
ninja: build stopped: subcommand failed.
Makefile:68: recipe for target ‘green_wp76xx’ failed
make: *** [green_wp76xx] Error 1
Can you please share the steps that you are using to build.
sydibyd
January 27, 2019, 9:39pm
11
muralinagraj:
S_CO
Hello,
Will this works with WP76xx Firmware Release 10.1.1 ?
I’m trying to fix this issue :
Hello,
New in Legato platform, trying to configure my mangOH Red (+ Sierra Wireless wp7607), using Getting started mangOH Red Guide (HERE ), everything was good until I tried to build the Legato AF and mangOH platforms for the CF3 module :
Below you will find the terminal response after asking for make red_wp76xx :
syd@SYDIBYD:~$ cd mangOH
syd@SYDIBYD:~/mangOH$ make red_wp76xx
make -C /home/syd/legato_framework/legato framework_wp76xx
make[1]: Entering directory '/home/syd/legato_framework/…
riotc
January 31, 2019, 4:14pm
12
deadpoolcode:
green_wp76xx
Hello @deadpoolcode , Do you still have this issue?