Problem updating using le_fwupdate_Download / fwudate

Trying to update a WP85 OTA via curl->le_fwupdate fails when the SPK file contains firmware for example

 Type	 Size(Exclude Header)	 Product	 Compress	 Version
*SPKG    60342723                Y912            0               9999999_9904559_SWI9X15Y_07.12.14.00_00_GENERIC_001.034_000
*BOOT    647352                  Y912            0               SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
 SBL1    118524                  9X15            0               SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
 QRPM    104672                  9X15            0               SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
 SBL2    422956                  9X15            0               SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
*MODM    23983614                Y912            0               SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
 DSP1    1861297                 9X15            1               SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
 DSP2    19760285                9X15            1               SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
 DSP3    2360832                 9X15            1               SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
*FILE    43645                   9X15            0               9999999_9904559_SWI9X15Y_07.12.14.00_00_GENERIC_001.034_000
*FILE    15373                   Y912            0               9999999_9999999_MCU_002.004_00_wpx5_00_00
*APPL    32110995                Y912            0               Thu Apr 12 21:18:04 SAST 2018
 SYST    28086773                9X15            1               Thu Apr 12 21:18:04 SAST 2018
 APBL    74564                   9X15            0               Thu Apr 12 21:18:04 SAST 2018
 APPS    3948458                 9X15            1               Thu Apr 12 21:18:04 SAST 2018
*APPL    3539344                 Y912            0               18.02.0 153410b comb-desktop 2018/04/12 13:51:22
 USER    3538944                 9X15            0               18.02.0 153410b comb-desktop 2018/04/12 13:51:22

A file without the firmware succeeds

 Type	 Size(Exclude Header)	 Product	 Compress	 Version
*SPKG    35782330                Y912            0               9999999_9999999_?_?_?_?_?
*APPL    74964                   Y912            0               Sat Apr 14 20:55:42 SAST 2018
 APBL    74564                   9X15            0               Sat Apr 14 20:55:42 SAST 2018
*APPL    32035750                Y912            0               Sat Apr 14 20:55:42 SAST 2018
 SYST    28084803                9X15            1               Sat Apr 14 20:55:42 SAST 2018
 APPS    3950147                 9X15            1               Sat Apr 14 20:55:42 SAST 2018
*APPL    3670416                 Y912            0               18.03.0 deefce7 comb-desktop 2018/04/18 19:28:37
 USER    3670016                 9X15            0               18.03.0 deefce7 comb-desktop 2018/04/18 19:28:37

It also seems that a file with the new MCU firmware fails to apply it but does apply the firmware.

 Type	 Size(Exclude Header)	 Product	 Compress	 Version
*SPKG    24691584                Y912            0               9999999_9904559_SWI9X15Y_07.12.14.00_00_GENERIC_001.034_000
*BOOT    647352                  Y912            0               SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
 SBL1    118524                  9X15            0               SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
 QRPM    104672                  9X15            0               SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
 SBL2    422956                  9X15            0               SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
*MODM    23983614                Y912            0               SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
 DSP1    1861297                 9X15            1               SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
 DSP2    19760285                9X15            1               SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
 DSP3    2360832                 9X15            1               SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
*FILE    43645                   9X15            0               9999999_9904559_SWI9X15Y_07.12.14.00_00_GENERIC_001.034_000
*FILE    15373                   Y912            0               9999999_9999999_MCU_002.004_00_wpx5_00_00

All the above files work fine using swiflash / fdt tools.

Hi,
I checked the latest WP8 release WPx5xx_Release15_RC4_GENERIC_test.spk , it also contains “9999999_9999999_MCU_002.004_00_wpx5_00_00”.


Type Size(Exclude Header) Product Compress Version
*SPKG 56968460 Y912 0 9999999_9904559_SWI9X15Y_07.12.14.00_00_GENERIC_001.034_000
*BOOT 647352 Y912 0 SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
SBL1 118524 9X15 0 SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
QRPM 104672 9X15 0 SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
SBL2 422956 9X15 0 SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
*MODM 23983614 Y912 0 SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
DSP1 1861297 9X15 1 SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
DSP2 19760285 9X15 1 SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
DSP3 2360832 9X15 1 SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
*FILE 43645 9X15 0 9999999_9904559_SWI9X15Y_07.12.14.00_00_GENERIC_001.034_000
*APPL 29964923 Y912 0 Wed Nov 29 21:02:47 PST 2017
SYST 25891769 9X15 1 Wed Nov 29 21:02:47 PST 2017
APBL 74576 9X15 0 Wed Nov 29 21:02:47 PST 2017
APPS 3997378 9X15 1 Wed Nov 29 21:02:47 PST 2017
*FILE 15373 Y912 0 9999999_9999999_MCU_002.004_00_wpx5_00_00
*APPL 2311153 Y912 0 16.10.4 df5b086 jenkins 2017/09/29 20:11:02
USER 2310753 9X15 1 16.10.4 df5b086 jenkins 2017/09/29 20:11:02


Do you mean that you cannot use “fwupdate download WPx5xx_Release15_RC4_GENERIC_test.spk” on the module?
I don’t find problem with my WP8548:


root@swi-mdm9x15:~# cm info
Device: WP8548
IMEI: 359377060004743
FSN: LL536500070203
Firmware: SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
Bootloader: SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
priIdPn: 9904889
priIdRev: 01.11
skuId: 1102621
root@swi-mdm9x15:~#
root@swi-mdm9x15:~# configEcm show
target.ipV4: 192.168.2.2
host.ipV4: 192.168.2.3
netmask.ipV4: 255.255.255.0
DONE
root@swi-mdm9x15:~#
root@swi-mdm9x15:~# cd /tmp
root@swi-mdm9x15:/tmp#
root@swi-mdm9x15:/tmp# ls
WPx5xx_Release15_RC4_GENERIC_test.spk legato
dnsmasq.wlan.conf swisync
root@swi-mdm9x15:/tmp#
root@swi-mdm9x15:/tmp# fwupdate download WPx5xx_Release15_RC4_GENERIC_test.spk
Connecting to service …
Download started …
Download successful;


The problem seems to be that only the firmware section is processed and the mcu/yocto/legato bits are ignored. if i use the firmware file from the download page and send that first i can create a spk consisting of yocto/mcu/legato and fwupdate that it works. it does appear to succeed.

i am not using a mangoh board and have changes to legato and kernel so the default build is not suitable.

using swiflash/fdt i can send the “full” file…

Sorry, a bit confused…
Can you list out the full procedure to reproduce the issue on MangoH board?
Not quite sure how you make the image .spk…

I build yocto / legato and bundle it with swicwe i build various flavors the MCU and FIRMWARE file are downloaded components from source.sierra…

firmware/wp85/comb-full-wp85-$(FW_BUILD_VERSION_WP85).spk: dist/wp85/yocto-img-$(FW_BUILD_VERSION_ROOTFS_WP85)/boot-yocto_wp85.cwe downloads/$(MCUFW_FILE_WPX5XX).cwe dist/wp85/legato-img-$(FW_BUILD_VERSION_WP85)/legatoz-squashfs.ubi.cwe downloads/$(FIRMWARE_FILE_WPX5XX).spk
        swicwe -c $^ -o $@

firmware/wp85/comb-rootfs-wp85-4.%.spk: dist/wp85/yocto-img-$(FW_BUILD_VERSION_ROOTFS_WP85)/boot-yocto_wp85.cwe dist/wp85/legato-img-$(FW_BUILD_VERSION_WP85)/legatoz-squashfs.ubi.cwe
        swicwe -c $^ -o $@

firmware/wp85/comb-rootfs-wp85-%.spk: dist/wp85/yocto-img-$(FW_BUILD_VERSION_ROOTFS_WP85)/boot-yocto_wp85.cwe downloads/$(MCUFW_FILE_WPX5XX).cwe dist/wp85/legato-img-$(FW_BUILD_VERSION_WP85)/legatoz-squashfs.ubi.cwe
        swicwe -c $^ -o $@

The -full- pack works fine with fdt/swiflash and all components are applied. when i try and update a board with older MCU/FW/Yocto/Legato using legato fota le_firmware_download or fwupdate then only the firmware spk bundled in the “full” spk will be applied. i need to then apply the rootfs with the mcu code [rootfs-5] to get it updated.

I tried the following to make a spk file with my legato image and mcu image.

owner@ubuntu:~/Yocto/tools/swicwe_1.9.1/linux64$ sudo ./swicwe -c -o spkg_legato_mcu.spk /home/owner/legato/packages/legato.framework.16.10.4.wp85-wp750x-201712131342/resources/legato/build/wp85/legato.cwe mcufw_002.004_wpx5_f0.cwe

There is no problem to use fwudate to update on module:


root@swi-mdm9x15:~# legato version
16.10.4_544dbbbb32195d877e35a6648db67c1b
root@swi-mdm9x15:~#
root@swi-mdm9x15:~#
root@swi-mdm9x15:~# cd /tmp
root@swi-mdm9x15:/tmp#
root@swi-mdm9x15:/tmp# ls
dnsmasq.wlan.conf legato swisync
root@swi-mdm9x15:/tmp#
root@swi-mdm9x15:/tmp# fwupdate download spkg_legato_mcu.spk
Connecting to service …
Download started …
Download successful; please wait for modem to reset


After reboot, the legato version is changed:

root@swi-mdm9x15:~# legato version
16.10.4_5db42c23beac56a835041e18bb32a8b4

Update using swicwe 1.14 allows it to work a SPK built with 1.15 does not work …


Download ver14 generic and push it to a board via swiflash

https://source.sierrawireless.com/~/media/support_downloads/legato/wpx5xx/release%2014/combined%20images/wpx5xx_release14_generic_spk.ashx?la=en

Confirmed that its applied FW/MCU/Yocto/Legato

pushed my “full” firmware pack to the board containing R15 Generic/MCU 2.4/Yocto [own build of SWI9X15Y_07.12.14.00]/Legato [18.03]

After fwupdate only the firmware has changed

root@swi-mdm9x15:~# uname -a
Linux swi-mdm9x15 3.14.29ltsi-961ca71325_ab5094eade #2 PREEMPT Thu Apr 27 02:17:10 PDT 2017 armv7l GNU/Linux
root@swi-mdm9x15:~# legato version
16.10.3_7776bb75a488e0db67b0d24975b46dd0
root@swi-mdm9x15:~# cat /sys/module/swimcu_pm/firmware/version 
001.011

Using the generic15 update spk from the website it does indeed update

root@swi-mdm9x15:~# uname -a;cat /sys/module/swimcu_pm/firmware/version ;legato version
Linux swi-mdm9x15 3.14.29ltsi-961ca71325_ed9f616cc8 #2 PREEMPT Wed Nov 29 20:54:01 PST 2017 armv7l GNU/Linux
002.004
16.10.4_544dbbbb32195d877e35a6648db67c1b

CWE tool used 1.15 Bellow see the files “side by side”

comb@comb-desktop:~/legato/legato-16.10.4$ swicwe -P ~/firmware/wp85/comb-firmware-wp85-15.1.0/comb-full-wp85-15.1.0.spk 
 Type	 Size(Exclude Header)	 Product	 Compress	 Version
*SPKG    59980224                Y912            0               9999999_9904559_SWI9X15Y_07.12.14.00_00_GENERIC_001.034_000
*BOOT    647352                  Y912            0               SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
 SBL1    118524                  9X15            0               SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
 QRPM    104672                  9X15            0               SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
 SBL2    422956                  9X15            0               SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
*MODM    23983614                Y912            0               SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
 DSP1    1861297                 9X15            1               SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
 DSP2    19760285                9X15            1               SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
 DSP3    2360832                 9X15            1               SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
*FILE    43645                   9X15            0               9999999_9904559_SWI9X15Y_07.12.14.00_00_GENERIC_001.034_000
*APPL    32110714                Y912            0               Sat Apr 14 20:55:50 SAST 2018
 SYST    28084803                9X15            1               Sat Apr 14 20:55:50 SAST 2018
 APBL    74564                   9X15            0               Sat Apr 14 20:55:50 SAST 2018
 APPS    3950147                 9X15            1               Sat Apr 14 20:55:50 SAST 2018
*FILE    15373                   Y912            0               9999999_9999999_MCU_002.004_00_wpx5_00_00
*APPL    3177126                 Y912            0               18.03.0 deefce7 comb-desktop 2018/04/23 18:05:45
 USER    3176726                 9X15            1               18.03.0 deefce7 comb-desktop 2018/04/23 18:05:45
comb@comb-desktop:~/legato/legato-16.10.4$ swicwe -P ~/WPx5xx_Release15_GENERIC_SPK.spk 
 Type	 Size(Exclude Header)	 Product	 Compress	 Version
*SPKG    56968460                Y912            0               9999999_9904559_SWI9X15Y_07.12.14.00_00_GENERIC_001.034_000
*BOOT    647352                  Y912            0               SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
 SBL1    118524                  9X15            0               SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
 QRPM    104672                  9X15            0               SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
 SBL2    422956                  9X15            0               SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
*MODM    23983614                Y912            0               SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
 DSP1    1861297                 9X15            1               SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
 DSP2    19760285                9X15            1               SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
 DSP3    2360832                 9X15            1               SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42
*FILE    43645                   9X15            0               9999999_9904559_SWI9X15Y_07.12.14.00_00_GENERIC_001.034_000
*APPL    29964923                Y912            0               Wed Nov 29 21:02:47 PST 2017
 SYST    25891769                9X15            1               Wed Nov 29 21:02:47 PST 2017
 APBL    74576                   9X15            0               Wed Nov 29 21:02:47 PST 2017
 APPS    3997378                 9X15            1               Wed Nov 29 21:02:47 PST 2017
*FILE    15373                   Y912            0               9999999_9999999_MCU_002.004_00_wpx5_00_00
*APPL    2311153                 Y912            0               16.10.4 df5b086 jenkins 2017/09/29 20:11:02
 USER    2310753                 9X15            1               16.10.4 df5b086 jenkins 2017/09/29 20:11:02

I tried with a SPK containing legato 16.10.4 instead of 18.03 and the same problem it only updated the firmware portion …

i can make one of these files available if needed i am thinking it could be the swicwe tool that is misbehaving.

I tried to combine modem (R15),mcu(R15) and my legato image by swicwe version 1.14.
owner@owner-ThinkPad-T440p:~/Yocto/tools/linux64$ ./swicwe -c -o output.spk 9999999_9904559_SWI9X15Y_07.12.14.00_00_GENERIC_001.034_000.spk mcufw_002.004_wpx5_f0.cwe /home/owner/legato/packages/legato.framework.16.10.4.wp85-wp750x-201712131342/resources/legato/build/wp85/legato.cwe

No problem is found by “fwupdate download output.spk”, I can see the legato version is updated.

Any procedure different from yours?

using swicwe tool 1.15 [as installed by apt-get on ubuntu] does not work i can confirm using tool 1.14 it works fine