Hi again,
I have an issue in do_swuimage. My .swu image recipe looks like this:
DESCRIPTION = "Compound image for Avenger96 boards"
SECTION = ""
# Note: sw-description is mandatory
SRC_URI = " \
file://sw-description \
file://update.sh \
"
inherit swupdate
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
SWUPDATE_SIGNING = "RSA"
SWUPDATE_PRIVATE_KEY = "~/swu-keys/swupdate-priv.pem"
# IMAGE_DEPENDS: list of Yocto images that contains a root filesystem
# it will be ensured they are built before creating swupdate image
IMAGE_DEPENDS = "core-image-full-cmdline"
# SWUPDATE_IMAGES: list of images that will be part of the compound image
# the list can have any binaries - images must be in the DEPLOY directory
SWUPDATE_IMAGES = " \
core-image-full-cmdline \
"
# Images can have multiple formats - define which image must be
# taken to be put in the compound image
SWUPDATE_IMAGES_FSTYPES[core-image-full-cmdline] = ".ext4.gz"
So, it first builds "core-image-full-cmdline" and its output is in deploy directory(under my build directory) as- "core-image-full-cmdline-dh-stm32mp1-dhcor-avenger96-20211223101505.rootfs.ext4.gz"
But while doing do_swuimage SWUpdate says :
Exception: FileNotFoundError: [Errno 2] No such file or directory: '/root/build-swu-v2/tmp/work/dh_stm32mp1_dhcor_avenger96-poky-linux-gnueabi/avenger96-swu-v1/1.0-r0/avenger96-swu-v1/core-image-full-cmdline-dh-stm32mp1-dhcor-avenger96-20211222170320.rootfs.ext4.gz'
And the ~/build-swu-v2/tmp/work/dh_stm32mp1_dhcor_avenger96-poky-linux-gnueabi/avenger96-swu-v1/1.0-r0/avenger96-swu-v1 has this file: "core-image-full-cmdline-dh-stm32mp1-dhcor-avenger96.ext4.gz"
In sw-description I have included: filename = "core-image-full-cmdline-dh-stm32mp1-dhcor-avenger96-20211222170320.rootfs.ext4.gz";
Should I remove "20211222170320.rootfs" part from sw-description?
Thanks in advance.
Kind Regards,
Sourabh