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

esp32 flash custom partition table #44192

Closed
huarunlin opened this issue Mar 25, 2022 · 3 comments
Closed

esp32 flash custom partition table #44192

huarunlin opened this issue Mar 25, 2022 · 3 comments
Assignees
Labels
Feature Request A request for a new feature

Comments

@huarunlin
Copy link

Is your feature request related to a problem? Please describe.
When I implemented the ota function, I found that when zephyr uses the esp-idf bootloader, the flash partition table uses the default "Single factory app, no OTA", and zephyr does not seem to provide a way to modify it.

Describe the solution you'd like
I hope to configure the flash partition table through cmake configure.

@huarunlin huarunlin added the Feature Request A request for a new feature label Mar 25, 2022
@sylvioalves sylvioalves self-assigned this Mar 26, 2022
@sylvioalves
Copy link
Collaborator

Can you describe which OTA function you implemented?
In Zephyr, to work with OTA feature you have to use MCUBOOT instead of default IDF_BOOTLOADER.

@huarunlin
Copy link
Author

Can you describe which OTA function you implemented? In Zephyr, to work with OTA feature you have to use MCUBOOT instead of default IDF_BOOTLOADER.

I'm going to use the ESP-IDF firmware update API because I can't find any data or examples of MCUBOOT updates in the application.

@rftafas
Copy link

rftafas commented Mar 29, 2022

@huarunlin Have in mind that extended support to IDFboot on Zephyr is not on roadmap, which means Secureboot/FlashEncryption won't be available. Same applies for partition customization. Chances are that we will not have an ESP32S3 IDFboot option for Zephyr, provided we already have it working on MCUboot.

Although we don't have that in plans, it is feasible to do it. As for using ESP-IDF update APIs, as long as you understand the limitations above, should be ok. It could be difficult to port them, as they probably depend on FreeRTOS.

As for MCUboot usage, maybe you can start with this: https://docs.zephyrproject.org/latest/guides/device_mgmt/ota.html

We did some tests and they seem to work well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request A request for a new feature
Projects
None yet
Development

No branches or pull requests

3 participants