Hello Martin,

On 05/18/2017 11:45 AM, Martin Hollingsworth wrote:
Hello RAUC Team,

I am currently implementing software update on my embedded target and
evaluating the usage of RAUC. But I have trouble finding a solution for
the following scenario, which needs a little explanation, but can be
summerized as: „How does Rauc handle Bootloader Updates?”

Here is what I want to achieve:

A software release is a combination of multiple software components in
specific versions, that have been tested and defined fit for usage
together on an embedded target. Lets say a simple example would be a
bootloader and a rootFS (which includes linux and some custom software
pre-installed).

that sounds rational to me (despite the fact that you might not want to update you bootloader with each rootFS update).

When I update my system, I secure my linux operating system using a
symmetric A/B setup. If the update fails, I can always jump back to the
last slot and continue regular device operation.

Yes, that is one of the common Scenarios RAUC will be able to handle for you.

But when I update my bootloader AND my linux system together, after
exchanging the bootloader I cannot jump back to the last running linux,
because now the bootloader configuration might not match the
configuration expected from the previous bootloader.

How does RAUC approach this issue?

this is not something that really touches RAUC and I am not sure if I got you problem right.

You intend to exchange the bootloader, but this should not have any consequence for the stored update configuration. The information about which slot has which priority, remaining attempts, etc. will normally be persisted in a different storage location than your bootloader itself. E.g. a different partition on your FLASH or a distinct EEPROM location, etc.

Thus, after having updated your bootloader, it will read your previous configuration and know in which state you are!

The only scenario where you will get into troubles is when the new bootloader is unable to read the storage format your old one used. But 1) this should not happen or is an issue that is really out of scope of what an update tool can do for you.

If I did not really get what your worries are, please let me know.

May I ask which bootloader you are using?


Best regards,

Enrico

--
Pengutronix e.K.                           | Enrico Jörns                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-5080 |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |


_______________________________________________
RAUC mailing list

Reply via email to