Skip to content

espressif: mcuboot: get MCUBOOT_BOOT_MAX_ALIGN value from DT #445

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

Open
wants to merge 1 commit into
base: zephyr
Choose a base branch
from

Conversation

almir-okato
Copy link
Contributor

No description provided.

This change affects only MCUboot Zephyr Port for ESP chips or Zephyr
application with MCUboot compatibilty (which builds the bootutil lib).
In these cases, MCUBOOT_BOOT_MAX_ALIGN value must be taken from DT
flash write-block-size if its greater than 8.

Signed-off-by: Almir Okato <[email protected]>
@almir-okato almir-okato force-pushed the fix_esp_mcuboot_flash_enc_flash_imp_layer branch from 0aa5092 to e72d5d3 Compare July 30, 2025 19:21
@almir-okato almir-okato marked this pull request as ready for review August 15, 2025 12:07
@almir-okato almir-okato changed the title DRAFT: espressif: mcuboot: get MCUBOOT_BOOT_MAX_ALIGN value from DT espressif: mcuboot: get MCUBOOT_BOOT_MAX_ALIGN value from DT Aug 15, 2025
@@ -7,6 +7,8 @@
#ifndef __MCUBOOT_CONFIG_H__
#define __MCUBOOT_CONFIG_H__

#include <zephyr/devicetree.h>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe putting this include under the ifdef CONFIG_SECURE_FLASH_ENC_ENABLED ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is used only from Zephyr application or Zephyr port builds, so this include should not be a problem.
Also there is no CONFIG_SECURE_FLASH_ENC_ENABLED config on Zephyr application side, the flash encryption enabled/disabled checking is done on runtime. The write-block size must match the flash encryption requirement prior to the build though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants