Custom bootloader
Posted: Mon May 02, 2022 1:43 pm
Hi,
I'm designing a custom bootloader using hooks. In the documentation (https://docs.espressif.com/projects/esp ... bootloader) it is said:
"In the bootloader space, you cannot use the drivers and functions from other components. If necessary, then the required functionality should be placed in the project’s bootloader_components directory (note that this will increase its size)."
I'm a little confused about that.
Copying a component would probably require to copy a few others too, because of requirements. Isn't sufficient to just adding the components names on the CMakeLists.txt file in the hooks folder? I tested it and it worked for some components, but doesn't work for others. And even when it works, I can't import some files (like adding esp_system component and trying to import "esp_private/system_internal.h").
It would be great to have a more detailed documentation about doing custom bootloaders using hooks. I'm struggling trying to discover which components are supported in the bootloader space by just adding in the CMakeLists.txt and which are not, and why I can't import some files even when the respective component is in the CMakeLists.txt file.
Thank you,
Mateus
I'm designing a custom bootloader using hooks. In the documentation (https://docs.espressif.com/projects/esp ... bootloader) it is said:
"In the bootloader space, you cannot use the drivers and functions from other components. If necessary, then the required functionality should be placed in the project’s bootloader_components directory (note that this will increase its size)."
I'm a little confused about that.
Copying a component would probably require to copy a few others too, because of requirements. Isn't sufficient to just adding the components names on the CMakeLists.txt file in the hooks folder? I tested it and it worked for some components, but doesn't work for others. And even when it works, I can't import some files (like adding esp_system component and trying to import "esp_private/system_internal.h").
It would be great to have a more detailed documentation about doing custom bootloaders using hooks. I'm struggling trying to discover which components are supported in the bootloader space by just adding in the CMakeLists.txt and which are not, and why I can't import some files even when the respective component is in the CMakeLists.txt file.
Thank you,
Mateus