Legato entering ULPM soon after startup

Hi,

My mangoH wp7702 have a strange behavior which might be caused by legato.

On startup, after a few seconds, the module enters ultra low power mode, and then stays in that state.

Here is the log on shutdown :

[   33.304834] ctrl resp queue empty  reqa1.01 v0000 i0008 l4096
[   37.181842] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:2) mode:FIFO slv_addr:0x3a MSTR_STS:0x0c1300c8 OPER:0x00000090
[   48.604867] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:2) mode:FIFO slv_addr:0x3a MSTR_STS:0x0c1300c8 OPER:0x00000090
[   48.623672] swimcu_pm_wusrc_config: check statep->gpio_pin_mask 0x0 
[   48.634478] pm_set_mcu_ulpm_enable: wakeup source setup mask=0x2
rcK: Executing run_K_scripts... 
Stopping linkmon: no linkmon found; none killed
done
Stopping port_bridge: no port_bridge found; none killed
Stopping qmi_ip: no qmi_ip_multiclient found; none killed
Stopping netmgrd: stopped netmgrd (pid 1186)
done
Stopping qmuxd: stopped qmuxd (pid 1075)
done
no QCMAP_ConnectionManager found; none killed
Stopping fs-scrub-daemon: no fs-scrub-daemon found; none killed
Stopping thermal-engine: stopped thermal-engine (pid 1088)
done
stopped qti (pid 1405)
Stopping reboot daemon: stopped reboot-daemon (pid 1044)
done
Legato shutdown sequence
Stopping Legato.
DONE.
Finished Legato stop Sequence
stopping time daemon
Stopping time_services: stopped time_daemon (pid 613)
done
stopping ntpd
no ntpd found; none killed
Stopping diagrebootapp: stopped diagrebootapp (pid 605)
done
stopping DNS forwarder and DHCP server: dnsmasq... stopped /usr/bin/dnsmasq (pid 1382)
done.
Deconfiguring network interfaces... ifdown: interface eth0 not configured
done.
Stopping syslogd/klogd: stopped syslogd (pid 591)
stopped klogd (pid 596)
done
Stopping Dropbear SSH server: stopped /usr/sbin/dropbear (pid 1325)
dropbear.
K96mount_unionfs: RO rootfs fudge allowed.
Stopping system message bus: dbus.
K98mount_early: Executing mount_early_user_stop... 
K98mount_early: RO rootfs fudge allowed.
sh: /mnt/flash: unknown operand
K98mount_early: Executing mount_early_legato_stop... 
Can't get valid SMEM, init DSSD SMEM
Linux sub system 1
K98mount_early: Executing mount_early_userrw_stop... 
rcK: Executing kill_all_proc... 
rcK: Executing umount_fs_generic... 
rcK: Executing print_shutdown_msg... 
** SYSTEM SHUTDOWN COMPLETE **

The system is going down NOW!

Sent SIGTERM to all processes
[   58.320798] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister bridge0
[   58.350565] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister bridge0

Sent SIGKILL to all processes

Requesting system poweroff
[   60.290160] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:14) mode:FIFO slv_addr:0x3a MSTR_STS:0x0c1300c8 OPER:0x00000090
[   60.317286] reboot: Power down
[   60.319380] Failed to disable secure wdog debug: -4
[   60.324763] Calling SCM to disable SPMI PMI@@$BI$mIs?x<ff6[[k

I have tried several reflash of the device, including flashing new firmwares using swiflash. I tried legato 18.06.0 and 18.09.2. I re-flashed the linux system too.

I tried to remove legato with the following command :

legato stop
rm /mnt/flash/legato/*
reboot

But the device is still stuck with the same behavior, entering almost immediately ULPM.

Any thoughts on what may be causing this ?

Thanks for reading,

What is the value of at!powermode?

1 Like

Thanks for your answer.

Here is the returned value :

AT!POWERMODE?
!POWERMODE: No request, status=2-Initialized
OK

how about setting AT!POWERMODE=0

1 Like

This was the solution, the problem is gone now.

Thanks again for your help !