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.
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.
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.
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.
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:
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!
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?
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
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.