-
Notifications
You must be signed in to change notification settings - Fork 835
Xip mcuboot #2323
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
Xip mcuboot #2323
Conversation
|
only boards that have been tested with samples/sysbuild/with_mcuboot/ --sysbuild
|
| #address-cells = <1>; | ||
| #size-cells = <1>; | ||
|
|
||
| slot0_partition: partition@0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as I said in the other PR, adding this here is pointless, this should go in your base board file in zephyr otherwise you will have completely different partitions for mcuboot vs every application, and the applications will not boot because of that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand, that the slot 0 & 1 partitions are kept in the flash0
However, when building the samples/sysbuild/with_mcuboot/ --sysbuild, is there any b_u585i_iot02a.overlay, to declare the zephyr,code-partition to be placed in the external flash, not in the flash0 ?
The slot0_partition is usually in the flash0, but for that samples, we want to place the slot0 in the external flash. The code must then be compiled, linked and downloaded in the external flash.
I see that ./build/with_mcuboot/zephyr/zephyr.signed.bin is linked at address 0 instead of 0x70000000
But this could be another problem : CONFIG_FLASH_BASE_ADDRESS 0x0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, a board variant should be used for that (either in tree or out of tree with board extensions)
|
Please rebase, following merge of #2348 . |
|
rebase on 07222c1 |
|
next step : (end of july) : going to add a variant for the stm32U5 series |
6c735b8 to
f4f2815
Compare
I think we should get at least the |
361d00d to
70ae81d
Compare
OK, so :
NB Still CI failure due to strange error on signature |
|
@de-nordic Any idea why the |
87fd4d3 to
b9de801
Compare
With CONFIG_STM32_MEMMAP flag get NOR flash 32 bytes header Read the NOR flash to get header of the image. The FLASH_DEVICE is now given by the parent of the "st,stm32-xspi-nor" node, which is the "st,stm32-xspi" compatible same for qspi/ospi instances of stm32 devices. Signed-off-by: Francois Ramu <[email protected]>
The author has not signed-off, sha differs because I have rebased the branch after pulling (for no reason...) |
Define the stm32h7s7 board configuration to set the STM32 XIP mode that will enable the MemoryMapped mode. Gives larger sector size for the external NOR flash See Kconfig of the stm32 soc. Choose the mcu_boot partition where to build ../bootloader/mcuboot/boot/zephyr Signed-off-by: Francois Ramu <[email protected]>
Define the stm32h573 board configuration to set the STM32 XIP mode that will enable the MemoryMapped mode. Gives larger sector size for the external NOR flash See Kconfig of the stm32 soc. Choose the mcu_boot partition where to build ../bootloader/mcuboot/boot/zephyr The zephyr, chosen zephyr,flash = &flash0; is in the board dts. The zephyr,code-partition = &boot_partition; is given by the app.overlay Signed-off-by: Francois Ramu <[email protected]>
|
reformating signoff |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For what it's worth, successfully tested on my STM32H7Z78-DK (with latest Zephyr main at b3ccee473ed64ac9ba7260beafb4fd175eee13ab)
|
@de-nordic This PR (at the minimum the flash-extended part) is required to keep compatibility with Zephyr v4.2 following zephyrproject-rtos/zephyr#88404 for OSPI and QSPI. |
|
If this is a bug fix then sure but if not then it's not something that should be added to 4.2 |
|
zephyrproject-rtos/zephyr#88404 has been integrated in v4.2 to align ST bindings with dtc recommendations (and other vendors) |

New version of the #2154
Adding the stm32h7s3l8 nucleo board
Following zephyrproject-rtos/zephyr#76305
Build the application with sysbuild for the nucleo_h7S3L8 :
west build -p auto -b nucleo_h7s3l8 samples/boards/st/hello_world_xip --sysbuild -- -DSB_CONFIG_BOOTLOADER_MCUBOOT=y
then, download mcuboot at address 0x8000000 and download the signed hello_world_xip application at 0x70000000 (where i can read the magic nb)