mender-binary-delta does not work with libubootenv

Description

mender-binary-delta still uses the old syntax, e.g:

while libubootenv only supports the following:

This essentially means that "mender-binary-delta" does not work on Yocto Project Dunfell release, since libubootenv is the default there.

Here is the deployment log when trying to deploy delta updates on dunfell:

It is similar to MEN-3970, but it does not brick devices, it just does not update variables, and hence the deployment always fails.

The fix probably needs to be similar to MEN-3970, meaning that we need to check which syntax is supported first and use what ever works to support both libubootenv and U-boot pre 2018

Affects versions

Environment

None

Checklist

Activity

Show:

Lluis CamposDecember 29, 2020 at 1:40 PM

The changes are now merged and it will be release together with upcoming Mender 2.6/Mender 2.5.1 releases. I cannot promise an exact date, but it should be out by the end of January 2021.

Sorry for the inconvenience. I am afraid there is an easy workaround. You could patch libubootenv to use the old syntax, but that seems a very intrusive fix to me.

Mirza KrakDecember 21, 2020 at 2:13 PM

I do not think the fix is far away, you can track it here.

Ah, of course you can not. Forgot it was private.

Mirza KrakDecember 21, 2020 at 2:08 PM

We are running in to this. Is there a workaround that we can apply while waiting for the fix?

I do not think the fix is far away, you can track it here.

The workaround could be to disable "libubootenv" and instead rely on "fw_setenv/fw_getenv" provided by U-Boot.

Niels AvondsDecember 21, 2020 at 10:26 AM

We are running in to this. Is there a workaround that we can apply while waiting for the fix?

Fixed

Details

Assignee

Reporter

Story Points

Priority

Days in progress

10

Fix versions

Sprint

Backlog

yes

Zendesk Support

Checklist

Created December 11, 2020 at 3:17 PM
Updated December 29, 2020 at 1:41 PM
Resolved December 29, 2020 at 1:41 PM