Hi Mirza,
On 14.09.21 12:44, Mirza Kapetanovic wrote:
> Hi,
>
> We're using swupdate with hawkBit, and so far it works really well. But
> it's not clear to me from the documentation how installed firmware
> version is compared with available update version.
>
SWUpdate supports per SWU version (the whole version) and per artifact
(each artifact can have an own version).
The global version is set in sw-description with the version attribute.
> 1. The sw-description file contains a version tag directly underneath
> the software tag.
This is the global version and sets the version of the whole SWU.
> Is it correctly understood that this is the schema
> version and not the update software/firmware version (or it's not used
> at all)?
No, it is the update software/firmware version.
>
> 2. Three of the swupdate command line tool parameters, -N, -max-version
> and -R, state: "This will be checked with the version of new software".
> Where is the version of the new software specified? Is it part of
> sw-description?
Yes, they use the global version.
>
> 3. You can specify no-downgrading and no-reinstalling underneath the
> globals tag in swupdate.cfg file. It seems to be related to the
> mentionened command line parameters.
Right.
> But again, with what are the two
> values compared with?
See above.
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone:
+49-8142-66989-53 Fax:
+49-8142-66989-80 Email:
sba...@denx.de
=====================================================================