FX30S can`t update apps and run out of space on fs

I am having an odd problem with a FX30S, I have been running a system I have built with legato for a while, then trying to solve a problem with the modemService not running properly, I have tried to download the firmware for the R13 (Sierra Wireless — GCF)

From there anything started to go wrong…
Initially the legato in target was gone, together with all the apps, I did manage to re-install the FX30S catm R11 which I was using, but still having odd problems.
-ssh command was occasionally hanging
-when connecting through ssh the device said there was no space to save password
-couldn`t install any app from the linux environment anymore.

It seems that the fs is full (100%):
root@fx30s:~# df -h
Filesystem Size Used Available Use% Mounted on
devtmpfs 256.0K 8.0K 248.0K 3% /dev
/dev/mapper/rt 17.3M 17.3M 0 100% /
mdev 256.0K 8.0K 248.0K 3% /dev
tmpfs 91.2M 0 91.2M 0% /dev/shm
tmpfs 91.2M 0 91.2M 0% /run
tmpfs 91.2M 40.0K 91.2M 0% /var
tmpfs 91.2M 380.0K 90.9M 0% /tmp
mdev 256.0K 8.0K 248.0K 3% /dev
tmpfs 91.2M 0 91.2M 0% /dev/shm
tmpfs 91.2M 0 91.2M 0% /run
tmpfs 91.2M 40.0K 91.2M 0% /var
tmpfs 91.2M 380.0K 90.9M 0% /tmp
/dev/ubi3_0 104.5M 103.7M 0 100% /mnt/flash
/dev/ubiblock2_0 4.0M 4.0M 0 100% /mnt/legato
/dev/ubi4_0 8.7M 68.0K 8.1M 1% /mnt/userrw
overlay 104.5M 103.7M 0 100% /etc
overlay 104.5M 103.7M 0 100% /data
overlay 104.5M 103.7M 0 100% /lib/firmware
/dev/ubi3_0 104.5M 103.7M 0 100% /home
/dev/ubiblock1_0 15.5M 15.5M 0 100% /firmware
/dev/ubi3_0 104.5M 103.7M 0 100% /legato
tmpfs 91.2M 380.0K 90.9M 0% /etc/ld.so.conf
tmpfs 91.2M 380.0K 90.9M 0% /etc/ld.so.cache
tmpfs 91.2M 380.0K 90.9M 0% /etc/hosts
cgroupsRoot 91.4M 0 91.4M 0% /sys/fs/cgroup
/dev/ubi3_0 104.5M 103.7M 0 100% /legato/systems/current
/dev/mapper/rt 17.3M 17.3M 0 100% /usr/share/zoneinfo/localtime

It seems that the firmware is not updating correctly:

root@fx30s:~# fwupdate checkStatus
Connecting to service …
Bad status (Download failed), install not possible.

Possibly because there was not enough space in the fs to handle the install?
So my question is how I recover from this…?

I have a second target and that is only 11% loaded, where I still have 90.2M out of 104.5M available.
Both systems are installed on both targets.

Hi @claudio.baldini,

Your FX30S devices might install R13 WP77 FW, please to check by AT command or send “legato version” command through ssh session. Please note that, although the FX30S device uses WP77 chip, however we should not install WP77 firmware to the FX30S devices, they have their own FW.

Please try below things, it may help to recover.

  1. Please re-install your previous FW as you said : FX30S catm R11, just use the FW for FX30S provided by Sierra here https://source.sierrawireless.com/resources/airlink/software_downloads/fx30-firmware/fx30-firmware/#sthash.ZX729qsG.dpbs

  2. Your issues

    -ssh command was occasionally hanging
    -when connecting through ssh the device said there was no space to save password
    -couldn`t install any app from the linux environment anymore.

    They may cause by FW not corresponding installed on device

  3. After install the previous FW, if your issues still happen, please try to restore device to default with below options
    3.1 Using !RMARESET command, please refer to AT command document page 197 here for detail
    https://source.sierrawireless.com/resources/airprime/software/airprime_wpx5xx_wp76xx_wp77xx_at_command_reference/#sthash.MBnCtR3H.dpbs
    3.2 Using swiflash tool to restore to default, please refer to this link for detail https://source.sierrawireless.com/resources/airprime/software/swiflash/#sthash.FI2aAPh4.dpbs
    Note: The swiflash tool also can help to restore device to default.

Thanks,

Hi Donald,
yes, the problem was with the fs been filled with stuff during development, I have cleaned it a bit and now works all right.
I still see a lot of space been used (53% roughly) while for the second device I only see 11%, so I will probably need to factory reset the device just to start fresh as we have finalized the first stage of the development and we will start testing soon.

AT commands don`t work from from windows prompt, how do I run them?

Hi @claudio.baldini,

You can try to send AT command through ssh session by sending command “microcom dev/ttyAT”

image

Thanks,

I am sending the command from shell:
AT!RMARESET=1
but I keep getting the ERROR reply from the target.

Hi @claudio.baldini,

The !RMARESET command is protected. Please unlock first by !ENTERCND command

Thanks,

Can`t find the default password for this.

Hi ,

Default value is “A710”. Please try

AT!ENTERCND=“A710”

Thanks,

This did work:
root@fx30s:~# microcom /dev/ttyAT
AT!ENTERCND=“A710”
OK
AT!RMARESET=1
!RMARESET: DEVICE REBOOT REQUIRED

Items Restored: 1223
Items Deleted: 65
Items Defaulted: 0
Items Skipped: 5

OK
Connection reset by 192.168.2.2 port 22

But when I ssh into the target after reboot, I still see the apps I installed and which are not part of the standard firmware…

Hi @claudio.baldini,

Yes, the !RMARESET command takes affect to FW, does not result in the Legato application removed.

Please help to tick “Solution” if your issues are solved now :slight_smile:

Thanks,

Hi @Donald, the problem I am having is that I see 56% of the fs is loaded where this should not be the case.
Someone may have loaded files during development which we don`t need anymore, as on the second device I have (with the same apps running) the fs is only 15% loaded.
we would need to start fresh, so to clean everything on this target and to start over, this would include any file and app we have uploaded.
Is there any command which does that?

Hi @claudio.baldini,

we would need to start fresh, so to clean everything on this target and to start over, this would include any file and app we have uploaded.

For this purpose, you can try to restore to the golden legato with below commands through ssh session

legato stop
rm -rf /legato/*
reboot

Thanks,