Replies: 1 comment
-
After some more digging I found that I had to set In addition for my mcuboot partition I had to add an overlay to specifiy the boot partition as the code partition.
Just curious, is this mentioned in the sys build https://github.com/zephyrproject-rtos/zephyr/blob/main/doc/build/sysbuild/index.rst ? I Had to invest some time to learn this. As far as I know the sys build samples do not have this code. Just found a reference to this in the code for tests. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have started to test Sysbuild to build mcuboot for my application.
Even though I have defined for my board the partitions such as
These values are not taken into account for the final build with the linker script.
Instead the linker script for both images (mcuboot and application) uses the complete flash size (256 KB). This is counterintuitive as when building the bootloader and the app I want to know if the images will fit.
After some digging in the CMake for the linker generator (linker.cmd) I came up with manually defining
CONFIG_FLASH_SIZE
for both images.Is this the correct way to do this or am I missing something to make Zephyr automatically define
CONFIG_FLASH_SIZE
based on the partitions I defined ?Beta Was this translation helpful? Give feedback.
All reactions