<?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: iMX8QM: system reset from M4 core software in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-system-reset-from-M4-core-software/m-p/1769823#M216962</link>
    <description>&lt;P&gt;Please, can you describe me better the ATF source changes needed to give the&amp;nbsp;&lt;SPAN&gt;SC_R_SYSTEM&amp;nbsp;authority to Partition 3?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Dec 2023 14:19:19 GMT</pubDate>
    <dc:creator>zemagi</dc:creator>
    <dc:date>2023-12-06T14:19:19Z</dc:date>
    <item>
      <title>iMX8QM: system reset from M4 core software</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-system-reset-from-M4-core-software/m-p/1301696#M176343</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I am developing software on a custom board using iMX8QM.&lt;BR /&gt;The following function is executed to reset the system from the M4 core software.&lt;/P&gt;&lt;P&gt;　sc_pm_reset (ipc, SC_PM_RESET_TYPE_COLD);&lt;/P&gt;&lt;P&gt;The return value of this function is SC_ERR_NOACCESS and cannot be reset.&lt;BR /&gt;What should I do to reset it?&lt;/P&gt;&lt;P&gt;Currently, M4 core software are running from uboot commands.&lt;/P&gt;&lt;P&gt;　loadm4image_0 = fatload mmc $ {mmcdev}: $ {mmcpart} $ {loadaddr} $ {m4_0_image}&lt;BR /&gt;　m4boot_0 = run load m4image_0; dcache flush; bootaux $ {loadaddr} 0&lt;BR /&gt;　run m4boot_0&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 08:52:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-system-reset-from-M4-core-software/m-p/1301696#M176343</guid>
      <dc:creator>aso</dc:creator>
      <dc:date>2021-07-02T08:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8QM: system reset from M4 core software</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-system-reset-from-M4-core-software/m-p/1305525#M176696</link>
      <description>&lt;P&gt;Does the M4 partition have access to the SC_R_SYSTEM partition?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 15:15:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-system-reset-from-M4-core-software/m-p/1305525#M176696</guid>
      <dc:creator>fmonte</dc:creator>
      <dc:date>2021-07-09T15:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8QM: system reset from M4 core software</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-system-reset-from-M4-core-software/m-p/1305805#M176728</link>
      <description>&lt;P&gt;Thanks for your comment.&lt;/P&gt;&lt;P&gt;How can I give SC_R_SYSTEM access to M4 partition?&lt;BR /&gt;I'm thinking of editing scfw, how do I set it?&lt;/P&gt;&lt;P&gt;Also, if I give access to the M4 partition, do I need to boot from the M4 partition? Is it okay to use the uboot command as before?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 00:47:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-system-reset-from-M4-core-software/m-p/1305805#M176728</guid>
      <dc:creator>aso</dc:creator>
      <dc:date>2021-07-12T00:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8QM: system reset from M4 core software</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-system-reset-from-M4-core-software/m-p/1308280#M176978</link>
      <description>&lt;P&gt;You need to work on board.c of SCFW. Use functions like sc_rm_assign_resource() to set the ownership of a resource.&lt;/P&gt;&lt;P&gt;You do not need to alter your boot configuration.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 08:54:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-system-reset-from-M4-core-software/m-p/1308280#M176978</guid>
      <dc:creator>fmonte</dc:creator>
      <dc:date>2021-07-15T08:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8QM: system reset from M4 core software</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-system-reset-from-M4-core-software/m-p/1318573#M177912</link>
      <description>&lt;P&gt;Thank you for answering.&lt;/P&gt;&lt;P&gt;This case was self-solved.&lt;/P&gt;&lt;P&gt;I checked the SCFW porting kit.&lt;BR /&gt;&lt;SPAN&gt;The SC_R_SYSTEM&lt;/SPAN&gt;&amp;nbsp;is owned by ATF as the partition 1.&lt;BR /&gt;u-boot, Linux and M4 software were AP, as partition3.&lt;BR /&gt;Since partition 3 is dynamically created by ATF, SCFW could not handle it.&lt;/P&gt;&lt;P&gt;Therefore, I changed the source code of ATF and built it.&lt;BR /&gt;I have given the The SC_R_SYSTEM&amp;nbsp;authority.&lt;BR /&gt;As a result, I succeeded in resetting with the current configuration.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 01:20:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-system-reset-from-M4-core-software/m-p/1318573#M177912</guid>
      <dc:creator>aso</dc:creator>
      <dc:date>2021-08-05T01:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8QM: system reset from M4 core software</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-system-reset-from-M4-core-software/m-p/1769823#M216962</link>
      <description>&lt;P&gt;Please, can you describe me better the ATF source changes needed to give the&amp;nbsp;&lt;SPAN&gt;SC_R_SYSTEM&amp;nbsp;authority to Partition 3?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 14:19:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-system-reset-from-M4-core-software/m-p/1769823#M216962</guid>
      <dc:creator>zemagi</dc:creator>
      <dc:date>2023-12-06T14:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8QM: system reset from M4 core software</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-system-reset-from-M4-core-software/m-p/1771898#M217125</link>
      <description>&lt;P&gt;The modified source file is below.&lt;BR /&gt;/plat/imx/imx8qm/include/sec_rsrc.h&lt;/P&gt;&lt;LI-CODE lang="c"&gt;~$ diff -u sec_rsrc.h update/sec_rsrc.h
--- sec_rsrc.h  2019-10-15 17:56:50.000000000 +0900
+++ update/sec_rsrc.h   2023-12-11 11:31:45.664303795 +0900
@@ -18,8 +18,9 @@
        SC_R_GIC,
        SC_R_GIC_SMMU,
        SC_R_CCI,
-       SC_R_SYSTEM,
-       SC_R_GPT_0,
+//  delete for board reset in M4 app
+//     SC_R_SYSTEM,
+//     SC_R_GPT_0,
 #ifdef SPD_trusty
        SC_R_CAAM_JR2,
        SC_R_CAAM_JR2_OUT,
@@ -32,6 +33,8 @@

 /* resources that have register access for non-secure domain */
 sc_rsrc_t ns_access_allowed[] = {
+// add for board reset in M4 app
+       SC_R_SYSTEM,
        SC_R_GIC,
        SC_R_GPT_0,
        SC_R_CCI&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 02:40:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-system-reset-from-M4-core-software/m-p/1771898#M217125</guid>
      <dc:creator>aso</dc:creator>
      <dc:date>2023-12-11T02:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8QM: system reset from M4 core software</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-system-reset-from-M4-core-software/m-p/1772026#M217138</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 07:23:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-system-reset-from-M4-core-software/m-p/1772026#M217138</guid>
      <dc:creator>zemagi</dc:creator>
      <dc:date>2023-12-11T07:23:59Z</dc:date>
    </item>
  </channel>
</rss>

