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 <david.escalona@digi.com>
This commit is contained in:
David Escalona 2023-10-20 11:47:54 +02:00
parent cb6b4fe67a
commit 7bf452e85a
2 changed files with 16 additions and 0 deletions

View File

@ -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";

View File

@ -51,6 +51,12 @@ software =
type = "shellscript";
}
);
uboot: (
{
name = "upgrade_available";
value = "@@UPGRADE_AVAILABLE@@";
}
);
}
platform = {
ref = "#./single";