Compiler WP7702 error

I add a recipes into source then compile it.

how about you delete the file in module and then upgrade your yocto image?

my test shows that if i delete /mnt/flash/ufs/etc/init.d/startlegato.sh, it will back to the one in the image

Hi @jyijyi ,

The result is in here.

then no idea, maybe you downgrade to R12 and back to R16 as workaround

Yes, I think so, but I think it’s too complicated a step.

Hi @jyijyi ,

I want to use swicwe to combine image to spk file.
But I got error when I down image.

swicwe log is below:

swicwe -o R16_mangoh.spk -c 9999999_9907152_SWI9X07Y_02.37.03.00_00_GENERIC_002.095_003.spk yocto_wp76xx.4k.cwe legato-image.wp76xx.cwe 
input image type is SPKG
input image type is APPL
input image type is APPL
Parsing input file 9999999_9907152_SWI9X07Y_02.37.03.00_00_GENERIC_002.095_003.spk 
 Type	 Size(Exclude Header)	 Product	 Compress	 Version
*SPKG    28666674                Y921            0               9999999_9907152_SWI9X07Y_02.37.03.00_00_GENERIC_002.095_003
*BOOT    420864                  Y921            0               SWI9X07Y_02.37.10.00 5718ef CARMD-EV-SIGN01 2021/08/03 19:35:14
 HASH    6480                    9X28            0               SWI9X07Y_02.37.10.00 5718ef CARMD-EV-SIGN01 2021/08/03 19:35:14
 SBL1    413584                  9X28            0               SWI9X07Y_02.37.10.00 5718ef CARMD-EV-SIGN01 2021/08/03 19:35:14
*MODM    28216140                Y921            0               SWI9X07Y_02.37.03.00 73df45 CARMD-EV-SIGN01 2020/04/08 17:11:15
 HASH    6560                    9X28            0               SWI9X07Y_02.37.03.00 73df45 CARMD-EV-SIGN01 2020/04/08 17:11:15
 TZON    522748                  9X28            0               SWI9X07Y_02.37.03.00 73df45 CARMD-EV-SIGN01 2020/04/08 17:11:15
 QRPM    160112                  9X28            0               SWI9X07Y_02.37.03.00 73df45 CARMD-EV-SIGN01 2020/04/08 17:11:15
 DSP2    27525120                9X28            0               SWI9X07Y_02.37.03.00 73df45 CARMD-EV-SIGN01 2020/04/08 17:11:15
*FILE    28470                   Y921            0               9999999_9907152_SWI9X07Y_02.37.03.00_00_GENERIC_002.095_003
Parsed image is SPKG, finding components
Found BOOT component
Found MODM component
Found FILE component
Parsing input file yocto_wp76xx.4k.cwe 
 Type	 Size(Exclude Header)	 Product	 Compress	 Version
*APPL    39372944                Y921            0               SWI9X07Y_02.37.10.02 2023/06/15 06:06:33
 SYST    29622272                9X28            0               SWI9X07Y_02.37.10.02 2023/06/15 06:06:33
 APPS    9749872                 9X28            0               3.18.140 20230515060356
3.18.140 20230515063041
3.18.140 20230515065308
3.18.140 20206/15/23
Parsed image is Legato/Linux
Parsing input file legato-image.wp76xx.cwe 
 Type	 Size(Exclude Header)	 Product	 Compress	 Version
*APPL    6291856                 Y921            0               19.11.2_a3145c8f7625d08aa33298c0ae6ecec1
 USER    6291456                 9X28            0               19.11.2_a3145c8f7625d08aa33298c0ae6ecec1
Parsed image is Legato/Linux
Concatenating images

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

Console log: (CRC32 check error (0X89),STATUS=FAIL)

B -    576450 - ssmem_release: region 20 not exists
B -    580994 - ssmem_get: region 20 not exists
B -    588467 - smart recovery counter cleared
B -    589321 - DWL-ety: rea=1 rcv=0
B -  25185131 - Sahara over USB
B -  25400705 - Sahara: Hello pkt sent
B -  57616421 - BOOT_HOLD=3,DOWNLOADER=boot,VERSION=9999999_9907152_SWI9X07Y_02.37.03.00_00_GENERIC_002.095_003,TYPE=SPKG,ERROR=Verfication after download failed: CRC32 check error (0X89),STATUS=FAIL

What should I do?

how about downloading one by one?
This can make sure the images are ok

Or you can try to combine yocto and legato image first and see if the image can be downloaded

Hi @jyijyi ,

you mean use swicwe command to combine yocto and legato image?

yes
as from your log, it has problem to download modem image

Hi @jyijyi ,

I combine yocto and legato to spk
combine command

test@test-virtual-machine:~/workspace$ swicwe -o R16_rootfs.spk -c yocto_wp76xx.4k.cwe legato-image.wp76xx.cwe input image type is APPL
input image type is APPL
Parsing input file yocto_wp76xx.4k.cwe 
 Type	 Size(Exclude Header)	 Product	 Compress	 Version
*APPL    39372944                Y921            0               SWI9X07Y_02.37.10.02 2023/06/15 06:06:33
 SYST    29622272                9X28            0               SWI9X07Y_02.37.10.02 2023/06/15 06:06:33
 APPS    9749872                 9X28            0               3.18.140 20230515060356
3.18.140 20230515063041
3.18.140 20230515065308
3.18.140 20206/15/23
Parsed image is Legato/Linux
Parsing input file legato-image.wp76xx.cwe 
 Type	 Size(Exclude Header)	 Product	 Compress	 Version
*APPL    6291856                 Y921            0               19.11.2_a3145c8f7625d08aa33298c0ae6ecec1
 USER    6291456                 9X28            0               19.11.2_a3145c8f7625d08aa33298c0ae6ecec1
Parsed image is Legato/Linux
Concatenating images

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

and I use fdt2 to download spk

.\fdt2.exe -d wpspk -fd E:\wp_linux_image\R16\ -f R16_rootfs.spk -force

but I got error

FDT version: 2.0.2012.0
Awaiting adapter ...
Setting images preference ...
Disabling selective suspend ...
Firmware download failed.
Primary error code: 51 - Failed to switch device to BOOT&HOLD mode.
Secondary error code: 209 - Invalid image preference string in SPK header.
Device error code: 0x0 - Unknown device error code.

Preexisting images information:
        Current:
                Firmware:
                        ImageId: 002.095_003
                        BuildId: 02.37.03.00_GENERIC
                Configuration:
                        ImageId: 002.095_003
                        BuildId: 02.37.03.00_GENERIC
Final images information:
        Current:
                Firmware:
                        ImageId:
                        BuildId:
                Configuration:
                        ImageId:
                        BuildId:

OEM PRI:

how about just “fdt2.exe -f xxx.spk”

Hi @jyijyi ,

It’s worked both include modem.spk or not when I remove “-d wpspk”.

Hi @jyijyi ,

I saw R17 version, Do you know R17 can do reset ?

please open a new topic for WP76 discussion