<?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: iMX8MQ Linux Stops U-Boot Loaded M4 Firmware in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MQ-Linux-Stops-U-Boot-Loaded-M4-Firmware/m-p/2058022#M234820</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;By default, NXP Linux BSP keeps the root clock enabled for the M core when it is started from U-Boot. &lt;BR /&gt;&lt;BR /&gt;Could you share the Linux version that you're using?&lt;BR /&gt;When you mentioned that it stops its only the M4 right?&lt;BR /&gt;Linux continue to work correctly?&lt;BR /&gt;Also, on your device tree did you disable the peripherals being used on the M4?&lt;BR /&gt;&lt;BR /&gt;Best regards/Saludos,&lt;BR /&gt;Aldo.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Mar 2025 16:26:28 GMT</pubDate>
    <dc:creator>AldoG</dc:creator>
    <dc:date>2025-03-07T16:26:28Z</dc:date>
    <item>
      <title>iMX8MQ Linux Stops U-Boot Loaded M4 Firmware</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MQ-Linux-Stops-U-Boot-Loaded-M4-Firmware/m-p/2057807#M234810</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have an MCUXpresso project to control GPIO1 port and blink some LEDs connected to a custom board. I have built the binary with the default TCM+DDR configuration.&lt;/P&gt;&lt;P&gt;On U-Boot, I have successfully loaded and run the firmware on M4; using bootaux 0x7E00000.&lt;/P&gt;&lt;P&gt;Later, I found out while booting into Linux, the program stops.&lt;/P&gt;&lt;P&gt;There are some discussions about clock sources. So I've checked if their registers are configured correctly. I've also checked M4 SRC RCR register if the CPU is in reset. I tend to use PLL2 DIV5 according to the reference manual since it's arm_m4_core's source clock. MCUXpresso project had PLL1 DIV3 as default. After I checked the reference manual, I've switched to PLL2 DIV5. Maybe there's something to do with AHB and AXI clocks, idk.&lt;/P&gt;&lt;P&gt;0x3039000C: 0xA8 (After running firmware and boot)&lt;/P&gt;&lt;P&gt;0x303809D0: 0x32 (After running firmware and boot)&lt;BR /&gt;&lt;BR /&gt;1) M4 FreeRTOS FW:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CLOCK_SetRootDivider&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;kCLOCK_RootM4&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;1U&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;1U&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CLOCK_SetRootMux&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;kCLOCK_RootM4&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;kCLOCK_M4RootmuxSysPll2Div5&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;CLOCK_SetRootDivider&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;kCLOCK_RootAhb&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;1U&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;1U&lt;/S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M4 for Linux to not interfere with. Here is the imx8mq-cm4 node:&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;imx8mq-cm4 {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;compatible = "fsl,imx8mq-cm4";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;rsc-da = &amp;lt;0xb8000000&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;clocks = &amp;lt;&amp;amp;clk IMX8MQ_CLK_M4_DIV&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;mbox-names = "tx", "rx", "rxdb";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;mboxes = &amp;lt;&amp;amp;mu 0 1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp;mu 1 1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp;mu 3 1&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;memory-region = &amp;lt;&amp;amp;vdevbuffer&amp;gt;, &amp;lt;&amp;amp;vdev0vring0&amp;gt;, &amp;lt;&amp;amp;vdev0vring1&amp;gt;, &amp;lt;&amp;amp;rsc_table&amp;gt;, &amp;lt;&amp;amp;m4_tcm_reserved&amp;gt;, &amp;lt;&amp;amp;m4_ddr_reserved&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;syscon = &amp;lt;&amp;amp;src&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;fsl,startup-delay-ms = &amp;lt;50000&amp;gt;; // Experimental, maybe it could delay the occuring interference with M4&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;status = "disabled"; // Prevent Linux from interfering with M4&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;};&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;I'm planning to support RPMessage too, that's why I need this configuration.&lt;BR /&gt;&lt;BR /&gt;Basically, I'm going to need to start the M4 firmware on U-boot, check the M4 core's status and communicate with the core on Linux. What am I missing?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Onur&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 11:42:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MQ-Linux-Stops-U-Boot-Loaded-M4-Firmware/m-p/2057807#M234810</guid>
      <dc:creator>onurgoksu</dc:creator>
      <dc:date>2025-03-07T11:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MQ Linux Stops U-Boot Loaded M4 Firmware</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MQ-Linux-Stops-U-Boot-Loaded-M4-Firmware/m-p/2058022#M234820</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;By default, NXP Linux BSP keeps the root clock enabled for the M core when it is started from U-Boot. &lt;BR /&gt;&lt;BR /&gt;Could you share the Linux version that you're using?&lt;BR /&gt;When you mentioned that it stops its only the M4 right?&lt;BR /&gt;Linux continue to work correctly?&lt;BR /&gt;Also, on your device tree did you disable the peripherals being used on the M4?&lt;BR /&gt;&lt;BR /&gt;Best regards/Saludos,&lt;BR /&gt;Aldo.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 16:26:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MQ-Linux-Stops-U-Boot-Loaded-M4-Firmware/m-p/2058022#M234820</guid>
      <dc:creator>AldoG</dc:creator>
      <dc:date>2025-03-07T16:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MQ Linux Stops U-Boot Loaded M4 Firmware</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MQ-Linux-Stops-U-Boot-Loaded-M4-Firmware/m-p/2058474#M234845</link>
      <description>&lt;P&gt;Hello Aldo,&lt;/P&gt;&lt;P&gt;Thank you for the answer.&lt;/P&gt;&lt;P&gt;1. The kernel version is 6.6.36&lt;/P&gt;&lt;P&gt;2. Yes, it only stops the M4 firmware.&lt;/P&gt;&lt;P&gt;3. Linux continues to run.&lt;/P&gt;&lt;P&gt;4. The firmware is only accessing GPIO1 port and it's disabled in the DTS file.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Onur&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 06:04:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MQ-Linux-Stops-U-Boot-Loaded-M4-Firmware/m-p/2058474#M234845</guid>
      <dc:creator>onurgoksu</dc:creator>
      <dc:date>2025-03-10T06:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MQ Linux Stops U-Boot Loaded M4 Firmware</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MQ-Linux-Stops-U-Boot-Loaded-M4-Firmware/m-p/2058559#M234851</link>
      <description>&lt;P&gt;I find about a command called "prepare_mcore" on U-Boot according to this document:&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/application-note/AN5317.pdf" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.nxp.com/docs/en/application-note/AN5317.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Might be the problem?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;Onur&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 07:42:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MQ-Linux-Stops-U-Boot-Loaded-M4-Firmware/m-p/2058559#M234851</guid>
      <dc:creator>onurgoksu</dc:creator>
      <dc:date>2025-03-10T07:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MQ Linux Stops U-Boot Loaded M4 Firmware</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MQ-Linux-Stops-U-Boot-Loaded-M4-Firmware/m-p/2059060#M234890</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Thank you for sharing, please try setting the following variable in uboot:&lt;/P&gt;
&lt;P&gt;&amp;gt; setenv mmcargs "${mmcargs} clk_ignore_unused"&lt;BR /&gt;&lt;BR /&gt;After this try to boot into Linux and share if the issue persist.&lt;BR /&gt;&lt;BR /&gt;Best regards/Saludos,&lt;BR /&gt;Aldo.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 22:59:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MQ-Linux-Stops-U-Boot-Loaded-M4-Firmware/m-p/2059060#M234890</guid>
      <dc:creator>AldoG</dc:creator>
      <dc:date>2025-03-10T22:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MQ Linux Stops U-Boot Loaded M4 Firmware</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MQ-Linux-Stops-U-Boot-Loaded-M4-Firmware/m-p/2063768#M235210</link>
      <description>&lt;P&gt;Hello Aldo,&lt;/P&gt;&lt;P&gt;Thanks a lot! This indeed solved the issue.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Onur&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 11:59:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MQ-Linux-Stops-U-Boot-Loaded-M4-Firmware/m-p/2063768#M235210</guid>
      <dc:creator>onurgoksu</dc:creator>
      <dc:date>2025-03-18T11:59:27Z</dc:date>
    </item>
  </channel>
</rss>

