MangOH board will be triggered reboot when installing KillSwitch app


#1

Hi,

I tried to build app KillSwtich and installed to my platform.
But it will be triggered platform reboot when I install this app.
Before that, I installed 4 apps to platform, there are
[stopped] gpioExpanderDemo
[running] gpioExpanderServiceGreen
[running] muxCtrlService
[stopped] muxCtrlTools

After platform reboot, I checked app status and found that four apps and KillSwitch were disappear. In the other words, the module seems to back default setting.

I also tried to build legato and system.sdef is below

apps:
{
// Platform services.
$LEGATO_ROOT/apps/platformServices/airVantage/avcService
$LEGATO_ROOT/apps/platformServices/audioService
$LEGATO_ROOT/apps/platformServices/cellNetService
$LEGATO_ROOT/apps/platformServices/dataConnectionService
$LEGATO_ROOT/apps/platformServices/fwupdateService
$LEGATO_ROOT/apps/platformServices/modemService
$LEGATO_ROOT/apps/platformServices/positioningService
$LEGATO_ROOT/apps/platformServices/powerMgr
$LEGATO_ROOT/apps/platformServices/secStore
$LEGATO_ROOT/apps/platformServices/smsInboxService
$LEGATO_ROOT/apps/platformServices/voiceCallService
$LEGATO_ROOT/apps/platformServices/gpioService
$LEGATO_ROOT/apps/platformServices/atClient
$LEGATO_ROOT/apps/platformServices/atServer

$LEGATO_WIFI_ROOT/service/wifiService.adef
$LEGATO_WIFI_ROOT/apps/sample/wifiClientTest/wifiClientTest.adef
$LEGATO_WIFI_ROOT/apps/sample/wifiApTest/wifiApTest.adef
$LEGATO_WIFI_ROOT/apps/sample/wifiWebAp/wifiWebAp.adef
$LEGATO_WIFI_ROOT/apps/tools/wifi/wifi.adef

// Command-line tools.
$LEGATO_ROOT/apps/tools/tools

$MANGOH_ROOT/apps/GpioExpander/gpioExpanderService/gpioExpanderServiceGreen

$MANGOH_ROOT/apps/MuxControl/muxCtrlService/muxCtrlService
$MANGOH_ROOT/apps/MuxControl/tools/muxCtrlTools

$MANGOH_ROOT/apps/MqttClient/mqttClient
$MANGOH_ROOT/apps/DataRouter/dataRouter
$MANGOH_ROOT/apps/DataRouter/drTool/drTool

// Command-line tools.
$MANGOH_ROOT/samples/Demos/KillSwitch/killSwitch
}

commands:
{
cm = tools:/bin/cm
fwupdate = tools:/bin/fwupdate
secstore = tools:/bin/secstore
pmtool = tools:/bin/pmtool
gnss = tools:/bin/gnss
wifi = wifi:/bin/wifi
mux = muxCtrlTools:/bin/mux
}

bindings:
{
.le_fwupdate -> fwupdateService.le_fwupdate
}

interfaceSearch:
{
interfaces/modemServices
interfaces/positioning
}
The platform also reboot after flashing system.wp85.system.
I didn’t modify the source code(only modify some APIs path with compile error).

FW version: Release 12_2 Generic with WP7502 and WP8548
Legato version: 16.10.1
I can not catch the log about this condition.

Thank you very much.
Best Regards,
Vince


#2

Something is failing that is triggering the rollback behavior. I suggest running logread -f in a terminal prior to installing the update that fails. Then you can paste the error log here if you can’t figure it out yourself. The killswitch app depends on the CAN bus IoT card and a specially modified kernel.


#3

I have similar issue, is there any other one experienced this unknown reboot thing?

there is no log, and there is no clue why the legato system will keep rebooting and finally remove my infant apps.

this is annoying and confusing, so any one has encountered this or need help please say it.


#4

Run the following commands

cm info

legato versio

car /met/legato/systems/version

Send us the results.


#5

root@swi-mdm9x15:~# cm info
Device: WP8548
IMEI: 359377060110961
FSN: LL719400301410
Firmware: SWI9X15Y_07.11.11.00 r33161 CARMD-EV-FRMWR1 2016/09/20 16:36:44
Bootloader: SWI9X15Y_07.11.11.00 r33161 CARMD-EV-FRMWR1 2016/09/20 16:36:44


root@swi-mdm9x15:~# legato version
16.07.0_cd4985660a55cc9a6f9a2ed28bcc757e

root@swi-mdm9x15:~# cat /mnt/legato/system/version
16.07.0_cd4985660a55cc9a6f9a2ed28bcc757e