<?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>S32GのトピックRe: seclogging at bl2</title>
    <link>https://community.nxp.com/t5/S32G/seclogging-at-bl2/m-p/2263179#M15679</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/235643"&gt;@Jayashree&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your post.&lt;/P&gt;
&lt;P&gt;It is a user defined software implementation, sorry that there is not formal recommendation from our side for such topic.&lt;/P&gt;
&lt;P&gt;Regarding the secure boot failure logged in BL2 stage, do you mean the BL2 failed to authenticate the BL3x binaries, and want to log the related information?&lt;/P&gt;
&lt;P&gt;From my experience, the logs mentioned above could be found from the console, if you want to save them to the QSPI, since the BL2 could load images from QSPI, and put them into DDR, so that it could access the QSPI, would you mind checking the related code/API to find whether it could fulfill your requirements?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Chenyin&lt;/P&gt;</description>
    <pubDate>Tue, 16 Dec 2025 02:25:41 GMT</pubDate>
    <dc:creator>chenyin_h</dc:creator>
    <dc:date>2025-12-16T02:25:41Z</dc:date>
    <item>
      <title>seclogging at bl2</title>
      <link>https://community.nxp.com/t5/S32G/seclogging-at-bl2/m-p/2262614#M15675</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to implement secure logging on the A-core (BSP43). The goal is to log security-related failures such as Secure Boot failures, Wi-Fi/TLS failures, etc.&lt;/P&gt;&lt;P&gt;Currently, I am attempting to log Secure Boot failures at the BL2 stage. My initial approach was to write these logs directly into NOR flash and encrypt them using HSE. However, I am running into the following limitations at the BL2 level on S32G:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;There are no predefined APIs available in BL2 to read from or write to NOR flash.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Persistent or append-style logging cannot be implemented at the BL2 stage.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Because of these constraints, I am unsure how or where such Secure Boot failure logs should be stored at BL2 so that they can later be accessed from Linux.&lt;/P&gt;&lt;P&gt;For Wi-Fi and TLS-related failures, I plan to use NetworkManager-based logging at the Linux level.&lt;/P&gt;&lt;P&gt;Could you please advise on a feasible approach for logging Secure Boot failures originating from BL2, or suggest a recommended mechanism for secure logging in this scenario?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2025 09:32:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/seclogging-at-bl2/m-p/2262614#M15675</guid>
      <dc:creator>Jayashree</dc:creator>
      <dc:date>2025-12-15T09:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: seclogging at bl2</title>
      <link>https://community.nxp.com/t5/S32G/seclogging-at-bl2/m-p/2263179#M15679</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/235643"&gt;@Jayashree&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your post.&lt;/P&gt;
&lt;P&gt;It is a user defined software implementation, sorry that there is not formal recommendation from our side for such topic.&lt;/P&gt;
&lt;P&gt;Regarding the secure boot failure logged in BL2 stage, do you mean the BL2 failed to authenticate the BL3x binaries, and want to log the related information?&lt;/P&gt;
&lt;P&gt;From my experience, the logs mentioned above could be found from the console, if you want to save them to the QSPI, since the BL2 could load images from QSPI, and put them into DDR, so that it could access the QSPI, would you mind checking the related code/API to find whether it could fulfill your requirements?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Chenyin&lt;/P&gt;</description>
      <pubDate>Tue, 16 Dec 2025 02:25:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/seclogging-at-bl2/m-p/2263179#M15679</guid>
      <dc:creator>chenyin_h</dc:creator>
      <dc:date>2025-12-16T02:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: seclogging at bl2</title>
      <link>https://community.nxp.com/t5/S32G/seclogging-at-bl2/m-p/2269117#M15751</link>
      <description>&lt;P&gt;Hello Chenyin,&lt;/P&gt;&lt;P&gt;As per your suggestion, I attempted to use the MMIO read/write APIs from BL2; however, the boot process appears to halt immediately after the API call.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mmio.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/371218i9E88DBFE0083EB02/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mmio.png" alt="mmio.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I also tried using the FSPI read/write APIs, but in this case, I am unable to complete the Yocto build itself.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jayashree_0-1766732142440.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/371219i6C069B66EF842707/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jayashree_0-1766732142440.png" alt="Jayashree_0-1766732142440.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please confirm whether read/write access from BL2 is supported when secure boot is enabled? If it is supported, could you advise which APIs are recommended for this use case? Alternatively, I would appreciate your guidance on feasible approaches or recommended alternatives for logging or data persistence from BL2.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Jayashree&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 26 Dec 2025 06:57:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/seclogging-at-bl2/m-p/2269117#M15751</guid>
      <dc:creator>Jayashree</dc:creator>
      <dc:date>2025-12-26T06:57:09Z</dc:date>
    </item>
  </channel>
</rss>

