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

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 building the image by adding the machine name to update the image by 
following command
*MACHINE=stm32mp1 bitbake swupdate-image

* However, image unable!
As bitbake unable find the sw-description file
here, is the error log
*Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 
'file://sw-description')

* I'm new with the swupdate
I have a following concerns

a) is it right approach to add the separate recipes for the swupdate in to the 
meta-custom layers, which I'm doing now  ?

b) do i need to deal with the only recipes-support, which is the part of the 
meta-swupdate layer , instead of creating separate recipes in to meta-custom?

c) can any one help me with the right integration steps for the swupdate with 
yocto ?

for the instance, I'm following official guide from here ( 
https://sbabic.github.io/swupdate/building-with-yocto.html )

All suggestions & comments welcome

Regards
Mahendra Sondagar
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#58152): https://lists.yoctoproject.org/g/yocto/message/58152
Mute This Topic: https://lists.yoctoproject.org/mt/93911152/21656
Mute #dunfell:https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to