Fwupdate target side question

I’m talking about the fwupdate that resides in /legato/systems/current/bin/fwupdate on the yocto target (e.g. WPxxxx).

The command “fwupdate download FILE” appears to install a file that’s already been copied to the yocto target filesytem. e.g. as described below:

  1. Copy mcu-rmfw-boot-yocto-legato_wp85.cwe to FX30 filesystem using scp.
  2. Open a ssh session
  3. Execute fwupdate download mcu-rmfw-boot-yocto-legato_wp85.cwe

That is, it’s not a actually a download as we commonly use the term. Just want to be sure I got this right.

Thanks

Hi piinst,
The Legato command “fwupdate download ” will install the image onto your device.

You’re correct, the term “download” is only performing a local install onto your device and is not pulling anything from the network.

BR,
Chris

1 Like

hi
i cretaed the cwe file through systocwe command and i got two.cwe files one is legato.cwe and the other is legato-squashfs.ubi.cwe , i need to update the cwe to the device . which .cwe file should i use and how to copy the file to the specified FTP Location and need to reaad from the FTP location and install to the device

my legato version is 19.11.2_0605efd89621fc4e2a956917f98c7d61

You can use busybox to ftp download

which cwe file should i use from these two legato-squashfs.ubi.cwe or legato.cwe

Are they the same?
How big are these two files?

legato.cwe file is cretaed as linkage file whereas legato-squashfs.ubi.cwe file size is 7.6 mb

can i get any sample how to download and update the CWE file

Then you should use legato-squashfs.ubi.cwe

yes am using that but getting the following error

Jan 1 07:12:03 swi-mdm9x28-wp user.info Legato: INFO | supervisor[8211]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxCoreDumpFileBytes to value 8192.
Jan 1 07:12:03 swi-mdm9x28-wp user.info Legato: INFO | supervisor[8211]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxFileBytes to value 90112.
Jan 1 07:12:03 swi-mdm9x28-wp user.info Legato: INFO | supervisor[8211]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxLockedMemoryBytes to value 8192.
Jan 1 07:12:03 swi-mdm9x28-wp user.info Legato: INFO | supervisor[8211]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxFileDescriptors to value 256.
Jan 1 07:12:03 swi-mdm9x28-wp user.info Legato: INFO | supervisor[8211]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxMQueueBytes to value 512.
Jan 1 07:12:03 swi-mdm9x28-wp user.info Legato: INFO | supervisor[8211]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxThreads to value 20.
Jan 1 07:12:03 swi-mdm9x28-wp user.info Legato: INFO | supervisor[8211]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxQueuedSignals to value 100.
Jan 1 07:12:03 swi-mdm9x28-wp user.info Legato: INFO | powerManagerService[4064]/powerMgr T=main | le_pm.c OnClientConnect() 270 | Connection from client fwupdateDaemon/4014
Jan 1 07:12:03 swi-mdm9x28-wp user.warn Legato: -WRN- | fwupdateDaemon[4014]/framework T=main | fdMonitor.c le_fdMonitor_Create() 449 | FD Monitor object name ‘fwupdateDaemon.fwupdateDaemon.le_pm’ truncated to ‘fwupdateDaemon.fwupdateDaemon.l’.
Jan 1 07:12:03 swi-mdm9x28-wp user.info Legato: INFO | powerManagerService[4064]/powerMgr T=main | le_pm.c le_pm_NewWakeupSource() 509 | Created new wakeup source ‘legato_FWUpdate_fwupdateDaemon’ for pid 4014.
Jan 1 07:12:03 swi-mdm9x28-wp user.info Legato: INFO | fwupdateDaemon[4014]/le_pa_fwupdate T=main | pa_fwupdate_qmi.c pa_fwupdate_OpenSwifota() 2167 | Open SWIFOTA partition
Jan 1 07:12:03 swi-mdm9x28-wp user.info Legato: INFO | fwupdateDaemon[4014]/le_pa_fwupdate_singlesys T=main | pa_flash_mtd.c pa_flash_GetInfo() 231 | MTD 6 “swifota”: size 4f40000 (nbBlk 317), writeSize 1000, eraseSize 40000
Jan 1 07:12:03 swi-mdm9x28-wp user.info Legato: INFO | fwupdateDaemon[4014]/le_pa_fwupdate_singlesys T=main | pa_flash_mtd.c pa_flash_Scan() 505 | MTD 6: LEB 317 PEB 317
Jan 1 07:12:03 swi-mdm9x28-wp user.info Legato: INFO | fwupdateDaemon[4014]/le_pa_fwupdate_singlesys T=main | partition.c partition_OpenSwifotaPartition() 1098 | phyBlock = 2, logicalBlock = 2
Jan 1 07:12:03 swi-mdm9x28-wp user.info Legato: INFO | fwupdateDaemon[4014]/le_pa_fwupdate_singlesys T=main | pa_flash_mtd.c pa_flash_Scan() 505 | MTD 6: LEB 317 PEB 317
Jan 1 07:12:03 swi-mdm9x28-wp user.info Legato: INFO | fwupdateDaemon[4014]/le_pa_fwupdate_singlesys T=main | pa_fwupdate_singlesys.c WriteDwlStatus() 1742 | FW update download status stored.
Jan 1 07:12:03 swi-mdm9x28-wp user.info Legato: INFO | fwupdateDaemon[4014]/le_pa_fwupdate_singlesys T=main | partition.c partition_ComputeDataCrc32SwifotaPartition() 1366 | Offset 190 size 0 CRC ffffffff
Jan 1 07:12:03 swi-mdm9x28-wp user.err Legato: =ERR= | fwupdateDaemon[4014]/le_pa_fwupdate_singlesys T=main | pa_fwupdate_singlesys.c pa_fwupdate_Download() 2301 | Failure while computing global CRC
Jan 1 07:12:03 swi-mdm9x28-wp user.info Legato: INFO | fwupdateDaemon[4014]/le_pa_fwupdate T=main | pa_fwupdate_qmi.c pa_fwupdate_CloseSwifota() 2216 | Close SWIFOTA partition
Jan 1 07:12:03 swi-mdm9x28-wp user.info Legato: INFO | fwupdateDaemon[4014]/le_pa_fwupdate_singlesys T=main | pa_fwupdate_singlesys.c WriteDwlStatus() 1742 | FW update download status stored.
Jan 1 07:12:03 swi-mdm9x28-wp user.warn Legato: -WRN- | fwupdateDaemon[4014]/le_pa_fwupdate_singlesys T=main | partition.c partition_WriteSwifotaPartition() 1396 | Closing and releasing MTD due to forceClose
Jan 1 07:12:03 swi-mdm9x28-wp user.warn Legato: -WRN- | fwupdateDaemon[4014]/le_pa_fwupdate_singlesys T=main | partition.c partition_CloseSwifotaPartition() 1155 | Closing and releasing MTD due to forceClose
Jan 1 07:12:03 swi-mdm9x28-wp user.info Legato: INFO | powerManagerService[4064]/powerMgr T=main | le_pm.c OnClientDisconnect() 298 | Client pid 4014 disconnected.
Jan 1 07:12:03 swi-mdm9x28-wp user.warn Legato: -WRN- | powerManagerService[4064]/powerMgr T=main | le_pm.c OnClientDisconnect() 315 | Releasing wakeup source ‘legato_FWUpdate_fwupdateDaemon’ on behalf of fwupdateDaemon/4014.
Jan 1 07:12:03 swi-mdm9x28-wp user.info Legato: INFO | powerManagerService[4064]/powerMgr T=main | le_pm.c OnClientDisconnect() 323 | Deleting wakeup source ‘legato_FWUpdate_fwupdateDaemon’ on behalf of pid 4014.
Jan 1 07:12:03 swi-mdm9x28-wp user.info Legato: INFO | supervisor[3907]/supervisor T=main | proc.c proc_SigChildHandler() 2079 | Process ‘fwupdate@0’ (PID: 8211) has exited with exit code 1.
Jan 1 07:12:03 swi-mdm9x28-wp user.warn Legato: -WRN- | supervisor[3907]/supervisor T=main | app.c app_SigChildHandler() 4066 | Process ‘fwupdate@0’ in app ‘tools’ faulted: Ignored.
Jan 1 07:12:03 swi-mdm9x28-wp user.info Legato: INFO | supervisor[3907]/supervisor T=main | app.c app_StopComplete() 4753 | app ‘tools’ has stopped.
Jan 1 07:12:03 swi-mdm9x28-wp user.info Legato: INFO | supervisor[3907]/supervisor T=main | apps.c DeactivateAppContainer() 374 | Application ‘tools’ has stopped.

You can use “fwupdate download xxx.cwe” to upgrade fw

That means your cwe has problem

how to rectify the issue

You should use “make wp76xx” to build the legato cwe