<?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>topic Re: HSE integration in S32G</title>
    <link>https://community.nxp.com/t5/S32G/HSE-integration/m-p/1959934#M10883</link>
    <description>&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;WARNING: arm-trusted-firmware-tools-native-2.10-r0 do_fetch: Failed to fetch URL git://github.com/nxp-auto-linux/arm-trusted-firmware.git;protocol=https;branch=release/bsp40.0-2.10, attempting MIRRORS if available&lt;BR /&gt;ERROR: arm-trusted-firmware-tools-native-2.10-r0 do_fetch: Fetcher failure: Unable to find revision b6c0948400594e3cc4dbb5a4ef04b815d2675808 in branch release/bsp40.0-2.10 even from upstream&lt;BR /&gt;ERROR: arm-trusted-firmware-tools-native-2.10-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'git://github.com/nxp-auto-linux/arm-trusted-firmware.git;protocol=https;branch=release/bsp40.0-2.10')&lt;BR /&gt;ERROR: Logfile of failure stored in: /yocto-s32/build_s32g399ardb3/tmp/work/x86_64-linux/arm-trusted-firmware-tools-native/2.10-r0/temp/log.do_fetch.79000&lt;BR /&gt;ERROR: Task (virtual:native:/yocto-s32/sources/meta-alb/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware-tools_2.10.bb:do_fetch) failed with exit code '1'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Getting this error while adding the below lines :&lt;BR /&gt;DISTRO_FEATURES:append = " secboot"&lt;BR /&gt;NXP_FIRMWARE_LOCAL_DIR = "/path/to/firmware/folder"&lt;/P&gt;</description>
    <pubDate>Mon, 23 Sep 2024 13:37:19 GMT</pubDate>
    <dc:creator>ashwini2024</dc:creator>
    <dc:date>2024-09-23T13:37:19Z</dc:date>
    <item>
      <title>HSE integration</title>
      <link>https://community.nxp.com/t5/S32G/HSE-integration/m-p/1955419#M10799</link>
      <description>&lt;P&gt;&lt;STRONG&gt;How can i do the integration of HSE host interfaces, Crypto driver , Kernel crypto API and AF_ALG with custom or openssl on the linux side.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 05:33:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/HSE-integration/m-p/1955419#M10799</guid>
      <dc:creator>ashwini2024</dc:creator>
      <dc:date>2024-09-17T05:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: HSE integration</title>
      <link>https://community.nxp.com/t5/S32G/HSE-integration/m-p/1955951#M10805</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/234952"&gt;@ashwini2024&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;for the answer I'll use the latest BSP and S32G2 as reference, this is BSP41.&lt;/P&gt;
&lt;P&gt;In the BSP41 User manual [Linux BSP 41.0 User Manual for S32G2 platforms] you can find how to add support for HSE in your Linux image in section&amp;nbsp;&lt;STRONG&gt;3.1.8 Building Images with HSE Support&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also check how to add the different HSE features in section&amp;nbsp;&lt;STRONG&gt;10.2 Building HSE Features with Yocto&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;I can also recommend checking&amp;nbsp;&lt;STRONG&gt;10.3 HSE Userspace Driver&amp;nbsp;&lt;/STRONG&gt;and&amp;nbsp;&lt;STRONG&gt;10.4 PKCS11 Support&lt;/STRONG&gt;, in this last section you can find subsection on how to run&amp;nbsp;PKCS11 and HSE examples.&lt;/P&gt;
&lt;P&gt;For all the details please check the whole section&amp;nbsp;&lt;STRONG&gt;10 HSE Security Support&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;The section numbers can differ from one BSP version to another, and for S32G2 and S32G3, let me know if you have trouble finding the information for your BSP and board.&lt;/P&gt;
&lt;P&gt;You will also need to get the HSE FW from the NXP&amp;nbsp;&lt;SPAN&gt;Flexera/Flexnet page, the latest version is&amp;nbsp;0.2.51.0.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if this information was useful,&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 22:06:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/HSE-integration/m-p/1955951#M10805</guid>
      <dc:creator>alejandro_e</dc:creator>
      <dc:date>2024-09-17T22:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: HSE integration</title>
      <link>https://community.nxp.com/t5/S32G/HSE-integration/m-p/1956547#M10817</link>
      <description>&lt;UL&gt;&lt;LI&gt;the HSE driver is built into the kernel.&lt;/LI&gt;&lt;LI&gt;Checked the kernel image and confirmed presence of HSE-related strings.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Now while flashing and checking with the command dmesg | grep hse i get the output as shown in the image how do i move further.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 10:12:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/HSE-integration/m-p/1956547#M10817</guid>
      <dc:creator>ashwini2024</dc:creator>
      <dc:date>2024-09-18T10:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: HSE integration</title>
      <link>https://community.nxp.com/t5/S32G/HSE-integration/m-p/1956929#M10820</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/234952"&gt;@ashwini2024&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;For what I can see in the logs you sent, it seems that the driver cannot find the HSE FW, did you add this two lines to your conf/local.conf?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alejandro_e_0-1726688554908.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/299789i56F582571BB5DB72/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alejandro_e_0-1726688554908.png" alt="alejandro_e_0-1726688554908.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To find the HSE firmware please follow the instructions below:&lt;/P&gt;
&lt;P&gt;- Sign in to your NXP account (&lt;A href="https://www.nxp.com/" target="_blank"&gt;NXP Semiconductors&lt;/A&gt;)&lt;BR /&gt;- Click on "My NXP Account" (top-right) and click on "Software Licensing and Support" under the "Licensing" section within the window it opens.&lt;BR /&gt;- This will redirect you to another page. In this new page, select the option "View Accounts" under the "Software accounts" section.&lt;BR /&gt;- This will again redirect you to another page. On this page, you should see an "Automotive SW – S32G Standard Software" option, click on it.&lt;BR /&gt;- In here, there should be an "Automotive SW - S32G - HSE Firmware". Once you click on this option, you will see the packages available under this category. Select the version you are working with and inside you should be able to see the HSE_DEMOAPP project.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if the driver is now able to find the firmware.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 19:44:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/HSE-integration/m-p/1956929#M10820</guid>
      <dc:creator>alejandro_e</dc:creator>
      <dc:date>2024-09-18T19:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: HSE integration</title>
      <link>https://community.nxp.com/t5/S32G/HSE-integration/m-p/1957274#M10827</link>
      <description>&lt;P&gt;Thank you.&lt;BR /&gt;Now I have a concern regarding the flow from user space to kernel space which of the two approaches should i consider.&lt;BR /&gt;Approach 1: Using cryptodev.ko Interface&lt;BR /&gt;or&lt;BR /&gt;Approach 2: Using af_alg Interface&lt;BR /&gt;Let me know which approach would be better to offload cryptographic abilities by hardware security engine and give me the entire steps.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 06:43:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/HSE-integration/m-p/1957274#M10827</guid>
      <dc:creator>ashwini2024</dc:creator>
      <dc:date>2024-09-19T06:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: HSE integration</title>
      <link>https://community.nxp.com/t5/S32G/HSE-integration/m-p/1957940#M10833</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/234952"&gt;@ashwini2024&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;For the userspace driver you can check section&amp;nbsp;&lt;STRONG&gt;10.3 HSE Userspace Driver&amp;nbsp;&lt;/STRONG&gt;[Linux BSP 41.0 User Manual for S32G3 platforms], there you can see how to configure your kernel and how to download and build all the dependencies and then run an example on the linux terminal using&amp;nbsp;PKCS11.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alejandro_e_0-1726770468523.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/300089i6210E250055EB284/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alejandro_e_0-1726770468523.png" alt="alejandro_e_0-1726770468523.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please be aware of the following considerations:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alejandro_e_1-1726770520908.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/300090i1CAAB34E9C817D17/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alejandro_e_1-1726770520908.png" alt="alejandro_e_1-1726770520908.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also check the following:&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/application-note/AN13495.pdf" target="_blank" rel="noopener"&gt;AN13495&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/application-note/AN14072.pdf" target="_blank" rel="noopener"&gt;AN14072&lt;/A&gt;, Examples folder in&amp;nbsp;&lt;A href="https://github.com/nxp-auto-linux/pkcs11-hse/tree/release/bsp41.0" target="_blank"&gt;PKCS11 userspace module for HSE&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;I was not able to find anything related to cryptodev or&amp;nbsp;&lt;SPAN&gt;af_algo for S32G, I apologize for the inconvenience .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Let me know if the provided information was useful.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 18:52:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/HSE-integration/m-p/1957940#M10833</guid>
      <dc:creator>alejandro_e</dc:creator>
      <dc:date>2024-09-19T18:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: HSE integration</title>
      <link>https://community.nxp.com/t5/S32G/HSE-integration/m-p/1958359#M10845</link>
      <description>&lt;P&gt;How can i use hse as a standalone on the a core without the m core. Is the device tree configuration enough ?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 05:28:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/HSE-integration/m-p/1958359#M10845</guid>
      <dc:creator>ashwini2024</dc:creator>
      <dc:date>2024-09-20T05:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: HSE integration</title>
      <link>https://community.nxp.com/t5/S32G/HSE-integration/m-p/1958891#M10858</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/234952"&gt;@ashwini2024&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Checking this diagram [Page 3, AN13750 ,Enabling Multicore Application on S32G2 using S32G2 Platform Software Integration, Rev. 0, 11/2022]:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alejandro_e_0-1726845651629.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/300413i8CF9D550EB4D0DA7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alejandro_e_0-1726845651629.png" alt="alejandro_e_0-1726845651629.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;there is a M7 core dedicated to the HSE, this will be taken care of automatically by the chip. This means you don't have to create a M7 program to be able to use HSE on Linux. As you can see in the application notes and examples I shared in my last message, the M7 is not required.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if this information solves your question&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 15:23:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/HSE-integration/m-p/1958891#M10858</guid>
      <dc:creator>alejandro_e</dc:creator>
      <dc:date>2024-09-20T15:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: HSE integration</title>
      <link>https://community.nxp.com/t5/S32G/HSE-integration/m-p/1959934#M10883</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;WARNING: arm-trusted-firmware-tools-native-2.10-r0 do_fetch: Failed to fetch URL git://github.com/nxp-auto-linux/arm-trusted-firmware.git;protocol=https;branch=release/bsp40.0-2.10, attempting MIRRORS if available&lt;BR /&gt;ERROR: arm-trusted-firmware-tools-native-2.10-r0 do_fetch: Fetcher failure: Unable to find revision b6c0948400594e3cc4dbb5a4ef04b815d2675808 in branch release/bsp40.0-2.10 even from upstream&lt;BR /&gt;ERROR: arm-trusted-firmware-tools-native-2.10-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'git://github.com/nxp-auto-linux/arm-trusted-firmware.git;protocol=https;branch=release/bsp40.0-2.10')&lt;BR /&gt;ERROR: Logfile of failure stored in: /yocto-s32/build_s32g399ardb3/tmp/work/x86_64-linux/arm-trusted-firmware-tools-native/2.10-r0/temp/log.do_fetch.79000&lt;BR /&gt;ERROR: Task (virtual:native:/yocto-s32/sources/meta-alb/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware-tools_2.10.bb:do_fetch) failed with exit code '1'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Getting this error while adding the below lines :&lt;BR /&gt;DISTRO_FEATURES:append = " secboot"&lt;BR /&gt;NXP_FIRMWARE_LOCAL_DIR = "/path/to/firmware/folder"&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 13:37:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/HSE-integration/m-p/1959934#M10883</guid>
      <dc:creator>ashwini2024</dc:creator>
      <dc:date>2024-09-23T13:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: HSE integration</title>
      <link>https://community.nxp.com/t5/S32G/HSE-integration/m-p/1960083#M10885</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/234952"&gt;@ashwini2024&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That step from the BSP user manual is only needed if you require to use secure boot, I understand that you don't currently need that feature.&lt;/P&gt;
&lt;P&gt;However, the error you are seeing is because you need to define&amp;nbsp;&lt;SPAN&gt;NXP_FIRMWARE_LOCAL_DIR as the directory in which you have downloaded your HSE FW (the folder that was created after running&amp;nbsp; HSE_FW_S32G3XX_0_2_51_0_D2404.exe), for example, in my setup I used:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;NXP_FIRMWARE_LOCAL_DIR = "/home/nxg09032/linux-bsp/bsp-41/HSE_FW"&lt;/LI-CODE&gt;
&lt;P&gt;Note that the path starts with a slash and does not end with a slash.&lt;/P&gt;
&lt;P&gt;in which I have the following:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;.
└── HSE_FW_S32G3XX_0_2_51_0
    ├── ApacheLicense2.0.txt
    ├── docs
    │   ├── HSE_FW_H_S32G3XX_0.2.51.0_Security_Installer_Guideline.pdf
    │   └── HSE_FW_H_S32G3XX_0.2.51.0_Service_API_Reference_Manual.pdf
    ├── GettingStarted.html
    ├── hse
    │   └── bin
    │       └── rev1.1_s32g3xx_hse_fw_0.20.0_2.51.0_pb240404.bin.pink
    ├── HSE_FW_S32G3XX_0_2_51_0_ReleaseNotes.pdf
    ├── interface
    │   ├── config
    │   │   ├── hse_compile_defs.h
    │   │   ├── hse_compiler_abs.h
    │   │   ├── hse_h_config.h
    │   │   ├── hse_platform.h
    │   │   └── hse_target.h
    │   ├── hse_gpr_status.h
    │   ├── hse_interface.h
    │   ├── hse_srv_responses.h
    │   ├── hse_status_and_errors.h
    │   ├── inc_common
    │   │   ├── hse_common_types.h
    │   │   ├── hse_defs.h
    │   │   └── hse_keymgmt_common_types.h
    │   ├── inc_custom
    │   ├── inc_services
    │   │   ├── hse_srv_aead.h
    │   │   ├── hse_srv_attr.h
    │   │   ├── hse_srv_bootdatasig.h
    │   │   ├── hse_srv_cmac_with_counter.h
    │   │   ├── hse_srv_combined_auth_enc.h
    │   │   ├── hse_srv_crc32.h
    │   │   ├── hse_srv_firmware_update.h
    │   │   ├── hse_srv_hash.h
    │   │   ├── hse_srv_ipsec.h
    │   │   ├── hse_srv_key_derive.h
    │   │   ├── hse_srv_key_generate.h
    │   │   ├── hse_srv_key_import_export.h
    │   │   ├── hse_srv_key_mgmt_utils.h
    │   │   ├── hse_srv_mac.h
    │   │   ├── hse_srv_monotonic_cnt.h
    │   │   ├── hse_srv_msc_key_mgmt.h
    │   │   ├── hse_srv_otfad_install.h
    │   │   ├── hse_srv_publish_sys_img.h
    │   │   ├── hse_srv_random.h
    │   │   ├── hse_srv_rsa_cipher.h
    │   │   ├── hse_srv_sbaf_update.h
    │   │   ├── hse_srv_self_test.h
    │   │   ├── hse_srv_she_cmds.h
    │   │   ├── hse_srv_sign.h
    │   │   ├── hse_srv_siphash.h
    │   │   ├── hse_srv_smr_install.h
    │   │   ├── hse_srv_sym_cipher.h
    │   │   ├── hse_srv_sys_authorization.h
    │   │   ├── hse_srv_tmu_reg_config.h
    │   │   └── hse_srv_utils.h
    │   └── std_typedefs.h
    ├── license.rtf
    └── uninst.exe

9 directories, 51 files&lt;/LI-CODE&gt;
&lt;P&gt;All of the files inside&amp;nbsp;the&amp;nbsp;&lt;STRONG&gt;HSE_FW_S32G3XX_0_2_51_0 &lt;/STRONG&gt;are extracted from the installer I mentioned earlier.&lt;/P&gt;
&lt;P&gt;If you only need HSE, only follow the first step from&amp;nbsp;&lt;STRONG&gt;10.2 Building HSE Features with Yocto&amp;nbsp;&lt;/STRONG&gt;and then you can jump to&amp;nbsp;&lt;STRONG&gt;10.3 HSE Userspace Driver&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if this information was useful.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 18:09:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/HSE-integration/m-p/1960083#M10885</guid>
      <dc:creator>alejandro_e</dc:creator>
      <dc:date>2024-09-23T18:09:12Z</dc:date>
    </item>
  </channel>
</rss>

