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

Order of operations (erase, check file, write) #139

Open
galmok opened this issue Aug 14, 2023 · 1 comment
Open

Order of operations (erase, check file, write) #139

galmok opened this issue Aug 14, 2023 · 1 comment

Comments

@galmok
Copy link

galmok commented Aug 14, 2023

I just tried to flash using this tool, and there is a way to make the experience a bit better.

Currently the order of operations is erase, validate file, flash.

But this order is much better: validate, erase, flash.

Reason being is that if you provide the wrong file, or the file is bad, you are right now left with a device without a firmware. Using the suggested procedure, the validity of the file is checked before the device is erased. An early stop would preserve the existing firmware if the file is bad.

@JelmerT
Copy link
Owner

JelmerT commented Aug 14, 2023

@galmok that makes a lot of sense, feel free to submit a PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants