Factory reset FX30 into a strange state

Hi,

I factory reset a FX30 which runs FX30_WP77xx_full_R15.0.4.001. The device goes to a strange state and cannot update firmware afterwards.

Whe the device is logged in, it pops up two warning lines as below,

root@192.168.2.2's password:
touch: /mnt/flash/config/system/etc/noLoginNag: Read-only file system
touch: /mnt/flash/config/system/etc/noLoginNag: Read-only file system

If I update the firmware, I straight away get the error on PC side like below,

$ fwupdate download installers/FX30_WP77xx_full_R15.0.4.001_62a8f41c-telstra-SWI9X06Y_02.36.08.02.cwe

root@192.168.2.2's password: 

cat: write error: Broken pipe

And the log on device side:

root@fx30:~# logread -f
Aug 22 15:25:17 fx30 user.warn Legato: -WRN- | _UNKNOWN_[3259]/framework T=main | fs.c fs_Init() 888 | Failed to access "/data/le_fs/": Read-only file system
Aug 22 15:25:17 fx30 user.info Legato:  INFO | supervisor[1497]/supervisor T=main | app.c app_Create() 3376 | Creating app 'tools'
Aug 22 15:25:17 fx30 user.info Legato:  INFO | supervisor[1497]/supervisor T=main | app.c app_Start() 3589 | Starting app 'tools'
Aug 22 15:25:17 fx30 user.err Legato: =ERR= | supervisor[1497]/framework T=main | dir.c dir_MakeSmack() 42 | Could not create directory '/legato/systems/current/appsWriteable/tools'.  Read-only file system
Aug 22 15:25:17 fx30 user.err Legato: =ERR= | supervisor[1497]/supervisor T=main | app.c app_Start() 3621 | Failed to set Smack rules or set up app area.
Aug 22 15:25:17 fx30 user.info Legato:  INFO | supervisor[1497]/supervisor T=main | supervisor.c SigChildHandler() 885 | Reaping unconfigured child process 3264.
^C

Also no luck with swiFlash,

$ swiflash -m "fx30_catm" -r

Detecting USB of the target

DONE

Communicating with the target

DONE

Switching to firmware download mode

..............................ERROR: Failed to enter download mode

Any thoughts and suggestions how to bring the FX30 back? I wish I don’t have to open the FX30.

Thanks.

module can enter download mode after typing AT!BOOTHOLD
after that you can download FW by swiflash in linux or fdt tool in windows

Please note that the “-r” option can only be used in old FW of WP77:

Thanks @jyijyi. Followed one of your suggestions in the thread and erase the userapp brings the device back to normal.

login as: root
root@192.168.2.2's password:
touch: /mnt/flash/config/system/etc/noLoginNag: Read-only file system
touch: /mnt/flash/config/system/etc/noLoginNag: Read-only file system
root@fx30:~# cat /proc/mtd|grep userapp -i
mtd16: 08300000 00040000 "userapp"
root@fx30:~# flash_eraseall /dev/mtd16
flash_eraseall has been replaced by `flash_erase <mtddev> 0 0`; please use it
Erasing 134144 Kibyte @ 0 --  0 % complete libmtd: error!: MEMERASE64 ioctl failed for eraseblock 0 (mtd16)
        error 22 (Invalid argument)
flash_erase: error!: /dev/mtd16: MTD Erase entire chip failureTrying one by one each sector.
             error 22 (Invalid argument)
Erasing 256 Kibyte @ 82c0000 -- 100 % complete