redSensorToCloud won't start


#1

Am heading through the MangOH Getting Started document and all is going well until I try to start the redSensorToCloud app to verify data is getting to AirVantage.

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

Looking at the system log I see the following:

Jun  1 04:22:25 swi-mdm9x28 user.warn Legato: -WRN- | posDaemon[924]/le_pa_gnss T=unknown | pa_gnss_qmi.c UsedSvIdFound() 746 | Satellite 326 is used without being viewed
Jun  1 04:22:25 swi-mdm9x28 user.info Legato:  INFO | supervisor[650]/supervisor T=main | proc.c GetFaultAction() 323 | No fault action specified for process 'redSensorToCloud'. Assuming 'ignore'.
Jun  1 04:22:25 swi-mdm9x28 user.warn Legato: -WRN- | supervisor[650]/supervisor T=main | proc.c GetWatchdogAction() 359 | redSensorToCloud watchdogAction '' in proc section
Jun  1 04:22:25 swi-mdm9x28 user.warn Legato: -WRN- | supervisor[650]/supervisor T=main | proc.c GetWatchdogAction() 359 | redSensorToCloud watchdogAction '' in proc section
Jun  1 04:22:25 swi-mdm9x28 user.info Legato:  INFO | supervisor[650]/supervisor T=main | app.c CreateFileLink() 1518 | Skipping file link '/dev/log' to '/legato/systems/current/appsWriteable/redSensorToCloud/dev/log': Already exists
Jun  1 04:22:25 swi-mdm9x28 user.info Legato:  INFO | supervisor[650]/supervisor T=main | app.c CreateFileLink() 1518 | Skipping file link '/dev/null' to '/legato/systems/current/appsWriteable/redSensorToCloud/dev/null': Already exists
Jun  1 04:22:25 swi-mdm9x28 user.info Legato:  INFO | supervisor[650]/supervisor T=main | app.c CreateFileLink() 1518 | Skipping file link '/dev/zero' to '/legato/systems/current/appsWriteable/redSensorToCloud/dev/zero': Already exists
Jun  1 04:22:25 swi-mdm9x28 user.info Legato:  INFO | supervisor[650]/supervisor T=main | app.c CreateFileLink() 1518 | Skipping file link '/legato/systems/current/lib/liblegato.so' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/liblegato.so': Already exist
Jun  1 04:22:25 swi-mdm9x28 user.info Legato:  INFO | supervisor[650]/supervisor T=main | app.c CreateFileLink() 1518 | Skipping file link '/lib/ld-linux.so.3' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/ld-linux.so.3': Already exists
Jun  1 04:22:25 swi-mdm9x28 user.info Legato:  INFO | supervisor[650]/supervisor T=main | app.c CreateFileLink() 1518 | Skipping file link '/lib/libc.so.6' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/libc.so.6': Already exists
Jun  1 04:22:25 swi-mdm9x28 user.info Legato:  INFO | supervisor[650]/supervisor T=main | app.c CreateFileLink() 1518 | Skipping file link '/lib/libpthread.so.0' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/libpthread.so.0': Already exists
Jun  1 04:22:25 swi-mdm9x28 user.info Legato:  INFO | supervisor[650]/supervisor T=main | app.c CreateFileLink() 1518 | Skipping file link '/lib/librt.so.1' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/librt.so.1': Already exists
Jun  1 04:22:25 swi-mdm9x28 user.info Legato:  INFO | supervisor[650]/supervisor T=main | app.c CreateFileLink() 1518 | Skipping file link '/lib/libdl.so.2' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/libdl.so.2': Already exists
Jun  1 04:22:25 swi-mdm9x28 user.info Legato:  INFO | supervisor[650]/supervisor T=main | app.c CreateFileLink() 1518 | Skipping file link '/lib/libgcc_s.so.1' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/libgcc_s.so.1': Already exists
Jun  1 04:22:25 swi-mdm9x28 user.info Legato:  INFO | supervisor[650]/supervisor T=main | app.c CreateFileLink() 1518 | Skipping file link '/lib/libm.so.6' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/libm.so.6': Already exists
Jun  1 04:22:25 swi-mdm9x28 user.info Legato:  INFO | supervisor[650]/supervisor T=main | app.c CreateFileLink() 1518 | Skipping file link '/usr/lib/libstdc++.so.6' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/libstdc++.so.6': Already exists
Jun  1 04:22:25 swi-mdm9x28 user.info Legato:  INFO | supervisor[650]/supervisor T=main | app.c CreateFileLink() 1518 | Skipping file link '/legato/systems/current/apps/redSensorToCloud/read-only/lib/libComponent_sensorsComponent.so' to '/legato/systems/current/appsWriteab
Jun  1 04:22:25 swi-mdm9x28 user.info Legato:  INFO | supervisor[650]/supervisor T=main | app.c CreateFileLink() 1518 | Skipping file link '/legato/systems/current/apps/redSensorToCloud/read-only/lib/libComponent_avPublisherComponent.so' to '/legato/systems/current/appsWri
Jun  1 04:22:25 swi-mdm9x28 user.info Legato:  INFO | supervisor[650]/supervisor T=main | app.c CreateFileLink() 1518 | Skipping file link '/legato/systems/current/apps/redSensorToCloud/read-only/bin/redSensorToCloud' to '/legato/systems/current/appsWriteable/redSensorToCl
Jun  1 04:22:25 swi-mdm9x28 user.err Legato: =ERR= | supervisor[650]/supervisor T=main | app.c CreateFileLink() 1490 | Could not stat file at '/sys/devices/platform/led.0/led'. No such file or directory
Jun  1 04:22:25 swi-mdm9x28 user.err Legato: =ERR= | supervisor[650]/supervisor T=main | app.c CreateFileLink() 1593 | Failed to create link at '/sys/devices/platform/led.0/led' in app 'redSensorToCloud'.
Jun  1 04:22:25 swi-mdm9x28 user.info Legato:  INFO | supervisor[650]/supervisor T=main | supervisor.c SigChildHandler() 781 | Reaping unconfigured child process 11304.
Jun  1 04:22:26 swi-mdm9x28 user.warn Legato: -WRN- | posDaemon[924]/le_pa_gnss T=unknown | pa_gnss_qmi.c UsedSvIdFound() 746 | Satellite 10 is used without being viewed

I think the root cause is due the LED file not being found. Is there a step in building the environment I need to re-do?

TIA


#2

Which Legato version are you building against? Are you building the latest mangOH code? You’re right that RedSensorToCloud is failing because of the LED file. Is the LED kernel module referenced in the kernelModules section of the SDEF you are building your system from?


#3

Sorry in advance if I don’t have all the components straight in my head yet, but I’m using this firmware SWI9X07Y_02.16.02.00 / 002.032_000 and 18.04.0 for the Legato framework, IIUC. The README.md’s don’t seem have have version numbers, but everything I’ve installed I’ve downloaded from the Getting Started guide in the last 2 days.

Here is the kernelModules in ~/mangOH/mangOH.sdef which does reference the LED.

kernelModules:
{
#if ${MANGOH_BOARD} = RED
    // $MANGOH_ROOT/linux_kernel_modules/mangoh/9-mangoh_red_dv2
    // $MANGOH_ROOT/linux_kernel_modules/mangoh/9-mangoh_red_dv3
    $MANGOH_ROOT/linux_kernel_modules/mangoh/9-mangoh_red_dv5

    // USB to SPI adapter connected to the mt7697 and RPi header
    $MANGOH_ROOT/linux_kernel_modules/cp2130/0-cp2130

    // temperature and pressure sensor
    $MANGOH_ROOT/linux_kernel_modules/bmp280/2-bmp280
    $MANGOH_ROOT/linux_kernel_modules/bmp280/3-bmp280-i2c

    // accelerometer on DV3 and later board revs
    $MANGOH_ROOT/linux_kernel_modules/bmi160/3-bmi160
    $MANGOH_ROOT/linux_kernel_modules/bmi160/4-bmi160-i2c

    // accelerometer on DV2 boards
    // $MANGOH_ROOT/linux_kernel_modules/lsm6ds3/0-lsm6ds3
    // $MANGOH_ROOT/linux_kernel_modules/lsm6ds3/1-lsm6ds3-i2c

    // battery gauge
    $MANGOH_ROOT/linux_kernel_modules/ltc294x/0-ltc294x.mdef

    // battery charger
    $MANGOH_ROOT/linux_kernel_modules/bq24296/0-bq24296.mdef

    // LED on GPIO driver
    $MANGOH_ROOT/linux_kernel_modules/led/0-led

#4

Any other advice on this David?


#5

Same Issue, I would love some support…

| redSensorToCloud[3622]/redSensorToCloud_exe T=main | _main.c main() 66 | == Starting Event Processing Loop ==
Jun 7 20:42:44 swi-mdm9x15 user.err Legato: =ERR= | posDaemon[821]/posDaemon T=main | le_gnss.c le_gnss_SetAcquisitionRate() 3791 | Bad state for that request [2]
Jun 7 20:42:44 swi-mdm9x15 user.warn Legato: -WRN- | posDaemon[821]/posDaemon T=main | le_pos.c le_posCtrl_Request() 1230 | Failed to set GNSS’s acquisition rate (5000)
Jun 7 20:42:44 swi-mdm9x15 user.err Legato: =ERR= | posDaemon[821]/posDaemon T=main | le_gnss.c le_gnss_Start() 3284 | Bad state for that request [2]
Jun 7 20:42:44 swi-mdm9x15 user.emerg Legato: EMR | redSensorToCloud[3622]/sensorsComponent T=main | init.c _sensorsComponent_COMPONENT_INIT() 7 | Couldn’t activate positioning service
Jun 7 20:42:44 swi-mdm9x15 user.err Legato: =ERR= | posDaemon[821]/posDaemon T=main | le_pos.c PosCtrlCloseSessionEventHandler() 1056 | SessionRef (0xb6ff1b34) has been closed


#6

Hello, same issue here…any updates?


#7

Hello, still have this problem. Any solutions out there?


#8

Sorry, I’ve been busy on another project so haven’t been able to get back to this. My next step was to try to comment out the line:
$MANGOH_ROOT/linux_kernel_modules/led/0-led

in ~/mangOH/mangOH.sdef nd then see if that worked. Have you tried that? I haven’t gotten to try that yet.