meta-digi/meta-digi-dey/recipes-digi
David Escalona 94d4bbbe9f meta-digi-dey: swupdate-files: add firmware update support based on files
Implement a new mechanism to allow users to create update packages based on files and folders to modify
the active system.

This is done through the new class 'swupdate-files', which creates a tar.gz update file in the image
distribution output directory containing all the files and directories to create/update. The 'tar.gz'
file is used later by the 'swu-images' recipe to generate the final SWUpdate package. The SWU package
installation process extracts the tar.gz file in the root folder ("/") of the active system.

Users can specify the list of files and directories to include in the update package using the
'SWUPDATE_FILES_LIST' variable. These files will be directly copied from the generated system rootfs and
placed in the tar.gz archive. Additionally, users can provide their custom 'tar.gz' file to use in the update
by specifying its location in the 'SWUPDATE_FILES_TARGZ_FILE' variable. In any case, all the paths to include
in the update package must be relative to "/", as it is the base directory where tar.gz file contents are
extracted.

The update process for dual boot systems sets a new u-boot flag so that active bank is not swapped once
installation is complete and system reboots.

The SWU update mechanism based on files provides a custom update script which takes care of preparing the
system for the installation process. Just like in the SWU updates based on images, users can customize this
script or override it with the 'SWUPDATE_SCRIPT' variable, specifying the location of the new script to use.

If both the 'SWUPDATE_FILES_LIST' and 'SWUPDATE_FILES_TARGZ_FILE' variables are empty, a standard images
SWUpdate package will be generated instead.

Signed-off-by: David Escalona <david.escalona@digi.com>
2023-07-06 11:00:05 +02:00
..
auto-serial-console kirkstone migration: general update to the new override syntax 2022-06-20 11:39:57 +02:00
cloudconnector cloudconnector: set 'MACHINE' as the default device type 2023-06-21 16:57:27 +02:00
dey-examples dey-examples: cloudconnector:return status code in device request data callbacks 2023-05-09 11:47:25 +02:00
dualboot meta-digi-dey: swupdate-files: add firmware update support based on files 2023-07-06 11:00:05 +02:00
fbtest kirkstone migration: cosmetic, clean build warnings 2022-06-21 16:49:56 +02:00
libdigiapix ccimx93: libdigiapix: fix default I2C bus 2023-05-05 09:58:41 +02:00
memwatch kirkstone migration: cosmetic, clean build warnings 2022-06-21 16:49:56 +02:00
packagegroups connectcore-demo: separate in several packages 2023-02-07 14:00:52 +01:00
swu-images meta-digi-dey: swupdate-files: add firmware update support based on files 2023-07-06 11:00:05 +02:00
sysinfo meta-digi-dey: sysinfo: include the new firmware version variable in the 'sysinfo' report 2023-06-21 18:23:50 +02:00