-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
partition aware custom bootloader with release 5.2 (IDFGH-12214) #13267
Comments
@tobozo Hello there, simple solve this by add to CMakelists.txt INCLUDE_DIRS "C:/Espressif/frameworks/esp-idf-v5.2/components/bootloader_support/private_include/" also replace the sys_delay_ms(1000000); |
One ver interesting thing that could be done over the changes past the old bootloaders SDK is if we could be able to deploy a OTA bootloader update (to secure bootloader v1) to new SDK V5.2, if the sign pem file is avaliable to sign the new bootloader, the dev team could prepare one special application to enable update the bootloader on the fly, it could solve lots and tons of old problems. |
@filzek thanks for your reply 👍 I went with something like this: idf_component_register(
SRCS "hooks.c"
INCLUDE_DIRS ${IDF_PATH}/components/bootloader_support/private_include/
PRIV_REQUIRES bootloader_support
) But then it means I have to use the bootloader_support component instead of esp_partitions and app_update, right?
I'm not sure where that comes from or where I should replace that., is it encryption related? I'm not using any of it in that project anyway. |
Hi, @tobozo Just double checking: have you seen What you see here is due to that not all components are intended/designed to be pulled into the bootloader build. E.g. In general I'd recommend you to stick with the API IDF use in the bootloader (mostly bootloader_support) where possible. |
@ESP-Marius thanks for your reply 👍 M5CoreS3 doesn't have any gpio button to trigger features from But I think the issue is because I'm trying to implement that in Indeed the bootloader_override example seems a more appropriate place to change the selected partition number, so I'll experiment with that and keep this thread updated with the results. |
bootloader_override was the way to go, now I'll be hanging on #3495 as all my attempts to distinguish poweron reset from software reset in the bootloader failed, and I'll probably go with some sort of reboot counter instead. I'll close this issue as no longer relevant since I was just looking in the wrong place. Thanks for your support! 👍 |
Answers checklist.
General issue report
Hi,
I'm trying to create a bootloader hook that acts as follows:
The bootloader hooks example provided with esp-idf it too poor to be practical so I searched for a real world implementation and found this but it's based on an older version of esp-idf, so I tried to apply the esp-idf 5.2 migration guide :
However adding
esp_partition
toPRIV_REQUIRES
in CMakeLists.txt produces compilation errors (see below).I probably missed something, but this feels like a bug.
Full log
The text was updated successfully, but these errors were encountered: