espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.37k stars 7.21k forks source link

On the Fly OTA Update Secure Bootloader V1 on ESP32 to new SDK V5.2 (IDFGH-12219) #13272

Open filzek opened 6 months ago

filzek commented 6 months ago

Is your feature request related to a problem?

On old devices running in field and with the advent of new SDK V5.2, there is a lot of new features that will only work now on, so old boards start to become obsolete if the new approach of memory mapping and IRAM usage become used to develop new firmwares, so, it will be necessary to create somehow an option to update the bootloader on the fly on SECURE BOOT V1 boards.

It could be very important to create an way to write a new signed bootloader with the original pem file and could be used to an OTA update rewrite the old bootloader, so, this could solve all developers problem at once.

Describe the solution you'd like.

Update Secure Boot V1 on ESP32 over OTA if the original PEM sign file is avaliable.

Describe alternatives you've considered.

No response

Additional context.

No response

ESP-Marius commented 6 months ago

Hi,

Currently we dont any plans to support updating the bootloader over OTA, since if anything were to go wrong during this update you would effectively brick your device. So any such feature would involve considerable risk.

KonstantinKondrashov commented 6 months ago

Hi, Yes, we have a task to add a way to update the bootloader (it has not been done yet), but as Marius said it would involve considerable risk. In any case, we want to provide it, even with some caveats.

filzek commented 6 months ago

That shall be perfect to solve some problems, please let us know when its ready and we can private test in various scenarios as well.

We have done already a repartition encrypted on the fly, thats was not so difficult, but was challenging as well.

KonssnoK commented 5 months ago

we will also be interested in this feature, following the thread.