<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>S32KのトピックSecure boot  process</title>
    <link>https://community.nxp.com/t5/S32K/Secure-boot-process/m-p/1671401#M24084</link>
    <description>&lt;P&gt;My Flash map like this: refer to AN12218&lt;/P&gt;&lt;P&gt;location&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gideon_0-1686991707792.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/228194iCD2A14CB6648FA44/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Gideon_0-1686991707792.png" alt="Gideon_0-1686991707792.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I wish to implement the following sequence：refer to S32k-RM.pdf&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gideon_1-1686991948578.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/228195i413608E900FDE8B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Gideon_1-1686991948578.png" alt="Gideon_1-1686991948578.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;According to the AN4235.pdf scheme, verify the Bootloader area using the Secure boot mechanism (I know how to use the CSEc module) at Power ON.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gideon_2-1686992285600.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/228196iEC275E2B0DAF258C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Gideon_2-1686992285600.png" alt="Gideon_2-1686992285600.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The Flash address is set to 0x1000_0000 and Length is set to 16K (the expected Bootloader size) as shown in the red box above, and I can achieve my goal, but now I cannot find such a function interface，I found the interface CSEC_DRV_BootDefine in the SDK, but it cannot specify the Flash address。&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In AN5401, it is described that once secure boot is configured, on every reset, the autonomous secure boot runs on the Program Flash block starting at address '0' and finishes at BOOT_SIZE number of bits. If BOOT_SIZE is specified as 4K, then the FLASH area verified by Secure boot is 0x0000_0000-0x0000_1000.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gideon_3-1686992764826.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/228197iCE762D7896CE4270/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Gideon_3-1686992764826.png" alt="Gideon_3-1686992764826.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I think there is a contradiction between AN5401 and AN4235 regarding Secure boot. My question is whether there is an interface in CSEc to specify the position and size of the verification area (such as the bootloader) during Secure boot?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 17 Jun 2023 09:16:41 GMT</pubDate>
    <dc:creator>Gideon</dc:creator>
    <dc:date>2023-06-17T09:16:41Z</dc:date>
    <item>
      <title>Secure boot  process</title>
      <link>https://community.nxp.com/t5/S32K/Secure-boot-process/m-p/1671401#M24084</link>
      <description>&lt;P&gt;My Flash map like this: refer to AN12218&lt;/P&gt;&lt;P&gt;location&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gideon_0-1686991707792.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/228194iCD2A14CB6648FA44/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Gideon_0-1686991707792.png" alt="Gideon_0-1686991707792.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I wish to implement the following sequence：refer to S32k-RM.pdf&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gideon_1-1686991948578.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/228195i413608E900FDE8B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Gideon_1-1686991948578.png" alt="Gideon_1-1686991948578.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;According to the AN4235.pdf scheme, verify the Bootloader area using the Secure boot mechanism (I know how to use the CSEc module) at Power ON.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gideon_2-1686992285600.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/228196iEC275E2B0DAF258C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Gideon_2-1686992285600.png" alt="Gideon_2-1686992285600.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The Flash address is set to 0x1000_0000 and Length is set to 16K (the expected Bootloader size) as shown in the red box above, and I can achieve my goal, but now I cannot find such a function interface，I found the interface CSEC_DRV_BootDefine in the SDK, but it cannot specify the Flash address。&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In AN5401, it is described that once secure boot is configured, on every reset, the autonomous secure boot runs on the Program Flash block starting at address '0' and finishes at BOOT_SIZE number of bits. If BOOT_SIZE is specified as 4K, then the FLASH area verified by Secure boot is 0x0000_0000-0x0000_1000.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gideon_3-1686992764826.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/228197iCE762D7896CE4270/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Gideon_3-1686992764826.png" alt="Gideon_3-1686992764826.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I think there is a contradiction between AN5401 and AN4235 regarding Secure boot. My question is whether there is an interface in CSEc to specify the position and size of the verification area (such as the bootloader) during Secure boot?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jun 2023 09:16:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Secure-boot-process/m-p/1671401#M24084</guid>
      <dc:creator>Gideon</dc:creator>
      <dc:date>2023-06-17T09:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Secure boot  process</title>
      <link>https://community.nxp.com/t5/S32K/Secure-boot-process/m-p/1671959#M24138</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/218898"&gt;@Gideon&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the start address is fixed to 0x0 on S32K1 devices. This is allowed by SHE specification. &lt;BR /&gt;"SHE_BL_START - Address of the first byte of the bootloader. The address might be fixed for certain CPU architectures or it might be stored in internal or external memory"&lt;/P&gt;
&lt;P&gt;There's following workaround for this scenario: Create small primary bootloader which will be placed to address 0x0 and which will be covered by standard secure boot. This primary bootloader then should check CMAC of secondary bootloader in data flash. If it is correct, it can jump to the secondary bootloader. This will create a chain of trust.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 12:01:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Secure-boot-process/m-p/1671959#M24138</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2023-06-19T12:01:21Z</dc:date>
    </item>
  </channel>
</rss>

