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

Support Secure Download Mode (ESF-135) #110

Closed
matt001k opened this issue May 9, 2024 · 3 comments
Closed

Support Secure Download Mode (ESF-135) #110

matt001k opened this issue May 9, 2024 · 3 comments

Comments

@matt001k
Copy link

matt001k commented May 9, 2024

Is your feature request related to a problem?

Currently this library does not support secure download mode.
The esptool library does and detects this properly, then flashes the controller properly.
This tool should support it as well to ensure that secure boot chipsets can be used with this library.

Describe the solution you'd like

Support secure download mode.

Describe alternatives you've considered

No response

Additional context

If needed I would be willing to do the work, as this is something that needs to be done ASAP for our project, and it is important to have this feature.
Let me know!

@github-actions github-actions bot changed the title Support Secure Download Mode Support Secure Download Mode (ESF-135) May 9, 2024
@DNedic
Copy link
Contributor

DNedic commented May 9, 2024

Hello @matt001k , thank you for your feature request, I will look into what is needed to provide support for Secure Download Mode.

We are always accepting contributions so if you do create a PR we will work with you to get it to a state where it can be merged and test it.

@matt001k
Copy link
Author

matt001k commented May 9, 2024

@DNedic thanks for the prompt response.
I would be more than willing to.
Is there any documentation that I could reference to follow the Secure Download loading?
Or would it be mainly be trying to emulate what the esptool.py script is doing?

@DNedic
Copy link
Contributor

DNedic commented May 13, 2024

You can read about this feature in the context of flash encryption here and the relevant Kconfig option here, for implementation details you can refer to esptool source code.

I would extend esp_loader_connect() so that it uses GET_SECURITY_INFO command, and add a get_security_info() function for a start.

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

No branches or pull requests

3 participants