# Reboot Reason, how to?

**URL:** <https://mangoh.discourse.group/t/reboot-reason-how-to/9314>\
**Category:** mangOH Yellow\
**Created:** [June 9, 2021, 7:03pm UTC](https://mangoh.discourse.group/t/reboot-reason-how-to/9314 "2021-06-09T19:03:43Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![gianmariaiaculo](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@gianmariaiaculo](https://mangoh.discourse.group/u/gianmariaiaculo)\
**Post date:** [June 9, 2021, 7:03pm UTC](https://mangoh.discourse.group/t/reboot-reason-how-to/9314/1 "2021-06-09T19:03:44Z")

</div>

Hello,  
is it possible to get in some file… some sort of dump or the reboot reason?  
i can see in cm info a very simpple user request as reason… but i cant understand why the system is rebooting/crashing  
I’m developing on mangoh yellow.

Regards,  
Gianmaria

---

<div class="post-metadata">

**Author:** ![gianmariaiaculo](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@gianmariaiaculo](https://mangoh.discourse.group/u/gianmariaiaculo)\
**Post date:** [June 9, 2021, 9:07pm UTC](https://mangoh.discourse.group/t/reboot-reason-how-to/9314/2 "2021-06-09T21:07:40Z")

</div>

…also…

this is my cm info:  
Device: WP7702  
IMEI: 352653090194176  
IMEISV: 5  
FSN: 4L931388970810  
Firmware Version: SWI9X06Y\_02.35.02.00 5208b3 jenkins 2020/06/10 00:30:12  
Bootloader Version: SWI9X06Y\_02.35.02.00 5208b3 jenkins 2020/06/10 00:30:12  
MCU Version: 002.014  
PRI Part Number (PN): 9909138  
PRI Revision: 001.001  
Carrier PRI Name: SIERRA  
Carrier PRI Revision: 001.036\_001  
SKU: 1104405  
Last Reset Cause: Power Down  
Resets Count: Expected: 251 Unexpected: 0

I read a reset counts to 251 but 0 unexpected… so i think this is not kernel or system error…

this are the apps with status running at moment:

[running] NtagDhubIf  
[running] atAirVantage  
[running] atQmiLinker  
[running] atService  
[running] audioService  
[running] avcService  
[running] battery  
[running] bluetoothServices  
[running] button  
[running] buzzer  
[running] cellNetService  
[running] dataConnectionService  
[running] dataHub  
[running] environment  
[running] fwupdateService  
[running] gpioService  
[running] imu  
[running] modemService  
[stopped] ntag  
[running] portService  
[running] positioningService  
[running] powerMgr  
[running] qmiAirVantage  
[running] secStore  
[stopped] smsInboxService  
[stopped] spiService  
[stopped] tools  
[running] vegasMode  
[stopped] voiceCallService  
[running] wifiService  
[running] locMonitor (my app).

Maybe some app is issuing a restart and i cant see it??? In logread -f i cant read anything… just a brutal reboot.

I’m using the network too (2G), so first think i focused on was the current, so i attached a powerbank (2.4 A out) to the usb port to give a stable alim. But problem is still here…

I’ve looked in /var/log/ but there isnt nothing here i can use.

Any suggest is super appreciated.

Gianmaria

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [June 9, 2021, 11:49pm UTC](https://mangoh.discourse.group/t/reboot-reason-how-to/9314/3 "2021-06-09T23:49:38Z")

</div>

Do you see anything in the uart console?  
If it reboots suddenly without any message, probably this is related to insuffient current or voltage.

---

<div class="post-metadata">

**Author:** ![gianmariaiaculo](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@gianmariaiaculo](https://mangoh.discourse.group/u/gianmariaiaculo)\
**Post date:** [June 11, 2021, 10:08am UTC](https://mangoh.discourse.group/t/reboot-reason-how-to/9314/4 "2021-06-11T10:08:37Z")

</div>

Upgrading modem firm to WP77xx Firmware Release 14.1, seems solved the problem. Indeed my problems started when i start transimission over a socket and network is low.

Naturally… not everything is “free”… after this update… my GPIO21 wont come up to signal movement… same code… different firmware… no more alert on movement. Some ideas about it?

Gian

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [June 11, 2021, 11:20am UTC](https://mangoh.discourse.group/t/reboot-reason-how-to/9314/5 "2021-06-11T11:20:16Z")

</div>

What is the return of  
At+wiocfg?

You can check whether gpio21has been set to usable in linux correctly

---

<div class="post-metadata">

**Author:** ![gianmariaiaculo](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@gianmariaiaculo](https://mangoh.discourse.group/u/gianmariaiaculo)\
**Post date:** [June 11, 2021, 11:47am UTC](https://mangoh.discourse.group/t/reboot-reason-how-to/9314/6 "2021-06-11T11:47:14Z")

</div>

Modem Command produces this output:

AT  
OK  
At+wiocfg?  
+WIOCFG: 2,16,0,0,1,0,0  
+WIOCFG: 4,3,0,0,1,0,0  
+WIOCFG: 6,0,0,0,1,0,0  
+WIOCFG: 7,16,0,0,1,0,0  
+WIOCFG: 8,16,0,0,1,0,0  
+WIOCFG: 13,16,0,0,1,0,0  
+WIOCFG: 21,16,0,0,1,0,0  
+WIOCFG: 22,16,0,0,1,0,0  
+WIOCFG: 23,16,0,0,1,0,0  
+WIOCFG: 24,16,0,0,1,0,0  
+WIOCFG: 25,16,0,0,1,0,0  
+WIOCFG: 28,16,0,0,1,0,0  
+WIOCFG: 29,16,0,0,1,0,0  
+WIOCFG: 30,16,0,0,1,0,0  
+WIOCFG: 31,16,0,0,1,0,0  
+WIOCFG: 32,16,0,0,1,0,0  
+WIOCFG: 33,16,0,0,1,0,0  
+WIOCFG: 35,16,0,0,1,0,0  
+WIOCFG: 42,16,0,0,1,0,0

OK

In linux it’s correctly exported and…  
root@swi-mdm9x28-wp:~# cat /sys/class/gpio/gpio21/direction  
in  
root@swi-mdm9x28-wp:/sys/devices/1000000.pinctrl/gpio/gpio21# cat active\_low  
0  
root@swi-mdm9x28-wp:/sys/devices/1000000.pinctrl/gpio/gpio21# cat edge  
both

Maybe i’ve to enable something on AT?  
Regards + thanks,  
gian

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [June 11, 2021, 11:54am UTC](https://mangoh.discourse.group/t/reboot-reason-how-to/9314/7 "2021-06-11T11:54:05Z")

</div>

Is /sys/class/gpio/gpio21/value aligning with signal movement?

Do you recompile your app with wp77 r14.1 package?

---

<div class="post-metadata">

**Author:** ![gianmariaiaculo](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@gianmariaiaculo](https://mangoh.discourse.group/u/gianmariaiaculo)\
**Post date:** [June 11, 2021, 12:02pm UTC](https://mangoh.discourse.group/t/reboot-reason-how-to/9314/8 "2021-06-11T12:02:40Z")

</div>

If i move the device and at same time read value… it doesnt change… it remains 1. Before update it worked changing from 0 to 1 and so on based on movement.

What do you mean by “recompile your app with wp77 r14.1 package” ?

See image… that’s all i’ve done about compile…

 ![Schermata 2021-06-11 alle 14.01.01](https://us1.discourse-cdn.com/flex016/uploads/mangoh/original/2X/e/eb9e84a11bf9a82eabc83e42bae0cba50dd91097.png)

Gian

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [June 11, 2021, 12:48pm UTC](https://mangoh.discourse.group/t/reboot-reason-how-to/9314/9 "2021-06-11T12:48:24Z")

</div>

If "cat /sys/class/gpio/gpio21/value " does not work probably you don’t need to test legato api …

Btw does gpio output work?

You might check if this is fw regression.  
E.g. does problem happen in r13 r12

---

<div class="post-metadata">

**Author:** ![gianmariaiaculo](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@gianmariaiaculo](https://mangoh.discourse.group/u/gianmariaiaculo)\
**Post date:** [June 11, 2021, 5:00pm UTC](https://mangoh.discourse.group/t/reboot-reason-how-to/9314/10 "2021-06-11T17:00:41Z")

</div>

I’ve triend to downgrade to r13 qnd r12 but it’s the same… is there a know gpio for example for leds i can try to change manually with echo exporting in linux? My board is mangoh yellow.

gian

---

<div class="post-metadata">

**Author:** ![gianmariaiaculo](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@gianmariaiaculo](https://mangoh.discourse.group/u/gianmariaiaculo)\
**Post date:** [June 11, 2021, 9:47pm UTC](https://mangoh.discourse.group/t/reboot-reason-how-to/9314/11 "2021-06-11T21:47:54Z")

</div>

I found on my system i dont have the BMI160 drivers working… i dont have anything about accel/gyro under

/sys/bus/i2c/devices/

How can i load the driver now? :(☹

gian

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [June 11, 2021, 11:51pm UTC](https://mangoh.discourse.group/t/reboot-reason-how-to/9314/12 "2021-06-11T23:51:46Z")

</div>

That is why I suggest you to manually change state of GPIO21 and see if the state of "cat /sys/class/gpio/gpio21/value " changed.

BTW, you need to build mangoh yellow layer for the BMI driver

> **[mangOH/mangOH](https://github.com/mangOH/mangOH/wiki/Building-the-Legato-%22system%22-(apps)-for-mangOH-Yellow)**
>
> Primary mangOH git repository. Contribute to mangOH/mangOH development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![gianmariaiaculo](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@gianmariaiaculo](https://mangoh.discourse.group/u/gianmariaiaculo)\
**Post date:** [June 12, 2021, 6:38am UTC](https://mangoh.discourse.group/t/reboot-reason-how-to/9314/13 "2021-06-12T06:38:14Z")

</div>

Everything right… yellow recompiled and system works perfectly.  
How can i say thank you jyijyi ???

my best regards  
Gianmaria

---

<div class="post-metadata">

**Author:** ![gianmariaiaculo](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@gianmariaiaculo](https://mangoh.discourse.group/u/gianmariaiaculo)\
**Post date:** [June 22, 2021, 11:21am UTC](https://mangoh.discourse.group/t/reboot-reason-how-to/9314/14 "2021-06-22T11:21:57Z")

</div>

Finally I’m at a clear point. My app uses network communication in intensive mode (c socket). If i use latest WP77xx Firmware Release 14.1, everything goes ok, i can work with network without any problem **but with this firmware i dont have access to BMI160 driver, my accelerometer doesent work.**.  
On the other side if i use latest mangoH build, all operations following this link:

> **[mangOH/mangOH](https://github.com/mangOH/mangOH/wiki/Building-the-Legato-%22system%22-(apps)-for-mangOH-Yellow)**
>
> Primary mangOH git repository. Contribute to mangOH/mangOH development by creating an account on GitHub.

**I have accelerometer working, but an unstable system.** During network operations it reboots without cause and without any visible (or logged) error.

So i think i have to start from firm 14.1 and add support for BMI160 (kernel drivers to enable?). NAturally i dont need all the OCTANE stuff at all.  
Any hint on how to create a version of 14.1 with BMI160 Accel support?

Regards,  
Gianmaria

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [June 22, 2021, 11:31am UTC](https://mangoh.discourse.group/t/reboot-reason-how-to/9314/15 "2021-06-22T11:31:24Z")

</div>

you can use leaf to download SDK swi-wp77\_5.0.1 which is using FW 14.1.  
After that you can download the mangoh source and compile it inside the leaf shell.

More or less just the same as the instruction here:

> **[mangOH/mangOH](https://github.com/mangOH/mangOH/wiki/Building-the-Legato-%22system%22-(apps)-for-mangOH-Yellow)**
>
> Primary mangOH git repository. Contribute to mangOH/mangOH development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![gianmariaiaculo](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@gianmariaiaculo](https://mangoh.discourse.group/u/gianmariaiaculo)\
**Post date:** [June 22, 2021, 4:14pm UTC](https://mangoh.discourse.group/t/reboot-reason-how-to/9314/16 "2021-06-22T16:14:45Z")

</div>

thanks… but I see as latests:

mangOH-yellow-wp77xx\_0.7.0 │ mangOH yellow wp77xx (Modem=R13, Legato=19.11.3-1-g8c030edad, Octave=3.1.0-mangOH-0) │ latest,installed,mangOH,yellow,Octave,wp77xx

This is modem firmware version R13? Or not…

this are all my choices:  
mangOH-yellow-wp76xx\_0.7.0 │ mangOH yellow wp76xx (Modem=R16, Legato=19.11.3-1-g8c030edad, Octave=3.1.0-mangOH-0) │ latest,mangOH,yellow,Octave,wp76xx │  
│ mangOH-yellow-wp77xx\_0.2.3 │ SDK for mangOH yellow with wp77xx, based on Legato version 19.07.0 and wp77xx release 12 │ installed,mangOH,yellow,wp77xx,Octave │  
│ mangOH-yellow-wp77xx\_0.3.0 │ SDK for mangOH yellow with wp77xx, based on Legato version 19.10.0 and wp77xx release 12 │ mangOH,yellow,wp77xx,Octave │  
│ mangOH-yellow-wp77xx\_0.4.0 │ SDK for mangOH yellow with wp77xx, based on Legato version 19.10.1 and wp77xx release 12 │ mangOH,yellow,wp77xx,Octave │  
│ mangOH-yellow-wp77xx\_0.5.0 │ SDK for mangOH yellow with wp77xx, based on Legato version 19.11.0 and wp77xx release 12 │ mangOH,yellow,wp77xx,Octave │  
│ mangOH-yellow-wp77xx\_0.6.0 │ SDK for mangOH yellow with wp77xx, based on Legato version 20.04.0 and wp77xx release 12 │ mangOH,yellow,wp77xx,Octave │  
│ mangOH-yellow-wp77xx\_0.7.0 │ mangOH yellow wp77xx (Modem=R13, Legato=19.11.3-1-g8c030edad, Octave=3.1.0-mangOH-0) │ latest,installed,mangOH,yellow,Octave,wp77xx

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [June 22, 2021, 8:13pm UTC](https://mangoh.discourse.group/t/reboot-reason-how-to/9314/17 "2021-06-22T20:13:29Z")

</div>

None of them is based on r14 …,

---

<div class="post-metadata">

**Author:** ![gianmariaiaculo](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@gianmariaiaculo](https://mangoh.discourse.group/u/gianmariaiaculo)\
**Post date:** [June 22, 2021, 8:58pm UTC](https://mangoh.discourse.group/t/reboot-reason-how-to/9314/18 "2021-06-22T20:58:24Z")

</div>

I see… This is a big trouble indeed. Any idea? Maybe the Accel is not working cause device tree simply missing the declaration… Don’t know, really how to go ahead.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [June 23, 2021, 1:00am UTC](https://mangoh.discourse.group/t/reboot-reason-how-to/9314/19 "2021-06-23T01:00:40Z")

</div>

Why don’t you use swi-wp77\_5.0.1 which is using FW 14.1?

---

<div class="post-metadata">

**Author:** ![gianmariaiaculo](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@gianmariaiaculo](https://mangoh.discourse.group/u/gianmariaiaculo)\
**Post date:** [June 23, 2021, 8:24am UTC](https://mangoh.discourse.group/t/reboot-reason-how-to/9314/20 "2021-06-23T08:24:11Z")

</div>

Sorry, I misunderstood your previous answer. I used swi-wp77\_5.0.1 and now I’m in this condition:

Device: WP7702  
IMEI: 352653090194176  
IMEISV: 6  
FSN: 4L931388970810  
Firmware Version: SWI9X06Y\_02.36.06.00 63d944 jenkins 2020/12/10 19:12:28  
Bootloader Version: SWI9X06Y\_02.36.06.00 63d944 jenkins 2020/12/10 19:12:28  
MCU Version: 002.015  
PRI Part Number (PN): 9909138  
PRI Revision: 001.001  
Carrier PRI Name: GENERIC  
Carrier PRI Revision: 001.071\_001  
SKU: 1104405  
Last Reset Cause: Reset, User Requested  
Resets Count: Expected: 317 Unexpected: 0  
root@swi-mdm9x28-wp:~# uname -r  
3.18.140  
root@swi-mdm9x28-wp:~# legato version  
19.11.3-1-g8c030edad\_b767d8aec6f54e3de675ad4d08970d8d\_modified

Am I running the right modem firmware? I’ve a dubt on legato version… It seems not be updated to 19.11.5. Maybe I’m missing some steps on updating the legato framework?

Regards,  
Gianmaria

[Next page](https://mangoh.discourse.group/t/reboot-reason-how-to/9314.md?page=2)
