[SWupdate] Using links/ref

14 views
Skip to first unread message

h wulff

unread,
Jun 15, 2026, 8:15:58 AM (10 days ago) Jun 15
to swup...@googlegroups.com
Hi!

I try to use links/ref in the sw-description file.

The following snippet of the sw-description file works as expected:

stable = {
    hardware-compatibility: [ "1.0", "2.0", "3.0", "4.0" ];
    ...
    rev30: {
        hardware-compatibility: [ "3.0" ];
        files: (
            {
                filename = "@@VAR_SWUPDATE_TARGET_IMAGE_FILE@@";
                ...
                sha256 = "$swupdate_get_sha256(@@VAR_SWUPDATE_TARGET_IMAGE_FILE@@)"
            }
        );
        scripts: (
            {
                filename = "update.sh";
                type = "shellscript";
                sha256 = "$swupdate_get_sha256(update.sh)";
            }
        );
    },
    rev40: {
        hardware-compatibility: [ "4.0" ];
        files: (
            {
                filename = "@@VAR_SWUPDATE_TARGET_IMAGE_FILE@@";
                ...
                sha256 = "$swupdate_get_sha256(@@VAR_SWUPDATE_TARGET_IMAGE_FILE@@)"
            }
        );
        scripts: (
            {
                filename = "update.sh";
                type = "shellscript";
                sha256 = "$swupdate_get_sha256(update.sh)";
            }
        );
    }
}

Section rev30 and rev40 using the same software and so I tried to use links/ref to reduce the complexity of sw-description file. I tried the each of:

-----------------------------
rev30: {
hardware-compatibility: [ "3.0" ];
...
},
rev40: {
hardware-compatibility: [ "4.0" ];
ref = "#./rev30";
}
-----------------------------
rev30: {
hardware-compatibility: [ "3.0", "4.0 ];
...
},
rev40: {
hardware-compatibility: [ "4.0" ];
ref = "#./rev30";
}
-----------------------------
rev30: {
hardware-compatibility: [ "3.0", "4.0 ];
...
},
rev40: {
ref = "#./rev30";
}
-----------------------------


but unfortunately none of them works. The selector line in swupdate.cfg is

select = "stable,rev40";

The /etc/hwrevision file looks like this:

imx95-var-som 4.0

I always get a hardware compatibility error.

Can someone please give me a hint where my mistake is? 

Thanks in advance.
-- 
h.wulff
Reply all
Reply to author
Forward
0 new messages