Hi Mahendra Sondagar,
On 9/25/22 19:38, Mahendra Sondagar wrote:
Hey.. There
Hope all are doing well
I'm dealing with the swupdate with the my custom Yocto image created for
STM32MP1 dk1 board
The intend is, to update the rootfs remotely
I have successfully integrated meta-swupdate layer with the custom Yocto image
by adding the layers in to bblayer.conf file
The both layers meta-swupdate & meta-custom are parallel to each-others
To change the flags and setting with the swupdate, i have created the r
*ecipes-myswupdate* file inside the meta-custom layers
The content of the recipes-myswupdate are as follows
.
└── swupdate
├── stm32mp1
│ ├── 09-swupdate-args
│ ├── defconfig
│ ├── sw-description
│ └── swupdate.cfg
└── swupdate_%.bbappend
Considering you're using SRC_URI unconditionally, I suggest you use:
.
├── swupdate
│ ├── 09-swupdate-args
│ ├── defconfig
│ ├── sw-description
│ └── swupdate.cfg
└── swupdate_%.bbappend
The content of the *swupdate_%.bbappend* are as follows
--------------------------------------------------------------------------------------
DESCRIPTION = "Example recipe generating SWU image"
SECTION = ""
LICENSE = ""
# Add all local files to be added to the SWU
# sw-description must always be in the list.
# You can extend with scripts or wahtever you need
SRC_URI += " \
file://sw-description \
file://09-swupdate-args \
file://swupdate.cfg \
"
# images to build before building swupdate image
IMAGE_DEPENDS = "core-image-full-cmdline virtual/kernel"
# images and files that will be included in the .swu image
SWUPDATE_IMAGES = "core-image-full-cmdline uImage"
# a deployable image can have multiple format, choose one
SWUPDATE_IMAGES_FSTYPES[core-image-full-cmdline] = ".ubifs"
SWUPDATE_IMAGES_FSTYPES[uImage] = ".bin"
inherit swupdate
I'm pretty sure you're not appending to the correct recipe, swupdate
recipe is the SWUpdate recipe for building the SWUpdate update mechanism
SW, it's not for building an image that is making use of SWUpdate mechanism.
I think you want to append to swupdate-image recipe or create your own
inheriting swupdate-image?
Or probably both actually, one for adding your configuration files to
the SWUpdate SW and the
IMAGE_DEPENDS/SWUPDATE_IMAGES/SWUIPDATE_IMAGE_FSTYPES to the image recipe.
In any case, you're missing:
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
in your bbappend for adding files. c.f.
https://docs.yoctoproject.org/ref-manual/variables.html#term-FILESEXTRAPATHS
Cheers,
Quentin
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#58158): https://lists.yoctoproject.org/g/yocto/message/58158
Mute This Topic: https://lists.yoctoproject.org/mt/93911152/21656
Mute #dunfell:https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-