<?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: M4 doesn't reboot in MCIMX8QXP in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/M4-doesn-t-reboot-in-MCIMX8QXP/m-p/935821#M140168</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you flashing the device, could you please share the exact steps you followed for it. I assume the example above was already flashed on the eMMC and your overwrite is not going through&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Aug 2019 17:29:26 GMT</pubDate>
    <dc:creator>jamesbone</dc:creator>
    <dc:date>2019-08-19T17:29:26Z</dc:date>
    <item>
      <title>M4 doesn't reboot in MCIMX8QXP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/M4-doesn-t-reboot-in-MCIMX8QXP/m-p/935820#M140167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have loaded cortex-M4 with "imx8qx_m4_TCM_srtm_demo.bin" provided by the&amp;nbsp; NXP. On power up of the board,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;The M4 serial output will show a banner upon boot.&lt;/SPAN&gt;&lt;BR style="color: #000000;" /&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;####################&amp;nbsp; CODEC SRTM DEMO ####################&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; Build Time: Mar 25 2019--15:31:14&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;##########################################################&lt;/SPAN&gt;&lt;BR style="color: #000000;" /&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;Press 'r' to do M4 partition reset&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;SPAN&gt;Once you see this banner, pressing &amp;lt;enter&amp;gt; will re-display.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;If you press 'r', you'll see the M4 becomes locked up.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;We have to manually reset the board or power cycle the board.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;I am not getting how to reboot M4 by itself in&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;MCIMX8QXP-CPU: i.MX 8QuadXPlus Multisensory Enablement Kit (MEK)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2019 11:20:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/M4-doesn-t-reboot-in-MCIMX8QXP/m-p/935820#M140167</guid>
      <dc:creator>raja_sj</dc:creator>
      <dc:date>2019-08-19T11:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: M4 doesn't reboot in MCIMX8QXP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/M4-doesn-t-reboot-in-MCIMX8QXP/m-p/935821#M140168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you flashing the device, could you please share the exact steps you followed for it. I assume the example above was already flashed on the eMMC and your overwrite is not going through&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2019 17:29:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/M4-doesn-t-reboot-in-MCIMX8QXP/m-p/935821#M140168</guid>
      <dc:creator>jamesbone</dc:creator>
      <dc:date>2019-08-19T17:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: M4 doesn't reboot in MCIMX8QXP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/M4-doesn-t-reboot-in-MCIMX8QXP/m-p/935822#M140169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps that I followed to flash the container image with the m4 binary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;./imx-boot-tools/mkimage_imx8 -commit &amp;gt; head.hash&lt;BR /&gt;cat u-boot.bin head.hash &amp;gt; u-boot-hash.bin&lt;BR /&gt;cp ./imx-boot-tools/bl31-imx8qxp.bin u-boot-atf.bin&lt;BR /&gt;dd if=u-boot-hash.bin of=u-boot-atf.bin bs=1K seek=128&lt;/P&gt;&lt;P&gt;cp imx8qx_m4_TCM_srtm_demo.bin m4_tcm.bin&lt;/P&gt;&lt;P&gt;./imx-boot-tools/mkimage_imx8 -soc QX -rev B0 -append imx-boot-tools/mx8qx-ahab-container.img -c -scfw imx-boot-tools/scfw_tcm.bin -ap u-boot-atf.bin a35 0x80000000 -m4 m4_tcm.bin 0 0x34FE0000 -out ./new-boot.bin&lt;/P&gt;&lt;P&gt;scp new-boot.bin TARRGET@:/home/root //Target is the IMX8QXP board&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Target Board after copying the new-boot.bin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;echo 0 &amp;gt; /sys/block/mmcblk0boot0/force_ro&lt;BR /&gt;dd if=/home/root/new-boot.bin of=/dev/mmcblk0boot0 bs=1024 seek=32&lt;BR /&gt;sync&lt;/P&gt;&lt;P&gt;reboot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2019 06:23:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/M4-doesn-t-reboot-in-MCIMX8QXP/m-p/935822#M140169</guid>
      <dc:creator>raja_sj</dc:creator>
      <dc:date>2019-08-20T06:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: M4 doesn't reboot in MCIMX8QXP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/M4-doesn-t-reboot-in-MCIMX8QXP/m-p/935823#M140170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tested 2 images, one created by Yocto and the second from pre-built image of below nxp.com site, and on both them, the demo rebooted the M4 partition correctly, without crashing the system, thus we can conclude the demo is fine.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="" data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.nxp.com%2Fdesign%2Fdevelopment-boards%2Fi.mx-evaluation-and-development-boards%2Fi.mx-8quadxplus-multisensory-enablement-kit-mek%3AMCIMX8QXP-CPU" rel="nofollow" target="_blank"&gt;i.MX 8QuadXPlus Multisensory Enablement Kit | NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suspect the way you're creating the boot container could be leading to the problem. Please follow the below step-by-step and let me know if it works for you.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1- On mkimage make sure to checkout the correct branch, I'm using the&amp;nbsp;rel_imx_4.14.98_2.0.0_ga.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;root@ubuntu:~/hd/nxp/imx-mkimage$ git checkout rel_imx_4.14.98_2.0.0_ga&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2 - According to the document&lt;EM&gt;&amp;nbsp;i.MX_Linux_User's_Guide.pdf:&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;To boot a Linux image on i.MX 8QuadMax and i.MX 8QuadXPlus, four elements are needed:&lt;BR /&gt;• Bootloader (imx-boot built by imx-mkimage), which includes U-Boot, Arm Trusted Firmware, DCD file, System&lt;BR /&gt;controller firmware, and the SECO firmware since B0.&lt;BR /&gt;• Arm Cortex-M4 image&lt;BR /&gt;• Linux kernel image (Image built by linux-imx)&lt;BR /&gt;• A device tree file (.dtb) for the board being used&lt;BR /&gt;• A root file system (rootfs) for the particular Linux image&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3 - So let's just concentrate on the 2 first elements, the bootloader and the M4 image:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Copy below files from your compiled directory, or for testing purpose, you can use the bin files from Yocto. The files must be copied to the folder&amp;nbsp;/imx-mkimage/iMX8QX/&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;cp scfw_tcm.bin ~/hd/nxp/imx-mkimage/iMX8QX&lt;/P&gt;&lt;P&gt;cp u-boot-spl.bin-imx8qxpmek-sd ~/hd/nxp/imx-mkimage/iMX8QX/u-boot-spl.bin&lt;/P&gt;&lt;P&gt;cp u-boot-imx8qxpmek.bin-sd ~/hd/nxp/imx-mkimage/iMX8QX/u-boot.bin&lt;/P&gt;&lt;P&gt;cp bl31-imx8qx.bin ~/hd/nxp/imx-mkimage/iMX8QX/bl31.bin&lt;/P&gt;&lt;P&gt;cp mx8qx-ahab-container.img ~/hd/nxp/imx-mkimage/iMX8QX&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then copy the desired M4 image:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;cp imx8qx_m4_TCM_srtm_demo.bin ~/hd/nxp/imx-mkimage/iMX8QX/m4_image.bin&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*note&amp;nbsp;that some files were renamed during the copy.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4 - Run the make for target on the&amp;nbsp;imx-mkimage folder (tip: if you run just make, you will see all the options)&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;root@ubuntu&lt;/SPAN&gt;:~/hd/nxp/imx-mkimage$ make SOC=iMX8QX flash_linux_m4&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5 - Your boot + M4 image is ready to be flashed on sdcard:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN&gt;root@ubuntu:&lt;/SPAN&gt;~/hd/nxp/imx-mkimage$ sudo dd if=iMX8QX/flash.bin of=/dev/&amp;lt;SD card device&amp;gt; bs=1K seek=32 conv=fsync&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2019 17:21:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/M4-doesn-t-reboot-in-MCIMX8QXP/m-p/935823#M140170</guid>
      <dc:creator>jamesbone</dc:creator>
      <dc:date>2019-08-28T17:21:53Z</dc:date>
    </item>
  </channel>
</rss>

