Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id CA795C04A95 for ; Sun, 25 Sep 2022 17:38:41 +0000 (UTC) Subject: meta-swupdate integration with the custom Yocto image #dunfell To: yocto@lists.yoctoproject.org From: "Mahendra Sondagar" X-Originating-Location: Surat, Gujarat, IN (103.240.78.176) X-Originating-Platform: Linux Firefox 93 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Sun, 25 Sep 2022 10:38:35 -0700 Message-ID: Content-Type: multipart/alternative; boundary="4b3D0bzrND6ZG8IC9jtB" List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sun, 25 Sep 2022 17:38:41 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/58152 --4b3D0bzrND6ZG8IC9jtB Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hey.. There Hope all are doing well I'm dealing with the swupdate with the my custom Yocto image created for ST= M32MP1 dk1 board The intend is, to update the rootfs remotely I have successfully integrated meta-swupdate layer with the custom Yocto im= age 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 *ec= ipes-myswupdate* file inside the meta-custom layers The content of the recipes-myswupdate are as follows . =E2=94=94=E2=94=80=E2=94=80 swupdate =E2=94=9C=E2=94=80=E2=94=80 stm32mp1 =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 09-swupdate-args =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 defconfig =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 sw-description =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 swupdate.cfg =E2=94=94=E2=94=80=E2=94=80 swupdate_%.bbappend The content of the *swupdate_%.bbappend* are as follows ---------------------------------------------------------------------------= ----------- DESCRIPTION =3D "Example recipe generating SWU image" SECTION =3D "" LICENSE =3D "" # 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 +=3D " \ file://sw-description \ file://09-swupdate-args \ file://swupdate.cfg \ " # images to build before building swupdate image IMAGE_DEPENDS =3D "core-image-full-cmdline virtual/kernel" # images and files that will be included in the .swu image SWUPDATE_IMAGES =3D "core-image-full-cmdline uImage" # a deployable image can have multiple format, choose one SWUPDATE_IMAGES_FSTYPES[core-image-full-cmdline] =3D ".ubifs" SWUPDATE_IMAGES_FSTYPES[uImage] =3D ".bin" inherit swupdate ---------------------------------------------------------------------------= ----------------------------- I'm building the image by adding the machine name to update the image by fo= llowing command *MACHINE=3Dstm32mp1 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=C2=A0 ? b) do i need to deal with the only recipes-support, which is the part of th= e meta-swupdate layer , instead of creating separate recipes in to meta-cus= tom? c) can any one help me with the right integration steps for the swupdate wi= th yocto ? for the instance, I'm following official guide from here ( https://sbabic.g= ithub.io/swupdate/building-with-yocto.html ) All suggestions & comments welcome Regards Mahendra Sondagar --4b3D0bzrND6ZG8IC9jtB Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hey.. There
Hope all are doing well

I'm dealing with the sw= update with the my custom Yocto image created for STM32MP1 dk1 board
T= he intend is, to update the rootfs remotely

I have successfully = integrated meta-swupdate layer with the custom Yocto image by adding the la= yers in to bblayer.conf file
The both layers meta-swupdate & meta= -custom are parallel to each-others

To change the flags and sett= ing with the swupdate, i have created the recipes-myswupdate file inside the meta-custom layers
The content of the recipes-mysw= update are as follows
.
=E2=94=94=E2=94=80=E2=94=80 swupdate
    =E2=94=9C=E2=94=80=E2=94=80 stm32mp1
  &= nbsp; =E2=94=82   =E2=94=9C=E2=94=80=E2=94=80 09-swupdate-args    =E2=94=82   =E2=94=9C=E2=94=80=E2=94=80 def= config
    =E2=94=82   =E2=94=9C=E2=94=80=E2= =94=80 sw-description
    =E2=94=82   =E2=94= =94=E2=94=80=E2=94=80 swupdate.cfg
    =E2=94=94=E2=94= =80=E2=94=80 swupdate_%.bbappend


The content of the swupdate_%.bbappend
are as follows

------------------= --------------------------------------------------------------------
<= br />DESCRIPTION =3D "Example recipe generating SWU image"
SECTION =3D= ""

LICENSE =3D ""

# 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 +=3D " \
 =    file://sw-description \
    file://09-swup= date-args \
    file://swupdate.cfg \
  =   "

# images to build before building swupdate image
I= MAGE_DEPENDS =3D "core-image-full-cmdline virtual/kernel"

# imag= es and files that will be included in the .swu image
SWUPDATE_IMAGES = =3D "core-image-full-cmdline uImage"

# a deployable image can ha= ve multiple format, choose one
SWUPDATE_IMAGES_FSTYPES[core-image-full= -cmdline] =3D ".ubifs"
SWUPDATE_IMAGES_FSTYPES[uImage] =3D ".bin"

inherit swupdate


----------------------------------= ----------------------------------------------------------------------
I'm building the image by adding the machine name to update the image by f= ollowing command
MACHINE=3Dstm32mp1 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-descri= ption')


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&= nbsp; ?

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

c) can any one help me with the right in= tegration steps for the swupdate with yocto ?


for the inst= ance, I'm following official guide from here=

All suggestions & comments welcome 

Reg= ards
Mahendra Sondagar --4b3D0bzrND6ZG8IC9jtB--