Hello,
i got a problem with my hw-compatibility from Update deployed by hawkbit i know that somewhere he misses the hw match. so I think i use just the wrong syntax. i haven't found anything what syntax he is referring to when searching for hw-compatibility.
That the start of my sw-description:
Software =
{
version = "1.0"
description = "Firmware update for Avanger96 Project";
hardware-compatibility = ["Avenger96", "1.0"];
...
}
here my swupdate.conf whome i start suricatta mode with:
globals : {
verbose = true;
loglevel = 5;
syslog = true;
mtd-blacklist = "0 1 2 3 4 5 6";
};
logcolors : {
error = "red:blink";
trace = "green:normal";
debug = "magenta:normal";
warning = "yellow:underline";
};
versions: (
{ name = "uboot" ; version = "2023.5"; },
{ name = "kernel" ; version = "6.1.46"; }
);
identify : (
{ name = "serialNo" ; value = "341920055"; },
{ name = "DCNo" ; value = "3419"; },
{ name = "MPNNo" ; value = "FS00009"; },
{ name = "HwRevision" ; value = "Avenger96"; },
{ name = "Avenger96" ; value = "1.0"; }
);
suricatta: {
tenant = "default";
id = "dev01";
url = "
http://185.216.176.98:80";
targettoken = "690641283c86d38abb611c1c15a5d177";
};
and in my opinion the relevant logs
DEBUG] : SWUPDATE running : [parse_cfg] : Parsing config file /tmp/sw-description
* multi_done: status: 0 prem: 0 done: 0
* Connection #1 to host 185.216.176.98 left intact
* Expire cleared (transfer 0x9b548)
[TRACE] : SWUPDATE running : [channel_log_effective_url] : Channel's effective URL resolved to
http://185.216.176.98:80/DEFAULT/controller/v1/dev01/softwaremodules/1/artifacts/CPIO_Avenger96_V1_0.swu[TRACE] : SWUPDATE running : [get_common_fields] : Version 1.0
[TRACE] : SWUPDATE running : [get_common_fields] : Description Firmware update for Avanger96 Project
[DEBUG] : SWUPDATE running : [channel_get_file] : Channel downloaded 1024 bytes ~ 0 MiB.
[TRACE] : SWUPDATE running : [channel_log_reply] : Channel operation returned HTTP status code 200.
[TRACE] : SWUPDATE running : [parser] : Hardware compatibility not found
[TRACE] : SWUPDATE running : [parse_hw_compatibility] : Accepted Hw Revision : Avenger96
[TRACE] : SWUPDATE running : [parse_hw_compatibility] : Accepted Hw Revision : 1.0
[TRACE] : SWUPDATE running : [_parse_files] : Found File: update.txt --> /update.txt (/dev/mmcblk0p4)
[TRACE] : SWUPDATE running : [parse] : Number of found artifacts: 1
[TRACE] : SWUPDATE running : [parse] : Number of scripts: 0
[TRACE] : SWUPDATE running : [parse] : Number of steps to be run: 1
[ERROR] : SWUPDATE failed [0] ERROR stream_interface.c : extract_files : 188 : SW not compatible with hardware
[ERROR] : SWUPDATE failed [1] Image invalid or corrupted. Not installing ...
[TRACE] : SWUPDATE running : [network_initializer] : Main thread sleep again !
I see that the logs says he doesn't find the hw-compatibility, but why? how would be the correct syntax for this?
Kind Regards