-
-
Notifications
You must be signed in to change notification settings - Fork 956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validation UI Not Updated When Reset #2213
Comments
I researched this a bit, because I noticed this behaviour as well. This is what I found: After a new image is flashed, the bootloader (mcuoot) is instructed to perform
The swap is made permanent by InfiniTime setting a bit in the mcuboot image trailer on user validation.
For a revert from a non validated firmware (bit was not set) mcuboot calls for the old firmware to mark it self valid again.
In summary, this means it is on us to retain the information that an image was good, if we want it to be automatically validated on revert. This would not require changes to the boot loader. I see two general possibilities:
I think number two is the pragmatic solution and I am confident I could program this. Maybe someone has a completely different idea, I will wait a while for feedback before I start writing any code to fix this. |
Another implication of all this is that we could set the |
I explored option 1. Out of interest and for the challenge.
But I think there is no need to enable this when there still is option 2., so option 1. is dead for now. |
I implemented option 2. It works, I have tested it multiple times on hardware. PR is #2225. |
Verification
Introduce the issue
When I flash over a validated firmware, and then decide to reset to the validated firmware, the firmware status still asks "Validate or Reset" even though the firmware is back to the validated version. I'm not sure if this is just a UI issue or something more.
Preferred solution
No response
Version
v1.15.0
The text was updated successfully, but these errors were encountered: