From: Anshul Dalal <anshuld@ti.com>
To: <meta-arago@lists.yoctoproject.org>
Cc: Anshul Dalal <anshuld@ti.com>, <vigneshr@ti.com>,
<denys@konsulko.com>, <reatmon@ti.com>
Subject: [meta-arago][scarthgap][PATCH RFC 2/4] swupdate: add creation of update image
Date: Tue, 2 Dec 2025 16:45:59 +0530 [thread overview]
Message-ID: <20251202111603.1616989-3-anshuld@ti.com> (raw)
In-Reply-To: <20251202111603.1616989-1-anshuld@ti.com>
SWUpdate makes use of a CPIO archive with a sw-description header that
contains the metadata for the update image.
This patch adds a new update-image recipe which enables creation of such
image based on what the user sets IMAGE_BASENAME to.
Signed-off-by: Anshul Dalal <anshuld@ti.com>
---
meta-arago-distro/conf/distro/arago.conf | 2 ++
.../images/files/sw-description | 32 +++++++++++++++++++
.../recipes-swupdate/images/update-image.bb | 23 +++++++++++++
3 files changed, 57 insertions(+)
create mode 100644 meta-arago-distro/recipes-swupdate/images/files/sw-description
create mode 100644 meta-arago-distro/recipes-swupdate/images/update-image.bb
diff --git a/meta-arago-distro/conf/distro/arago.conf b/meta-arago-distro/conf/distro/arago.conf
index d8630718..42124577 100644
--- a/meta-arago-distro/conf/distro/arago.conf
+++ b/meta-arago-distro/conf/distro/arago.conf
@@ -31,6 +31,8 @@ SDK_NAME = "${SDK_NAME_PREFIX}-${SDK_VERSION}"
SDKPATHINSTALL = "/opt/${SDK_NAME}"
IMAGE_FSTYPES += "tar.xz.md5sum"
+IMAGE_FSTYPES:append:ti-swupdate = " ext4.gz"
+IMAGE_INSTALL:append:ti-swupdate = " swupdate swupdate-www"
# Extra boot files for WIC images
do_image_wic[depends] += "tisdk-uenv:do_deploy"
diff --git a/meta-arago-distro/recipes-swupdate/images/files/sw-description b/meta-arago-distro/recipes-swupdate/images/files/sw-description
new file mode 100644
index 00000000..8dc4e2b2
--- /dev/null
+++ b/meta-arago-distro/recipes-swupdate/images/files/sw-description
@@ -0,0 +1,32 @@
+software =
+{
+ version = "0.1.0";
+
+ @@MACHINE@@ = {
+ hardware-compatibility: [ "1.0"];
+ stable : {
+
+ copy1 : {
+ images: (
+ {
+ filename = "@@IMAGE_BASENAME@@-@@MACHINE@@.rootfs.ext4.gz";
+ device = "/dev/mmcblk0p1";
+ type = "raw";
+ compressed = "zlib";
+ },
+ );
+ };
+
+ copy2 : {
+ images: (
+ {
+ filename = "@@IMAGE_BASENAME@@-@@MACHINE@@.rootfs.ext4.gz";
+ device = "/dev/mmcblk0p2";
+ type = "raw";
+ compressed = "zlib";
+ },
+ );
+ };
+ };
+ }
+}
diff --git a/meta-arago-distro/recipes-swupdate/images/update-image.bb b/meta-arago-distro/recipes-swupdate/images/update-image.bb
new file mode 100644
index 00000000..33b0b74c
--- /dev/null
+++ b/meta-arago-distro/recipes-swupdate/images/update-image.bb
@@ -0,0 +1,23 @@
+inherit swupdate
+
+IMAGE_BASENAME ?= "tisdk-default-image"
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
+
+SRC_URI = "\
+ file://sw-description \
+"
+
+# images to build before building swupdate image
+IMAGE_DEPENDS = "${IMAGE_BASENAME}"
+
+SWUPDATE_IMAGES = "${IMAGE_BASENAME}"
+
+SWUPDATE_IMAGES_FSTYPES[tisdk-base-image] = ".rootfs.ext4.gz"
+SWUPDATE_IMAGES_FSTYPES[tisdk-tiny-image] = ".rootfs.ext4.gz"
+SWUPDATE_IMAGES_FSTYPES[tisdk-default-image] = ".rootfs.ext4.gz"
+SWUPDATE_IMAGES_FSTYPES[tisdk-bootstrap-image] = ".rootfs.ext4.gz"
+SWUPDATE_IMAGES_FSTYPES[tisdk-jailhouse-image] = ".rootfs.ext4.gz"
+SWUPDATE_IMAGES_FSTYPES[tisdk-thinlinux-image] = ".rootfs.ext4.gz"
+SWUPDATE_IMAGES_FSTYPES[tisdk-bootstrap-base-image] = ".rootfs.ext4.gz"
--
2.52.0
next prev parent reply other threads:[~2025-12-02 11:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-02 11:15 [meta-arago][scarthgap][PATCH RFC 0/4] Add support for SWUpdate Anshul Dalal
2025-12-02 11:15 ` [meta-arago][scarthgap][PATCH RFC 1/4] swupdate: add systemd service to rootfs Anshul Dalal
2025-12-02 11:15 ` Anshul Dalal [this message]
2025-12-02 11:16 ` [meta-arago][scarthgap][PATCH RFC 3/4] swupdate: add bootloader support Anshul Dalal
2025-12-02 19:23 ` Andrew Davis
2025-12-03 10:16 ` Anshul Dalal
2025-12-03 5:58 ` Yogesh Hegde
2025-12-03 10:23 ` Anshul Dalal
2025-12-02 11:16 ` [meta-arago][scarthgap][PATCH RFC 4/4] swupdate: enable authentication for update image Anshul Dalal
2025-12-02 20:59 ` [meta-arago][scarthgap][PATCH RFC 0/4] Add support for SWUpdate Denys Dmytriyenko
2025-12-03 14:07 ` Raghavendra, Vignesh
2026-05-29 12:33 ` Romain Naour
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251202111603.1616989-3-anshuld@ti.com \
--to=anshuld@ti.com \
--cc=denys@konsulko.com \
--cc=meta-arago@lists.yoctoproject.org \
--cc=reatmon@ti.com \
--cc=vigneshr@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.