Flashing custom image to new WP7607-1 Modules don't work

Hi

We had build a custom Image and we use this in the last years.

Now we geht new WP-Modules and we can’t flash this new custom image. After flashing we get the old stuff. On the rs232 we can see the bootloader flashing and we get:


B - 522465 - SSMEM init OK
B - 547292 - USB non-zero endpoint requirements: 9 in, 5 out
B - 549884 - opening partition 0:SWIFOTA
B - 31608095 - Imagetype=0x07 compat_id=0x00
B - 31608187 - Flash device name MT29F4G08ABBFA3W
B - 31610657 - compat_tbl: device name MT29F4G08ABBFA3W compat 0x01
B - 31616879 - Imagetype=0x07 compat_id=0x00 incompatible with Flash!
B - 33594072 -
VERSION=9999999_9907152_SWI9X07Y_02.37.03.00_00_GENERIC_002.095_000,SIZE
0x429ba02, IMG_TYPE=0x14,SPKG/FOTA IMG,ERROR=Flash write failed: Package not
compatible (0X86),STATUS=FAIL

Our custom Buils has Release 16.0.0 as base.

We can flash this version to older WP Modules without problems.

All Firmware Release on https://source.sierrawireless.com/resources/airprime/software/wp76xx/wp76xx-firmware-release-history-item/#sthash.XMSOAnbh.dpbs are rebuilded at 7.12.2021 and get a new sub version.

We can’t flash the vanilla 16.0.0 on the new Modules, the 16.0.1 is working.

From the ‘Customer Release Notes’:
QTI9X07-5444
Add the IDs of these alternate memory sources: New Micron/ESMT/JSC
(Page 10)

ok.

Now fetch the source from 16.0.1, unpack, cd, call ‘make’
(Without any changes)

We get a new custom Yocto image 16.0.1.

This is woking on old WP-Modules… but not on the new one.

If we build a new SPK file with swicwe with the ’ WP76xx Firmware Release 16.0.1 Components’, we get a working firmware.

If we build a new SPK file with swicwe with the ’ WP76xx Firmware Release 16.0.1 Components’ and our custom Yocto image 16.0.1, this is working only on old WP Modules.

Is in the yocto source something missing?

the swicwe output with orignal Yocto:

Type Size(Exclude Header) Product Compress Version
*APPL 34442840 Y921 0 SWI9X07Y_02.37.10.00 5718ef CARMD-EV-SIGN01 2021/08/03 19:35:14
HASH 6560 9X28 0 SWI9X07Y_02.37.10.00 5718ef CARMD-EV-SIGN01 2021/08/03 19:35:14
APBL 569148 9X28 0 SWI9X07Y_02.37.10.00 5718ef CARMD-EV-SIGN01 2021/08/03 19:35:14
SYST 24117248 Y921 0 SWI9X07Y_02.37.10.00 5718ef CARMD-EV-SIGN01 2021/08/03 19:35:14
APPS 9748284 9X28 0 SWI9X07Y_02.37.10.00 5718ef CARMD-EV-SIGN01 2021/08/03 19:35:14

and the output with the builded yocto:

Type Size(Exclude Header) Product Compress Version
*APPL 34134160 Y921 0 SWI9X07Y_02.37.10.00 2022/02/02 22:33:53
SYST 24379392 9X28 0 SWI9X07Y_02.37.10.00 2022/02/02 22:33:53
APPS 9753968 9X28 0 3.18.140 20220202223752

in the builded yocto are two parts missing?!

Have others the same problem?

Can someone help?

Thanks

Michael Bramer

What is the uart output for this one?


Now fetch the source from 16.0.1, unpack, cd, call ‘make’
(Without any changes)

We get a new custom Yocto image 16.0.1.

This is woking on old WP-Modules… but not on the new one.


Btw, your build does not contain APBL which is the appboot partition

@jyijyi

Can you let us know why the APBL is missing, and how to resolve the issue.

Thanks & Regards,

Pankaj Sant

Where did you download the yocto source?
Is it in here?

https://source.sierrawireless.com/resources/airprime/software/wp76xx/wp76xx-firmware-release-16,-d-,0,-d-,1-components/#sthash.KFGymtuk.Ubj4CQ5W.dpbs

the ABPL is in appsboot_wp76xx.cwe.
Here says you can combine it by yourself:

BTW, what is the uart output for this one?


Now fetch the source from 16.0.1, unpack, cd, call ‘make’
(Without any changes)

We get a new custom Yocto image 16.0.1.

This is woking on old WP-Modules… but not on the new one.


@jyijyi

Downloaded the yocto source from https://source.sierrawireless.com/resources/airprime/software/wp76xx/wp76xx-firmware-release-13,-d-,1,-d-,1-components/#sthash.mu1ldr0f.xH7B6a5w.dpbs

Have concatenated the images as per the below command:

Concatenation command :

swicwe -c appsboot_wp76xx.cwe yocto_wp76xx.4k.cwe -o linux-yocto_wp76xx.4k.cwe
input image type is APPL
input image type is APPL
Parsing input file appsboot_wp76xx.cwe
Type Size(Exclude Header) Product Compress Version
*APPL 530104 Y921 0 Fri Feb 4 17:57:47 UTC 2022
APBL 529704 9X28 0 1.3.0_266a63a023 2022/02/04 17:14:42
Parsed image is Legato/Linux
Parsing input file yocto_wp76xx.4k.cwe
Type Size(Exclude Header) Product Compress Version
*APPL 33081488 Y921 0 Fri Feb 4 17:57:47 UTC 2022
SYST 23592960 9X28 0 Fri Feb 4 17:57:47 UTC 2022
APPS 9487728 9X28 0 3.18.131 20220204175743
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 0x200e268, crc32 0xe4f08ccf

The resultant image contents are as below:
Concatenation results:
swicwe -P linux-yocto_wp76xx.4k.cwe
Type Size(Exclude Header) Product Compress Version
*SPKG 33612392 Y921 0 9999999_9999999_?????
*APPL 530104 Y921 0 Fri Feb 4 17:57:47 UTC 2022
APBL 529704 9X28 0 1.3.0_266a63a023 2022/02/04 17:14:42
*APPL 33081488 Y921 0 Fri Feb 4 17:57:47 UTC 2022
SYST 23592960 9X28 0 Fri Feb 4 17:57:47 UTC 2022
APPS 9487728 9X28 0 3.18.131 20220204175743

Will try this later tomorrow when I have the device at hand, in the meantime let me know if you see something obviously wrong with the resultant image.

Thanks

Pankaj Sant

@jyijyi ,

In the previous releases R13.1 we did not required to concatenate images at our end, is there something that we can fix in R13.1.1 source code so we don’t have to do the extra SWICWE command once the build is completed.

Thanks

Pankaj Sant

Yes, the the source is:
https://downloads.sierrawireless.com/_upload/wp76/Release16.0.1/Legato-Dist-Source-mdm9x28-SWI9X07Y_02.37.10.00.tar.bz2

for the Boot-Output:
I can send this in 2 Days… Now I don’t have access to the device. But it is like the output in the first post.

You can see ati8 and check whether LK version is updated, and then decide whether you need to update the appboot

image
tried with the above method. Now it doesn’t show incompatible partition but build host isn’t updated.
ati8 output:
root@swi-mdm9x28-wp:~# microcom /dev/ttyAT
ati8
Legato Ver: 19.02.0_4cb954265427b8c2c668a010ff5be274
Yocto Ver: SWI9X07Y_02.28.06.01 2021-08-19_11:14:24
OS Ver: Linux version 3.18.131 (oe-user@oe-host) (gcc version 7.3.0 (GCC) ) #1 PREEMPT Thu Aug 19 11:02:22 UTC 2021
LK Ver: SWI9X07Y_02.28.06.01
RootFS Ver: SWI9X07Y_02.28.06.01 2021-08-19_11:14:24
UserFS Ver: unknown
MCU Ver: 002.011

OK

fdt2 download output:
FDT version: 1.0.1806.0
Awaiting suitable port or adapter …
Switching to boot & hold mode …
Disabling selective suspend …
Awaiting download port …
Switching to streaming mode …
Downloading images …
Writing image |
Flashing image /
Awaiting adapter …
Checking update status …
Enabling selective suspend …
Firmware image download succeeded.
Final Firmware update succeeded.

Preexisting images information:
Current:
Firmware:
ImageId: 002.068_003
BuildId: 02.28.03.03_GENERIC
Configuration:
ImageId: 002.068_003
BuildId: 02.28.03.03_GENERIC
Final images information:
Current:
Firmware:
ImageId: 002.068_003
BuildId: 02.28.03.03_GENERIC
Configuration:
ImageId: 002.068_003
BuildId: 02.28.03.03_GENERIC

OEM PRI: 9908672 001.004

IMEI: 352914090340353

Total time elapsed: 74813 ms.

Time to switch to boot mode: 22125 ms.

Images downloaded:
Image ID:
Build ID:
write time: 13047 ms
additional flash time: 94 ms

Time to reset to application mode: 35953 ms.

Press Enter to continue …

What is the output in uart console when upgrade?

[02-05-22 16:59:02:096]
[02-05-22 16:59:02:096] Format: Log Type - Time(microsec) - Message - Optional Info
[02-05-22 16:59:02:096] Log Type: B - Since Boot(Power On Reset), D - Delta, S - Statistic
[02-05-22 16:59:02:096] S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.1.2-00094
[02-05-22 16:59:02:096] S - IMAGE_VARIANT_STRING=LAATANAZA
[02-05-22 16:59:02:096] S - OEM_IMAGE_VERSION_STRING=jenkins
[02-05-22 16:59:02:096] S - Boot Config, 0x000002e1
[02-05-22 16:59:02:096] B - 1216 - PBL, Start
[02-05-22 16:59:02:097] B - 3720 - bootable_media_detect_entry, Start
[02-05-22 16:59:02:097] B - 5038 - bootable_media_detect_success, Start
[02-05-22 16:59:02:097] B - 5043 - elf_loader_entry, Start
[02-05-22 16:59:02:098] B - 8495 - auth_hash_seg_entry, Start
[02-05-22 16:59:02:098] B - 32144 - auth_hash_seg_exit, Start
[02-05-22 16:59:02:098] B - 83529 - elf_segs_hash_verify_entry, Start
[02-05-22 16:59:02:098] B - 130595 - PBL, End
[02-05-22 16:59:02:098] B - 118187 - SBL1, Start
[02-05-22 16:59:02:098] B - 167353 - pm_device_init, Start
[02-05-22 16:59:02:098] B - 184860 - PM_SET_VAL:Skip
[02-05-22 16:59:02:098] D - 16226 - pm_device_init, Delta
[02-05-22 16:59:02:187] B - 186172 - boot_config_data_table_init, Start
[02-05-22 16:59:02:187] D - 0 - boot_config_data_table_init, Delta - (0 Bytes)
[02-05-22 16:59:02:187] B - 194925 - CDT version:3,Platform ID:8,Major ID:1,Minor ID:0,Subtype:129
[02-05-22 16:59:02:187] B - 201818 - sbl1_ddr_set_params, Start
[02-05-22 16:59:02:187] B - 205631 - Pre_DDR_clock_init, Start
[02-05-22 16:59:02:187] D - 213 - Pre_DDR_clock_init, Delta
[02-05-22 16:59:02:187] D - 0 - sbl1_ddr_set_params, Delta
[02-05-22 16:59:02:187] B - 218349 - pm_driver_init, Start
[02-05-22 16:59:02:187] D - 4483 - pm_driver_init, Delta
[02-05-22 16:59:02:187] B - 224602 - cpr_init, Start
[02-05-22 16:59:02:187] D - 122 - cpr_init, Delta
[02-05-22 16:59:02:187] B - 229268 - cpr_cx_mx_apc_vol_update, Start
[02-05-22 16:59:02:188] D - 91 - cpr_cx_mx_apc_vol_update, Delta
[02-05-22 16:59:02:188] B - 244457 - clock_init, Start
[02-05-22 16:59:02:188] D - 183 - clock_init, Delta
[02-05-22 16:59:02:188] B - 244701 - boot_flash_init, Start
[02-05-22 16:59:02:217] D - 39650 - boot_flash_init, Delta
[02-05-22 16:59:02:219] B - 287401 - boot_flash_swi_ddr_init, Start
[02-05-22 16:59:02:248] D - 29066 - boot_flash_swi_ddr_init, Delta
[02-05-22 16:59:02:370] B - 425353 - hw_family:5, hw_type:24, hw_rev:40
[02-05-22 16:59:02:371] B - 428830 - ssmem region 1 crc check failed:d0eea29b != c0eea29a
[02-05-22 16:59:02:373] B - 429531 - SSMEM framework version check failed
[02-05-22 16:59:02:374] B - 434350 - SSMEM bad, reinit
[02-05-22 16:59:02:376] B - 438864 - SSMEM init OK
[02-05-22 16:59:02:447] B - 457500 - USB non-zero endpoint requirements: 7 in, 4 out
[02-05-22 16:59:02:447] B - 460031 - opening partition 0:SWIFOTA
[02-05-22 16:59:02:447] B - 461312 - error for readpage:0
[02-05-22 16:59:02:447] B - 466619 - DWL-get: ecnt=0 code=0
[02-05-22 16:59:02:447] B - 481015 - Failed to read size: /swinv/item_files/CUST_IM_SWITCH_HIDE
[02-05-22 16:59:02:447] B - 487512 - Failed to read size: /swinv/item_files/FOTA_PARTITION
[02-05-22 16:59:02:447] B - 488000 - Failed to read size: /swinv/item_files/CUST_IM_CONFIG
[02-05-22 16:59:02:447] B - 501054 - flags: u=1 e=1 obmsk=c,0
[02-05-22 16:59:02:447] B - 503158 - ssmem_get: region 21 not exists
[02-05-22 16:59:02:447] B - 511820 - ssmem_release: region 20 not exists
[02-05-22 16:59:02:447] B - 511881 - ssmem_get: region 20 not exists
[02-05-22 16:59:02:447] B - 518164 - Image Load, Start
[02-05-22 16:59:02:571] D - 93696 - QSEE Image Loaded, Delta - (489292 Bytes)
[02-05-22 16:59:02:572] D - 213 - boot_pm_post_tz_device_init, Delta
[02-05-22 16:59:02:573] B - 616283 - sbl1_efs_handle_cookies, Start
[02-05-22 16:59:02:574] D - 0 - sbl1_efs_handle_cookies, Delta
[02-05-22 16:59:02:575] B - 624274 - DEVCFG ELF verification failure
[02-05-22 16:59:02:577] B - 627812 - Image Load, Start
[02-05-22 16:59:02:578] D - 0 - SEC Image Loaded, Delta - (0 Bytes)
[02-05-22 16:59:02:579] B - 635498 - Image Load, Start
[02-05-22 16:59:02:601] D - 55052 - RPM Image Loaded, Delta - (152712 Bytes)
[02-05-22 16:59:02:633] B - 691252 - Image Load, Start
[02-05-22 16:59:02:634] B - 693539 - Auth disabled for image 9
[02-05-22 16:59:02:652] B - 732823 - ssmem_get: region 20 not exists
[02-05-22 16:59:02:707] D - 41632 - APPSBL Image Loaded, Delta - (379176 Bytes)
[02-05-22 16:59:02:709] B - 736087 - QSEE Execution, Start
[02-05-22 16:59:02:710] D - 915 - QSEE Execution, Delta
[02-05-22 16:59:02:712] B - 742827 - SBL1, End
[02-05-22 16:59:02:713] D - 626989 - SBL1, Delta
[02-05-22 16:59:02:715] S - Throughput, 8000 KB/s (1196044 Bytes, 135531 us)
[02-05-22 16:59:02:716] S - DDR Frequency, 240 MHz
[02-05-22 16:59:02:737] Android Bootloader - UART_DM Initialized!!!
[02-05-22 16:59:02:740] [10] ERROR: No devinfo partition found
[02-05-22 16:59:02:769] [10] Neither ‘config’ nor ‘frp’ partition found
[02-05-22 16:59:02:770] [10] ERROR: No misc partition found
[02-05-22 16:59:03:843] [1110] SSMEM init OK[1110] ssmem_get: region 20 not exists[1200] DEBUG: cmdline has root=
[02-05-22 16:59:04:061] [1330] Channel alloc freed

@jyijyi
Can you guide with the steps to create new image with existing modules and applications which I had for R13(old version) to support the R13.1.1 changes?
The changes works for old modules but fails for new ones.

I mean the UART debug trace during upgrade like this one:

…
B - 522465 - SSMEM init OK
B - 547292 - USB non-zero endpoint requirements: 9 in, 5 out
B - 549884 - opening partition 0:SWIFOTA
B - 31608095 - Imagetype=0x07 compat_id=0x00
B - 31608187 - Flash device name MT29F4G08ABBFA3W
B - 31610657 - compat_tbl: device name MT29F4G08ABBFA3W compat 0x01
B - 31616879 - Imagetype=0x07 compat_id=0x00 incompatible with Flash!
B - 33594072 -
VERSION=9999999_9907152_SWI9X07Y_02.37.03.00_00_GENERIC_002.095_000,SIZE
0x429ba02, IMG_TYPE=0x14,SPKG/FOTA IMG,ERROR=Flash write failed: Package not
compatible (0X86),STATUS=FAIL
…

Btw this is WP 7608
uart logs during upgrade:

[02-05-22 18:27:22:901] Format: Log Type - Time(microsec) - Message - Optional Info
[02-05-22 18:27:22:901] Log Type: B - Since Boot(Power On Reset),  D - Delta,  S - Statistic
[02-05-22 18:27:22:901] S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.1.2-00094
[02-05-22 18:27:22:901] S - IMAGE_VARIANT_STRING=LAATANAZA
[02-05-22 18:27:22:901] S - OEM_IMAGE_VERSION_STRING=jenkins
[02-05-22 18:27:22:902] S - Boot Config, 0x000002e1
[02-05-22 18:27:22:902] B -      1216 - PBL, Start
[02-05-22 18:27:22:902] B -      3720 - bootable_media_detect_entry, Start
[02-05-22 18:27:22:902] B -      4376 - bootable_media_detect_success, Start
[02-05-22 18:27:22:902] B -      4380 - elf_loader_entry, Start
[02-05-22 18:27:22:902] B -      7835 - auth_hash_seg_entry, Start
[02-05-22 18:27:22:902] B -     31483 - auth_hash_seg_exit, Start
[02-05-22 18:27:22:902] B -     82869 - elf_segs_hash_verify_entry, Start
[02-05-22 18:27:22:902] B -    129929 - PBL, End
[02-05-22 18:27:22:902] B -    138226 - SBL1, Start
[02-05-22 18:27:22:902] B -    196054 - pm_device_init, Start
[02-05-22 18:27:22:902] B -    216245 - PM_SET_VAL:Skip
[02-05-22 18:27:22:902] D -     18483 - pm_device_init, Delta
[02-05-22 18:27:22:979] B -    217556 - boot_config_data_table_init, Start
[02-05-22 18:27:22:979] D -         0 - boot_config_data_table_init, Delta - (0 Bytes)
[02-05-22 18:27:22:979] B -    226310 - CDT version:3,Platform ID:8,Major ID:1,Minor ID:0,Subtype:129
[02-05-22 18:27:22:979] B -    233203 - sbl1_ddr_set_params, Start
[02-05-22 18:27:22:979] B -    237015 - Pre_DDR_clock_init, Start
[02-05-22 18:27:22:980] D -       213 - Pre_DDR_clock_init, Delta
[02-05-22 18:27:22:980] D -         0 - sbl1_ddr_set_params, Delta
[02-05-22 18:27:22:980] B -    249734 - pm_driver_init, Start
[02-05-22 18:27:22:980] D -      4453 - pm_driver_init, Delta
[02-05-22 18:27:22:980] B -    255986 - cpr_init, Start
[02-05-22 18:27:22:980] D -       122 - cpr_init, Delta
[02-05-22 18:27:22:980] B -    260683 - cpr_cx_mx_apc_vol_update, Start
[02-05-22 18:27:22:980] D -        91 - cpr_cx_mx_apc_vol_update, Delta
[02-05-22 18:27:22:980] B -    275842 - clock_init, Start
[02-05-22 18:27:22:980] D -       152 - clock_init, Delta
[02-05-22 18:27:22:980] B -    276086 - boot_flash_init, Start
[02-05-22 18:27:23:056] D -     39497 - boot_flash_init, Delta
[02-05-22 18:27:23:062] B -    318603 - boot_flash_swi_ddr_init, Start
[02-05-22 18:27:23:074] D -     29036 - boot_flash_swi_ddr_init, Delta
[02-05-22 18:27:23:132] B -    446428 - hw_family:5, hw_type:24, hw_rev:40
[02-05-22 18:27:23:136] B -    450607 - SSMEM init OK
[02-05-22 18:27:23:222] B -    467473 - USB non-zero endpoint requirements: 7 in, 4 out
[02-05-22 18:27:23:222] B -    469303 - opening partition 0:SWIFOTA
[02-05-22 18:27:23:222] B -    471316 - error for readpage:0
[02-05-22 18:27:23:222] B -    474519 - DWL-get: ecnt=0 code=3
[02-05-22 18:27:23:222] B -    491080 - Failed to read size: /swinv/item_files/CUST_IM_SWITCH_HIDE
[02-05-22 18:27:23:222] B -    497546 - Failed to read size: /swinv/item_files/FOTA_PARTITION
[02-05-22 18:27:23:222] B -    498065 - Failed to read size: /swinv/item_files/CUST_IM_CONFIG
[02-05-22 18:27:23:222] B -    511119 - flags: u=1 e=1 obmsk=c,0
[02-05-22 18:27:23:222] B -    521123 - ssmem_release: region 20 not exists
[02-05-22 18:27:23:222] B -    521184 - ssmem_get: region 20 not exists
[02-05-22 18:27:23:223] B -    527985 - smart recovery counter cleared
[02-05-22 18:27:23:223] B -    528046 - DWL-ety: rea=1 rcv=0
[02-05-22 18:27:23:609] B -    921435 - Sahara over USB
[02-05-22 18:27:23:701] B -   1028307 - Sahara: Hello pkt sent
[02-05-22 18:27:37:980] B -  15180582 - Imagetype=0x14 compat_id=0x00
[02-05-22 18:27:37:980] B -  15181680 - Imagetype=0x08 compat_id=0x00
[02-05-22 18:27:37:980] B -  15182473 - Flash device name MT29F4G08ABBFA3W   
[02-05-22 18:27:37:980] B -  15187322 - compat_tbl: device name MT29F4G08ABBFA3W compat 0x01
[02-05-22 18:27:37:980] B -  15193148 - Imagetype=0x0C compat_id=0x00 incompatible with Flash!
[02-05-22 18:27:37:980] B -  15199980 - Imagetype=0x08 compat_id=0x00
[02-05-22 18:27:37:980] B -  15204067 - Flash device name MT29F4G08ABBFA3W   
[02-05-22 18:27:37:980] B -  15208459 - compat_tbl: device name MT29F4G08ABBFA3W compat 0x01
[02-05-22 18:27:37:980] B -  15214559 - Imagetype=0x0B compat_id=0x00 incompatible with Flash!
[02-05-22 18:27:37:980] B -  15221208 - Imagetype=0x08 compat_id=0x00
[02-05-22 18:27:37:981] B -  15224868 - Flash device name MT29F4G08ABBFA3W   
[02-05-22 18:27:37:981] B -  15229626 - compat_tbl: device name MT29F4G08ABBFA3W compat 0x01
[02-05-22 18:27:37:981] B -  15235482 - Imagetype=0x0C compat_id=0x00 incompatible with Flash!
[02-05-22 18:27:37:981] B -  15242314 - Imagetype=0x08 compat_id=0x00
[02-05-22 18:27:37:981] B -  15246370 - Flash device name MT29F4G08ABBFA3W   
[02-05-22 18:27:37:981] B -  15250762 - compat_tbl: device name MT29F4G08ABBFA3W compat 0x01
[02-05-22 18:27:37:981] B -  15256862 - Imagetype=0x0B compat_id=0x00 incompatible with Flash!
[02-05-22 18:27:37:981] B -  15263267 - BOOT_HOLD=3,DOWNLOADER=boot,VERSION=9999999_9999999_?_?_?_?_?,TYPE=SPKG,STATUS=PASS
[02-05-22 18:27:39:296] 
[02-05-22 18:27:39:296] Format: Log Type - Time(microsec) - Message - Optional Info
[02-05-22 18:27:39:296] Log Type: B - Since Boot(Power On Reset),  D - Delta,  S - Statistic
[02-05-22 18:27:39:297] S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.1.2-00094
[02-05-22 18:27:39:297] S - IMAGE_VARIANT_STRING=LAATANAZA
[02-05-22 18:27:39:297] S - OEM_IMAGE_VERSION_STRING=jenkins
[02-05-22 18:27:39:297] S - Boot Config, 0x000002e1
[02-05-22 18:27:39:297] B -      1216 - PBL, Start
[02-05-22 18:27:39:297] B -      3720 - bootable_media_detect_entry, Start
[02-05-22 18:27:39:297] B -      4376 - bootable_media_detect_success, Start
[02-05-22 18:27:39:297] B -      4381 - elf_loader_entry, Start
[02-05-22 18:27:39:297] B -      7835 - auth_hash_seg_entry, Start
[02-05-22 18:27:39:297] B -     31483 - auth_hash_seg_exit, Start
[02-05-22 18:27:39:297] B -     82870 - elf_segs_hash_verify_entry, Start
[02-05-22 18:27:39:297] B -    129930 - PBL, End
[02-05-22 18:27:39:297] B -    138256 - SBL1, Start
[02-05-22 18:27:39:297] B -    196054 - pm_device_init, Start
[02-05-22 18:27:39:297] B -    216245 - PM_SET_VAL:Skip
[02-05-22 18:27:39:297] D -     18788 - pm_device_init, Delta
[02-05-22 18:27:39:380] B -    217892 - boot_config_data_table_init, Start
[02-05-22 18:27:39:380] D -         0 - boot_config_data_table_init, Delta - (0 Bytes)
[02-05-22 18:27:39:380] B -    226371 - CDT version:3,Platform ID:8,Major ID:1,Minor ID:0,Subtype:129
[02-05-22 18:27:39:380] B -    233172 - sbl1_ddr_set_params, Start
[02-05-22 18:27:39:381] B -    237015 - Pre_DDR_clock_init, Start
[02-05-22 18:27:39:381] D -       213 - Pre_DDR_clock_init, Delta
[02-05-22 18:27:39:381] D -         0 - sbl1_ddr_set_params, Delta
[02-05-22 18:27:39:381] B -    249703 - pm_driver_init, Start
[02-05-22 18:27:39:381] D -      4453 - pm_driver_init, Delta
[02-05-22 18:27:39:381] B -    256047 - cpr_init, Start
[02-05-22 18:27:39:381] D -       122 - cpr_init, Delta
[02-05-22 18:27:39:382] B -    260653 - cpr_cx_mx_apc_vol_update, Start
[02-05-22 18:27:39:382] D -        91 - cpr_cx_mx_apc_vol_update, Delta
[02-05-22 18:27:39:382] B -    275811 - clock_init, Start
[02-05-22 18:27:39:382] D -       152 - clock_init, Delta
[02-05-22 18:27:39:382] B -    276055 - boot_flash_init, Start
[02-05-22 18:27:39:427] D -     39436 - boot_flash_init, Delta
[02-05-22 18:27:39:437] B -    318511 - boot_flash_swi_ddr_init, Start
[02-05-22 18:27:39:442] D -     29066 - boot_flash_swi_ddr_init, Delta
[02-05-22 18:27:39:528] B -    446367 - hw_family:5, hw_type:24, hw_rev:40
[02-05-22 18:27:39:533] B -    450546 - SSMEM init OK
[02-05-22 18:27:39:636] B -    467412 - USB non-zero endpoint requirements: 7 in, 4 out
[02-05-22 18:27:39:636] B -    469242 - opening partition 0:SWIFOTA
[02-05-22 18:27:39:636] B -    471255 - error for readpage:0
[02-05-22 18:27:39:636] B -    476471 - DWL-get: ecnt=0 code=0
[02-05-22 18:27:39:636] B -    490836 - Failed to read size: /swinv/item_files/CUST_IM_SWITCH_HIDE
[02-05-22 18:27:39:636] B -    497333 - Failed to read size: /swinv/item_files/FOTA_PARTITION
[02-05-22 18:27:39:636] B -    497821 - Failed to read size: /swinv/item_files/CUST_IM_CONFIG
[02-05-22 18:27:39:636] B -    510905 - flags: u=1 e=1 obmsk=c,0
[02-05-22 18:27:39:636] B -    520909 - ssmem_release: region 20 not exists
[02-05-22 18:27:39:636] B -    520970 - ssmem_get: region 20 not exists
[02-05-22 18:27:39:636] B -    527253 - Image Load, Start
[02-05-22 18:27:39:699] D -     93696 - QSEE Image Loaded, Delta - (489292 Bytes)
[02-05-22 18:27:39:762] D -       213 - boot_pm_post_tz_device_init, Delta
[02-05-22 18:27:39:768] B -    625341 - sbl1_efs_handle_cookies, Start
[02-05-22 18:27:39:770] D -         0 - sbl1_efs_handle_cookies, Delta
[02-05-22 18:27:39:772] B -    633332 - DEVCFG ELF verification failure
[02-05-22 18:27:39:776] B -    636870 - Image Load, Start
[02-05-22 18:27:39:780] D -        30 - SEC Image Loaded, Delta - (0 Bytes)
[02-05-22 18:27:39:786] B -    644556 - Image Load, Start
[02-05-22 18:27:39:804] D -     55144 - RPM Image Loaded, Delta - (152712 Bytes)
[02-05-22 18:27:39:806] B -    700402 - Image Load, Start
[02-05-22 18:27:39:808] B -    702689 - Auth disabled for image 9
[02-05-22 18:27:39:869] B -    741973 - ssmem_get: region 20 not exists
[02-05-22 18:27:39:871] D -     41632 - APPSBL Image Loaded, Delta - (379176 Bytes)
[02-05-22 18:27:39:874] B -    745237 - QSEE Execution, Start
[02-05-22 18:27:39:876] D -       884 - QSEE Execution, Delta
[02-05-22 18:27:39:879] B -    751947 - SBL1, End
[02-05-22 18:27:39:881] D -    616070 - SBL1, Delta
[02-05-22 18:27:39:888] S - Throughput, 8000 KB/s  (1196044 Bytes,  135561 us)
[02-05-22 18:27:39:890] S - DDR Frequency, 240 MHz
[02-05-22 18:27:39:916] Android Bootloader - UART_DM Initialized!!!
[02-05-22 18:27:39:922] [10] ERROR: No devinfo partition found
[02-05-22 18:27:39:940] [10] Neither 'config' nor 'frp' partition found
[02-05-22 18:27:39:942] [10] ERROR: No misc partition found
[02-05-22 18:27:41:009] [1110] SSMEM init OK[1110] ssmem_get: region 20 not exists[1200] DEBUG: cmdline has root=
[02-05-22 18:27:41:239] [1330] Channel alloc freed

Please paste the following three files which build your yocto image (SWI9X07Y_02.28.06.01) here:
1.yocto/meta-swi/common/recipes-core/cwetool/cwetool/yoctocwetool.sh
2.yocto/kernel/drivers/mtd/nand/nand_ids.c
3.yocto/lk/platform/msm_shared/qpic_nand.c

BTW, did you download the yocto source here?
https://source.sierrawireless.com/resources/airprime/software/wp76xx/wp76xx-firmware-release-13,-d-,1,-d-,1-components/#sthash.mu1ldr0f.m2Q09Jyp.dpbs

Lastly, are you downloading yocto.cwe or appboot.cwe?

@Pankaj can you update on this?

@jyijyi

The yocto source and images for R13.1.1. are downloaded from the source.sierrawireless.com
https://source.sierrawireless.com/resources/airprime/software/wp76xx/wp76xx-firmware-release-13,-d-,1,-d-,1-components/#sthash.mu1ldr0f.hq9igaq4.dpbs

Further the error 68 as seen on your UART console is also seen on FDT tool cmd line.

Below are the files requested:
yoctocwetool.sh (9.2 KB)

nand_ids.c (10.6 KB)
qpic_nand.c (63.2 KB)

Let me know if you need any further information.

try the following:

  1. open yocto/meta-swi/common/recipes-core/cwetool/cwetool/yoctocwetool.sh

  2. in line 59 , change it to
    COMPAT_BYTE=00000101

  3. rebuild the yocto image by “make clean” and “make” command

  4. download the yocto.cwe image to module

1 Like

@jyijyi

Changes are done, do you recommend to use SWICWE to concatenate the appsboot.mbn and yocto.cwe?

Thanks,

Pankaj Sant

@jyijyi

Getting the below error:

ERROR: cwetool-native-git-r0 do_prepare_recipe_sysroot: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: ‘exec_python_func() autogenerated’, lineno: 2, function:
0001:
*** 0002:extend_recipe_sysroot(d)
0003:
File: ‘/home/amruta/Documents/wp76-r13.1.1/yocto/poky/meta/classes/staging.bbclass’, lineno: 551, function: extend_recipe_sysroot
0547: bb.note(“Installed into sysroot: %s” % str(msg_adding))
0548: bb.note(“Skipping as already exists in sysroot: %s” % str(msg_exists))
0549:
0550: for f in fixme:
*** 0551: staging_processfixme(fixme[f], f, recipesysroot, recipesysrootnative, d)
0552:
0553: for p in postinsts:
0554: subprocess.check_output(p, shell=True, stderr=subprocess.STDOUT)
0555:
File: ‘/home/amruta/Documents/wp76-r13.1.1/yocto/poky/meta/classes/staging.bbclass’, lineno: 174, function: staging_processfixme
0170: for fixmevar in [‘COMPONENTS_DIR’, ‘HOSTTOOLS_DIR’, ‘PKGDATA_DIR’, ‘PSEUDO_LOCALSTATEDIR’, ‘LOGFIFO’]:
0171: fixme_path = d.getVar(fixmevar)
0172: cmd += " -e ‘s:FIXME_%s:%s:g’" % (fixmevar, fixme_path)
0173: bb.debug(2, cmd)
*** 0174: subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT)
0175:
0176:
0177:def staging_populate_sysroot_dir(targetsysroot, nativesysroot, native, d):
0178: import glob
File: ‘/usr/lib/python3.6/subprocess.py’, lineno: 356, function: check_output
0352: # empty string. That is maintained here for backwards compatibility.
0353: kwargs[‘input’] = ‘’ if kwargs.get(‘universal_newlines’, False) else b’’
0354:
0355: return run(popenargs, stdout=PIPE, timeout=timeout, check=True,
*** 0356: **kwargs).stdout
0357:
0358:
0359:class CompletedProcess(object):
0360: “”"A process that has finished running.
File: ‘/usr/lib/python3.6/subprocess.py’, lineno: 438, function: run
0434: raise
0435: retcode = process.poll()
0436: if check and retcode:
0437: raise CalledProcessError(retcode, process.args,
*** 0438: output=stdout, stderr=stderr)
0439: return CompletedProcess(process.args, retcode, stdout, stderr)
0440:
0441:
0442:def list2cmdline(seq):
Exception: subprocess.CalledProcessError: Command 'sed -e 's:[1]
/:/home/amruta/Documents/wp76-r13.1.1/yocto/build_bin/tmp/work/x86_64-linux/cwetool-native/git-r0/recipe-sysroot-native/:g’ /home/amruta/Documents/wp76-r13.1.1/yocto/build_bin/tmp/sysroots-components/x86_64/quilt-native/fixmepath /home/amruta/Documents/wp76-r13.1.1/yocto/build_bin/tmp/sysroots-components/x86_64/libtool-native/fixmepath /home/amruta/Documents/wp76-r13.1.1/yocto/build_bin/tmp/sysroots-components/x86_64/gnu-config-native/fixmepath /home/amruta/Documents/wp76-r13.1.1/yocto/build_bin/tmp/sysroots-components/x86_64/autoconf-native/fixmepath /home/amruta/Documents/wp76-r13.1.1/yocto/build_bin/tmp/sysroots-components/x86_64/automake-native/fixmepath | xargs sed -i -e ‘s:FIXMESTAGINGDIRTARGET:/home/amruta/Documents/wp76-r13.1.1/yocto/build_bin/tmp/work/x86_64-linux/cwetool-native/git-r0/recipe-sysroot:g; s:FIXMESTAGINGDIRHOST:/home/amruta/Documents/wp76-r13.1.1/yocto/build_bin/tmp/work/x86_64-linux/cwetool-native/git-r0/recipe-sysroot-native:g’ -e ‘s:FIXME_COMPONENTS_DIR:/home/amruta/Documents/wp76-r13.1.1/yocto/build_bin/tmp/sysroots-components:g’ -e ‘s:FIXME_HOSTTOOLS_DIR:/home/amruta/Documents/wp76-r13.1.1/yocto/build_bin/tmp/hosttools:g’ -e ‘s:FIXME_PKGDATA_DIR:/home/amruta/Documents/wp76-r13.1.1/yocto/build_bin/tmp/pkgdata/swi-mdm9x28-wp:g’ -e ‘s:FIXME_PSEUDO_LOCALSTATEDIR:/home/amruta/Documents/wp76-r13.1.1/yocto/build_bin/tmp/work/x86_64-linux/cwetool-native/git-r0/pseudo/:g’ -e ‘s:FIXME_LOGFIFO:/home/amruta/Documents/wp76-r13.1.1/yocto/build_bin/tmp/work/x86_64-linux/cwetool-native/git-r0/temp/fifo.5878:g’’ returned non-zero exit status 123.

Subprocess output:
sed: cannot remove /home/amruta/Documents/wp76-r13.1.1/yocto/build_bin/tmp/work/x86_64-linux/cwetool-native/git-r0/recipe-sysroot-native/usr/bin/sedCyhRFf: No such file or directory

ERROR: cwetool-native-git-r0 do_prepare_recipe_sysroot: Function failed: extend_recipe_sysroot
ERROR: Task (virtual:native:/home/amruta/Documents/wp76-r13.1.1/yocto/meta-swi/common/recipes-core/cwetool/cwetool_git.bb:do_prepare_recipe_sysroot) failed with exit code ‘1’
NOTE: Tasks Summary: Attempted 2985 tasks of which 2982 didn’t need to be rerun and 1 failed.

Thanks,

Pankaj Sant


  1. ^/ ↩︎