Add default configuration for rpi4 62/305862/5
authorAntoni <a.adaszkiewi@samsung.com>
Wed, 7 Feb 2024 14:07:49 +0000 (15:07 +0100)
committerAntoni <a.adaszkiewi@samsung.com>
Fri, 23 Feb 2024 13:19:26 +0000 (14:19 +0100)
Delta configuration in now separated from upgrade-tools. This rpi4
configuration is copied from platform/core/system/upgrade-tools (commit
3be0390b1b8632f97a3c33ce26ce02dd77748e94).

Change-Id: Iff78e44128c95cadaf4a13f8263323b151492a88

README.md [new file with mode: 0644]
packaging/upgrade-tools-generic.manifest [new file with mode: 0644]
packaging/upgrade-tools-generic.spec [new file with mode: 0644]
rpi4/cfg/delta.cfg [new file with mode: 0644]

diff --git a/README.md b/README.md
new file mode 100644 (file)
index 0000000..ff5daf8
--- /dev/null
+++ b/README.md
@@ -0,0 +1,26 @@
+## Upgrade tools generic plugin
+This is a template configuration repository for generic rpi4 devices to be used in delta generation.
+Docker image used for generating deltas can automatically clone and checkout a repository containing
+configuration files, so there is no need to manually copy them (to configure which repository is used
+for that, please refer to `platform/core/system/upgrade-tools`).
+
+When creating your own configuration repository, keep the same file tree structure as here. This means
+that if you want to add a new device in your repository, place its configuration in `<device_name>/cfg/delta.cfg`.
+
+### `delta.cfg` structure
+Custom configuration files should follow the structure of `delta.cfg` file in this repository.
+Each line describes a partition, and should have 6 columns in following order:
+* Filesystem label
+* name of binary file in an archive containing OS image (ex. boot.img) from base image
+* name of binary file in an archive containing OS image (ex. boot.img) from image to upgrade to
+* Update type. This is a sting containing two options separated by `:`. Supported options:
+       * First part:
+               * `FULL_IMAGE`
+               * `DELTA_IMAGE`
+       * Second Part:
+               * `BEFORE_BOOT_FOTA`
+               * `AT_BOOT_FOTA`
+
+        Example full update type string: `FULL_IMAGE:BEFORE_BOOT_FOTA`.
+* Block deivce
+* Block offset
diff --git a/packaging/upgrade-tools-generic.manifest b/packaging/upgrade-tools-generic.manifest
new file mode 100644 (file)
index 0000000..97e8c31
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+       <request>
+               <domain name="_"/>
+       </request>
+</manifest>
diff --git a/packaging/upgrade-tools-generic.spec b/packaging/upgrade-tools-generic.spec
new file mode 100644 (file)
index 0000000..dd089fa
--- /dev/null
@@ -0,0 +1,12 @@
+Name:           upgrade-tools-generic
+Version:        1.0.0
+Release:        0
+License:        Apache-2.0
+Summary:        Template generic config for delta building
+Group:          Development/System
+Source0:        %{name}-%{version}.tar.gz
+
+Source1001:     %{name}.manifest
+
+%description
+This is a dummy package
\ No newline at end of file
diff --git a/rpi4/cfg/delta.cfg b/rpi4/cfg/delta.cfg
new file mode 100644 (file)
index 0000000..09380e1
--- /dev/null
@@ -0,0 +1,8 @@
+# Configuration for generation of delta
+# Filesystem label, bin name (in tar), delta name, update type, blk dev, blk offset
+BOOT                   boot.img                boot.img                FULL_IMAGE:BEFORE_BOOT_FOTA             /dev/mmcblk0p1  0
+hal                    hal.img                 hal.img                 DELTA_IMAGE:AT_BOOT_FOTA                /dev/mmcblk0p10 0
+modules                        modules.img             modules.img             FULL_IMAGE:BEFORE_BOOT_FOTA             /dev/mmcblk0p6  0
+rootfs                 rootfs.img              rootfs.img              DELTA_IMAGE:AT_BOOT_FOTA                /dev/mmcblk0p2  0
+ramdisk                        ramdisk.img             ramdisk.img             FULL_IMAGE:AT_BOOT_FOTA                 /dev/mmcblk0p7  0
+ramdisk-recovery       ramdisk-recovery.img    ramdisk-recovery.img    FULL_IMAGE:BEFORE_BOOT_FOTA             /dev/mmcblk0p8  0