-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Expose unload_partitions to allow for dynamic updates (IDFGH-11498) #12625
Comments
Hi, it should now be available in |
Many thanks @adokitkat - I will switch to use the new name once this commit gets into an official release of the ESP-IDF. Currently I have
|
It will be available in the v5.3 version. I can try to backport it to v5.1 and v5.2 as well. |
If you could backport @adokitkat it would be really useful! |
Is your feature request related to a problem?
I wrote an extension of the OTA component for esphome. There I am able to update the partition table OTA.
In order to allow the new partitions to be used without reboot I had to call esp-idf unload_partitions. I have done this by adding my own definition as currently this function is not public.
I need to avoid the reboot since I also need to update the app partition in the same session - this allows changes in partition table sizes and migrations from different firmwares. More info in the PR.
Describe the solution you'd like.
Move
esp-idf/components/esp_partition/include/esp_private/partition_linux.h
Line 240 in c824346
to https://github.com/espressif/esp-idf/blob/c8243465e45489835d645bf217a6929fd0c01b7f/components/esp_partition/include/esp_partition.h
Describe alternatives you've considered.
Rebooting after updating the partition table but this does not work when updating the app partition addresses/sizes
Additional context.
Happy to provide a PR
The text was updated successfully, but these errors were encountered: