Skip to content

ESP32 pre-encrypted binary #6

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

Open
Oquirella opened this issue Jul 7, 2020 · 1 comment
Open

ESP32 pre-encrypted binary #6

Oquirella opened this issue Jul 7, 2020 · 1 comment

Comments

@Oquirella
Copy link

Oquirella commented Jul 7, 2020

Hi,

Sorry, i know this is not the right place, but i want to achieve something similar that you want to do.
Did you find a solution?
Please let me know.

@alotionIG
Copy link

alotionIG commented Jun 15, 2022

Hi everyone,
Did anyone find a solution?
I have tried to modify an update.cpp file, and do a pre-compile lib for esp32 package in Arduino, but still can't find a solution.

this is what I got after finish an OTA and the file written to memory:

Starting OTA
Content-Length: 1065456
OTA: 1065456/1065456 bytes written.
E (45694) esp_image: image at 0x10000 has invalid magic byte
Error from Update.end(): 9
Loop
Loop

for information, the pre-encrypted binary is working perfectly if I flash it via serial

EDITED:
after-hours look for the answer, I got some good news, that espressif has been implemented an OTA process with pre-encrypted binary, but still, it only supports for esp-idf master branch (latest branch)

here are all links you probably need to read:
example program:
https://github.com/hmalpani/esp-idf/tree/feature/encrypted_image/examples/system/ota/pre_encrypted_binary_ota

espressif/esp-idf#8776

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

2 participants