Hi Bjørn,
On 24/10/2015 16:01, Bjørn Forsman wrote:
> Hi Stefano, all,
>
> I just started testing swupdate. It looks good, and there is lots of
> useful documentation. Thanks for sharing!
>
> But I have an issue :-) Please read on.
>
> My U-Boot and its environment is on an SD-card. I have this in
> /etc/fw_env.config:
>
> /dev/mmcblk2 0x60000 0x2000
>
> fw_setenv/printenv works fine with this (block) device. But the
> "uboot" handler in swupdate fails. It seems to expect an MTD device
> ("Cannot get MTD information: Invalid argument").
Part of the u-boot handler is the fwenv.c file taken from the U-Boot
project, but of course not the current. Some other improvements are then
lost.
I think the best thing is to make that u-boot exports a library for the
environment, and swupdate uses that library.
>
> But worse, even though the "uboot" handler fails to update the
> environment, swupdate says the overall update is successful and exits
> with status 0.
This is a bug.
> Isn't it supposed to be a transaction (i.e. all or
> nothing),
Exactly.
It looks like that the error is not coming back to the caller, and the
installer does not know that the handler failed. It must be fixed.
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
=====================================================================