what did you see for the following?
find ./build_bin -name "*.cwe"
I have loaded your yocto image to the mangoh board and see the following debug log in UART2:
Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset), D - Delta, S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.1.2-00095
S - IMAGE_VARIANT_STRING=LAATANAZA
S - OEM_IMAGE_VERSION_STRING=jenkins
S - Boot Config, 0x000002e1
B - 1216 - PBL, Start
B - 3720 - bootable_media_detect_entry, Start
B - 4988 - bootable_media_detect_success, Start
B - 4992 - elf_loader_entry, Start
B - 8446 - auth_hash_seg_entry, Start
B - 32095 - auth_hash_seg_exit, Start
B - 83477 - elf_segs_hash_verify_entry, Start
B - 130546 - PBL, End
B - 138897 - SBL1, Start
B - 196725 - pm_device_init, Start
B - 216885 - PM_SET_VAL:Skip
D - 18788 - pm_device_init, Delta
B - 218532 - boot_config_data_table_init, Start
D - 0 - boot_config_data_table_init, Delta - (0 Bytes)
B - 227011 - CDT version:3,Platform ID:8,Major ID:1,Minor ID:0,Subtype:129
B - 233904 - sbl1_ddr_set_params, Start
B - 237656 - Pre_DDR_clock_init, Start
D - 213 - Pre_DDR_clock_init, Delta
D - 0 - sbl1_ddr_set_params, Delta
B - 250344 - pm_driver_init, Start
D - 4483 - pm_driver_init, Delta
B - 256688 - cpr_init, Start
D - 122 - cpr_init, Delta
B - 261263 - cpr_cx_mx_apc_vol_update, Start
D - 91 - cpr_cx_mx_apc_vol_update, Delta
B - 276452 - clock_init, Start
D - 152 - clock_init, Delta
B - 276696 - boot_flash_init, Start
D - 39894 - boot_flash_init, Delta
B - 319609 - boot_flash_swi_ddr_init, Start
D - 30683 - boot_flash_swi_ddr_init, Delta
B - 548268 - Invalid PMIC gpio 3
B - 548329 - Invalid PMIC gpio 3
B - 548359 - Failed to configure/read HW ID minor bit 0
B - 553666 - hw_family:5, hw_type:16, hw_rev:16
B - 561901 - SSMEM init OK
B - 565439 - DEBUG OU: 0000000000000002
B - 565500 - DEBUG OU - setting: 2
B - 567971 - is_memory_dump_allowed (0) in this secure module
B - 589687 - USB non-zero endpoint requirements: 9 in, 5 out
B - 591364 - opening partition 0:SWIFOTA
B - 593469 - error for readpage:0
B - 598776 - DWL-get: ecnt=1 code=0
B - 606309 - API change: date not generated by cwe_header_init
B - 613172 - Failed to read size: /swinv/item_files/CUST_IM_SWITCH_HIDE
B - 620766 - Failed to read size: /swinv/item_files/CUST_IM_CONFIG
B - 627415 - flags: u=1 e=1 obmsk=c,0
B - 637053 - error for readpage:0
B - 637572 - error for readpage:64
B - 638182 - error for readpage:128
B - 641323 - error for readpage:192
B - 644343 - ssmem_release: region 20 not exists
B - 649009 - ssmem_get: region 20 not exists
B - 654560 - Image Load, Start
D - 92202 - QSEE Image Loaded, Delta - (461644 Bytes)
D - 213 - boot_pm_post_tz_device_init, Delta
B - 751154 - sbl1_efs_handle_cookies, Start
D - 0 - sbl1_efs_handle_cookies, Delta
B - 759145 - DEVCFG ELF verification failure
B - 762713 - Image Load, Start
D - 30 - SEC Image Loaded, Delta - (0 Bytes)
B - 770399 - Image Load, Start
D - 55541 - RPM Image Loaded, Delta - (154624 Bytes)
B - 826641 - Image Load, Start
B - 828868 - Auth disabled for image 9
B - 872513 - error for readpage:0
B - 873032 - error for readpage:64
B - 873642 - error for readpage:128
B - 876783 - error for readpage:192
B - 879803 - ssmem_release: region 20 not exists
B - 884469 - ssmem_get: region 20 not exists
D - 62098 - APPSBL Image Loaded, Delta - (409864 Bytes)
B - 894016 - QSEE Execution, Start
D - 976 - QSEE Execution, Delta
B - 900726 - SBL1, End
D - 764116 - SBL1, Delta
S - Throughput, 8000 KB/s (1213332 Bytes, 137855 us)
S - DDR Frequency, 240 MHz
Android Bootloader - UART_DM Initialized!!!
[10] ERROR: No devinfo partition found
[10] Neither 'config' nor 'frp' partition found
[10] ERROR: No misc partition found
[1420] SSMEM init OK[1420] ssmem_get: region 20 not exists[1510] DEBUG: cmdline has root=
[1680] Channel alloc freed
[ 0.000000] GIC CPU mask not found - kernel will fail to boot.
[ 0.000000] GIC CPU mask not found - kernel will fail to boot.
[ 0.000000] MPM 1 irq mapping errored -517
[ 0.215663] spmi_pmic_arb 200f000.qcom,spmi: PMIC Arb Version-2 0x20010000
[ 0.230714] SWI ssmem_framework_init: SSMEM init OK
[ 0.230797] mdm9607-pinctrl 1000000.pinctrl: gpio-bit-map = 36
[ 0.232349] msm_mpm_dev_probe(): Cannot get clk resource for XO: -517
[ 0.235503] smd_channel_probe_now: allocation table not initialized
[ 0.243255] msm_thermal:msm_thermal_dev_probe Failed reading node=/soc/qcom,msm-thermal, key=qcom,online-hotplug-core. err:-517
[ 0.271302] msm_mpm_dev_probe(): Cannot get clk resource for XO: -517
[ 0.274195] msm_thermal:get_kernel_cluster_info CPU0 topology not initialized.
[ 0.275133] cpu cpu0: dev_pm_opp_get_opp_count: device OPP not found (-19)
[ 0.275150] msm_thermal:get_cpu_freq_plan_len Error reading CPU0 freq table len. error:-19
[ 0.275885] cpu cpu0: dev_pm_opp_get_opp_count: device OPP not found (-19)
[ 0.275902] msm_thermal:get_cpu_freq_plan_len Error reading CPU0 freq table len. error:-19
[ 0.275918] cpu cpu0: dev_pm_opp_get_opp_count: device OPP not found (-19)
[ 0.275931] msm_thermal:get_cpu_freq_plan_len Error reading CPU0 freq table len. error:-19
[ 0.369979] AXI: msm_bus_scale_register_client(): msm_bus_scale_register_client: Bus driver not ready.
[ 0.371881] AXI: msm_bus_scale_register_client(): msm_bus_scale_register_client: Bus driver not ready.
[ 0.380338] mci_protocol_frame_send: write frame fail to I2C: -107 of 2[ 0.380367] swimcu_ping: Failed to send PING
[ 0.386049] pca953x 4-0020: failed reading register
[ 0.387009] pca953x 4-0022: failed reading register
[ 0.390730] msm_bus_fabric_init_driver
[ 0.569654] sierra_gpio soc:sierra_gpio: property "compatible": length 12
[ 0.569668] sierra_gpio soc:sierra_gpio: property "alias-2": length 12
[ 0.569780] sierra_gpio soc:sierra_gpio: property "alias-4": length 12
[ 0.569838] sierra_gpio soc:sierra_gpio: property "alias-6": length 12
[ 0.569893] sierra_gpio soc:sierra_gpio: property "alias-7": length 12
[ 0.569947] sierra_gpio soc:sierra_gpio: property "alias-8": length 12
[ 0.570000] sierra_gpio soc:sierra_gpio: property "alias-13": length 12
[ 0.570312] sierra_gpio soc:sierra_gpio: property "alias-21": length 12
[ 0.570393] sierra_gpio soc:sierra_gpio: property "alias-22": length 12
[ 0.570451] sierra_gpio soc:sierra_gpio: property "alias-23": length 12
[ 0.570504] sierra_gpio soc:sierra_gpio: property "alias-24": length 12
[ 0.570558] sierra_gpio soc:sierra_gpio: property "alias-25": length 12
[ 0.570611] sierra_gpio soc:sierra_gpio: property "alias-28": length 12
[ 0.570666] sierra_gpio soc:sierra_gpio: property "alias-29": length 12
[ 0.570719] sierra_gpio soc:sierra_gpio: property "alias-30": length 12
[ 0.570774] sierra_gpio soc:sierra_gpio: property "alias-31": length 12
[ 0.570827] sierra_gpio soc:sierra_gpio: property "alias-32": length 12
[ 0.570881] sierra_gpio soc:sierra_gpio: property "alias-33": length 12
[ 0.570934] sierra_gpio soc:sierra_gpio: property "alias-35": length 12
[ 0.570989] sierra_gpio soc:sierra_gpio: property "alias-36": length 8
[ 0.571019] sierra_gpio soc:sierra_gpio: property "alias-37": length 8
[ 0.571048] sierra_gpio soc:sierra_gpio: property "alias-38": length 8
[ 0.571078] sierra_gpio soc:sierra_gpio: property "alias-40": length 8
[ 0.571109] sierra_gpio soc:sierra_gpio: property "alias-41": length 8
[ 0.571138] sierra_gpio soc:sierra_gpio: property "alias-42": length 12
[ 0.571193] sierra_gpio soc:sierra_gpio: property "alias-RI": length 12
[ 0.571258] sierra_gpio soc:sierra_gpio: property "alias-WLAN_EN": length 12
[ 0.571312] sierra_gpio soc:sierra_gpio: property "alias-WIFI_IRQ": length 12
[ 0.571367] sierra_gpio soc:sierra_gpio: property "alias-FX30-DIGITAL_INPUT1_N": length 12
[ 0.571423] sierra_gpio soc:sierra_gpio: property "alias-FX30-PB_INPUT": length 12
[ 0.571477] sierra_gpio soc:sierra_gpio: property "alias-FX30-DIGITAL_INPUT2_N": length 12
[ 0.571532] sierra_gpio soc:sierra_gpio: property "alias-FX30-DIGITAL_INPUT3_N": length 12
[ 0.571600] sierra_gpio soc:sierra_gpio: property "alias-FX30-ON_OFF_MON_N": length 12
[ 0.571656] sierra_gpio soc:sierra_gpio: property "alias-FX30-IOT_DETECT": length 12
[ 0.571713] sierra_gpio soc:sierra_gpio: property "alias-FX30-GPIO29": length 12
[ 0.571769] sierra_gpio soc:sierra_gpio: property "alias-FX30-HUB_ENABLE": length 12
[ 0.571825] sierra_gpio soc:sierra_gpio: property "alias-FX30-ULPM_WAKE1_36": length 8
[ 0.571857] sierra_gpio soc:sierra_gpio: property "alias-FX30-ULPM_WAKE1_38": length 8
[ 0.571888] sierra_gpio soc:sierra_gpio: property "alias-FX30-NETWORK_LED_RED": length 12
[ 0.571921] sierra_gpio soc:sierra_gpio: property "alias-FX30-NETWORK_LED_GRN": length 12
[ 0.571951] sierra_gpio soc:sierra_gpio: property "alias-FX30-SIGNAL_LED_RED": length 12
[ 0.571981] sierra_gpio soc:sierra_gpio: property "alias-FX30-SIGNAL_LED_GRN": length 12
[ 0.572010] sierra_gpio soc:sierra_gpio: property "alias-FX30-USER_LED_RED": length 12
[ 0.572041] sierra_gpio soc:sierra_gpio: property "alias-FX30-USER_LED_GRN": length 12
[ 0.572071] sierra_gpio soc:sierra_gpio: property "alias-FX30-POWER_LED_RED_N": length 12
[ 0.572101] sierra_gpio soc:sierra_gpio: property "alias-FX30-POWER_LED_GRN": length 12
[ 0.572131] sierra_gpio soc:sierra_gpio: property "alias-FX30-POWER_LED_MUX": length 12
[ 0.572162] sierra_gpio soc:sierra_gpio: property "alias-FX30-GPS_BIAS_EN": length 12
[ 0.572192] sierra_gpio soc:sierra_gpio: property "alias-FX30-IO_PULLUP_EN2": length 12
[ 0.572223] sierra_gpio soc:sierra_gpio: property "alias-FX30-IO_PULLUP_EN3": length 12
[ 0.572253] sierra_gpio soc:sierra_gpio: property "alias-FX30-ETH_DISABLE_N": length 12
[ 0.572283] sierra_gpio soc:sierra_gpio: property "alias-FX30-DIGITAL_OUTPUT3": length 12
[ 0.572314] sierra_gpio soc:sierra_gpio: property "alias-FX30-IO_PULLUP_EN1": length 12
[ 0.572344] sierra_gpio soc:sierra_gpio: property "alias-FX30-POWER_HOLD": length 12
[ 0.572375] sierra_gpio soc:sierra_gpio: property "alias-FX30S-DIGITAL_INPUT1_N": length 12
[ 0.572432] sierra_gpio soc:sierra_gpio: property "alias-FX30S-PB_INPUT": length 12
[ 0.572489] sierra_gpio soc:sierra_gpio: property "alias-FX30S-DIGITAL_INPUT2_N": length 12
[ 0.572547] sierra_gpio soc:sierra_gpio: property "alias-FX30S-DIGITAL_INPUT3_N": length 12
[ 0.572603] sierra_gpio soc:sierra_gpio: property "alias-FX30S-ON_OFF_MON_N": length 12
[ 0.572661] sierra_gpio soc:sierra_gpio: property "alias-FX30S-IOT_DETECT": length 12
[ 0.572719] sierra_gpio soc:sierra_gpio: property "alias-FX30S-GPIO29": length 12
[ 0.572775] sierra_gpio soc:sierra_gpio: property "alias-FX30S-HUB_ENABLE": length 12
[ 0.572832] sierra_gpio soc:sierra_gpio: property "alias-FX30S-ULPM_WAKE1_36": length 8
[ 0.572865] sierra_gpio soc:sierra_gpio: property "alias-FX30S-ULPM_WAKE1_38": length 8
[ 0.572897] sierra_gpio soc:sierra_gpio: property "alias-FX30S-NETWORK_LED_RED": length 12
[ 0.572931] sierra_gpio soc:sierra_gpio: property "alias-FX30S-NETWORK_LED_GRN": length 12
[ 0.572963] sierra_gpio soc:sierra_gpio: property "alias-FX30S-SIGNAL_LED_RED": length 12
[ 0.572995] sierra_gpio soc:sierra_gpio: property "alias-FX30S-SIGNAL_LED_GRN": length 12
[ 0.573026] sierra_gpio soc:sierra_gpio: property "alias-FX30S-USER_LED_RED": length 12
[ 0.573059] sierra_gpio soc:sierra_gpio: property "alias-FX30S-USER_LED_GRN": length 12
[ 0.573090] sierra_gpio soc:sierra_gpio: property "alias-FX30S-POWER_LED_RED_N": length 12
[ 0.573122] sierra_gpio soc:sierra_gpio: property "alias-FX30S-POWER_LED_GRN": length 12
[ 0.573154] sierra_gpio soc:sierra_gpio: property "alias-FX30S-POWER_LED_MUX": length 12
[ 0.573186] sierra_gpio soc:sierra_gpio: property "alias-FX30S-GPS_BIAS_EN": length 12
[ 0.573218] sierra_gpio soc:sierra_gpio: property "alias-FX30S-IO_PULLUP_EN2": length 12
[ 0.573251] sierra_gpio soc:sierra_gpio: property "alias-FX30S-IO_PULLUP_EN3": length 12
[ 0.573283] sierra_gpio soc:sierra_gpio: property "alias-FX30S-GPIO55": length 12
[ 0.573316] sierra_gpio soc:sierra_gpio: property "alias-FX30S-DIGITAL_OUTPUT3": length 12
[ 0.573348] sierra_gpio soc:sierra_gpio: property "alias-FX30S-IO_PULLUP_EN1": length 12
[ 0.573382] sierra_gpio soc:sierra_gpio: property "alias-FX30S-POWER_HOLD": length 12
[ 0.573413] sierra_gpio soc:sierra_gpio: property "alias-FX30S-RS485_OUT_EN": length 12
[ 0.573445] sierra_gpio soc:sierra_gpio: property "alias-FX30S-RS485_IN_EN_N": length 12
[ 0.573478] sierra_gpio soc:sierra_gpio: property "alias-FX30S-RS485_POL_N": length 12
[ 0.573510] sierra_gpio soc:sierra_gpio: property "alias-FX30S-GPIO64": length 12
[ 0.573543] sierra_gpio soc:sierra_gpio: property "alias-FX30S-GPIO65": length 12
[ 0.573575] sierra_gpio soc:sierra_gpio: property "alias-FX30S-GPIO66": length 12
[ 0.573608] sierra_gpio soc:sierra_gpio: property "name": length 12
[ 0.573618] sierra_gpio soc:sierra_gpio: Skipping unknown property "name"
[ 0.582497] uart_tx_gpio is not available
[ 0.582518] uart_rx_gpio is not available
[ 0.582537] uart_cts_gpio is not available
[ 0.582555] uart_rfr_gpio is not available
[ 0.583214] sps: BAM device 0x07884000 is not registered yet.
[ 0.588106] uart_tx_gpio is not available
[ 0.588126] uart_rx_gpio is not available
[ 0.588145] uart_cts_gpio is not available
[ 0.588163] uart_rfr_gpio is not available
[ 1.447544] mdm9607-pinctrl 1000000.pinctrl: pin GPIO_4 already requested by 78b0000.uart; cannot claim for 78b0000.serial
[ 1.458002] mdm9607-pinctrl 1000000.pinctrl: pin-4 (78b0000.serial) status -22
[ 1.465182] mdm9607-pinctrl 1000000.pinctrl: could not request pin 4 (GPIO_4) from group gpio4 on device 1000000.pinctrl
[ 1.476118] msm_serial_hsl 78b0000.serial: Error applying setting, reverse things back
[ 1.534811] sps: BAM device 0x07984000 is not registered yet.
[ 1.583953] unable to find DT imem DLOAD mode node
[ 1.588009] unable to find DT imem EDLOAD mode node
[ 1.593028] unable to find DT imem dload-type node
[ 1.597514] Failed to disable secure wdog debug: -4
[ 1.629050] devfreq soc:qcom,cpubw: Couldn't update frequency transition information.
[ 1.637091] sdhci_msm 7864900.sdhci: sdhci_msm_pm_qos_parse_irq: error -22 reading irq cpu
[ 1.645155] coresight_event: error registering on panic -38
[ 1.654446] coresight-tmc 6025000.tmc: failed to get flush cti
[ 1.659245] coresight-tmc 6025000.tmc: failed to get reset cti
[ 1.724689] mdm9607-asoc-snd soc:sound-wm8944: Defering mdm_asoc_machine_probe, q6_state 0
[ 1.747031] mdm9607-asoc-snd soc:sound-wm8944: Defering mdm_asoc_machine_probe, q6_state 0
[ 1.772682] mdm9607-asoc-snd soc:sound-wm8944: Defering mdm_asoc_machine_probe, q6_state 0
[ 1.787677] calculate_residency: residency < 0 for LPM
[ 1.800630] mdm9607-asoc-snd soc:sound-wm8944: Defering mdm_asoc_machine_probe, q6_state 0
[ 1.807915] parse_cpu_levels: idx 1 420
[ 1.811742] SWI ssmem_alloc_entry_get: ssmem region 20 not allocated
[ 1.811748] SWI ssmem_get: ssmem_get: region 20 not exists
[ 1.830139] calculate_residency: residency < 0 for LPM
[ 1.834243] parse_cpu_levels: idx 2 500
[ 1.838064] parse_cpu_levels: idx 2 3040
[ 1.851126] mdm9607-asoc-snd soc:sound-wm8944: Defering mdm_asoc_machine_probe, q6_state 0
[ 1.870909] mdm9607-asoc-snd soc:sound-wm8944: Defering mdm_asoc_machine_probe, q6_state 0
ima: setting up IMA subsystem...
ima: feature not supported
The proc node does not exist
mount root fs from partition (rootfs|system)
UBI device number 0, total 120 LEBs (30474240 bytes, 29.0 MiB), available 0 LEBs (0 bytes), LEB size 253952 bytes (248.0 KiB)
dm-verity key not installed, authentication disabled
Non-Secure version.
rootfs roothash set at compile time: 373894ec05afc6ab6cbf980e7306ac3b8adbca8e8050e9793182acb9e8023788
rootfs: dev '/dev/ubiblock0_0' 'squashfs'
mount /dev/mapper/rt
rootfs: mounting took 0ms
rcS: Executing mount_essential_fs...
rcS: Executing simple_network...
rcS: Executing check_recovery...
/etc/init.d/rcS: line 126: /etc/init.d/factory_default_recovery.sh: not found
System error!
run_getty.sh: ttyHSL1 reserved for CONSOLE
Poky (Yocto Project Reference Distro) 2.5.3 (none) /dev/ttyHSL1
(none) login:
It seems the problem is :
/etc/init.d/rcS: line 126: /etc/init.d/factory_default_recovery.sh: not found
System error!
you can double check your source code if you have such file in ./meta-swi-extras/meta-swi-mdm9x28-fx30/recipes/columbia-initscripts/files/. (and also check ./meta-swi-extras/meta-swi-mdm9x28-fx30/recipes/columbia-initscripts/columbia-initscripts.bb if this file is included)
Here is a successful boot up log for official release FX30_WP76xx_full_R16.0.1.006-generic-SWI9X07Y_02.37.03.00.cwe:
log_FX30_WP76xx_full_R16.0.1.006-generic-SWI9X07Y_02.37.03.00.log (32.0 KB)
Here is the /etc/init.d/factory_default_recovery.sh inside the official image:
factory_default_recovery.sh (1.4 KB)
root@fx30:~# ls /etc/init.d/factory_default_recovery.sh
/etc/init.d/factory_default_recovery.sh
root@fx30:~# cat /etc/init.d/factory_default_recovery.sh
#!/bin/sh
# Conditionaly resets environment to factory default.
. /etc/run.env
check_and_recover_default()
{
# Recovery is enabled by default.
enable=1
mount_early_userrw_start
if [ -e /mnt/userrw/sierra/.efdr ]; then
read enable < /mnt/userrw/sierra/.efdr
fi
mount_early_userrw_stop
if [ "$enable" != "0" ]; then
# For /etc and /data.
mount_early_user_start
# Removes preserved files.
/bin/rm -fR ${UFS_ROOT}/etc ${UFS_ROOT}/data /mnt/flash/config/system/etc/noLoginNag
sync
mount_early_user_stop
# ld.so.cache shall be regenerated.
(while [ ! -d /legato/systems ]; do sleep 1; done; touch /legato/systems/needs_ldconfig /tmp/.fdr)&
fi
# No error is forwarded to the caller.
exit 0
}
# Has the user requested a reset ?
if grep -q /proc/cmdline -e "reset_to_default=true"; then
# This construct might seem a bit weird... The problem is, the mounting
# functions defined in the existing scripts can't be executed independently :
# the script mount_early expects an argument.
# As only a couple of functions are required, the script is sourced, and the
# failure on the missing mandatory argument leads to a premature exit, then
# caught thanks to the call to trap : check_and_recover_default is thus
# executed, while keeping the environment defined in mount_early .
(trap check_and_recover_default EXIT; . /etc/init.d/mount_early)
fi
root@fx30:~# microcom /dev/ttyAT
ati3
Manufacturer: Sierra Wireless, Incorporated
Model: WP7605
Revision: SWI9X07Y_02.37.03.00 73df45 jenkins 2020/04/08 10:59:14
IMEI: 353532100020465
IMEI SV: 14
FSN: 2A917285070404
+GCAP: +CGSM
OK
ati8
Legato Ver: 19.11.5.86c98a88_535cbe294c2b528b4fc38a47809866e9
Yocto Ver: SWI9X07Y_02.37.09.00 2021-07-01_04:47:21
OS Ver: Linux version 3.18.140 (oe-user@oe-host) (gcc version 7.3.0 (GCC) ) #1 PREEMPT Thu Jul 1 03:48:04 UTC 2021
LK Ver: 1.3.0_e8dee1d404
RootFS Ver: SWI9X07Y_02.37.09.00 2021-07-01_04:47:21
UserFS Ver: unknown
MCU Ver: unknown
OK
root@fx30:~#