<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Sysbuild and mcuboot without partition manager</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106142/sysbuild-and-mcuboot-without-partition-manager</link><description>Hello, 
 I would like to use sysbuild and mcuboot without the partition manager but the sdk does not let me disable it. 
 
 I&amp;#39;m trying to disable the partition manager with the sysbuild/with-mcuboot sample for the nrf52840dk_nrf52840 board. 
 
 
 Is there</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Feb 2024 07:00:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106142/sysbuild-and-mcuboot-without-partition-manager" /><item><title>RE: Sysbuild and mcuboot without partition manager</title><link>https://devzone.nordicsemi.com/thread/467054?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2024 07:00:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96b73cf9-7625-4f64-9cd6-a5c198c4eb0f</guid><dc:creator>HamzaDot</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;What was the idea behind introducing partition manager instead of using devicetree on zephyr for B0 bootloader and MCUBoot?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Furthermore, is it possible to generate B0 bootloader and MCUBoot without partition manager and NCS?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sysbuild and mcuboot without partition manager</title><link>https://devzone.nordicsemi.com/thread/458370?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2023 15:53:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bfe6596-2e1b-4ad5-97d0-56406008b228</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We don&amp;#39;t suggest and support to do that way.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sysbuild and mcuboot without partition manager</title><link>https://devzone.nordicsemi.com/thread/458364?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2023 15:33:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e86ba0d3-85e6-44d3-9f2f-c97c291c0a2e</guid><dc:creator>AndrewSafehear</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;So there is no way of only switching from the keyword select to the keyword imply inside the&amp;nbsp;&lt;span&gt;Kconfig.template.build_strategy file ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It&amp;#39;s not breaking anything, only letting the user the choice of disabling the partition manager at his own risk.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Andrew&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sysbuild and mcuboot without partition manager</title><link>https://devzone.nordicsemi.com/thread/458182?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2023 18:16:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:827f5660-4815-44bc-9fb6-54db273683ec</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;The thing is, if you disable PM, then none of the NCS stuff will work, you might be able to use mcuboot and their app, but there would be no b0 support, not sure if Bluetooth would work, signing might fail, etc.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;-Amanda H.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sysbuild and mcuboot without partition manager</title><link>https://devzone.nordicsemi.com/thread/458007?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2023 08:54:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef624d3c-6b07-4d48-812f-78f1b5263d72</guid><dc:creator>AndrewSafehear</dc:creator><description>&lt;p&gt;&lt;span style="font-size:inherit;"&gt;Hello,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;Then why is the option SB_CONFIG_PARTITION_MANAGER not read only ?&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/sysbuild/Kconfig.sysbuild#L9"&gt;sdk-nrf/sysbuild/Kconfig.sysbuild at main &amp;middot; nrfconnect/sdk-nrf (github.com)&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/sysbuild/CMakeLists.txt#L72-L76"&gt;sdk-nrf/sysbuild/CMakeLists.txt at main &amp;middot; nrfconnect/sdk-nrf (github.com)&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;I&amp;#39;ve found that the Kconfig that is forcing the partition manager is the Kconfig.template.build_strategy file where PARTITION_MANAGER_ENABLED is selected. Like you said regardless of which build strategy is used, it is activated.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span style="font-size:inherit;"&gt;While tinkering with this, I&amp;#39;ve found that the Kconfig imply keyword is better than select. When you search for the &lt;a href="https://docs.zephyrproject.org/latest/build/kconfig/tips.html#the-imply-statement"&gt;imply keyword&lt;/a&gt;&amp;nbsp;in the documentation, you can find that there is a &lt;a href="https://docs.zephyrproject.org/latest/build/kconfig/tips.html#the-imply-statement"&gt;pitfall while using the select keyword&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;But as the build strategy force the partition manager, this commit become kind of useless&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/commit/250bbe37690e8c7fb66a812640b70fdefccc48a7"&gt;kconfig: control PARTITION_MANAGER_ENABLED through sysbuild &amp;middot; nrfconnect/sdk-nrf@250bbe3 (github.com)&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:inherit;"&gt;After changing those &lt;code&gt;select PARTITION_MANAGER_ENABLED&amp;nbsp;&lt;/code&gt;into &lt;code&gt;imply PARTITION_MANAGER_ENABLED&lt;/code&gt;, the project build correctly.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;The problem is that now, mcuboot is not finding the primary slot, because of the partition not being at the right place in the flash.&lt;/span&gt;&lt;/p&gt;
&lt;div class="x_x_ContentPasted0" data-ogsc="rgb(0, 0, 0)"&gt;&lt;span style="font-size:inherit;"&gt;When I put those lines inside the Kconfig.defconfig of the nrf52840dk_nrf52840 it&amp;#39;s working as intended.&lt;/span&gt;&lt;/div&gt;
&lt;div class="x_x_ContentPasted0 x_x_ContentPasted1 x_elementToProof" data-ogsc="rgb(0, 0, 0)"&gt;&lt;pre class="ui-code" data-mode="text"&gt;config FLASH_BASE_ADDRESS
      default 0x200 if BOOTLOADER_MCUBOOT&amp;#160;&amp;#160;&amp;amp;&amp;amp; !PARTITION_MANAGER_ENABLED
config ROM_START_OFFSET
      default 0x0&lt;/pre&gt;&lt;/div&gt;
&lt;div class="x_x_ContentPasted0 x_x_ContentPasted1 x_elementToProof" data-ogsc="rgb(0, 0, 0)"&gt;&lt;/div&gt;
&lt;div class="x_x_ContentPasted0 x_x_ContentPasted1 x_elementToProof" data-ogsc="rgb(0, 0, 0)"&gt;&lt;span style="font-size:inherit;"&gt;The problem is that I need to tinker the nrf-sdk to make it work...&lt;/span&gt;&lt;/div&gt;
&lt;div class="x_x_ContentPasted0 x_x_ContentPasted1 x_elementToProof" data-ogsc="rgb(0, 0, 0)"&gt;&lt;span style="font-size:inherit;"&gt;Is it possible to at least switch to the imply keyword ? We use a custom nRF52840 board and I can change my own Kconfig.defconfig file.&lt;/span&gt;&lt;/div&gt;
&lt;div class="x_x_ContentPasted0 x_x_ContentPasted1 x_elementToProof" data-ogsc="rgb(0, 0, 0)"&gt;&lt;/div&gt;
&lt;div class="x_x_ContentPasted0 x_x_ContentPasted1 x_elementToProof" data-ogsc="rgb(0, 0, 0)"&gt;&lt;span style="font-size:inherit;"&gt;Regards,&lt;/span&gt;&lt;/div&gt;
&lt;div class="x_x_ContentPasted0 x_x_ContentPasted1 x_elementToProof" data-ogsc="rgb(0, 0, 0)"&gt;&lt;span style="font-size:inherit;"&gt;Andrew&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sysbuild and mcuboot without partition manager</title><link>https://devzone.nordicsemi.com/thread/457955?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 18:55:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbe16314-74bf-463c-8027-2bc77c90401f</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The&amp;nbsp;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#partition-manager"&gt;&lt;span&gt;Partition&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;Manager&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;is activated for all multi-image builds, regardless of which build strategy is used for the child image.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_PARTITION_MANAGER_ENABLED is a read-only option, and it&amp;#39;s not possible to disable that way or manually disable those other options. See &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html&lt;/a&gt;&amp;nbsp;and the description of&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/subsys/partition_manager/Kconfig#L9"&gt;https://github.com/nrfconnect/sdk-nrf/blob/main/subsys/partition_manager/Kconfig#L9&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>