# RedSensorToCloud issue

**URL:** <https://mangoh.discourse.group/t/redsensortocloud-issue/1926>\
**Category:** mangOH Red\
**Created:** [September 18, 2018, 1:44pm UTC](https://mangoh.discourse.group/t/redsensortocloud-issue/1926 "2018-09-18T13:44:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hposhtiw](https://avatars.discourse-cdn.com/v4/letter/h/a88e4f/32.png) [@hposhtiw](https://mangoh.discourse.group/u/hposhtiw)\
**Post date:** [September 18, 2018, 1:44pm UTC](https://mangoh.discourse.group/t/redsensortocloud-issue/1926/1 "2018-09-18T13:44:08Z")

</div>

Hi All,

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

> [@Error starting redSensorToCloud \[Solved\]](https://mangoh.discourse.group/t/error-starting-redsensortocloud-solved/1849):
>
> 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 ap…

I still get the errors below  
Sep 18 13:34:19 | uartMode[28702]/swiQmi T=main | swiQmi.c StartService() 113 | qmi\_client\_get\_service\_list rc=0, numServices=1  
Sep 18 13:34:19 | uartMode[28708]/swiQmi T=main | swiQmi.c InitService() 379 | Init QMI service QMI\_SERVICE\_DMS (2)  
Sep 18 13:34:19 | uartMode[28708]/swiQmi T=main | swiQmi.c PrintServiceDetails() 355 | Service.2: library\_version.6 idl\_version.1 service\_id.0x2 idl\_minor\_version.57  
Sep 18 13:34:19 | uartMode[28709]/swiQmi T=main | swiQmi.c InitService() 379 | Init QMI service QMI\_SERVICE\_DMS (2)  
Sep 18 13:34:19 | uartMode[28709]/swiQmi T=main | swiQmi.c PrintServiceDetails() 355 | Service.2: library\_version.6 idl\_version.1 service\_id.0x2 idl\_minor\_version.57  
Sep 18 13:34:19 | QMUXD: WARNING qmi\_qmux\_if\_pwr\_up\_init failed! rc=-6  
Sep 18 13:34:19 | uartMode[28708]/swiQmi T=main | swiQmi.c StartService() 113 | qmi\_client\_get\_service\_list rc=0, numServices=1  
Sep 18 13:34:19 | QMUXD: WARNING qmi\_qmux\_if\_pwr\_up\_init failed! rc=-6  
Sep 18 13:34:19 | uartMode[28709]/swiQmi T=main | swiQmi.c StartService() 113 | qmi\_client\_get\_service\_list rc=0, numServices=1  
Sep 18 13:34:26 | supervisor[783]/supervisor T=main | apps.c appCtrl\_Stop() 1653 | Application ‘redSensorToCloud’ is not running and cannot be stopped.  
Sep 18 13:34:26 | supervisor[783]/supervisor T=main | app.c app\_Create() 2735 | Creating app ‘redSensorToCloud’  
Sep 18 13:34:26 | supervisor[783]/supervisor T=main | proc.c GetFaultAction() 323 | No fault action specified for process ‘redSensorToCloud’. Assuming ‘ignore’.  
Sep 18 13:34:26 | supervisor[783]/supervisor T=main | proc.c GetWatchdogAction() 359 | redSensorToCloud watchdogAction ‘’ in proc section  
Sep 18 13:34:26 | supervisor[783]/supervisor T=main | proc.c GetWatchdogAction() 359 | redSensorToCloud watchdogAction ‘’ in proc section  
Sep 18 13:34:26 | supervisor[783]/supervisor T=main | app.c app\_Start() 2926 | Starting app ‘redSensorToCloud’  
Sep 18 13:34:26 | supervisor[783]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link ‘/dev/log’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/dev/log’.  
Sep 18 13:34:26 | supervisor[783]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link ‘/dev/null’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/dev/null’.  
Sep 18 13:34:26 | supervisor[783]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link ‘/dev/zero’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/dev/zero’.  
Sep 18 13:34:26 | supervisor[783]/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’.  
Sep 18 13:34:26 | supervisor[783]/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’.  
Sep 18 13:34:26 | supervisor[783]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link ‘/lib/libc.so.6’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libc.so.6’.  
Sep 18 13:34:26 | supervisor[783]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link ‘/lib/libpthread.so.0’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libpthread.so.0’.  
Sep 18 13:34:26 | supervisor[783]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link ‘/lib/librt.so.1’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/librt.so.1’.  
Sep 18 13:34:26 | supervisor[783]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link ‘/lib/libdl.so.2’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libdl.so.2’.  
Sep 18 13:34:26 | supervisor[783]/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’.  
Sep 18 13:34:26 | supervisor[783]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link ‘/lib/libm.so.6’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libm.so.6’.  
Sep 18 13:34:26 | supervisor[783]/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’.  
Sep 18 13:34:26 | supervisor[783]/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  
Sep 18 13:34:26 | supervisor[783]/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  
Sep 18 13:34:26 | supervisor[783]/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 18 13:34:26 | supervisor[783]/supervisor T=main | app.c CreateFileLink() 1507 | Could not stat file at ‘/sys/devices/platform/led.0/led’. No such file or directory**  
**Sep 18 13:34:26 | supervisor[783]/supervisor T=main | app.c CreateFileLink() 1624 | Failed to create link at ‘/sys/devices/platform/led.0/led’ in app ‘redSensorToCloud’.**  
**Sep 18 13:34:26 | supervisor[783]/supervisor T=main | app.c app\_Start() 2954 | Failed to set Smack rule**s or set up app area.  
Sep 18 13:34:26 | supervisor[783]/supervisor T=main | supervisor.c SigChildHandler() 783 | Reaping unconfigured child process 28779.  
redSensorToCloud  
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

root@swi-mdm9x28-wp:~# lsmod  
Not tainted

root@swi-mdm9x28-wp:~# cat /legato/systems/current/version  
18.06.1\_7bc924287cc41a0157bd414af840e754\_modified

root@swi-mdm9x28-wp:~# cm info  
Device: WP7702  
IMEI: 352653090005521  
IMEISV: 2  
FSN: [30922.820135] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:2) mode:FIFO slv\_addr:0x3a MSTR\_STS:0x0c1300c8 OPER:0x00000090  
VU749185081002  
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: ATT  
Carrier PRI Revision: 001.026\_000  
SKU: 1103530  
Last Reset Cause: Crash  
Resets Count: Expected: 81 Unexpected: 21

I also observed when I run the RedSensorToCloud Application, the following error appears on the console.

root@swi-mdm9x28-wp:~# [30675.026839] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:2) mode:FIFO slv\_addr:0x3a MSTR\_STS:0x0c1300c8 OPER:0x00000090

root@swi-mdm9x28-wp:~# ls -la /sys/devices/platform/  
drwxr-xr-x 79 root root 0 Sep 18 05:03 .  
drwxr-xr-x 208 root root 0 Jan 1 1970 ..  
drwxr-xr-x 3 root root 0 Sep 18 05:03 DATA1.0  
drwxr-xr-x 3 root root 0 Sep 18 05:03 DATA11.0  
drwxr-xr-x 3 root root 0 Sep 18 05:03 DATA2.0  
drwxr-xr-x 3 root root 0 Sep 18 05:03 DATA3.0  
drwxr-xr-x 3 root root 0 Sep 18 13:34 DATA4.0  
drwxr-xr-x 3 root root 0 Sep 18 05:03 DATA40.0  
drwxr-xr-x 3 root root 0 Sep 18 05:03 DATA40\_CNTL.0  
drwxr-xr-x 3 root root 0 Sep 18 05:03 DATA5\_CNTL.0  
drwxr-xr-x 3 root root 0 Sep 18 05:03 DIAG.0  
drwxr-xr-x 3 root root 0 Sep 18 05:03 DIAG\_2.0  
drwxr-xr-x 3 root root 0 Sep 18 05:03 DIAG\_2\_CMD.0  
drwxr-xr-x 3 root root 0 Sep 18 05:03 DIAG\_CMD.0  
drwxr-xr-x 3 root root 0 Sep 18 05:03 DIAG\_CNTL.0  
drwxr-xr-x 3 root root 0 Sep 18 05:03 DS.0  
drwxr-xr-x 3 root root 0 Sep 18 05:03 GPSNMEA.0  
drwxr-xr-x 3 root root 0 Sep 18 05:03 IPCRTR.0  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SSM\_RTR\_MODEM\_APPS.0  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC00000001:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC00000002:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC00000003:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC00000005:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC00000008:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC00000009:00000002.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC0000000a:00000002.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC0000000b:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC0000000c:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC0000000f:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC00000010:00000002.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC00000011:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC00000016:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC00000017:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC00000018:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC00000019:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC0000001a:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC00000024:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC00000029:00000101.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC0000002a:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC0000002b:00002202.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC0000002d:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC0000002f:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC00000030:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC00000036:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC00000048:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC000000e3:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC000000e4:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC000000f0:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC000000f2:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC000000f3:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC000000f5:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC000000f6:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC000000f8:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC000000f9:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC000000fa:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC000000fd:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC000000fe:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 05:03 SVC00000400:00000001.1  
drwxr-xr-x 3 root root 0 Sep 18 13:42 SVC00001001:00000000.1  
drwxr-xr-x 3 root root 0 Sep 18 13:42 SVC00001001:00000002.1  
drwxr-xr-x 3 root root 0 Sep 18 13:42 SVC00001001:00000004.1  
drwxr-xr-x 3 root root 0 Sep 18 13:42 SVC00001001:00000040.1  
drwxr-xr-x 3 root root 0 Sep 18 13:42 SVC00001001:00000042.1  
drwxr-xr-x 3 root root 0 Sep 18 13:42 SVC00001001:00000044.1  
drwxr-xr-x 3 root root 0 Sep 18 13:42 SVC00001001:00000080.1  
drwxr-xr-x 3 root root 0 Sep 18 13:42 SVC00001001:00000082.1  
drwxr-xr-x 3 root root 0 Sep 18 13:42 SVC00001001:00000084.1  
drwxr-xr-x 3 root root 0 Sep 18 13:42 SVC00001001:000000c0.1  
drwxr-xr-x 3 root root 0 Sep 18 13:42 SVC00001001:000000c2.1  
drwxr-xr-x 3 root root 0 Sep 18 13:42 SVC00001001:000000c4.1  
drwxr-xr-x 3 root root 0 Sep 18 13:42 alarmtimer  
drwxr-xr-x 3 root root 0 Sep 18 05:03 apr\_apps2.0  
drwxr-xr-x 3 root root 0 Sep 18 05:03 apr\_audio\_svc.0  
drwxr-xr-x 3 root root 0 Sep 18 05:03 bam\_dmux\_ch\_0.2  
drwxr-xr-x 3 root root 0 Sep 18 05:03 bam\_dmux\_ch\_8.2  
lrwxrwxrwx 1 root root 0 Sep 18 05:03 msm\_serial\_hs.0 → ../78b0000.uart  
lrwxrwxrwx 1 root root 0 Sep 18 13:42 msm\_serial\_hsl.0 → ../78b0000.serial  
lrwxrwxrwx 1 root root 0 Sep 18 05:03 msm\_serial\_hsl.1 → ../78af000.serial  
drwxr-xr-x 2 root root 0 Sep 18 13:42 power  
drwxr-xr-x 4 root root 0 Jan 1 1970 reg-dummy  
drwxr-xr-x 3 root root 0 Sep 18 13:42 rpm\_requests.15  
drwxr-xr-x 3 root root 0 Sep 18 13:42 snd-soc-dummy  
-rw-r–r-- 1 root root 4096 Sep 18 13:42 uevent  
root@swi-mdm9x28-wp:~# uname -a  
Linux swi-mdm9x28-wp 3.18.44 #2 PREEMPT Fri Jul 20 21:01:16 UTC 2018 armv7l GNU/Linux

Did I miss anything ?  
I would appreciate your response.

---

<div class="post-metadata">

**Author:** ![drew](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@drew](https://mangoh.discourse.group/u/drew)\
**Post date:** [September 19, 2018, 6:07pm UTC](https://mangoh.discourse.group/t/redsensortocloud-issue/1926/2 "2018-09-19T18:07:24Z")

</div>

@hposhtiw

I noticed the **[wp77xx]** section of your **cfglegato** output is a bit different from mine, specifically the **y22-ext-** is not present in your toolchain path – mine is below.

```
[wp77xx] Toolchain dir = /opt/swi/y22-ext-wp77xx/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi
  prefix = arm-poky-linux-gnueabi-
  sysroot = /opt/swi/y22-ext-SWI9X06Y_02.18.05.00/sysroots/armv7a-neon-poky-linux-gnueabi
  kernelroot = /opt/swi/y22-ext-SWI9X06Y_02.18.05.00/sysroots/armv7a-neon-poky-linux-gnueabi/usr/src/kernel

```

In @dfrey post [here](https://mangoh.discourse.group/t/error-starting-redsensortocloud-solved/1849/7?u=drew), #4 instructs to use a destination path including **y22-ext-** and #5 is setting up a symlink to that destination path (yours differs here). I don’t know how important (if at all) setting up the paths exactly like this are, but maybe it’s something worth considering.

What is your output for the following?

```
mangoh@mangoh-vm:~$ ls /opt/swi/y22-ext-wp77xx -lha
lrwxrwxrwx 1 root root 28 Sep 6 20:03 /opt/swi/y22-ext-wp77xx -> y22-ext-SWI9X06Y_02.18.05.00
mangoh@mangoh-vm:~$

```

Good luck.
