-
Notifications
You must be signed in to change notification settings - Fork 148
Add secure padding for save-image #876
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
base: main
Are you sure you want to change the base?
Conversation
Hi! Here are my testing results.
cc @ivmarkov |
Rebased in order to adapt to changes on main. Since the issue with the |
@SergioGasquez In case you are wondering, there are a few different reasons for why the .bin file you got from esptool.py and espflash are different.
If you do all of those three steps (Not using esp-hal and relying on ESP-IDF instead, using exactly the same parameters and preventing the inclusion of a proper ELF checksum), you will actually get exactly the same binary:
|
This PR adds support for "secure padding", just like esptool.py's
--secure-pad-v2
option, as discussed in #713.In contrast to main...SergioGasquez:espflash:feat/secure-padding, this also adds an additional padding section, just like esptool.py. Thus, using esptool.py and espflash save-image with
--secure-pad-v2
will now result in exactly the same output.Also, it makes the
connection::reset
crate public again, since it is required to call theFlasher::connect
method when espflash is used as a library. It was previously madepub(crate)
in be1ff81.