# Fwupdate target side question

**URL:** <https://forum.legato.io/t/fwupdate-target-side-question/4429>\
**Category:** Uncategorized\
**Created:** [June 17, 2019, 1:50pm UTC](https://forum.legato.io/t/fwupdate-target-side-question/4429 "2019-06-17T13:50:49Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![piinst](https://avatars.discourse-cdn.com/v4/letter/p/919ad9/32.png) [@piinst](https://forum.legato.io/u/piinst)\
**Post date:** [June 17, 2019, 1:50pm UTC](https://forum.legato.io/t/fwupdate-target-side-question/4429/1 "2019-06-17T13:50:49Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![cchenry](https://avatars.discourse-cdn.com/v4/letter/c/a183cd/32.png) [@cchenry](https://forum.legato.io/u/cchenry)\
**Post date:** [June 19, 2019, 12:16am UTC](https://forum.legato.io/t/fwupdate-target-side-question/4429/2 "2019-06-19T00:16:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Kalai](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/kalai/32/1135_2.png) [@Kalai](https://forum.legato.io/u/Kalai)\
**Post date:** [October 7, 2021, 12:37pm UTC](https://forum.legato.io/t/fwupdate-target-side-question/4429/3 "2021-10-07T12:37:06Z")

</div>

> [@piinst](#):
>
> already

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

---

<div class="post-metadata">

**Author:** ![Kalai](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/kalai/32/1135_2.png) [@Kalai](https://forum.legato.io/u/Kalai)\
**Post date:** [October 7, 2021, 12:39pm UTC](https://forum.legato.io/t/fwupdate-target-side-question/4429/4 "2021-10-07T12:39:18Z")

</div>

my legato version is 19.11.2\_0605efd89621fc4e2a956917f98c7d61

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [October 7, 2021, 12:41pm UTC](https://forum.legato.io/t/fwupdate-target-side-question/4429/5 "2021-10-07T12:41:36Z")

</div>

You can use busybox to ftp download

> [@FTP file creation](https://forum.legato.io/t/ftp-file-creation/3469/2):
>
> Maybe you can try this busybox for ftpget command and see if it works for you.[busybox-armv5l\_1.26](https://forum.legato.io/uploads/short-url/xUdxtSxERe1qEpAdYxqO7SkmhdZ.26) (1.1 MB) ./busybox-armv5l\_1.26 ftpget 123.123.123.123 --username USER --password PASSWORD --port 21 --verbose data.txt

---

<div class="post-metadata">

**Author:** ![Kalai](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/kalai/32/1135_2.png) [@Kalai](https://forum.legato.io/u/Kalai)\
**Post date:** [October 7, 2021, 12:43pm UTC](https://forum.legato.io/t/fwupdate-target-side-question/4429/6 "2021-10-07T12:43:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [October 7, 2021, 12:43pm UTC](https://forum.legato.io/t/fwupdate-target-side-question/4429/7 "2021-10-07T12:43:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Kalai](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/kalai/32/1135_2.png) [@Kalai](https://forum.legato.io/u/Kalai)\
**Post date:** [October 7, 2021, 12:46pm UTC](https://forum.legato.io/t/fwupdate-target-side-question/4429/8 "2021-10-07T12:46:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Kalai](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/kalai/32/1135_2.png) [@Kalai](https://forum.legato.io/u/Kalai)\
**Post date:** [October 7, 2021, 12:49pm UTC](https://forum.legato.io/t/fwupdate-target-side-question/4429/9 "2021-10-07T12:49:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [October 7, 2021, 12:55pm UTC](https://forum.legato.io/t/fwupdate-target-side-question/4429/10 "2021-10-07T12:55:03Z")

</div>

Then you should use legato-squashfs.ubi.cwe

---

<div class="post-metadata">

**Author:** ![Kalai](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/kalai/32/1135_2.png) [@Kalai](https://forum.legato.io/u/Kalai)\
**Post date:** [October 7, 2021, 12:55pm UTC](https://forum.legato.io/t/fwupdate-target-side-question/4429/11 "2021-10-07T12:55:40Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [October 7, 2021, 12:55pm UTC](https://forum.legato.io/t/fwupdate-target-side-question/4429/12 "2021-10-07T12:55:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [October 7, 2021, 12:56pm UTC](https://forum.legato.io/t/fwupdate-target-side-question/4429/13 "2021-10-07T12:56:50Z")

</div>

That means your cwe has problem

---

<div class="post-metadata">

**Author:** ![Kalai](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/kalai/32/1135_2.png) [@Kalai](https://forum.legato.io/u/Kalai)\
**Post date:** [October 7, 2021, 12:57pm UTC](https://forum.legato.io/t/fwupdate-target-side-question/4429/14 "2021-10-07T12:57:23Z")

</div>

how to rectify the issue

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [October 7, 2021, 12:58pm UTC](https://forum.legato.io/t/fwupdate-target-side-question/4429/15 "2021-10-07T12:58:02Z")

</div>

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