Error starting redSensorToCloud [Solved]

I’m working with a brand new mangOH Red with WP7702 and using the Getting Started Guide. Everything goes smoothly until I get to starting app redSensorToCloud. Here is the message and log output:

root@swi-mdm9x28-wp:~# app start redSensorToCloud
There was an error.  Application 'redSensorToCloud' could not be started.
Check the system log for error messages.

and

Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato:  INFO | supervisor[800]/supervisor T=main | app.c app_Create() 2735 | Creating app 'redSensorToCloud'
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato:  INFO | supervisor[800]/supervisor T=main | proc.c GetFaultAction() 323 | No fault action specified for process 'redSensorToCloud'. Assuming 'ignore'.
Aug 21 16:37:40 swi-mdm9x28-wp user.warn Legato: -WRN- | supervisor[800]/supervisor T=main | proc.c GetWatchdogAction() 359 | redSensorToCloud watchdogAction '' in proc section
Aug 21 16:37:40 swi-mdm9x28-wp user.warn Legato: -WRN- | supervisor[800]/supervisor T=main | proc.c GetWatchdogAction() 359 | redSensorToCloud watchdogAction '' in proc section
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato:  INFO | supervisor[800]/supervisor T=main | app.c app_Start() 2926 | Starting app 'redSensorToCloud'
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato:  INFO | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link '/dev/log' to '/legato/systems/current/appsWriteable/redSensorToCloud/dev/log'.
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato:  INFO | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link '/dev/null' to '/legato/systems/current/appsWriteable/redSensorToCloud/dev/null'.
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato:  INFO | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link '/dev/zero' to '/legato/systems/current/appsWriteable/redSensorToCloud/dev/zero'.
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato:  INFO | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link '/legato/systems/current/lib/liblegato.so' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/liblegato.so'.
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato:  INFO | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link '/lib/ld-linux.so.3' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/ld-linux.so.3'.
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato:  INFO | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link '/lib/libc.so.6' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/libc.so.6'.
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato:  INFO | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link '/lib/libpthread.so.0' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/libpthread.so.0'.
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato:  INFO | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link '/lib/librt.so.1' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/librt.so.1'.
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato:  INFO | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link '/lib/libdl.so.2' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/libdl.so.2'.
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato:  INFO | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link '/lib/libgcc_s.so.1' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/libgcc_s.so.1'.
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato:  INFO | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link '/lib/libm.so.6' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/libm.so.6'.
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato:  INFO | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link '/usr/lib/libstdc++.so.6' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/libstdc++.so.6'.
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato:  INFO | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link '/legato/systems/current/apps/redSensorToCloud/read-only/lib/libComponent_sensorsComponent.so' to '/legato/systems/current/appsWriteabl
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato:  INFO | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link '/legato/systems/current/apps/redSensorToCloud/read-only/lib/libComponent_avPublisherComponent.so' to '/legato/systems/current/appsWrit
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato:  INFO | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link '/legato/systems/current/apps/redSensorToCloud/read-only/bin/redSensorToCloud' to '/legato/systems/current/appsWriteable/redSensorToClo
Aug 21 16:37:40 swi-mdm9x28-wp user.err Legato: =ERR= | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1507 | Could not stat file at '/sys/devices/platform/led.0/led'. No such file or directory
Aug 21 16:37:40 swi-mdm9x28-wp user.err Legato: =ERR= | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1624 | Failed to create link at '/sys/devices/platform/led.0/led' in app 'redSensorToCloud'.
Aug 21 16:37:40 swi-mdm9x28-wp user.err Legato: =ERR= | supervisor[800]/supervisor T=main | app.c app_Start() 2954 | Failed to set Smack rules or set up app area.
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato:  INFO | supervisor[800]/supervisor T=main | supervisor.c SigChildHandler() 783 | Reaping unconfigured child process 2417.

Module legato version:

root@swi-mdm9x28-wp:~# cat /legato/systems/current/version
18.07.0-1-g08a6111d_24ede1e68c9c00f9d3e26ebb9d7d44eb

Dev env legato version:

mangoh@mangoh-vm:~/legato_framework$ cat legato/version
18.07.0-1-g08a6111d

Dev env mangOH version:

mangoh@mangoh-vm:~/mangOH$ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
mangoh@mangoh-vm:~/mangOH$ git branch
* master
mangoh@mangoh-vm:~/mangOH$ git rev-parse HEAD
36e8895afd79bb5cb9853d4b4f1a7667bf6a2492

mangOH.sdef:

mangoh@mangoh-vm:~/mangOH$ cat mangOH.sdef | grep kernel | grep led
    $CURDIR/linux_kernel_modules/led/led
mangoh@mangoh-vm:~/mangOH$ cat mangOH.sdef | grep apps | grep led
    $MANGOH_ROOT/apps/LedService/ledService

This seems to be the same issue that 4 or 5 others had in this unresolved post from May.

Is there a solution or work-around yet?

I’ve tried various forms of rebuilding without the ledService or without the led kernel module, however, the build always fails due to dependency issues.

Thanks,

Are any WP77xx users able to get past this issue? At the very least, it would be helpful to know if the mangOH/legato tools are broken or if this is simply an isolated issue with me and the other users from the linked post.

I am running into the same issue as reported by Drew. Any help to resolve this would be appreciated.

[stopped] tools
[stopped] voiceCallService
[stopped] wifi
[stopped] wifiApTest
[stopped] wifiClientTest
[running] wifiService
[stopped] wifiWebAp
[stopped] LapiliMqttClient
[running] LapiliMqttService
[running] redSensorToCloud
root@swi-mdm9x28-wp:/sys/devices/platform# app restart redSensorToCloud
There was an error. Application ‘redSensorToCloud’ could not be started.
Check the system log for error messages.
root@swi-mdm9x28-wp:/sys/devices/platform# app stop redSensorToCloud
root@swi-mdm9x28-wp:/sys/devices/platform# app start redSensorToCloud
There was an error. Application ‘redSensorToCloud’ could not be started.
Check the system log for error messages.
root@swi-mdm9x28-wp:/sys/devices/platform#

Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c app_Start() 2926 | Starting app ‘redSensorToCloud’
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link ‘/dev/log’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/dev/log’: Already exists
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link ‘/dev/null’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/dev/null’: Already exists
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link ‘/dev/zero’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/dev/zero’: Already exists
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link ‘/legato/systems/current/lib/liblegato.so’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/liblegato.so’: Already exist
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link ‘/lib/ld-linux.so.3’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/ld-linux.so.3’: Already exists
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link ‘/lib/libc.so.6’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libc.so.6’: Already exists
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link ‘/lib/libpthread.so.0’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libpthread.so.0’: Already exists
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link ‘/lib/librt.so.1’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/librt.so.1’: Already exists
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link ‘/lib/libdl.so.2’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libdl.so.2’: Already exists
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link ‘/lib/libgcc_s.so.1’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libgcc_s.so.1’: Already exists
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link ‘/lib/libm.so.6’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libm.so.6’: Already exists
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link ‘/usr/lib/libstdc++.so.6’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libstdc++.so.6’: Already exists
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link ‘/legato/systems/current/apps/redSensorToCloud/read-only/lib/libComponent_sensorsComponent.so’ to '/legato/systems/current/appsWriteab
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link ‘/legato/systems/current/apps/redSensorToCloud/read-only/lib/libComponent_avPublisherComponent.so’ to '/legato/systems/current/appsWri
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link ‘/legato/systems/current/apps/redSensorToCloud/read-only/bin/redSensorToCloud’ to '/legato/systems/current/appsWriteable/redSensorToCl
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1507 | Could not stat file at ‘/sys/devices/platform/led.0/led’. No such file or directory
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1624 | Failed to create link at ‘/sys/devices/platform/led.0/led’ in app ‘redSensorToCloud’.
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c app_Start() 2954 | Failed to set Smack rules or set up app area.
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | supervisor.c SigChildHandler() 783 | Reaping unconfigured child process 31082.

can you show us what you have in /opt/swi and lsmod output on target?
Also, what is the module, firmware revision (cm info) on the target?

Hi! I’m facing the same issue…

I’m using the MangOH RED with WP7702 module:

Device: WP7702
IMEI: 352653090005265
IMEISV: 2
FSN: VU749185080102
Firmware Version: SWI9X06Y_02.16.06.00 7605a6 jenkins 2018/06/20 17:56:12
Bootloader Version: SWI9X06Y_02.16.06.00 7605a6 jenkins 2018/06/20 17:56:12
MCU Version: 002.009
PRI Part Number (PN): 9907365
PRI Revision: 001.004
Carrier PRI Name: GENERIC
Carrier PRI Revision: 001.028_001
SKU: 1103530
Last Reset Cause: Power Down
Resets Count: Expected: 16 Unexpected: 4

LOG :
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | app.c app_Create() 2716 | Creating app ‘redSensorToCloud’
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | proc.c GetFaultAction() 323 | No fault action specified for process ‘redSensorToCloud’. Assuming ‘ignore’.
Sep 6 02:41:55 swi-mdm9x28-wp user.warn Legato: -WRN- | supervisor[793]/supervisor T=main | proc.c GetWatchdogAction() 359 | redSensorToCloud watchdogAction ‘’ in proc section
Sep 6 02:41:55 swi-mdm9x28-wp user.warn Legato: -WRN- | supervisor[793]/supervisor T=main | proc.c GetWatchdogAction() 359 | redSensorToCloud watchdogAction ‘’ in proc section
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1535 | Skipping file link ‘/dev/log’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/dev/log’: Already exists
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1535 | Skipping file link ‘/dev/null’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/dev/null’: Already exists
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1535 | Skipping file link ‘/dev/zero’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/dev/zero’: Already exists
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1535 | Skipping file link ‘/legato/systems/current/lib/liblegato.so’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/liblegato.so’: Already exist
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1535 | Skipping file link ‘/lib/ld-linux.so.3’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/ld-linux.so.3’: Already exists
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1535 | Skipping file link ‘/lib/libc.so.6’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libc.so.6’: Already exists
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1535 | Skipping file link ‘/lib/libpthread.so.0’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libpthread.so.0’: Already exists
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1535 | Skipping file link ‘/lib/librt.so.1’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/librt.so.1’: Already exists
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1535 | Skipping file link ‘/lib/libdl.so.2’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libdl.so.2’: Already exists
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1535 | Skipping file link ‘/lib/libgcc_s.so.1’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libgcc_s.so.1’: Already exists
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1535 | Skipping file link ‘/lib/libm.so.6’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libm.so.6’: Already exists
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1535 | Skipping file link ‘/usr/lib/libstdc++.so.6’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libstdc++.so.6’: Already exists
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1535 | Skipping file link ‘/legato/systems/current/apps/redSensorToCloud/read-only/lib/libComponent_sensorsComponent.so’ to '/legato/systems/current/appsWriteab
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1535 | Skipping file link ‘/legato/systems/current/apps/redSensorToCloud/read-only/lib/libComponent_avPublisherComponent.so’ to '/legato/systems/current/appsWri
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1535 | Skipping file link ‘/legato/systems/current/apps/redSensorToCloud/read-only/bin/redSensorToCloud’ to '/legato/systems/current/appsWriteable/redSensorToCl
Sep 6 02:41:55 swi-mdm9x28-wp user.err Legato: =ERR= | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1507 | Could not stat file at ‘/sys/devices/platform/led.0/led’. No such file or directory
Sep 6 02:41:55 swi-mdm9x28-wp user.err Legato: =ERR= | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1610 | Failed to create link at ‘/sys/devices/platform/led.0/led’ in app ‘redSensorToCloud’.
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | supervisor.c SigChildHandler() 783 | Reaping unconfigured child process 8058.

Please can you tell me how to proceed?
Thanks!
Diego.

I’m also having the same issue with the MangOH RED and WP7702 module and firmware version 9.1.

Followed the getting started online documentation from step 7.1.2.
The start of redSensorToCloud service where the same log message shows up

Sep 5 16:10:49 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1507 | Could not stat file at ‘/sys/devices/platform/led.0/led’. No such file or directory

If i use the 9.0 version and refollow the build proces this problem does not occur.

Any possible cause?

Thanks in advice!

Melvin

Thanks @MelvinWiegman! I think you have figured it out. The latest WP77 release is 9.1, but the latest version of the mangOH VM includes the WP77 toolchain for WP77 release 9.0.

I’m working on updating the VM now. If you want to avoid having to download the VM again, you can do the following:

  1. download the 64-bit toolchain from here: https://source.sierrawireless.com/resources/airprime/software/wp77xx/wp77xx-firmware-latest-release-components/
  2. Run chmod a+x ~/Downloads/poky-swi-ext-glibc-x86_64-meta-toolchain-swi-armv7a-neon-toolchain-swi-SWI9X06Y_02.18.05.00.sh
  3. Run sudo ./Downloadspoky-swi-ext-glibc-x86_64-meta-toolchain-swi-armv7a-neon-toolchain-swi-SWI9X06Y_02.18.05.00.sh
  4. Type /opt/swi/y22-ext-SWI9X06Y_02.18.05.00 as the destination directory
  5. Update the wp77xx symlink by running: cd /opt/swi && sudo ln -f -s -T y22-ext-SWI9X06Y_02.18.05.00 y22-ext-wp77xx
  6. Close your terminal and open a new one to make sure that any environment variables (set by running cfglegato) are eliminated

Thank you @MelvinWiegman and @dfrey! I just finished updating my toolchain and MangOH Red WP7702 with the instructions above. Errors are gone and data is being sent to AirAdvantage dashboard - very cool!

Thanks again.

Well, I downloaded the VM linked in the getting started page today (new devkit), and I am getting the same led file error. This is on a WP7608, which doesn’t have a Version 9.1 (latest is 9). So is this error due to the VM being updated?

Jan 6 00:29:27 swi-mdm9x28 user.err Legato: =ERR= | supervisor[2942]/supervisor T=main | app.c CreateFileLink() 1624 | Failed to create link at '/sys/devices/platform/led.0/led' in app 'redSensorToCloud'.

Use v9.0 firmware for now if you don’t want to update your VM. We will provide an updated VM for 9.1 or you can update based on the steps provided above

got my mangOH Red with WP7702 yesterday, and facing same error with redSensorToCloud app.
After updated the toolchain the sensor data can publish to AirVantage.

Thanks Dfrey and all, this forum really help.

Next is to play with GPIO, any suggest where to start?

Browse through github.com/mangoh

Hi All,

I am using WP7702 which came wih mangOH red,
I updated the VM with the latest tool chain as described by dfrey

I still get the errors below

Sep 14 17:42:20 | supervisor[786]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link ‘/legato/systems/current/apps/redSensorToCloud/read-only/bin/redSensorToCloud’ to '/legato/systems/current/appsWriteable/redSensorToClo
Sep 14 17:42:20 | supervisor[786]/supervisor T=main | app.c CreateFileLink() 1507 | Could not stat file at ‘/sys/bus/i2c/devices/4-0068/iio:device0/in_accel_scale’. No such file or directory
Sep 14 17:42:20 | supervisor[786]/supervisor T=main | app.c CreateFileLink() 1624 | Failed to create link at ‘/sys/devices/i2c-0/0-0068/iio:device0/in_accel_scale’ in app ‘redSensorToCloud’.
Sep 14 17:42:20 | supervisor[786]/supervisor T=main | app.c app_Start() 2954 | Failed to set Smack rules or set up app area.

Here is the output of the cfglegato command

mangoh@mangoh-vm:~$ cfglegato
Configuring shell for Legato development

[wp85] Toolchain dir = /opt/swi/y17-ext-wp85/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi
prefix = arm-poky-linux-gnueabi-
sysroot = /opt/swi/y17-ext-SWI9X15Y_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi
kernelroot = /opt/swi/y17-ext-SWI9X15Y_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel
[wp750x] Toolchain dir = /opt/swi/y17-ext-wp750x/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi
prefix = arm-poky-linux-gnueabi-
sysroot = /opt/swi/y17-ext-SWI9X15Y_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi
kernelroot = /opt/swi/y17-ext-SWI9X15Y_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel
[wp76xx] Toolchain dir = /opt/swi/SWI9X06Y_02.18.05.00/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi
prefix = arm-poky-linux-gnueabi-
sysroot = /opt/swi/SWI9X06Y_02.18.05.00/sysroots/armv7a-neon-poky-linux-gnueabi
kernelroot = /opt/swi/SWI9X06Y_02.18.05.00/sysroots/armv7a-neon-poky-linux-gnueabi/usr/src/kernel
[wp77xx] Toolchain dir = /opt/swi/SWI9X06Y_02.18.05.00/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi
prefix = arm-poky-linux-gnueabi-
sysroot = /opt/swi/SWI9X06Y_02.18.05.00/sysroots/armv7a-neon-poky-linux-gnueabi
kernelroot = /opt/swi/SWI9X06Y_02.18.05.00/sysroots/armv7a-neon-poky-linux-gnueabi/usr/src/kernel

Did I miss anything ?
I would appreciate your response.

@hposhtiw

I’m out of town and don’t have access to my mangoh setup, but I’ll take a look when I get back and compare it to my setup and response here to see if I have any differences.

I tried again with the solution and now works. Thanks.