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

write-bin: Skip writing if binary has not changed. #630

Open
jounathaen opened this issue Apr 26, 2024 · 1 comment
Open

write-bin: Skip writing if binary has not changed. #630

jounathaen opened this issue Apr 26, 2024 · 1 comment

Comments

@jounathaen
Copy link

First: I love espflash! It is a great tool! Thanks for all the work!

I'm trying to optimize my flash times by putting static data into a separate partition, which works quite decent via write-bin. But unlike flash, write-bin does not check the MD5 sum of the section and thus does not skip if the same data is already present at that address. This prevents me from adding the write-bin step into the flashing script.

Desired feature:

  • Add a --skip-if-present option to write-bin, that checks the md5 hash before writing and skips if it matches the data to be written.

Alternative Approaches:

@SergioGasquez
Copy link
Member

Some initial investigation showed that it was not worth to implement that feature. I would go for adding --skip-if-present flag or the other way, skip by default and add a --no-skip flag like we have in the flash subcommand.

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

No branches or pull requests

2 participants