From b06b614e5ef88f4246187a65b28fd9ab4320c969 Mon Sep 17 00:00:00 2001 From: Nate Drude Date: Mon, 9 Jan 2023 12:44:49 -0600 Subject: [PATCH] swupdate: add support for imx93-var-som Signed-off-by: Nate Drude --- .../swupdate/imx93-var-som/swupdate.cfg | 45 +++++++++++++++++++ .../swupdate/imx93-var-som/swupdate.default | 1 + .../imx93-var-som/sw-description | 27 +++++++++++ 3 files changed, 73 insertions(+) create mode 100644 dynamic-layers/swupdate/swupdate/imx93-var-som/swupdate.cfg create mode 100644 dynamic-layers/swupdate/swupdate/imx93-var-som/swupdate.default create mode 100644 dynamic-layers/swupdate/var-image-swu/imx93-var-som/sw-description diff --git a/dynamic-layers/swupdate/swupdate/imx93-var-som/swupdate.cfg b/dynamic-layers/swupdate/swupdate/imx93-var-som/swupdate.cfg new file mode 100644 index 0000000..179ce9e --- /dev/null +++ b/dynamic-layers/swupdate/swupdate/imx93-var-som/swupdate.cfg @@ -0,0 +1,45 @@ +globals : +{ + verbose = true; + loglevel = 5; + syslog = true; + /* public-key-file = "test.pem"; */ +}; + +download : +{ + retries = 3; + timeout = 1800; +}; + +identify : ( + { name = "board"; value = "imx93-var-som"; } +); + +suricatta : +{ + tenant = "default"; + id = "imx93-var-som"; + confirm = 0; + url = "http://varupdate:8080"; + polldelay = 3600; + nocheckcert = true; + retry = 4; + retrywait = 200; + loglevel = 10; + userid = 0; + groupid = 0; + max_artifacts = 1; +/* + cafile = "/etc/ssl/cafile"; + sslkey = "/etc/ssl/sslkey"; + sslcert = "/etc/ssl/sslcert"; +*/ +}; + +webserver : +{ + document_root = "/www"; + userid = 0; + groupid = 0; +}; diff --git a/dynamic-layers/swupdate/swupdate/imx93-var-som/swupdate.default b/dynamic-layers/swupdate/swupdate/imx93-var-som/swupdate.default new file mode 100644 index 0000000..982da8a --- /dev/null +++ b/dynamic-layers/swupdate/swupdate/imx93-var-som/swupdate.default @@ -0,0 +1 @@ +hardware="imx93-var-som" diff --git a/dynamic-layers/swupdate/var-image-swu/imx93-var-som/sw-description b/dynamic-layers/swupdate/var-image-swu/imx93-var-som/sw-description new file mode 100644 index 0000000..4d1508e --- /dev/null +++ b/dynamic-layers/swupdate/var-image-swu/imx93-var-som/sw-description @@ -0,0 +1,27 @@ +software = +{ + version = "0.1.0"; + + imx93-var-som = { + hardware-compatibility: [ "1.0" ]; + + files: ( + { + filename = "var-image-swupdate-imx93-var-som.tar.gz"; + type = "archive"; + compressed = true; + device = "/dev/update"; + filesystem = "ext4"; + preserve-attributes = true; + path = "/"; + } + ); + + scripts: ( + { + filename = "update.sh"; + type = "shellscript"; + } + ); + }; +}