<?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>i.MX ProcessorsのトピックRe: IMX7 M4 boot from DDR</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX7-M4-boot-from-DDR/m-p/1589562#M200769</link>
    <description>&lt;P&gt;Hi Aldo,&lt;/P&gt;&lt;P&gt;Sorry for the late reply, I am using&amp;nbsp;linux-imx v5.10.72, and my goal is to run M4 binary using DDR memory.&lt;/P&gt;&lt;P&gt;I can load M4 hello world pre-built binary (&lt;STRONG&gt;imx8mq_m4_TCM_hello_world.elf&lt;/STRONG&gt;) via remoteproc, it seems this pre-built binary loaded into TCM memory. In the same way, I tried to boot M4 on ddr memory, I changed ld file of helloworld demo and the device tree file to load the M4 binary, but the M4 boot failed with the following error.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;root@imx7dsabresd:~# echo start &amp;gt; /sys/class/remoteproc/remoteproc0/state&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ 127.772894] remoteproc remoteproc0: powering up imx-rproc&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ 127.779460] remoteproc remoteproc0: Booting fw image hello_world_ddr.elf, size 152084&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ 127.787571] remoteproc remoteproc0: Boot failed: -22&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sh: write error: Invalid argument&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;ld file changes:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;MEMORY&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;m_interrupts (RX) : ORIGIN = 0x80000000, LENGTH = 0x00000240&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;m_text (RX) : ORIGIN = 0x80000240, LENGTH = 0x00007DC0&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;m_data (RW) : ORIGIN = 0x20000000, LENGTH = 0x00008000&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raveen&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jan 2023 07:18:02 GMT</pubDate>
    <dc:creator>raveen</dc:creator>
    <dc:date>2023-01-30T07:18:02Z</dc:date>
    <item>
      <title>IMX7 M4 boot from DDR</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX7-M4-boot-from-DDR/m-p/1586564#M200510</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was trying to run IMX7 M4&amp;nbsp; in DDR memory, I made the following changes in the device tree, MAKEFILE, and m4_ddr_ld files,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Device tree:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;memory {&lt;BR /&gt;linux,usable-memory = &amp;lt;0x80200000 0x1ff00000&amp;gt;,&lt;BR /&gt;&amp;lt;0xa0000000 0x1ff00000&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;cortexm4:cortexm4@80000000 {&lt;BR /&gt;reg = &amp;lt;0x80000000 0x200000&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;imx7d-cm4 {&lt;BR /&gt;compatible = "fsl,imx7d-cm4";&lt;BR /&gt;syscon = &amp;lt;&amp;amp;src&amp;gt;;&lt;BR /&gt;clocks = &amp;lt;&amp;amp;clks IMX7D_ARM_M4_ROOT_CLK&amp;gt;;&lt;BR /&gt;memory-region = &amp;lt;&amp;amp;cortexm4&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;make file:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;I edited the make file from this location arch/arm/Makefile&lt;/P&gt;&lt;P&gt;-textofs-y := 0x00008000&lt;BR /&gt;+textofs-y := 0x00208000&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;MCIMX7D_M4_ddr.ld:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;MEMORY&lt;BR /&gt;{&lt;BR /&gt;m_interrupts (RX) : ORIGIN = 0x80000000, LENGTH = 0x00000240&lt;BR /&gt;m_text (RX) : ORIGIN = 0x80000240, LENGTH = 0x00007DC0&lt;BR /&gt;m_data (RW) : ORIGIN = 0x20000000, LENGTH = 0x00008000&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;arm gcc version&lt;/STRONG&gt; -&amp;nbsp;7.2.1 20170904&lt;/P&gt;&lt;P&gt;unfortunately, m4 failed to boot and print the following error message,&lt;/P&gt;&lt;P&gt;root@imx7dsabresd:~# echo start &amp;gt; /sys/class/remoteproc/remoteproc0/state&lt;BR /&gt;[ 127.772894] remoteproc remoteproc0: powering up imx-rproc&lt;BR /&gt;[ 127.779460] remoteproc remoteproc0: Booting fw image hello_world_ddr.elf, size 152084&lt;BR /&gt;[ 127.787571] remoteproc remoteproc0: Boot failed: -22&lt;BR /&gt;sh: write error: Invalid argument&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;could anyone help me to make it work !?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 10:37:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX7-M4-boot-from-DDR/m-p/1586564#M200510</guid>
      <dc:creator>raveen</dc:creator>
      <dc:date>2023-01-23T10:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: IMX7 M4 boot from DDR</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX7-M4-boot-from-DDR/m-p/1586852#M200535</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I don't know which kernel version you’re using for your test, but you may take our i.MX7D SDB device tree as reference&lt;BR /&gt;&lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-5.15.y/arch/arm/boot/dts/imx7d-sdb-m4.dtsi" target="_blank"&gt;https://github.com/nxp-imx/linux-imx/blob/lf-5.15.y/arch/arm/boot/dts/imx7d-sdb-m4.dtsi&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Aldo.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 23:12:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX7-M4-boot-from-DDR/m-p/1586852#M200535</guid>
      <dc:creator>AldoG</dc:creator>
      <dc:date>2023-01-23T23:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: IMX7 M4 boot from DDR</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX7-M4-boot-from-DDR/m-p/1589562#M200769</link>
      <description>&lt;P&gt;Hi Aldo,&lt;/P&gt;&lt;P&gt;Sorry for the late reply, I am using&amp;nbsp;linux-imx v5.10.72, and my goal is to run M4 binary using DDR memory.&lt;/P&gt;&lt;P&gt;I can load M4 hello world pre-built binary (&lt;STRONG&gt;imx8mq_m4_TCM_hello_world.elf&lt;/STRONG&gt;) via remoteproc, it seems this pre-built binary loaded into TCM memory. In the same way, I tried to boot M4 on ddr memory, I changed ld file of helloworld demo and the device tree file to load the M4 binary, but the M4 boot failed with the following error.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;root@imx7dsabresd:~# echo start &amp;gt; /sys/class/remoteproc/remoteproc0/state&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ 127.772894] remoteproc remoteproc0: powering up imx-rproc&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ 127.779460] remoteproc remoteproc0: Booting fw image hello_world_ddr.elf, size 152084&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ 127.787571] remoteproc remoteproc0: Boot failed: -22&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sh: write error: Invalid argument&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;ld file changes:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;MEMORY&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;m_interrupts (RX) : ORIGIN = 0x80000000, LENGTH = 0x00000240&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;m_text (RX) : ORIGIN = 0x80000240, LENGTH = 0x00007DC0&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;m_data (RW) : ORIGIN = 0x20000000, LENGTH = 0x00008000&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raveen&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 07:18:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX7-M4-boot-from-DDR/m-p/1589562#M200769</guid>
      <dc:creator>raveen</dc:creator>
      <dc:date>2023-01-30T07:18:02Z</dc:date>
    </item>
  </channel>
</rss>

