Skip to content
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

aboot: Fix A/B slot success logic #58

Merged
merged 1 commit into from
Dec 11, 2023
Merged

Conversation

z3ntu
Copy link

@z3ntu z3ntu commented Sep 23, 2023

It is enough just to set the success flag for the current slot instead of touching the retry counter ourselves. The primary bootloader should do that for us if it sees the success flag.

Also it appears we never actually wrote the flags to disk in the original commit, so let's do that with attributes_updated variable and the partition_mark_active_slot function.

It is enough just to set the success flag for the current slot instead
of touching the retry counter ourselves. The primary bootloader should
do that for us if it sees the success flag.

Also it appears we never actually wrote the flags to disk in the
original commit, so let's do that with attributes_updated variable and
the partition_mark_active_slot function.
@M0Rf30
Copy link

M0Rf30 commented Dec 11, 2023

What about this? shall we merge?

@z3ntu
Copy link
Author

z3ntu commented Dec 11, 2023

imo yes, this A/B logic is currently broken

@M0Rf30 M0Rf30 merged commit ed70adf into msm8953-mainline:main Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants