SPK that flashes to a FX30(WP7607-1) does not flash to FX30S(WP7611-1)

Did not spot the git error thanks… that is resolved… but I am still getting the do_generate_version_file error


DEBUG: Executing python function do_image
NOTE: Executing mklibs_optimize_image ...
DEBUG: Executing shell function mklibs_optimize_image
DEBUG: Shell function mklibs_optimize_image finished
NOTE: Executing do_generate_version_file ...
DEBUG: Executing shell function do_generate_version_file
+ DST=/home/legato/projects/DLC-Gateways/swi-linux-src/build_bin/tmp/work/swi_mdm9x28_fx30-poky-linux-gnueabi/mdm9x28-image-minimal/1.0-r0.0/rootfs/etc/legato/version
+ ROOTFS_DST=/home/legato/projects/DLC-Gateways/swi-linux-src/build_bin/tmp/work/swi_mdm9x28_fx30-poky-linux-gnueabi/mdm9x28-image-minimal/1.0-r0.0/rootfs/etc/rootfsver.txt
++ dirname /home/legato/projects/DLC-Gateways/swi-linux-src/build_bin/tmp/work/swi_mdm9x28_fx30-poky-linux-gnueabi/mdm9x28-image-minimal/1.0-r0.0/rootfs/etc/legato/version
+ mkdir -p /home/legato/projects/DLC-Gateways/swi-linux-src/build_bin/tmp/work/swi_mdm9x28_fx30-poky-linux-gnueabi/mdm9x28-image-minimal/1.0-r0.0/rootfs/etc/legato
++ date +%F_%T
+ gen_date=2023-03-03_08:21:41
++ echo /home/legato/projects/DLC-Gateways/swi-linux-src/poky/meta /home/legato/projects/DLC-Gateways/swi-linux-src/poky/meta-poky /home/legato/projects/DLC-Gateways/swi-linux-src/poky/meta-yocto-bsp /home/legato/projects/DLC-Gateways/swi-linux-src/meta-openembedded/meta-oe /home/legato/projects/DLC-Gateways/swi-linux-src/meta-openembedded/meta-networking /home/legato/projects/DLC-Gateways/swi-linux-src/meta-openembedded/meta-python /home/legato/projects/DLC-Gateways/swi-linux-src/meta-gplv2 /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi/common /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi/meta-swi-mdm9xxx /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi/meta-swi-mdm9x28 /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi/meta-swi-mdm9x28-fx30 /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/common /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28 /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/meta-swi-mdm9xxx-bin /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-fx30-bin
++ tr ' ' '\n'
++ grep poky
++ head -1
+ poky_dir=/home/legato/projects/DLC-Gateways/swi-linux-src/poky/meta
++ cd /home/legato/projects/DLC-Gateways/swi-linux-src/poky/meta
++ git describe --tags '--match=yocto*'
+ VERSION_poky=yocto-2.5.3-35-gcbb677e9a0
++ echo /home/legato/projects/DLC-Gateways/swi-linux-src/poky/meta /home/legato/projects/DLC-Gateways/swi-linux-src/poky/meta-poky /home/legato/projects/DLC-Gateways/swi-linux-src/poky/meta-yocto-bsp /home/legato/projects/DLC-Gateways/swi-linux-src/meta-openembedded/meta-oe /home/legato/projects/DLC-Gateways/swi-linux-src/meta-openembedded/meta-networking /home/legato/projects/DLC-Gateways/swi-linux-src/meta-openembedded/meta-python /home/legato/projects/DLC-Gateways/swi-linux-src/meta-gplv2 /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi/common /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi/meta-swi-mdm9xxx /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi/meta-swi-mdm9x28 /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi/meta-swi-mdm9x28-fx30 /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/common /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28 /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/meta-swi-mdm9xxx-bin /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-fx30-bin
++ tr ' ' '\n'
++ grep -E 'meta-oe$'
+ meta_oe_dir=/home/legato/projects/DLC-Gateways/swi-linux-src/meta-openembedded/meta-oe
++ cd /home/legato/projects/DLC-Gateways/swi-linux-src/meta-openembedded/meta-oe
++ git rev-parse --short HEAD
+ VERSION_meta_oe=8760facba
+ echo /home/legato/projects/DLC-Gateways/swi-linux-src/poky/meta /home/legato/projects/DLC-Gateways/swi-linux-src/poky/meta-poky /home/legato/projects/DLC-Gateways/swi-linux-src/poky/meta-yocto-bsp /home/legato/projects/DLC-Gateways/swi-linux-src/meta-openembedded/meta-oe /home/legato/projects/DLC-Gateways/swi-linux-src/meta-openembedded/meta-networking /home/legato/projects/DLC-Gateways/swi-linux-src/meta-openembedded/meta-python /home/legato/projects/DLC-Gateways/swi-linux-src/meta-gplv2 /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi/common /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi/meta-swi-mdm9xxx /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi/meta-swi-mdm9x28 /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi/meta-swi-mdm9x28-fx30 /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/common /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28 /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/meta-swi-mdm9xxx-bin /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-fx30-bin
+ grep meta-swi/common
/home/legato/projects/DLC-Gateways/swi-linux-src/poky/meta /home/legato/projects/DLC-Gateways/swi-linux-src/poky/meta-poky /home/legato/projects/DLC-Gateways/swi-linux-src/poky/meta-yocto-bsp /home/legato/projects/DLC-Gateways/swi-linux-src/meta-openembedded/meta-oe /home/legato/projects/DLC-Gateways/swi-linux-src/meta-openembedded/meta-networking /home/legato/projects/DLC-Gateways/swi-linux-src/meta-openembedded/meta-python /home/legato/projects/DLC-Gateways/swi-linux-src/meta-gplv2 /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi/common /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi/meta-swi-mdm9xxx /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi/meta-swi-mdm9x28 /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi/meta-swi-mdm9x28-fx30 /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/common /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28 /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/meta-swi-mdm9xxx-bin /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-fx30-bin
++ echo /home/legato/projects/DLC-Gateways/swi-linux-src/poky/meta /home/legato/projects/DLC-Gateways/swi-linux-src/poky/meta-poky /home/legato/projects/DLC-Gateways/swi-linux-src/poky/meta-yocto-bsp /home/legato/projects/DLC-Gateways/swi-linux-src/meta-openembedded/meta-oe /home/legato/projects/DLC-Gateways/swi-linux-src/meta-openembedded/meta-networking /home/legato/projects/DLC-Gateways/swi-linux-src/meta-openembedded/meta-python /home/legato/projects/DLC-Gateways/swi-linux-src/meta-gplv2 /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi/common /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi/meta-swi-mdm9xxx /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi/meta-swi-mdm9x28 /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi/meta-swi-mdm9x28-fx30 /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/common /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28 /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/meta-swi-mdm9xxx-bin /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-fx30-bin
++ tr ' ' '\n'
++ grep -E 'meta-swi/common$'
+ meta_swi_dir=/home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi/common
+ cd /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi/common
++ git describe --tags --exact
+ meta_swi_tag=SWI9X06Y_02.35.02.00
++ git rev-parse --short HEAD
+ VERSION_meta_swi=62a9465
+ '[' -n SWI9X06Y_02.35.02.00 ']'
+ VERSION_meta_swi='(SWI9X06Y_02.35.02.00) 62a9465'
+ '[' -n /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/common ']'
+ cd /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/common
++ git describe --tags --exact
+ meta_swi_extras_tag=SWI9X06Y_02.35.00.00
++ git rev-parse --short HEAD
+ VERSION_meta_swi_extras=c0aad6c
+ '[' -n SWI9X06Y_02.35.00.00 ']'
+ VERSION_meta_swi_extras='(SWI9X06Y_02.35.00.00) c0aad6c'
+ determine_kernel_versions
+ cd /home/legato/projects/DLC-Gateways/swi-linux-src/build_bin/tmp/work/swi_mdm9x28_fx30-poky-linux-gnueabi/mdm9x28-image-minimal/1.0-r0.0/deploy-mdm9x28-image-minimal-image-complete
+ '[' '!' -e /home/legato/projects/DLC-Gateways/swi-linux-src/build_bin/tmp/work/swi_mdm9x28_fx30-poky-linux-gnueabi/mdm9x28-image-minimal/1.0-r0.0/deploy-mdm9x28-image-minimal-image-complete/mdm9x28-image-minimal-swi-mdm9x28-fx30-20230303082130.rootfs.manifest ']'
+ echo 'Image manifest does not exist.'
Image manifest does not exist.
+ exit 1
+ bb_exit_handler
+ ret=1
+ case $ret in
+ case $BASH_VERSION in
+ echo 'WARNING: /home/legato/projects/DLC-Gateways/swi-linux-src/build_bin/tmp/work/swi_mdm9x28_fx30-poky-linux-gnueabi/mdm9x28-image-minimal/1.0-r0.0/temp/run.do_generate_version_file.27148:1 exit 1 from '\''exit 1'\'''
WARNING: /home/legato/projects/DLC-Gateways/swi-linux-src/build_bin/tmp/work/swi_mdm9x28_fx30-poky-linux-gnueabi/mdm9x28-image-minimal/1.0-r0.0/temp/run.do_generate_version_file.27148:1 exit 1 from 'exit 1'
+ exit 1
DEBUG: Python function do_image finished
ERROR: Function failed: do_generate_version_file (log file is located at /home/legato/projects/DLC-Gateways/swi-linux-src/build_bin/tmp/work/swi_mdm9x28_fx30-poky-linux-gnueabi/mdm9x28-image-minimal/1.0-r0.0/temp/log.do_image.27148)

This might require a clean a build again… the timestamp in the filename is different for the manifest file… I will try that…

Here go another few hours doh

OK this time it got a little further but ended with an error

Higher up the log there is this error

ERROR: Checksum failure fetching http://downloads.yoctoproject.org/releases/uninative/2.4/x86_64-nativesdk-libc.tar.bz2;sha256sum=06f91685b782f2ccfedf3070b3ba0fe4a5ba2f0766dad5c9d1642dccf95accd0
W

This is the full log

make prod=FX30
"meta-swi/build.sh" -p poky/ -o meta-openembedded/ -l meta-swi -x "kernel" -j 9 -t 9  -g -a "LEGATO_WORKDIR=/home/legato/projects/DLC-Gateways/swi-linux-src/legato/"    -a "IMA_SUPPORT_TOOLS_REPO=git:///home/legato/projects/DLC-Gateways/swi-linux-src/legato/3rdParty/ima-support-tools/.git;protocol=file;usehead=1" -a "IMA_SUPPORT_TOOLS_REV=\${AUTOREV}"     -a LK_REPO_DIR="/home/legato/projects/DLC-Gateways/swi-linux-src" -a LK_REPO_NAME="lk" -a LK_REPO="file://lk" -m swi-mdm9x28 -P wp  -b build_bin -q
Poky dir: /home/legato/projects/DLC-Gateways/swi-linux-src/poky
OE meta: /home/legato/projects/DLC-Gateways/swi-linux-src/meta-openembedded
SWI meta dir: /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi
Linux repo dir: /home/legato/projects/DLC-Gateways/swi-linux-src/kernel
Number of make threads 9
Number of bitbake tasks 9
With Legato
Extra options added -  LEGATO_WORKDIR=/home/legato/projects/DLC-Gateways/swi-linux-src/legato/
Extra options added -  IMA_SUPPORT_TOOLS_REPO=git:///home/legato/projects/DLC-Gateways/swi-linux-src/legato/3rdParty/ima-support-tools/.git;protocol=file;usehead=1
Extra options added -  IMA_SUPPORT_TOOLS_REV=${AUTOREV}
Extra options added -  LK_REPO_DIR=/home/legato/projects/DLC-Gateways/swi-linux-src
Extra options added -  LK_REPO_NAME=lk
Extra options added -  LK_REPO=file://lk
SWI machine: swi-mdm9x28
SWI product: wp
Build dir: /home/legato/projects/DLC-Gateways/swi-linux-src/build_bin
Enable Qualcomm Proprietary bin
You had no conf/local.conf file. This configuration file has therefore been
created for you with some default values. You may wish to edit it to, for
example, select a different MACHINE (target hardware). See conf/local.conf
for more information as common configuration options are commented.

You had no conf/bblayers.conf file. This configuration file has therefore been
created for you with some default values. To add additional metadata layers
into your configuration please add entries to conf/bblayers.conf.

The Yocto Project has extensive documentation about OE including a reference
manual which can be found at:
    http://yoctoproject.org/documentation

For more information about OpenEmbedded see their website:
    http://www.openembedded.org/


### Shell environment set up for builds. ###

You can now run 'bitbake <target>'

Common targets are:
    core-image-minimal
    core-image-sato
    meta-toolchain
    meta-ide-support

You can also run generated qemu images with a command like 'runqemu qemux86'
+ layer: meta-oe
         -> /home/legato/projects/DLC-Gateways/swi-linux-src/meta-openembedded/meta-oe
+ layer: meta-networking
         -> /home/legato/projects/DLC-Gateways/swi-linux-src/meta-openembedded/meta-networking
+ layer: meta-python
         -> /home/legato/projects/DLC-Gateways/swi-linux-src/meta-openembedded/meta-python
+ layer: meta-gplv2
         -> /home/legato/projects/DLC-Gateways/swi-linux-src/meta-gplv2
+ layer: meta-swi/common
         -> /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi/common
+ layer: meta-swi/meta-swi-mdm9xxx
         -> /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi/meta-swi-mdm9xxx
+ layer: meta-swi/meta-swi-mdm9x28
         -> /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi/meta-swi-mdm9x28
+ layer: meta-swi-extras/common
         -> /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/common
+ layer: meta-swi-extras/meta-swi-mdm9x28
         -> /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28
+ layer: meta-swi-extras/meta-swi-mdm9xxx-bin
         -> /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/meta-swi-mdm9xxx-bin
+ layer: meta-swi-extras/meta-swi-mdm9x28-bin
         -> /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin
+ layer: meta-swi-extras/meta-swi-mdm9x28-wp-bin
         -> /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-wp-bin
Yocto machine: swi-mdm9x28-wp
Adding option LEGATO_BUILD with value true
Adding option IMA_BUILD with value false
Adding option IMA_CONFIG with value
Adding option IMA_LOCAL_CA_X509 with value
Adding option IMA_PRIV_KEY with value
Adding option IMA_PUB_CERT with value
Adding option IMA_KERNEL_CMDLINE_OPTIONS with value
Adding option ENABLE_IMA with value 0
Adding option IMA_PUBLIC_CERT with value
Adding option IMA_PRIVATE_KEY with value
Adding option IMA_SMACK with value
Adding option ENABLE_FX30 with value
Adding option ROOTFS_VERSION with value
Adding option LEGATO_WORKDIR with value /home/legato/projects/DLC-Gateways/swi-linux-src/legato/
Adding option IMA_SUPPORT_TOOLS_REPO with value git:///home/legato/projects/DLC-Gateways/swi-linux-src/legato/3rdParty/ima-support-tools/.git;protocol=file;usehead=1
Adding option IMA_SUPPORT_TOOLS_REV with value ${AUTOREV}
Adding option LK_REPO_DIR with value /home/legato/projects/DLC-Gateways/swi-linux-src
Adding option LK_REPO_NAME with value lk
Adding option LK_REPO with value file://lk
Adding option EXT_SWI_IMG with value false
Adding option INITRAMFS_IMAGE_BUNDLE with value 1
Adding option INITRAMFS_IMAGE with value mdm9x28-image-initramfs
Adding option FIRMWARE_PATH with value
Adding option PACKAGECONFIG_remove with value gnutls
Build image of minimal rootfs (for swi-mdm9x28).
WARNING: Layer swi-wp-bin should set LAYERSERIES_COMPAT_swi-wp-bin in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer swi-wp-bin should set LAYERSERIES_COMPAT_swi-wp-bin in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: /home/legato/projects/DLC-Gateways/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/swimtd/swimtd_git.bb: Unable to get checksum for swimtd SRC_URI entry swimtd-bin.tar.bz2: file could not be found                                                                                     | ETA:  --:--:--Parsing recipes: 100% |#######################################################################################################################################################################################################################################################################################| Time: 0:00:53Parsing of 2164 .bb files complete (0 cached, 2164 parsed). 3083 targets, 339 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: Multiple providers are available for runtime gps-utils (gps-utils, gpsd)
Consider defining a PREFERRED_RPROVIDER entry to match gps-utils

Build Configuration:
BB_VERSION           = "1.38.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-18.04"
TARGET_SYS           = "arm-poky-linux-gnueabi"
MACHINE              = "swi-mdm9x28-wp"
DISTRO               = "poky-swi-ext"
DISTRO_VERSION       = "2.5.3"
TUNE_FEATURES        = "arm armv7a vfp neon"
TARGET_FPU           = "softfp"
meta
meta-poky
meta-yocto-bsp       = "HEAD:cbb677e9a09d5dad34404a851f7c23aeb5122465"
meta-oe
meta-networking
meta-python          = "HEAD:8760facba1bceb299b3613b8955621ddaa3d4c3f"
meta-gplv2           = "HEAD:813b7d2b5573d8591c6cd8087b326f0a0703d6b9"
common
meta-swi-mdm9xxx
meta-swi-mdm9x28     = "HEAD:62a9465b731f6866cf159e11ceb037ba3242203d"
common
meta-swi-mdm9x28
meta-swi-mdm9xxx-bin
meta-swi-mdm9x28-bin
meta-swi-mdm9x28-wp-bin = "HEAD:c0aad6c6bc29e4953e26a418824c4d55c3a73b74"

NOTE: Fetching uninative binary shim from http://downloads.yoctoproject.org/releases/uninative/2.4/x86_64-nativesdk-libc.tar.bz2;sha256sum=06f91685b782f2ccfedf3070b3ba0fe4a5ba2f0766dad5c9d1642dccf95accd0
WARNING: Checksum mismatch for local file /home/legato/projects/DLC-Gateways/swi-linux-src/build_bin/downloads/uninative/06f91685b782f2ccfedf3070b3ba0fe4a5ba2f0766dad5c9d1642dccf95accd0/x86_64-nativesdk-libc.tar.bz2
Cleaning and trying again.
WARNING: Renaming /home/legato/projects/DLC-Gateways/swi-linux-src/build_bin/downloads/uninative/06f91685b782f2ccfedf3070b3ba0fe4a5ba2f0766dad5c9d1642dccf95accd0/x86_64-nativesdk-libc.tar.bz2 to /home/legato/projects/DLC-Gateways/swi-linux-src/build_bin/downloads/uninative/06f91685b782f2ccfedf3070b3ba0fe4a5ba2f0766dad5c9d1642dccf95accd0/x86_64-nativesdk-libc.tar.bz2_bad-checksum_4b6fb2106c2f18b8f9c8ac67e1cf9e57
WARNING: Checksum failure encountered with premirror download of http://downloads.yoctoproject.org/releases/uninative/2.4/x86_64-nativesdk-libc.tar.bz2;sha256sum=06f91685b782f2ccfedf3070b3ba0fe4a5ba2f0766dad5c9d1642dccf95accd0 - will attempt other sources.
WARNING: Failed to fetch URL http://downloads.yoctoproject.org/releases/uninative/2.4/x86_64-nativesdk-libc.tar.bz2;sha256sum=06f91685b782f2ccfedf3070b3ba0fe4a5ba2f0766dad5c9d1642dccf95accd0, attempting MIRRORS if available
WARNING: Checksum mismatch for local file /home/legato/projects/DLC-Gateways/swi-linux-src/build_bin/downloads/uninative/06f91685b782f2ccfedf3070b3ba0fe4a5ba2f0766dad5c9d1642dccf95accd0/x86_64-nativesdk-libc.tar.bz2
Cleaning and trying again.
WARNING: Renaming /home/legato/projects/DLC-Gateways/swi-linux-src/build_bin/downloads/uninative/06f91685b782f2ccfedf3070b3ba0fe4a5ba2f0766dad5c9d1642dccf95accd0/x86_64-nativesdk-libc.tar.bz2 to /home/legato/projects/DLC-Gateways/swi-linux-src/build_bin/downloads/uninative/06f91685b782f2ccfedf3070b3ba0fe4a5ba2f0766dad5c9d1642dccf95accd0/x86_64-nativesdk-libc.tar.bz2_bad-checksum_4b6fb2106c2f18b8f9c8ac67e1cf9e57
ERROR: Checksum failure fetching http://downloads.yoctoproject.org/releases/uninative/2.4/x86_64-nativesdk-libc.tar.bz2;sha256sum=06f91685b782f2ccfedf3070b3ba0fe4a5ba2f0766dad5c9d1642dccf95accd0
WARNING: Disabling uninative as unable to fetch uninative tarball: Fetcher failure for URL: 'http://downloads.yoctoproject.org/releases/uninative/2.4/x86_64-nativesdk-libc.tar.bz2;sha256sum=06f91685b782f2ccfedf3070b3ba0fe4a5ba2f0766dad5c9d1642dccf95accd0'. Checksum mismatch!
File: '/home/legato/projects/DLC-Gateways/swi-linux-src/build_bin/downloads/uninative/06f91685b782f2ccfedf3070b3ba0fe4a5ba2f0766dad5c9d1642dccf95accd0/x86_64-nativesdk-libc.tar.bz2' has sha256 checksum 26d46c61ad88cc245e31c88549717c0092a838d111b93ec169d88b08cc027581 when 06f91685b782f2ccfedf3070b3ba0fe4a5ba2f0766dad5c9d1642dccf95accd0 was expected
If this change is expected (e.g. you have upgraded to a new version without updating the checksums) then you can use these lines within the recipe:
SRC_URI[md5sum] = "4b6fb2106c2f18b8f9c8ac67e1cf9e57"
SRC_URI[sha256sum] = "26d46c61ad88cc245e31c88549717c0092a838d111b93ec169d88b08cc027581"
Otherwise you should retry the download and/or check with upstream to determine if the file has become corrupted or otherwise unexpectedly modified.

WARNING: To build your own uninative loader, please bitbake uninative-tarball and set UNINATIVE_TARBALL appropriately.
Initialising tasks: 100% |####################################################################################################################################################################################################################################################################################| Time: 0:00:43NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: linux-libc-headers-3.18.140-r0 do_patch:
Some of the context lines in patches were ignored. This can lead to incorrectly applied patches.
The context lines in the patches can be updated with devtool:

    devtool modify <recipe>
    devtool finish --force-patch-refresh <recipe> <layer_path>

Then the updated patches and the source tree (in devtool's workspace)
should be reviewed to make sure the patches apply in the correct place
and don't introduce duplicate lines (which can, and does happen
when some of the context is ignored). Further information:
http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148675.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450
Details:
Applying patch 0001-if_ether-move-muslc-ethhdr-protection-to-uapi-file.patch
patching file include/uapi/linux/if_ether.h
Hunk #1 succeeded at 141 with fuzz 2 (offset 4 lines).

Now at patch 0001-if_ether-move-muslc-ethhdr-protection-to-uapi-file.patch
WARNING: linux-libc-headers-3.18.140-r0 do_patch:
Some of the context lines in patches were ignored. This can lead to incorrectly applied patches.
The context lines in the patches can be updated with devtool:

    devtool modify <recipe>
    devtool finish --force-patch-refresh <recipe> <layer_path>

Then the updated patches and the source tree (in devtool's workspace)
should be reviewed to make sure the patches apply in the correct place
and don't introduce duplicate lines (which can, and does happen
when some of the context is ignored). Further information:
http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148675.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450
Details:
Applying patch 0004-Avoid-in6_addr-redefinition.patch
patching file include/uapi/linux/if_bridge.h
Hunk #1 succeeded at 15 with fuzz 2.
patching file include/linux/netfilter.h
Hunk #1 succeeded at 5 (offset 1 line).

Now at patch 0004-Avoid-in6_addr-redefinition.patch
WARNING: system-core-1.0-r1 do_patch:
Some of the context lines in patches were ignored. This can lead to incorrectly applied patches.
The context lines in the patches can be updated with devtool:

    devtool modify <recipe>
    devtool finish --force-patch-refresh <recipe> <layer_path>

Then the updated patches and the source tree (in devtool's workspace)
should be reviewed to make sure the patches apply in the correct place
and don't introduce duplicate lines (which can, and does happen
when some of the context is ignored). Further information:
http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148675.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450
Details:
Applying patch fix-big-endian-build.patch
patching file adb/usb_linux_client.c
Hunk #1 succeeded at 35 with fuzz 2 (offset 1 line).

Now at patch fix-big-endian-build.patch
WARNING: alsa-intf-1.0-r1 do_patch:
Some of the context lines in patches were ignored. This can lead to incorrectly applied patches.
The context lines in the patches can be updated with devtool:

    devtool modify <recipe>
    devtool finish --force-patch-refresh <recipe> <layer_path>

Then the updated patches and the source tree (in devtool's workspace)
should be reviewed to make sure the patches apply in the correct place
and don't introduce duplicate lines (which can, and does happen
when some of the context is ignored). Further information:
http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148675.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450
Details:
Applying patch 0006-Wait-for-Audio-stream-to-end.patch
patching file libalsa-intf/aplay.c
Hunk #1 succeeded at 604 with fuzz 2 (offset 60 lines).

Now at patch 0006-Wait-for-Audio-stream-to-end.patch
WARNING: bridge-utils-1.6-r0 do_patch:
Some of the context lines in patches were ignored. This can lead to incorrectly applied patches.
The context lines in the patches can be updated with devtool:

    devtool modify <recipe>
    devtool finish --force-patch-refresh <recipe> <layer_path>

Then the updated patches and the source tree (in devtool's workspace)
should be reviewed to make sure the patches apply in the correct place
and don't introduce duplicate lines (which can, and does happen
when some of the context is ignored). Further information:
http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148675.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450
Details:
Applying patch kernel-headers_fix_in6_duplication.patch
patching file libbridge/libbridge.h
Hunk #1 succeeded at 24 with fuzz 1.

Now at patch kernel-headers_fix_in6_duplication.patch
WARNING: bluez5-5.50-r0 do_patch:
Some of the context lines in patches were ignored. This can lead to incorrectly applied patches.
The context lines in the patches can be updated with devtool:

    devtool modify <recipe>
    devtool finish --force-patch-refresh <recipe> <layer_path>

Then the updated patches and the source tree (in devtool's workspace)
should be reviewed to make sure the patches apply in the correct place
and don't introduce duplicate lines (which can, and does happen
when some of the context is ignored). Further information:
http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148675.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450
Details:
Applying patch 0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch
patching file Makefile.obexd
Hunk #1 succeeded at 1 with fuzz 2 (offset -1 lines).
patching file obexd/src/org.bluez.obex.service
patching file obexd/src/org.bluez.obex.service.in

Now at patch 0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch
WARNING: bluez5-5.50-r0 do_patch:
Some of the context lines in patches were ignored. This can lead to incorrectly applied patches.
The context lines in the patches can be updated with devtool:

    devtool modify <recipe>
    devtool finish --force-patch-refresh <recipe> <layer_path>

Then the updated patches and the source tree (in devtool's workspace)
should be reviewed to make sure the patches apply in the correct place
and don't introduce duplicate lines (which can, and does happen
when some of the context is ignored). Further information:
http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148675.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450
Details:
Applying patch 0001-Adding-MDM-specific-code-under-_PLATFORM_MDM_.patch
patching file tools/hciattach_rome.c
Hunk #1 succeeded at 1743 with fuzz 2 (offset 1 line).
Hunk #2 succeeded at 1876 (offset -1 lines).

Now at patch 0001-Adding-MDM-specific-code-under-_PLATFORM_MDM_.patch
WARNING: wpa-supplicant-2.6-r0 do_patch:
Some of the context lines in patches were ignored. This can lead to incorrectly applied patches.
The context lines in the patches can be updated with devtool:

    devtool modify <recipe>
    devtool finish --force-patch-refresh <recipe> <layer_path>

Then the updated patches and the source tree (in devtool's workspace)
should be reviewed to make sure the patches apply in the correct place
and don't introduce duplicate lines (which can, and does happen
when some of the context is ignored). Further information:
http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148675.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450
Details:
Applying patch 0001-wpa-supplicant-2.6.patch
patching file src/ap/ap_drv_ops.c
Hunk #1 succeeded at 492 (offset -77 lines).
patching file src/ap/dfs.c
Hunk #1 succeeded at 659 with fuzz 2 (offset 52 lines).
patching file src/drivers/driver_wext.c
Hunk #1 succeeded at 1656 (offset 94 lines).
Hunk #2 succeeded at 2277 (offset 109 lines).
patching file wpa_supplicant/ap.c
Hunk #1 succeeded at 670 with fuzz 2 (offset 115 lines).

Now at patch 0001-wpa-supplicant-2.6.patch
WARNING: wl18xx-firmware-r8.a9.14-r4+gitrAUTOINC+2568d8f61f do_populate_lic: wl18xx-firmware: No generic license file exists for: TI-TSPA in any provider
WARNING: qca9377-bt-firmware-1.1-r0 do_populate_lic: qca9377-bt-firmware: No generic license file exists for: QCA-TSPA in any provider
WARNING: ima-policy-1.0-r1 do_install: IMA: Immutable files will not be protected.
WARNING: mdm9x28-image-minimal-1.0-r0.0 do_rootfs: The license listed QCA-TSPA was not in the licenses collected for recipe qca9377-bt-firmware
WARNING: mdm9x28-image-minimal-1.0-r0.0 do_rootfs: The license listed TI-TSPA was not in the licenses collected for recipe wl18xx-firmware
NOTE: Tasks Summary: Attempted 4129 tasks of which 7 didn't need to be rerun and all succeeded.

Summary: There were 24 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
Makefile:384: recipe for target 'image_bin' failed
make: *** [image_bin] Error 1

Does this help?

https://lists.yoctoproject.org/g/yocto/topic/82416004

I’ve managed to build yocto and the update cwe now flashed correctly. However the provided modem radio FW is still not correct. I am chasing that down through the disti…

But could you please explain what setting COMPAT_BYTE to 0000101 does exactly as I don’t particularly want to use altered yocto in production.

it is precaution for downloding old yocto image which does not have the new memory driver.

What do you mean by "the provided modem radio FW is still not correct "?
The 68MB full image?

If you just want to get the modem FW (no yocto, no legato image), you can get it here:
https://source.sierrawireless.com/resources/airprime/software/wp76xx/wp76xx-firmware-release-16,-d-,0,-d-,1-components/#sthash.WV4n3xOX.dpbs

Yes both the full image/spk available at source.sierrawireless.com as well as the images provided in leaf. I have tried the full image as well as the individual parts…

The Full image fails
The modem image fails
The linux image fails
The legato image succeeds.

The above images all work for the WP7607-1 modem… but NOT the WP7611-1 modem… So SWI have not provided the correct images for this version of the FX30S modem…

The yocto (linux.cwe) file I built does download OK to the WP7611-1 modems with the COMPAT_BYTE set to 0000101

Thanks,
Karl

Have you tried the modem FW (without yocto or legato image) here?
https://source.sierrawireless.com/resources/airprime/software/wp76xx/wp76xx-firmware-release-16,-d-,0,-d-,1-components/#sthash.WV4n3xOX.dpbs

Are these files the correct ones for the FX30S? Is it just the yocto and legato images that have been altered for the FX30S?

no idea, maybe you follow up with distributor

Hi @jyijyi , SWI have sent me new modem image and yocto build (via my distributor), as the ones on leaf and at source seem to be wrong. I am not sure when they will officially release the update.

The new yocto image now downloads correctly using fwupdate… however the modem image does not.

However there are also .nvu files (one per carrier). I am not sure what do to with it and whether that would fix the above problem? Do you know?

I get the following error in logread

Jan 10 23:34:15 fx30s user.err Legato: =ERR= | fwupdateDaemon[1181]/le_pa_fwupdate_singlesys T=main | cwe.c cwe_LoadHeader() 359 | Compressed image is not supported
Jan 10 23:34:15 fx30s user.err Legato: =ERR= | fwupdateDaemon[1181]/le_pa_fwupdate_singlesys T=main | cwe.c cwe_LoadHeader() 374 | Error when validate the header

swicwe -P gives me the following

Type    Size(Exclude Header)    Product         Compress        Version
*SPKG    27201984                Y921            0               INTERNAL_?_SWI9X07Y_02.37.03.00_?_?_?_?
HASH    6520                    9X28            0               SWI9X07Y_02.37.10.00 5718ef CARMD-EV-SIGN01 2021/08/03 19:35:14
*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    26773400                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    26082380                9X28            1               SWI9X07Y_02.37.03.00 73df45 CARMD-EV-SIGN01 2020/04/08 17:11:15

Thanks,

I tried concatenating the nvu file with the modem cwe… which gave me the follow with swicwe -P… but it still fails with the errors (see further below)

swicwe -c SWI9X07Y_02.37.03.00_GENERIC_002.095_003.nvu SWI9X07Y_02.37.03.00_NM.cwe -o modem.cwe

swicwe -P modem.cwe
 Type    Size(Exclude Header)    Product         Compress        Version
*SPKG    27222932                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    26773400                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    26082380                9X28            1               SWI9X07Y_02.37.03.00 73df45 CARMD-EV-SIGN01 2020/04/08 17:11:15
*FILE    27468                   Y921            0               9999999_9907152_SWI9X07Y_02.37.03.00_00_GENERIC_002.095_003
Jan 11 00:20:46 fx30s user.err Legato: =ERR= | fwupdateDaemon[1349]/le_pa_fwupdate_singlesys T=main | cwe.c cwe_LoadHeader() 359 | Compressed image is not supported
Jan 11 00:20:46 fx30s user.err Legato: =ERR= | fwupdateDaemon[1349]/le_pa_fwupdate_singlesys T=main | cwe.c cwe_LoadHeader() 374 | Error when validate the header
Jan 11 00:20:46 fx30s user.err Legato: =ERR= | fwupdateDaemon[1349]/le_pa_fwupdate_singlesys T=main | pa_fwupdate_singlesys.c ParseCweHeader() 1166 | Error in parsing the CWE header
Jan 11 00:20:46 fx30s user.warn Legato: -WRN- | fwupdateDaemon[1349]/le_pa_fwupdate_singlesys T=main | pa_fwupdate_singlesys.c ParseAndStoreData() 1472 | Failed to parse a CWE header

OK so, I think the problem is that the DSP image in the modem image is compressed (see flag above) I can split that file from the image using “-@”… but how do I decompress it? Can I? Or do I need to get the uncompressed one from SWI?

I think that you need to use host PC to download

E.g.
Swiflash in linux
Or fdt2.exe in windows

Btw, what is the current firmware in ati3 and ati8 in your wp7611?

ati3
Manufacturer: Sierra Wireless, Incorporated
Model: FX30S(WP7611-1)
Revision: SWI9X07Y_02.37.06.00 b91e64 jenkins 2020/06/02 00:54:15
IMEI: 352588320137118
IMEI SV: 15
FSN: ZW252431020510
+GCAP: +CGSM

ERROR
ati8
Legato Ver: 19.11.5.cdc94bb9_fa5a606a7dc8c397dd98e6abdb975bac
Yocto Ver: SWI9X07Y_02.37.10.02 2022-02-17_11:09:54
OS Ver: Linux version 3.18.140 (oe-user@oe-host) (gcc version 7.3.0 (GCC) ) #1 PREEMPT Thu Feb 17 11:02:54 UTC 2022
LK Ver: 1.3.0_482d4b1057
RootFS Ver: SWI9X07Y_02.37.10.02 2022-02-17_11:09:54
UserFS Ver: unknown
MCU Ver: unknown

Didn’t the modem version already updated one?

And probably you already download your yocto image

I am able to fdt2 FW, but for manufacturing and FOTA I need the fwupdate process to work.

What is the original ati3 when you first receive this fx30(wp7611)?

Btw, do you tell distributor about this?

Yes I have told the distributor… thats how I got the files from SWI… Unforutantely they sent me the wrong files it seems…

Yes you are correct I managed to update yocto using fdt2… but ati3 on a fresh modem report the following

ati3
Manufacturer: Sierra Wireless, Incorporated
Model: FX30S(WP7611-1)
Revision: SWI9X07Y_02.37.03.00 73df45 jenkins 2020/04/08 10:59:14
IMEI: 352588320135500
IMEI SV: 14
FSN: ZW251730830610
+GCAP: +CGSM

The original FW is already updated one, so actually you don’t need to upgrade the modem image.
just download your yocto image and legato image should be ok