Skip to content

Conversation

khoa-nguyen-18
Copy link
Contributor

  • Add depend on BOOTLOADER_MCUBOOT for SOC_RA_ENABLE_START_SECOND_CORE config
  • Add support MCUBoot for ek_ra8p1 and mck_ra8t2
  • Remove storage_partition definition for Renesas ek_ra8p1, mck_ra8t2 in the test flash/common

Copy link

github-actions bot commented Oct 18, 2025

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
hal_renesas zephyrproject-rtos/hal_renesas@3ce2bdc zephyrproject-rtos/hal_renesas#159 zephyrproject-rtos/hal_renesas#159/files

DNM label due to: 1 project with PR revision

Note: This message is automatically posted and updated by the Manifest GitHub Action.

Copy link
Contributor

@JarmouniA JarmouniA left a comment

Choose a reason for hiding this comment

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

Can you add info about MCUboot usage to the board doc? Also, add Kconfig.sysbuild to board folder with the following

choice BOOTLOADER
	default BOOTLOADER_MCUBOOT
endchoice

Update hal_renesas revision to get MCUBoot support

Signed-off-by: Khoa Nguyen <[email protected]>
Add support MCUBoot for ek_ra8p1 and mck_ra8t2

Signed-off-by: Khoa Nguyen <[email protected]>
Remove storage_partition definition for Renesas ek_ra8p1, mck_ra8t2

Signed-off-by: Khoa Nguyen <[email protected]>
@khoa-nguyen-18 khoa-nguyen-18 force-pushed the support_renesas_ra8x2_mcuboot branch from ed85ac9 to bb5316e Compare October 22, 2025 08:11
@khoa-nguyen-18
Copy link
Contributor Author

Can you add info about MCUboot usage to the board doc? Also, add Kconfig.sysbuild to board folder with the following

choice BOOTLOADER
	default BOOTLOADER_MCUBOOT
endchoice

Many thanks for your suggestion and the reference. I’ve added the board documentation for MCUboot. However, I prefer not to include Kconfig.sysbuild in this case, as it’s specific to the user’s build setup. We also need sysbuild to support building other applications that don’t use or require MCUboot. Instead, we guide users to build with the additional configuration option -DSB_CONFIG_BOOTLOADER_MCUBOOT=y.

Copy link
Contributor

@thenguyenyf thenguyenyf left a comment

Choose a reason for hiding this comment

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

LGTM. Will revisit after manifest is merged

Copy link
Contributor

@JarmouniA JarmouniA left a comment

Choose a reason for hiding this comment

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

You still need to add Kconfig.sysbuild file. (Non-blocking)
Apply remarks to both boards.

.. note::

With ``--sysbuild`` option, MCUboot will be re-build and re-flash
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
With ``--sysbuild`` option, MCUboot will be re-build and re-flash
With ``--sysbuild`` option, MCUboot will be re-built and re-flashed


With ``--sysbuild`` option, MCUboot will be re-build and re-flash
every time the pristine build is used.

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
To only flash the user application in the subsequent builds, Use:
.. code-block:: console
$ west flash --domain hello_world


slot1_partition: partition@66000 {
label = "image-1";
reg = <0x66000 DT_SIZE_K(344)>;
Copy link
Contributor

Choose a reason for hiding this comment

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

To be memory efficient, 2nd slot has to be 1 sector larger than the 1st.
https://docs.mcuboot.com/design.html#image-swap-offset-no-scratch

@JarmouniA
Copy link
Contributor

However, I prefer not to include Kconfig.sysbuild in this case, as it’s specific to the user’s build setup. We also need sysbuild to support building other applications that don’t use or require MCUboot

Those should be the exception, not the general default. Also, you can create a dedicated board variant for those.

Copy link

@duynguyenxa
Copy link
Member

Can you add info about MCUboot usage to the board doc? Also, add Kconfig.sysbuild to board folder with the following

choice BOOTLOADER
	default BOOTLOADER_MCUBOOT
endchoice

Many thanks for your suggestion and the reference. I’ve added the board documentation for MCUboot. However, I prefer not to include Kconfig.sysbuild in this case, as it’s specific to the user’s build setup. We also need sysbuild to support building other applications that don’t use or require MCUboot. Instead, we guide users to build with the additional configuration option -DSB_CONFIG_BOOTLOADER_MCUBOOT=y.

However, I prefer not to include Kconfig.sysbuild in this case, as it’s specific to the user’s build setup. We also need sysbuild to support building other applications that don’t use or require MCUboot

Those should be the exception, not the general default. Also, you can create a dedicated board variant for those.

Hi @nordicjm, @kartben — could we get your thoughts on this?
Should there be a Kconfig.sysbuild default here for MCUboot for the board, or should we leave it out to keep sysbuild generic for both MCUboot and non-MCUboot applications?

@nordicjm
Copy link
Contributor

Can you add info about MCUboot usage to the board doc? Also, add Kconfig.sysbuild to board folder with the following

choice BOOTLOADER
	default BOOTLOADER_MCUBOOT
endchoice

Many thanks for your suggestion and the reference. I’ve added the board documentation for MCUboot. However, I prefer not to include Kconfig.sysbuild in this case, as it’s specific to the user’s build setup. We also need sysbuild to support building other applications that don’t use or require MCUboot. Instead, we guide users to build with the additional configuration option -DSB_CONFIG_BOOTLOADER_MCUBOOT=y.

However, I prefer not to include Kconfig.sysbuild in this case, as it’s specific to the user’s build setup. We also need sysbuild to support building other applications that don’t use or require MCUboot

Those should be the exception, not the general default. Also, you can create a dedicated board variant for those.

Hi @nordicjm, @kartben — could we get your thoughts on this? Should there be a Kconfig.sysbuild default here for MCUboot for the board, or should we leave it out to keep sysbuild generic for both MCUboot and non-MCUboot applications?

MCUboot is optional. You can build an application for the board without MCUboot and it builds, flashes and runs fine right? So having MCUboot disabled by default is perfectly fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Boards/SoCs area: Flash area: Tests Issues related to a particular existing or missing test DNM (manifest) This PR should not be merged (controlled by action-manifest) manifest manifest-hal_renesas platform: Renesas RA Renesas Electronics Corporation, RA platform: Renesas Renesas

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants