-
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. After some digging in the CMake for the linker generator (linker.cmd) I came up with manually defining Is this the correct way to do this or am I missing something to make Zephyr automatically define |
Beta Was this translation helpful? Give feedback.
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.
After some more digging I found that I had to set
CONFIG_USE_DT_CODE_PARTITION=y
for zephyr to use the correct flash settings and size for building the main app.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.