<?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: m4ctrl for IMX8M Mini EVK 5.4.24-2.1.0 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/m4ctrl-for-IMX8M-Mini-EVK-5-4-24-2-1-0/m-p/1190708#M165695</link>
    <description>&lt;P&gt;Hi Sergei&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was adviced below:&lt;/P&gt;
&lt;P&gt;------------------------&lt;/P&gt;
&lt;P&gt;What about remoteproc driver?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; On 5.4.x kernel, there's a remoteproc driver which can be used to send firmware to M4 from A9 user space.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; User needs to change default dtb to xxx-m4.dtb.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; For details, see 4.1.1 in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://wiki.st.com/stm32mpu/wiki/Linux_remoteproc_framework_overview" target="_blank" rel="noopener nofollow noopener noreferrer noopener noreferrer"&gt;https://wiki.st.com/stm32mpu/wiki/Linux_remoteproc_framework_overview&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Some notes on using remoteproc on i.MX soc:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;firmware must be put under /lib/firmware.&lt;/LI&gt;
&lt;LI&gt;We don't recommend to use stop, which needs M4 to enter IDLE mode itself.&lt;/LI&gt;
&lt;LI&gt;The image file must be in elf format.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;------------------------&lt;/P&gt;
&lt;P&gt;Regarding&amp;nbsp;&lt;SPAN&gt;m4ctrl tool, developer answered:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"The plan is to publish on codeaurora when bandwidth will allow ..."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
    <pubDate>Mon, 30 Nov 2020 07:16:33 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2020-11-30T07:16:33Z</dc:date>
    <item>
      <title>m4ctrl for IMX8M Mini EVK 5.4.24-2.1.0</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/m4ctrl-for-IMX8M-Mini-EVK-5-4-24-2-1-0/m-p/1189780#M165594</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I started to port the m4ctrl utility which we used successfully to control M4 applications on IMX8M-MINI/4.14.78, to 5.4.14-2.1.0 release and stuck on building the m4ctrl_dev kernel module:&lt;/P&gt;&lt;PRE&gt;kernel-module-m4ctrl/kernel/m4ctrl_dev.c:32:1: error: unknown type name 'sc_ipc_t'
..
kernel-module-m4ctrl/m4ctrl_dev.c:33:1: error: unknown type name 'sc_rm_pt_t'&lt;/PRE&gt;&lt;P&gt;Respectively,&amp;nbsp; the functions which used these types in 4.14.78 (sc_pm_set_resource_power_mode(), etc) are not present in 5.4.24.&lt;/P&gt;&lt;P&gt;I checked with the m4ctrl repo on codeaurora, there are no updates.&lt;/P&gt;&lt;P&gt;Is there any way to get m4ctrl and m4ctrl_dev.ko for 5.4.24?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sergei&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 14:34:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/m4ctrl-for-IMX8M-Mini-EVK-5-4-24-2-1-0/m-p/1189780#M165594</guid>
      <dc:creator>sergei_p</dc:creator>
      <dc:date>2020-11-26T14:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: m4ctrl for IMX8M Mini EVK 5.4.24-2.1.0</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/m4ctrl-for-IMX8M-Mini-EVK-5-4-24-2-1-0/m-p/1189932#M165609</link>
      <description>&lt;P&gt;Hi Sergei&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will check internally and update.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 00:52:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/m4ctrl-for-IMX8M-Mini-EVK-5-4-24-2-1-0/m-p/1189932#M165609</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-11-27T00:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: m4ctrl for IMX8M Mini EVK 5.4.24-2.1.0</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/m4ctrl-for-IMX8M-Mini-EVK-5-4-24-2-1-0/m-p/1190708#M165695</link>
      <description>&lt;P&gt;Hi Sergei&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was adviced below:&lt;/P&gt;
&lt;P&gt;------------------------&lt;/P&gt;
&lt;P&gt;What about remoteproc driver?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; On 5.4.x kernel, there's a remoteproc driver which can be used to send firmware to M4 from A9 user space.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; User needs to change default dtb to xxx-m4.dtb.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; For details, see 4.1.1 in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://wiki.st.com/stm32mpu/wiki/Linux_remoteproc_framework_overview" target="_blank" rel="noopener nofollow noopener noreferrer noopener noreferrer"&gt;https://wiki.st.com/stm32mpu/wiki/Linux_remoteproc_framework_overview&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Some notes on using remoteproc on i.MX soc:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;firmware must be put under /lib/firmware.&lt;/LI&gt;
&lt;LI&gt;We don't recommend to use stop, which needs M4 to enter IDLE mode itself.&lt;/LI&gt;
&lt;LI&gt;The image file must be in elf format.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;------------------------&lt;/P&gt;
&lt;P&gt;Regarding&amp;nbsp;&lt;SPAN&gt;m4ctrl tool, developer answered:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"The plan is to publish on codeaurora when bandwidth will allow ..."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 07:16:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/m4ctrl-for-IMX8M-Mini-EVK-5-4-24-2-1-0/m-p/1190708#M165695</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-11-30T07:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: m4ctrl for IMX8M Mini EVK 5.4.24-2.1.0</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/m4ctrl-for-IMX8M-Mini-EVK-5-4-24-2-1-0/m-p/1190973#M165720</link>
      <description>&lt;P&gt;Thanks Igor. Is remoteproc supported by the NXP releases for IMX8M Mini? In the documentation, I only see the references to the "bootaux" M4 loading method.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 14:10:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/m4ctrl-for-IMX8M-Mini-EVK-5-4-24-2-1-0/m-p/1190973#M165720</guid>
      <dc:creator>sergei_p</dc:creator>
      <dc:date>2020-11-30T14:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: m4ctrl for IMX8M Mini EVK 5.4.24-2.1.0</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/m4ctrl-for-IMX8M-Mini-EVK-5-4-24-2-1-0/m-p/1200161#M166560</link>
      <description>&lt;P&gt;Hello Igor,&lt;/P&gt;&lt;P&gt;thanks for pointing out that the remoteproc framework is integrated in the 5.4.24 kernel. With your steps I could load and start the M4 with sysfs commands (&lt;A href="https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-remoteproc" target="_blank"&gt;https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-remoteproc&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;I also tested to stop (&lt;SPAN&gt;$&amp;gt; echo stop &amp;gt;/sys/class/remoteproc/remoteproc0/state)&lt;/SPAN&gt;&amp;nbsp;and restart the M4, which you did not recommend. This works as well (M4 really stops). However, if I stop, then load a different firmware and then start again, the old firmware will restart even if the linux console printout and sysfs response indicates that a different firmware was loaded. Possibly the reason is that the driver does not put the M4 to idle.&lt;/P&gt;&lt;P&gt;So my question: Would it be possible to add that feature in a later kernel release? From a user point of view this would improve usability a lot. Also this means that the driver follows the expected behavior:&lt;/P&gt;&lt;P&gt;* see link above "To change the running firmware, ensure the remote processor is stopped (using /sys/class/remoteproc/.../state) and write a new filename."&lt;/P&gt;&lt;P&gt;* in the link of ST you pasted it is allowed to use stop as well.&lt;/P&gt;&lt;P&gt;Bonus question: Is there a better way to request that feature than through this forum?&lt;/P&gt;&lt;P&gt;Thanks for your response,&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 07:23:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/m4ctrl-for-IMX8M-Mini-EVK-5-4-24-2-1-0/m-p/1200161#M166560</guid>
      <dc:creator>andreasbuchner</dc:creator>
      <dc:date>2020-12-16T07:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: m4ctrl for IMX8M Mini EVK 5.4.24-2.1.0</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/m4ctrl-for-IMX8M-Mini-EVK-5-4-24-2-1-0/m-p/1210837#M167664</link>
      <description>&lt;P&gt;I have much the same question. I'm doing a Yocto build for i.MX8MM, with kernel 5.4.83. I have modified the kernel configuration and the device tree to support remoteproc and rpmsg. I am able to load the &lt;STRONG&gt;imx8mm_m4_TCM_rpmsg_lite_str_echo_rtos.elf&lt;/STRONG&gt; demo binary into the M4, and load the &lt;STRONG&gt;imx_rpmsg_tty.ko&lt;/STRONG&gt; module to talk to it. So that is all good.&lt;/P&gt;&lt;P&gt;I have also been able to modify the source code for the M4 code, build it, and copy the binary to the target board. But if I try to stop then restart the M4, it runs the old M4 binary. If I reboot the whole system, then it starts running the new M4 binary.&lt;/P&gt;&lt;P&gt;What can be done to load and run a new M4 binary, without restarting the whole system?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 05:54:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/m4ctrl-for-IMX8M-Mini-EVK-5-4-24-2-1-0/m-p/1210837#M167664</guid>
      <dc:creator>craigmcqueenir</dc:creator>
      <dc:date>2021-01-13T05:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: m4ctrl for IMX8M Mini EVK 5.4.24-2.1.0</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/m4ctrl-for-IMX8M-Mini-EVK-5-4-24-2-1-0/m-p/1238916#M170234</link>
      <description>&lt;P&gt;You said, "We don't recommend to use stop, which needs M4 to enter IDLE mode itself."&lt;/P&gt;&lt;P&gt;Using stop is useful during development, so we don't have to reboot the system every time we make a change. Is it possible to add a feature to my M4 code to make the M4 enter IDLE mode? What would be the procedure for doing that?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Mar 2021 22:39:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/m4ctrl-for-IMX8M-Mini-EVK-5-4-24-2-1-0/m-p/1238916#M170234</guid>
      <dc:creator>craigmcqueenir</dc:creator>
      <dc:date>2021-03-02T22:39:51Z</dc:date>
    </item>
  </channel>
</rss>

