# WP7607-1 - Legato doesn't start after reboot

**URL:** <https://forum.legato.io/t/wp7607-1-legato-doesnt-start-after-reboot/4104>\
**Category:** Legato Application Framework\
**Created:** [February 11, 2019, 5:29pm UTC](https://forum.legato.io/t/wp7607-1-legato-doesnt-start-after-reboot/4104 "2019-02-11T17:29:27Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ben.o](https://avatars.discourse-cdn.com/v4/letter/b/2bfe46/32.png) [@ben.o](https://forum.legato.io/u/ben.o)\
**Post date:** [February 11, 2019, 5:29pm UTC](https://forum.legato.io/t/wp7607-1-legato-doesnt-start-after-reboot/4104/1 "2019-02-11T17:29:27Z")

</div>

Hi,

This issue happens very rarely, but if I reboot several times (using “reboot” cmd), I noticed that sometimes the legato framework won’t be running.

I’m running legato 18.06.3\_dc55d84226223a3798b01c1a272e9603.

`legato status`:

```
root@swi-mdm9x28-wp:~/logread# legato status
Systems installed:
  4 [good] <-- current
Legato framework is NOT running.

```

`logread | grep legato`:

```
root@swi-mdm9x28-wp:~/logread# logread | grep legato
Jan 1 00:05:49 swi-mdm9x28-wp user.info kernel: [6.703953] block ubiblock2_0: created from ubi2:0(legato)
Jan 6 00:05:49 swi-mdm9x28-wp user.notice root: update-ld-cache: Updating ld.so.cache using [/legato/systems/current/lib]...
Jan 6 00:05:52 swi-mdm9x28-wp user.warn Legato: -WRN- | _UNKNOWN_[785]/framework T=main | LE_FILENAME BindMount() 1450 | '/legato' is already mounted.

```

`df -h`:

```
root@swi-mdm9x28-wp:~/logread# df -h
Filesystem Size Used Available Use% Mounted on
devtmpfs 256.0K 4.0K 252.0K 2% /dev
/dev/mapper/rt 16.3M 16.3M 0 100% /
mdev 256.0K 4.0K 252.0K 2% /dev
tmpfs 76.3M 0 76.3M 0% /dev/shm
tmpfs 76.3M 0 76.3M 0% /run
tmpfs 76.3M 40.0K 76.2M 0% /var
tmpfs 76.3M 24.0K 76.2M 0% /tmp
mdev 256.0K 4.0K 252.0K 2% /dev
tmpfs 76.3M 0 76.3M 0% /dev/shm
tmpfs 76.3M 0 76.3M 0% /run
tmpfs 76.3M 40.0K 76.2M 0% /var
tmpfs 76.3M 24.0K 76.2M 0% /tmp
/dev/ubi3_0 104.5M 1.7M 98.1M 2% /mnt/flash
/dev/ubiblock2_0 3.8M 3.8M 0 100% /mnt/legato
/dev/ubi4_0 8.7M 68.0K 8.1M 1% /mnt/userrw
overlay 104.5M 1.7M 98.1M 2% /etc
overlay 104.5M 1.7M 98.1M 2% /data
overlay 104.5M 1.7M 98.1M 2% /lib/firmware
/dev/ubi3_0 104.5M 1.7M 98.1M 2% /home
/dev/ubiblock1_0 24.8M 24.8M 0 100% /firmware
/dev/ubi3_0 104.5M 1.7M 98.1M 2% /legato
tmpfs 76.3M 24.0K 76.2M 0% /etc/ld.so.conf
tmpfs 76.3M 24.0K 76.2M 0% /etc/ld.so.cache
tmpfs 76.3M 24.0K 76.2M 0% /etc/hosts
tmpfs 76.3M 24.0K 76.2M 0% /etc/resolv.conf

```

I see here that two entries are missing compared to when the legato framework starts properly. The following two entries are at the end of the previous list when legato starts successfully:

```
cgroupsRoot 77.6M 0 77.6M 0% /sys/fs/cgroup
/dev/ubi3_0 104.5M 2.0M 97.8M 2% /legato/systems/current

```

Note that none of my apps are installed as I tried to reproduce with the base system.

If I do `legato start`, the framework will be launched and everything will work properly, so I’m considering having a script running outside of legato to make sure it’s always launched:

```
root@swi-mdm9x28-wp:~/logread# legato start
Starting Legato...
update-ld-cache: Updating ld.so.cache using [/legato/systems/current/lib]...
update-ld-cache: Updating /etc/ld.so.cache ...
update-ld-cache: Removing stale mount [/etc/ld.so.cache]...

```

Thanks for your help,  
Best regards,  
Ben

---

<div class="post-metadata">

**Author:** ![ben.o](https://avatars.discourse-cdn.com/v4/letter/b/2bfe46/32.png) [@ben.o](https://forum.legato.io/u/ben.o)\
**Post date:** [February 18, 2019, 2:16pm UTC](https://forum.legato.io/t/wp7607-1-legato-doesnt-start-after-reboot/4104/2 "2019-02-18T14:16:13Z")

</div>

Hello,

Any news on this issue?

Thanks for your help,  
Best regards

---

<div class="post-metadata">

**Author:** ![plu](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@plu](https://forum.legato.io/u/plu)\
**Post date:** [February 26, 2019, 10:40am UTC](https://forum.legato.io/t/wp7607-1-legato-doesnt-start-after-reboot/4104/3 "2019-02-26T10:40:00Z")

</div>

Hi @ben.o,  
I think what you observe is linked to the rool back feature.

> **[App/System Configuration - Legato Docs](https://docs.legato.io/latest/conceptsConfig.html)**
>
> legato™ is an open source Linux-based embedded platform designed to simplify connected IoT application development

when you update your device with a new system, this mechanism is used to recover the device in case an unexpected crash or resets or when the probation of the new system is reached.

in your case, if your device is running the “golden system”, and unexpected resets happen, this leads to stop the legato framework.

how many resets happen and with which frequency?  
best regards,

---

<div class="post-metadata">

**Author:** ![ben.o](https://avatars.discourse-cdn.com/v4/letter/b/2bfe46/32.png) [@ben.o](https://forum.legato.io/u/ben.o)\
**Post date:** [February 26, 2019, 11:53am UTC](https://forum.legato.io/t/wp7607-1-legato-doesnt-start-after-reboot/4104/4 "2019-02-26T11:53:41Z")

</div>

Hi @plu

I’ve noticed this issue first using my system, then using the default system after erasing everything and putting back only official firmware and system.

Number of resets may vary, several between 10 and 50 I suppose. Frequency depends on me writing `reboot` every time I have a chance. I can usually reproduce in less than 30 min.

Thanks for your support,  
Best regards,  
Ben

---

<div class="post-metadata">

**Author:** ![plu](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@plu](https://forum.legato.io/u/plu)\
**Post date:** [March 7, 2019, 9:46am UTC](https://forum.legato.io/t/wp7607-1-legato-doesnt-start-after-reboot/4104/5 "2019-03-07T09:46:42Z")

</div>

Hi @ben.o,  
regarding your use case I think you enter the case I described.  
are you testing reset for stress tests purpose or is it the common way you proceed when dealing with the device?  
best regards

---

<div class="post-metadata">

**Author:** ![ben.o](https://avatars.discourse-cdn.com/v4/letter/b/2bfe46/32.png) [@ben.o](https://forum.legato.io/u/ben.o)\
**Post date:** [March 14, 2019, 3:47pm UTC](https://forum.legato.io/t/wp7607-1-legato-doesnt-start-after-reboot/4104/7 "2019-03-14T15:47:35Z")

</div>

Hi @plu,

Yes this test was for stress test purpose. It would be the common way though as I plan to use the reboot command from airvantage if needed.

Can this issue happen on a power on reset?

Thanks for your help,  
Best regards,  
Ben

---

<div class="post-metadata">

**Author:** ![plu](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@plu](https://forum.legato.io/u/plu)\
**Post date:** [March 15, 2019, 12:57pm UTC](https://forum.legato.io/t/wp7607-1-legato-doesnt-start-after-reboot/4104/8 "2019-03-15T12:57:36Z")

</div>

Hi @ben.o,  
yes this could happen on a power or reset , if several one occur within 60 seconds of boot-up;  
Some improvements are included in more recent releases, I suggest you move on the last available one on the source website.  
Best regards,

---

<div class="post-metadata">

**Author:** ![ben.o](https://avatars.discourse-cdn.com/v4/letter/b/2bfe46/32.png) [@ben.o](https://forum.legato.io/u/ben.o)\
**Post date:** [March 18, 2019, 9:37am UTC](https://forum.legato.io/t/wp7607-1-legato-doesnt-start-after-reboot/4104/9 "2019-03-18T09:37:15Z")

</div>

Hi @plu,

I tried to install the latest package when it went available (I’m using developer studio on windows). Unfortunately the package didn’t compile, I didn’t have time to dig into that so had to stay with the previous release.

---

<div class="post-metadata">

**Author:** ![plu](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@plu](https://forum.legato.io/u/plu)\
**Post date:** [March 18, 2019, 12:54pm UTC](https://forum.legato.io/t/wp7607-1-legato-doesnt-start-after-reboot/4104/10 "2019-03-18T12:54:04Z")

</div>

Hi @ben.o,  
do you remember which version it was?  
Best regards

---

<div class="post-metadata">

**Author:** ![ben.o](https://avatars.discourse-cdn.com/v4/letter/b/2bfe46/32.png) [@ben.o](https://forum.legato.io/u/ben.o)\
**Post date:** [March 18, 2019, 1:33pm UTC](https://forum.legato.io/t/wp7607-1-legato-doesnt-start-after-reboot/4104/11 "2019-03-18T13:33:24Z")

</div>

Hi @plu,

The version I failed to compile is **18.10.3.wp76xx-docker-201903041325**.

The version I’m currently working with is **18.6.3.wp76xx-docker-201810311826**.

I’m using developer studio **5.3.1.201802071201** to download, install and compile.

Thanks for your help,  
Best regards

---

<div class="post-metadata">

**Author:** ![plu](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@plu](https://forum.legato.io/u/plu)\
**Post date:** [March 21, 2019, 8:29am UTC](https://forum.legato.io/t/wp7607-1-legato-doesnt-start-after-reboot/4104/12 "2019-03-21T08:29:37Z")

</div>

Hi @ben.o,  
we did not reproduce this issue. if you face again such behavior, could you please share with us the log from devstudio, to investigate?  
best regards

---

<div class="post-metadata">

**Author:** ![ben.o](https://avatars.discourse-cdn.com/v4/letter/b/2bfe46/32.png) [@ben.o](https://forum.legato.io/u/ben.o)\
**Post date:** [March 21, 2019, 9:58am UTC](https://forum.legato.io/t/wp7607-1-legato-doesnt-start-after-reboot/4104/13 "2019-03-21T09:58:22Z")

</div>

[compilationLogs.txt](https://forum.legato.io/uploads/short-url/1MfMOUVlRmG2xfsJHcIMU9NBzsV.txt) (83.2 KB)  
Hi @plu,

I tried to create a new empty project using **18.10.3.wp76xx-docker-201903041325** and had the same issues than when I was trying to port my project, getting several **Operation not permitted**.

Please find the logs enclosed.

Thanks for your help,  
Best regards

---

<div class="post-metadata">

**Author:** ![daav](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/daav/32/64_2.png) [@daav](https://forum.legato.io/u/daav)\
**Post date:** [March 22, 2019, 9:05am UTC](https://forum.legato.io/t/wp7607-1-legato-doesnt-start-after-reboot/4104/14 "2019-03-22T09:05:10Z")

</div>

Hi @ben.o

this behavior was already reported to us.  
it looks like the image is generated anyway in that case… please can you give a try and install it to verify if it’s functional anyway?

---

<div class="post-metadata">

**Author:** ![ben.o](https://avatars.discourse-cdn.com/v4/letter/b/2bfe46/32.png) [@ben.o](https://forum.legato.io/u/ben.o)\
**Post date:** [May 13, 2019, 12:19pm UTC](https://forum.legato.io/t/wp7607-1-legato-doesnt-start-after-reboot/4104/15 "2019-05-13T12:19:44Z")

</div>

Hi @daav,

Is there any fix for the compilation problem using latest release?

The image generated seems functional but an error is generated at each compilation, I’m not sure about the impact of it.

Thanks for your help,  
Best regards  
Ben

---

<div class="post-metadata">

**Author:** ![Kalai](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/kalai/32/1135_2.png) [@Kalai](https://forum.legato.io/u/Kalai)\
**Post date:** [March 1, 2023, 7:57am UTC](https://forum.legato.io/t/wp7607-1-legato-doesnt-start-after-reboot/4104/16 "2023-03-01T07:57:21Z")

</div>

HI,am trying to install the new update file in the system, but getting the following error  
Applying update from file ‘./Test.wp76xx.update’ to device at address ‘192.168.2.2’.  
Update failed  
Systems installed:  
252 [good] ← current  
Legato framework is NOT running

when i isssue the legato commands , getting response as

egato start  
Starting Legato…  
cp: can’t stat ‘/etc/resolv.conf’: No such file or directory  
mount: mounting /tmp/resolv.conf on /etc/resolv.conf failed: No such file or directory

legato stop  
umount: can’t unmount /legato/smack: Invalid argument  
Legato wasn’t running.

Filesystem 1K-blocks Used Available Use% Mounted on  
devtmpfs 256 8 248 3% /dev  
/dev/mapper/rt 26624 26624 0 100% /  
mdev 256 8 248 3% /dev  
tmpfs 78064 0 78064 0% /dev/shm  
tmpfs 78064 4 78060 0% /run  
tmpfs 78064 36 78028 0% /var  
tmpfs 78064 64 78000 0% /tmp  
mdev 256 8 248 3% /dev  
tmpfs 78064 0 78064 0% /dev/shm  
tmpfs 78064 4 78060 0% /run  
tmpfs 78064 36 78028 0% /var  
tmpfs 78064 64 78000 0% /tmp  
/dev/mapper/rt 26624 26624 0 100% /usr/share/zoneinfo/localtime  
/dev/ubi3\_0 107036 107032 0 100% /mnt/flash  
/dev/ubiblock2\_0 5120 5120 0 100% /mnt/legato  
/dev/ubi4\_0 8860 116 8228 1% /mnt/userrw  
tmpfs 78064 64 78000 0% /etc/timezone  
/dev/ubi3\_0 107036 107032 0 100% /home  
/dev/ubiblock1\_0 25344 25344 0 100% /firmware  
/dev/ubi3\_0 107036 107032 0 100% /legato  
tmpfs 78064 64 78000 0% /etc/ld.so.conf  
tmpfs 78064 64 78000 0% /etc/dnsmasq.d  
tmpfs 78064 64 78000 0% /etc/legato  
tmpfs 78064 64 78000 0% /etc/dnsmasq.d  
tmpfs 78064 64 78000 0% /etc/legato  
tmpfs 78064 64 78000 0% /etc/ld.so.cache  
tmpfs 78064 64 78000 0% /etc/hosts

how to resolve the issue

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [March 1, 2023, 8:11am UTC](https://forum.legato.io/t/wp7607-1-legato-doesnt-start-after-reboot/4104/17 "2023-03-01T08:11:18Z")

</div>

no idea why your module is not running legato framework  
have you downloaded the latest FW?

---

<div class="post-metadata">

**Author:** ![Kalai](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/kalai/32/1135_2.png) [@Kalai](https://forum.legato.io/u/Kalai)\
**Post date:** [March 1, 2023, 9:01am UTC](https://forum.legato.io/t/wp7607-1-legato-doesnt-start-after-reboot/4104/18 "2023-03-01T09:01:06Z")

</div>

legato version is 19.11.2\_6cf25b79d6c72faaebdebcd54c8613fc

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [March 1, 2023, 9:02am UTC](https://forum.legato.io/t/wp7607-1-legato-doesnt-start-after-reboot/4104/19 "2023-03-01T09:02:51Z")

</div>

can you download to R13.3 and then back to R16.0.1 and see if the legato framework can be started?

---

<div class="post-metadata">

**Author:** ![Kalai](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/kalai/32/1135_2.png) [@Kalai](https://forum.legato.io/u/Kalai)\
**Post date:** [March 1, 2023, 9:06am UTC](https://forum.legato.io/t/wp7607-1-legato-doesnt-start-after-reboot/4104/20 "2023-03-01T09:06:26Z")

</div>

ok thanks will check

---

<div class="post-metadata">

**Author:** ![Kalai](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/kalai/32/1135_2.png) [@Kalai](https://forum.legato.io/u/Kalai)\
**Post date:** [March 7, 2023, 4:59am UTC](https://forum.legato.io/t/wp7607-1-legato-doesnt-start-after-reboot/4104/21 "2023-03-07T04:59:38Z")

</div>

hi in wp7608, legato view is not displaying for SWI-WP76\_5.0.6.why this problem arrives , and in which version we can see legato view

**WP76xx Firmware Release 16** is compatable with WP7608?

[Next page](https://forum.legato.io/t/wp7607-1-legato-doesnt-start-after-reboot/4104.md?page=2)
