From 7bf452e85a8533117d10f8dfdeced3efffea6cbb Mon Sep 17 00:00:00 2001 From: David Escalona Date: Fri, 20 Oct 2023 11:47:54 +0200 Subject: [PATCH] swu: enable 'upgrade-available' flag on single systems and file updates ConnectCore 6 based products require the use of the 'upgrade_available' environment flag to save the bootcount value between resets. Extend the use of this U-Boot variable for single system updates and updates based on files. Signed-off-by: David Escalona --- .../swu-images/files/sw-description-files_template | 10 ++++++++++ .../swu-images/files/sw-description-images_template | 6 ++++++ 2 files changed, 16 insertions(+) diff --git a/meta-digi-dey/recipes-digi/swu-images/files/sw-description-files_template b/meta-digi-dey/recipes-digi/swu-images/files/sw-description-files_template index d03492e00..6a8173355 100644 --- a/meta-digi-dey/recipes-digi/swu-images/files/sw-description-files_template +++ b/meta-digi-dey/recipes-digi/swu-images/files/sw-description-files_template @@ -22,6 +22,10 @@ software = } ); uboot: ( + { + name = "upgrade_available"; + value = "@@UPGRADE_AVAILABLE@@"; + }, { name = "swap_bank"; value = "false"; @@ -48,6 +52,12 @@ software = type = "shellscript"; } ); + uboot: ( + { + name = "upgrade_available"; + value = "@@UPGRADE_AVAILABLE@@"; + } + ); } platform = { ref = "#./single"; diff --git a/meta-digi-dey/recipes-digi/swu-images/files/sw-description-images_template b/meta-digi-dey/recipes-digi/swu-images/files/sw-description-images_template index dd0559912..4f182e352 100644 --- a/meta-digi-dey/recipes-digi/swu-images/files/sw-description-images_template +++ b/meta-digi-dey/recipes-digi/swu-images/files/sw-description-images_template @@ -51,6 +51,12 @@ software = type = "shellscript"; } ); + uboot: ( + { + name = "upgrade_available"; + value = "@@UPGRADE_AVAILABLE@@"; + } + ); } platform = { ref = "#./single";