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

Fix configurable U-Boot attempt setting #716

Merged
merged 1 commit into from
Apr 8, 2021

Conversation

pascalhuerst
Copy link
Contributor

Commit ebbdb4b ("Make U-Boot attempt settings configurable") made
it possible to tweak the number of attempts that are set in the U-Boot
environment.

There is an issue with that because U-Boot's setexpr can only handle
hex, while in the current implementation those values are treated as
decimals.

To work around that, let's treat those numbers as hex everywhere.

Commit ebbdb4b ("Make U-Boot attempt settings configurable") made
it possible to tweak the number of attempts that are set in the U-Boot
environment.

There is an issue with that because U-Boot's setexpr can only handle
hex, while in the current implementation those values are treated as
decimals.

To work around that, let's treat those numbers as hex everywhere.

Signed-off-by: Pascal Huerst <pascal.huerst@gmail.com>
@codecov
Copy link

codecov bot commented Mar 25, 2021

Codecov Report

Merging #716 (d440229) into master (dc38fe9) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #716   +/-   ##
=======================================
  Coverage   72.83%   72.83%           
=======================================
  Files          28       28           
  Lines        8713     8713           
=======================================
  Hits         6346     6346           
  Misses       2367     2367           
Impacted Files Coverage Δ
src/bootchooser.c 80.15% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dc38fe9...d440229. Read the comment docs.

Copy link
Member

@ejoerns ejoerns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems as if you were testing with quite high attempt counters 😏

Looks fine for me. 👍

@ejoerns ejoerns added the fixed label Mar 25, 2021
@pascalhuerst
Copy link
Contributor Author

Seems as if you were testing with quite high attempt counters smirk

Looks fine for me. +1

Yes we were :)

Copy link
Member

@jluebbe jluebbe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine (although I find the behavior a bit surprising ;).

@jluebbe jluebbe merged commit 02a0b70 into rauc:master Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants