Warnings when creating the `spk` file with Modem Firmware from Firmware 15.1 Components

I am trying to create base images for WP7702 devices in a production environment using the following components derived form the Firmware 15.1 (FW 15.1) release:

  • appsboot_wp77xx.cwe
    generated from yocto distro from FW 15.1, assuming bootloader
  • yocto_wp77xx.4k.cwe
    generated from yocto from FW 15.1, assuming kernel and rootfs
  • legato-squashfs.ubi.cwe
    downloaded from FW 15.1, assuming legato host tools
  • 9999999_9907618_SWI9X06Y_02.36.08.09_00_GENERIC_001.079_000.spk
    downloaded from FW 15.1, assuming the generic, closed-source modem firmware

When I try to bundle these components into a spk file, i get the error below. If i remove the modem firmware file from the arguments, the spk files builds without errors.

My question is: Is the error correct? If yes, how do I include modem firmware updates to my target? If no, how do i know to ignore this and future errors like it?

swicwe -o my-image.spk -c ./build_bin/tmp/deploy/images/swi-mdm9x28-wp/yocto_wp77xx.4k.cwe ./build_bin/tmp/deploy/images/swi-mdm9x28-wp/appsboot_wp77xx.cwe ./legato-squashfs.ubi.cwe ./9999999_9907618_SWI9X06Y_02.36.08.09_00_GENERIC_001.079_000.spk
...
Parsing input file ./9999999_9907618_SWI9X06Y_02.36.08.09_00_GENERIC_001.079_000.spk
 Type    Size(Exclude Header)    Product         Compress        Version
*SPKG    18201505                Y931            0               9999999_9907618_SWI9X06Y_02.36.08.09_00_GENERIC_001.079_000
Warning - PID mismatch: Y921 and Y931
*BOOT    412672                  Y931            0               SWI9X06Y_02.36.08.09 000000 AZUSW2-CTO-CRG-sign-production-wp77xx-795 2022/06/24 06:06/24/22
Warning - PID mismatch: Y921 and Y931
 HASH    6480                    9X06            0               SWI9X06Y_02.36.08.09 000000 AZUSW2-CTO-CRG-sign-production-wp77xx-795 2022/06/24 06:06/24/22
Warning - PID mismatch: 9X28 and 9X06
 SBL1    405392                  9X06            0               SWI9X06Y_02.36.08.09 000000 AZUSW2-CTO-CRG-sign-production-wp77xx-795 2022/06/24 06:06/24/22
Warning - PID mismatch: 9X28 and 9X06
*MODM    17755900                Y931            0               SWI9X06Y_02.36.08.09 000000 AZUSW2-CTO-CRG-sign-production-wp77xx-795 2022/06/24 06:06/24/22
Warning - PID mismatch: Y921 and Y931
 HASH    6560                    9X06            0               SWI9X06Y_02.36.08.09 000000 AZUSW2-CTO-CRG-sign-production-wp77xx-795 2022/06/24 06:06/24/22
Warning - PID mismatch: 9X28 and 9X06
 TZON    551644                  9X06            0               SWI9X06Y_02.36.08.09 000000 AZUSW2-CTO-CRG-sign-production-wp77xx-795 2022/06/24 06:06/24/22
Warning - PID mismatch: 9X28 and 9X06
 QRPM    156736                  9X06            0               SWI9X06Y_02.36.08.09 000000 AZUSW2-CTO-CRG-sign-production-wp77xx-795 2022/06/24 06:06/24/22
Warning - PID mismatch: 9X28 and 9X06
 DSP2    17039360                9X06            0               SWI9X06Y_02.36.08.09 000000 AZUSW2-CTO-CRG-sign-production-wp77xx-795 2022/06/24 06:06/24/22
Warning - PID mismatch: 9X28 and 9X06
*FILE    31733                   Y931            0               9999999_9907618_SWI9X06Y_02.36.08.09_00_GENERIC_001.079_000
Parsed image is SPKG, finding components
Found BOOT component
Found MODM component
Found FILE component
Concatenating images

does it work if you download the combined spk without modem image to module?
Does it work if you download the combined spk with modem image to module?

Have you tried to combine all official image with swicwe and download to module to test?
https://source.sierrawireless.com/resources/airprime/software/wp77xx/wp77xx-firmware-release-15,-d-,1-components/#sthash.oc6NQ8hc.97PAqLh7.dpbshttps://source.sierrawireless.com/resources/airprime/software/wp77xx/wp77xx-firmware-release-15,-d-,1-components/#sthash.oc6NQ8hc.97PAqLh7.dpbs

Have you tried to combine all official image with swicwe and download to module to test?

This is reproduceable using the official files in Firmware 15.1 page (see below).

does it work if you download the combined spk with or without modem image to module?

Not sure, as I don’t see those file in the FW 15.1 Components page. I also don’t think that will help with my core issue.

bldr@570be578aa32:/tmp/stock_fw_15.1$ md5sum ./*
93606b8811edeb924f52cf82f66fe1f1  ./9999999_9907618_SWI9X06Y_02.36.08.09_00_GENERIC_001.079_000.spk
5130239a2a974984ff2bc38cd6d93925  ./legato-squashfs.ubi.cwe
200cfb4694ac712b2b71a3a3faeb203a  ./my-image.cwe
2adc30b821bc837177e6a084df914fb1  ./yocto.cwe
bldr@570be578aa32:/tmp/stock_fw_15.1$ swicwe -o my-image.cwe -c ./legato-squashfs.ubi.cwe ./yocto.cwe ./9999999_9907618_SWI9X06Y_02.36.08.09_00_GENERIC_001.079_000.spk
input image type is APPL
input image type is APPL
input image type is SPKG
Parsing input file ./legato-squashfs.ubi.cwe
 Type    Size(Exclude Header)    Product         Compress        Version
*APPL    7340432                 Y921            0               21.05.0 bb3ea8b jenkins 2022/02/17 02:36:43
 USER    7340032                 9X28            0               21.05.0 bb3ea8b jenkins 2022/02/17 02:36:43
Parsed image is Legato/Linux
Parsing input file ./yocto.cwe
 Type    Size(Exclude Header)    Product         Compress        Version
*APPL    34799644                Y931            0               SWI9X06Y_03.00.13.00 000000 AZUSW2-CTO-CRG-sign-production-wp77xx-2367 2022/12/28 0212/28/22
Warning - PID mismatch: Y921 and Y931
 HASH    6560                    9X06            0               SWI9X06Y_03.00.13.00 000000 AZUSW2-CTO-CRG-sign-production-wp77xx-2367 2022/12/28 0212/28/22
Warning - PID mismatch: 9X28 and 9X06
 APBL    602142                  9X06            0               SWI9X06Y_03.00.13.00 000000 AZUSW2-CTO-CRG-sign-production-wp77xx-2367 2022/12/28 0212/28/22
Warning - PID mismatch: 9X28 and 9X06
 SYST    22806528                Y931            0               SWI9X06Y_03.00.13.00 000000 AZUSW2-CTO-CRG-sign-production-wp77xx-2367 2022/12/28 0212/28/22
Warning - PID mismatch: Y921 and Y931
 APPS    11382814                9X06            0               SWI9X06Y_03.00.13.00 000000 AZUSW2-CTO-CRG-sign-production-wp77xx-2367 2022/12/28 0212/28/22
Warning - PID mismatch: 9X28 and 9X06
Parsed image is Legato/Linux
Parsing input file ./9999999_9907618_SWI9X06Y_02.36.08.09_00_GENERIC_001.079_000.spk
 Type    Size(Exclude Header)    Product         Compress        Version
*SPKG    18201505                Y931            0               9999999_9907618_SWI9X06Y_02.36.08.09_00_GENERIC_001.079_000
Warning - PID mismatch: Y921 and Y931
*BOOT    412672                  Y931            0               SWI9X06Y_02.36.08.09 000000 AZUSW2-CTO-CRG-sign-production-wp77xx-795 2022/06/24 06:06/24/22
Warning - PID mismatch: Y921 and Y931
 HASH    6480                    9X06            0               SWI9X06Y_02.36.08.09 000000 AZUSW2-CTO-CRG-sign-production-wp77xx-795 2022/06/24 06:06/24/22
Warning - PID mismatch: 9X28 and 9X06
 SBL1    405392                  9X06            0               SWI9X06Y_02.36.08.09 000000 AZUSW2-CTO-CRG-sign-production-wp77xx-795 2022/06/24 06:06/24/22
Warning - PID mismatch: 9X28 and 9X06
*MODM    17755900                Y931            0               SWI9X06Y_02.36.08.09 000000 AZUSW2-CTO-CRG-sign-production-wp77xx-795 2022/06/24 06:06/24/22
Warning - PID mismatch: Y921 and Y931
 HASH    6560                    9X06            0               SWI9X06Y_02.36.08.09 000000 AZUSW2-CTO-CRG-sign-production-wp77xx-795 2022/06/24 06:06/24/22
Warning - PID mismatch: 9X28 and 9X06
 TZON    551644                  9X06            0               SWI9X06Y_02.36.08.09 000000 AZUSW2-CTO-CRG-sign-production-wp77xx-795 2022/06/24 06:06/24/22
Warning - PID mismatch: 9X28 and 9X06
 QRPM    156736                  9X06            0               SWI9X06Y_02.36.08.09 000000 AZUSW2-CTO-CRG-sign-production-wp77xx-795 2022/06/24 06:06/24/22
Warning - PID mismatch: 9X28 and 9X06
 DSP2    17039360                9X06            0               SWI9X06Y_02.36.08.09 000000 AZUSW2-CTO-CRG-sign-production-wp77xx-795 2022/06/24 06:06/24/22
Warning - PID mismatch: 9X28 and 9X06
*FILE    31733                   Y931            0               9999999_9907618_SWI9X06Y_02.36.08.09_00_GENERIC_001.079_000
Parsed image is SPKG, finding components
Found BOOT component
Found MODM component
Found FILE component
Concatenating images

CWE Header Generator 3.01. Copyright Sierra Wireless, Inc., 2012
  Output CWE Header File /tmp/temp.mbn.hdr
  Image size 0x398c06d, crc32 0x2ee5dc89

If the combined spk with or without modem image is working fine in module, that means those warning message is not important

Sorry, but I am going to have to escalate this issue through my WP distributor. Your tools needs to correctly alert when they are making a package that may harm or not update a certain aspect of the device. I do not want my team to get used to ignoring this warning only to brick devices when it correctly triggers in the future.

Also there are two sets of model numbers: the WP series (wp77, wp76. etc.) and the Product ID. The Product ID is referenced above (Y921, Y931, 9X06, 9X28 ) and in the image generation (bitbake mdm9x28-image-minimal). Is there documentation mapping this two sets of identifiers?

Probably you need to ask your distributor

You can also see here