-
Notifications
You must be signed in to change notification settings - Fork 113
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
Add option to ignore already-set bits in otp set command #175
Conversation
I wonder if this error message should point people at the Also, this PR should probably update https://github.com/raspberrypi/picotool/tree/develop?tab=readme-ov-file#otp too? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
's' is OK, but I think ignore-set
is confusing... I think set-bits-only
(or probably just set-bits
)-is better, and we should probably disallow it with ECC
Or I guess you could use: option('o', "--or-existing").set(settings.otp.or_with_existing) % "Logically OR with any already-set bits" ? |
I've changed it to It already fails on ECC rows in the normal way: Lines 7107 to 7109 in fb85aca
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving, but
I've changed it to set-bits - although I've left the internal variable as ignore_set as that's what picotool's doing internally
Seems like a weird hill to die on... it doesn't ignore anything; it ORs the old value into the new value ;-)
This adds a way to set bits in an OTP row, without having to specify a field - for example for the page lock rows
Allows you to workaround this (for example)
using the
-s
argumentFixes #137