On Fri, 26 Mar 2021 16:53:31 +0100 Paul Jena <jpaul.de...@gmail.com> wrote:
Package: libubootenv-tool
Version: 0.3-1
Severity: grave

Hello,

there are compatibility problems with RAUC and the libubootenv-tool package.

RAUC requires the fw_setenv and fw_printenv utilites to interact with the
u-boot-environment. After Installing the libubootenv-tool package to get fw_printenv and fw_setenv, RAUC didnt work properly. i.e.:

How is this a grave bug? RAUC explicitly says in its Kconfig: "To interact with U-Boot, fw_printenv and fw_setenv from u-boot-tools are used." So using it with libubootenv's tools is not expected.

After building a fw_printenv that doesnt print the Debug Mesaage the Rauc 
worked properly again.
(I looked into the source code of libubootenv and saw that passing the NDEBUG 
compiler flag
supresses the Debugging Messages:
https://salsa.debian.org/debian/libubootenv/-/blob/master/src/uboot_env.c#L946)
i.e:

$ fw_printenv BOOT_ORDER BOOT_ORDER=B A

$ rauc status
...
=== Bootloader ===
Activated: rootfs.1 (B)
...

Perhaps it is desirable that libubootenv-tool provides output similiar to the 
native
u-boot envtools to support compability, by building it in downstream with the 
NDEBUG
compiler flag.

Setting NDEBUG is a good solution to the problem.

Reply via email to