Legato crashes / Unmounted and No legato commands available after adding 10 applications

Hi There ,
I was trying to add around 10 applications (GPS,GSM,CAN,WIFi,tracker etc ) to my legato framework using default.sdef file . But unfortunately when i flash the compiled image the legato crashes and i wont be able to pass any legato commands . On the other end if i randomly mute any one of the application and flash the compiled image the legato framework as well as the applications run seamlessly . So can anyone let me know if there is any limit to the number of apps that can be added in sdef file or the issue is related to the memory/CPU usage of applications . Any pointers are appreciated .

Legato framework version used : 18.06.3
Module Used : WP7608

Also attaching the logs from console legato_crashed.txt (20.5 KB) this could help in analyzing the issue .

More importantly below lines from the logs could help in analyzing the issue .

S02mount_early: Executing mount_early_legato_start **
sh: 200: unknown operand
mount Legato from partition lefwkro
S02mount_early: Non-secure.
[ 6.833567] ubi2 error: ubi_wl_init: no enough physical eraseblocks (0, need 1)
[ 6.840190] ubi2 error: ubi_attach_mtd_dev: failed to attach mtd14, error -28
ubiattach: error!: cannot attach mtd14
** error 28 (No space left on device)

S02mount_early: Unable to attach mtd partition lefwkro to UBI logical device 2
It is not dual system logic
S02mount_early: Unable to find a way to mount lefwkro to /mnt/legato
S02mount_early: Executing mount_early_userrw_start
S02mount_early: Mounting swirw file system as UBIFS

On the other end when i add less than 9 apps and both legato + application run seamlessly i have the below logs .

**S02mount_early: Executing mount_early_legato_start **
sh: 200: unknown operand
mount Legato from partition lefwkro
S02mount_early: Non-secure.
UBI device number 2, total 35 LEBs (8888320 bytes, 8.5 MiB), available 0 LEBs (0 bytes), LEB size 253952 bytes (248.0 KiB)
S02mount_early: SQUASHFS successfully mounted on /mnt/legato
S02mount_early: Executing mount_early_userrw_start
S02mount_early: Mounting swirw file system as UBIFS

In the above logs we have available LEB’s =0 . As i am new to this part can some one let me know that i am running out of free space / this is a different kind of issue ?
Please let me know if any details required for further analysis

Thanks & Regards

  • Akshay

Hi @Akshaysk,

Can you confirm that you created a .cwe or .spk file and programmed that onto the device? I think if that’s the case, then you likely ran out of flash space. If you programmed using a .update file, then this is an issue that I haven’t seen before.

Hi @dfrey ,
Thanks for the response .
Basically that was an issue with the legato.cwe file which was more than 9MB because of which i ran out of flash space .

hi, am unable to install the new updated file, am geeting the following error

Nov 4 09:48:08 swi-mdm9x28-wp user.info Legato: INFO | updateDaemon[11245]/updateDaemon T=main | updateDaemon.c le_update_Start() 2086 | Update request accepted.
Nov 4 09:48:08 swi-mdm9x28-wp user.crit Legato: CRT | updateDaemon[3127]/framework T=main | user.c MakeBackup() 363 | Error while copying file ‘/etc/group.bak’ from ‘/etc/group’. (No space left on device)
Nov 4 09:48:08 swi-mdm9x28-wp user.emerg Legato: EMR | updateDaemon[3127]/updateDaemon T=main | updateDaemon.c SecurityUnpack() 305 | Can’t create user: SecurityUnpack
Nov 4 09:48:08 swi-mdm9x28-wp user.err Legato: =ERR= | updateDaemon[11245]/updateDaemon T=main | updateUnpack.c JsonErrorHandler() 321 | Error reading update pack (Read error flags set: POLLHUP (at line 1))
Nov 4 09:48:08 swi-mdm9x28-wp user.err Legato: =ERR= | updateDaemon[11245]/updateDaemon T=main | updateDaemon.c UpdateFailed() 415 | Update failed!!
Nov 4 09:48:08 swi-mdm9x28-wp user.crit Legato: CRT | updateDaemon[11245]/updateDaemon T=main | updateDaemon.c PipelineDone() 1928 | security-unpack reported a security violation.

how to resolve the issue

you mean even for a simple hello world application?
how about changing FW?
e.g. now you are in R13, you can upgrade to R16 and see if it helps

You can also downgrade to R12 and erase the userapp to default: