<?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>MCUBOOT signature key file with NCS V2.0.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/88914/mcuboot-signature-key-file-with-ncs-v2-0-0</link><description>Hi, we are trying to compile our project with NCS V2.0.0. Currently we are using NCS V1.8.0. In CMakeLists.txt we have this line to pass a custom signature key file to MCUBoot: 
 # MCUboot: set certificate file set(mcuboot_CONFIG_BOOT_SIGNATURE_KEY_FILE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Jun 2022 01:03:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/88914/mcuboot-signature-key-file-with-ncs-v2-0-0" /><item><title>RE: MCUBOOT signature key file with NCS V2.0.0</title><link>https://devzone.nordicsemi.com/thread/372900?ContentTypeID=1</link><pubDate>Fri, 17 Jun 2022 01:03:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb6dde47-c186-461e-a958-7b604a9a7417</guid><dc:creator>mytzyiay</dc:creator><description>&lt;p&gt;I&amp;#39;ve&amp;nbsp;researched how Zephyr&amp;#39;s original extra_kconfig_options logic works, and&amp;nbsp;it really doesn&amp;#39;t seem like the extra escaping belongs on the west command line.&amp;nbsp; This bug is caused by NCS failing to properly escape the strings before writing them into the image_preload files.&lt;/p&gt;
&lt;p&gt;i.e. an option&amp;nbsp;of the form &lt;code&gt;-D&amp;quot;mcuboot_CONFIG_BOOT_SIGNATURE_KEY_FILE=\&amp;quot;abc\&amp;quot;&amp;quot;&lt;/code&gt; is correct in the cmake cache but it gets&amp;nbsp;mangled once Nordic&amp;#39;s multi_image.cmake script writes it out into the image_preload file.&lt;/p&gt;
&lt;p&gt;Could you please take a look at&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/7997"&gt;https://github.com/nrfconnect/sdk-nrf/pull/7997&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT signature key file with NCS V2.0.0</title><link>https://devzone.nordicsemi.com/thread/372888?ContentTypeID=1</link><pubDate>Thu, 16 Jun 2022 21:37:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7309c6d-eeaa-4063-ae20-ffc9f0bcd1e5</guid><dc:creator>hjetschko</dc:creator><description>&lt;p&gt;Hi Amanda&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you, your solution works very well&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT signature key file with NCS V2.0.0</title><link>https://devzone.nordicsemi.com/thread/372769?ContentTypeID=1</link><pubDate>Thu, 16 Jun 2022 10:33:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6e81cbe-f7b7-4027-bb72-78a9b1eb9a53</guid><dc:creator>obiwan_kenobi</dc:creator><description>&lt;p&gt;I&amp;#39;ve also tested it out, worked for me (:&lt;br /&gt;Thanks a lot for your help.&lt;/p&gt;
&lt;p&gt;-Ben-&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT signature key file with NCS V2.0.0</title><link>https://devzone.nordicsemi.com/thread/372756?ContentTypeID=1</link><pubDate>Thu, 16 Jun 2022 09:31:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7463cc3c-3358-4832-9fde-0aa7bdd23828</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry for the mistake.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a title="Follow link" href="https://github.com/nrfconnect/sdk-nrf/commit/5393942bdf24be8424ec382f11e40083b01593c7" rel="nofollow noopener noreferrer" target="_blank"&gt;https://github.com/nrfconnect/sdk-nrf/commit/5393942bdf24be8424ec382f11e40083b01593c7&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;it is no longer possible to set a child image Kconfig string variable using the following command line flag:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;tt&gt;-Dmcuboot_CONFIG_BOOT_SIGNATURE_KEY_FILE=\&amp;quot;abc\&amp;quot;&lt;/tt&gt;. It results in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;tt&gt;CONFIG_BOOT_SIGNATURE_KEY_FILE=abc&amp;quot;&amp;quot;&lt;/tt&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;being put in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;tt&gt;build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The only workaround is using another layer of escaping:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;tt&gt;-Dmcuboot_CONFIG_BOOT_SIGNATURE_KEY_FILE=\\\&amp;quot;abc\\\&amp;quot;&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;I have tested with the following command and don&amp;#39;t get any issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;west build --pristine -b nrf52840dk_nrf52840 zephyr/samples/hello_world -- -DCONFIG_BOOTLOADER_MCUBOOT=y -Dmcuboot_CONFIG_BOOT_SIGNATURE_KEY_FILE=\\\&amp;quot;C:/NCS_2/v2.0.0/bootloader/mcuboot/enc-ec256-priv.pem\\\&amp;quot; -DCONFIG_MCUBOOT_IMAGE_VERSION=\&amp;quot;0.1.2\+3\&amp;quot; -Dmcuboot_CONFIG_BOOT_SIGNATURE_TYPE_ECDSA_P256=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I think this could fix the issue while using &lt;span&gt;-Dmcuboot_CONFIG_BOOT_SIGNATURE_KEY_FILE&lt;/span&gt;&lt;span&gt;&amp;nbsp;with&lt;/span&gt;&amp;nbsp;the&amp;nbsp;&lt;span&gt;command or setting&amp;nbsp;mcuboot_CONFIG_BOOT_SIGNATURE_KEY_FILE in CMake.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT signature key file with NCS V2.0.0</title><link>https://devzone.nordicsemi.com/thread/372733?ContentTypeID=1</link><pubDate>Thu, 16 Jun 2022 08:22:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7c776c9-9dcd-4de1-a2a8-1c86f10caab9</guid><dc:creator>obiwan_kenobi</dc:creator><description>&lt;p&gt;Could you try with &amp;lt;&lt;span class="go"&gt;D&lt;span class="highlighted"&gt;mcuboot_CONFIG_BOOT_SIGNATURE_KEY_FILE&lt;/span&gt;&lt;/span&gt;&amp;gt; instead of &amp;lt;DCONFIG_MCUBOOT_SIGNATURE_KEY_FILE&amp;gt; ?&lt;br /&gt;&lt;br /&gt;Reference:&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_bootloader_adding.html#ug-bootloader-adding-immutable-mcuboot-keys"&gt;developer.nordicsemi.com/.../ug_bootloader_adding.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT signature key file with NCS V2.0.0</title><link>https://devzone.nordicsemi.com/thread/372732?ContentTypeID=1</link><pubDate>Thu, 16 Jun 2022 08:18:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9364cf0-bfdc-47e8-aaff-1102f768c700</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I can build without issue with the following command:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;west build --pristine -b nrf52840dk_nrf52840 zephyr/samples/hello_world -- -DCONFIG_BOOTLOADER_MCUBOOT=y -DCONFIG_MCUBOOT_SIGNATURE_KEY_FILE=\&amp;quot;bootloader/mcuboot/root-rsa-2048.pem\&amp;quot; -DCONFIG_MCUBOOT_IMAGE_VERSION=\&amp;quot;0.1.2\+3\&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT signature key file with NCS V2.0.0</title><link>https://devzone.nordicsemi.com/thread/372641?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2022 15:35:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c62dba26-73ca-45a2-a343-a2a3b12b0227</guid><dc:creator>obiwan_kenobi</dc:creator><description>&lt;p&gt;This is an alternative, but it doesn&amp;#39;t cancel out the fact that we might have encountered a regression when passing &amp;lt;&lt;span class="go"&gt;-D&lt;span class="highlighted"&gt;mcuboot_CONFIG_BOOT_SIGNATURE_KEY_FILE&amp;gt;&lt;/span&gt;&lt;/span&gt; to the &amp;lt;west build&amp;gt; command, or when using CMake to set &amp;lt;mcuboot_CONFIG_BOOT_SIGNATURE_KEY_FILE&amp;gt;.&lt;/p&gt;
&lt;p&gt;It should just work, because it is written in the official documentation:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_bootloader_adding.html?highlight=mcuboot_config_boot_signature_key_file#ug-bootloader-adding-immutable-mcuboot-keys"&gt;developer.nordicsemi.com/.../ug_bootloader_adding.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT signature key file with NCS V2.0.0</title><link>https://devzone.nordicsemi.com/thread/372628?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2022 14:56:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5eb88dcb-1e17-4bc0-9d72-788313b4e856</guid><dc:creator>mytzyiay</dc:creator><description>&lt;p&gt;That&amp;#39;s what I am doing now as a workaround.&amp;nbsp; Could we please get the regression fixed in the next NCS release?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT signature key file with NCS V2.0.0</title><link>https://devzone.nordicsemi.com/thread/372511?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2022 09:03:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:408c9b84-21a7-4d7f-a023-66104331d1e3</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please&amp;nbsp;follow Leo Xing&amp;#39;s suggestion to create the &lt;span&gt;child_image folder and contain the&amp;nbsp;mcuboot.conf.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT signature key file with NCS V2.0.0</title><link>https://devzone.nordicsemi.com/thread/372441?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2022 17:10:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:396626b0-2e3d-4f8f-a6d4-bde20348928a</guid><dc:creator>mytzyiay</dc:creator><description>&lt;p&gt;I see the same problem when trying to pass mcuboot options on the west command line using NCS v2.0.0:&lt;/p&gt;
&lt;pre&gt; west build --pristine -b nrf52840dk_nrf52840 -- \&lt;br /&gt; -D&amp;quot;mcuboot_CONFIG_BOOT_SIGNATURE_KEY_FILE=\&amp;quot;$(shell pwd)/private.pem\&amp;quot;&amp;quot; \&lt;br /&gt; -D&amp;quot;CONFIG_MCUBOOT_IMAGE_VERSION=\&amp;quot;$(shell ./scripts/unix-time-to-version.sh)\&amp;quot;&amp;quot;&lt;/pre&gt;
&lt;p&gt;The build system errors out with an escaping error for&amp;nbsp;&lt;span&gt;mcuboot_CONFIG_BOOT_SIGNATURE_KEY_FILE but &lt;em&gt;not&lt;/em&gt; for&amp;nbsp;CONFIG_MCUBOOT_IMAGE_VERSION.&amp;nbsp; In this case I also see the two quotes at the end of the value, rather than the value being surrounded by one quote on each side.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Seems like a regression?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT signature key file with NCS V2.0.0</title><link>https://devzone.nordicsemi.com/thread/372251?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2022 03:45:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45e8b511-30e1-49be-ac77-cb83906b5f19</guid><dc:creator>leox</dc:creator><description>&lt;p&gt;Hi Hubert,&lt;/p&gt;
&lt;p&gt;adding Kconfig options to &amp;lt;your project folder&amp;gt;/child_image/mcuboot.conf&amp;nbsp; which will pass to MCUBoot build. e.g: these could be placed to here; example: v2.0.0\nrf\applications\serial_lte_modem\child_image&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6087.im3.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>