<?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: I.MX6SX start M4 from U-Boot with QSPI flash in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/I-MX6SX-start-M4-from-U-Boot-with-QSPI-flash/m-p/363364#M51353</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bootaux command uses QuadSPI Configuration Parameters Table&lt;/P&gt;&lt;P&gt;for running image, sect.8.6.3 QuadSPI Configuration Parameters&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6SXRM.pdf?fasp=1&amp;amp;WT_TYPE=Reference%20Manuals&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf"&gt;IMX6SXRM&lt;/A&gt;.&amp;nbsp; Attached Release Notes p.11, User Guide p.28&lt;/P&gt;&lt;P&gt;show its usage. Regarding &lt;SPAN style="background: #ffffff;"&gt;SoloX support it may be useful to look below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffff;"&gt;&lt;A href="http://comments.gmane.org/gmane.linux.embedded.yocto.meta-freescale/13145" title="http://comments.gmane.org/gmane.linux.embedded.yocto.meta-freescale/13145"&gt;Freescale OpenEmbedded/Yocto Layers discussion list ()&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Mar 2015 11:48:52 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2015-03-31T11:48:52Z</dc:date>
    <item>
      <title>I.MX6SX start M4 from U-Boot with QSPI flash</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I-MX6SX-start-M4-from-U-Boot-with-QSPI-flash/m-p/363363#M51352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am on 6X Sabre-SDB board. I flashed U-Boot from MQX: &lt;STRONG&gt;MQX/tools/u-boot-sdb.imx&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I also built an MQX example application and was able to flash it to QSPI flash with the update command&lt;/P&gt;&lt;P&gt;and boot the M4 with: &lt;STRONG&gt;run m4boot&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to do this with normal &lt;STRONG&gt;u-boot-fslc&lt;/STRONG&gt; from yocto. I am on &lt;A href="https://w2008ex.s1nn.int/owa/redir.aspx?C=F-BT0b3yB0Wdf-FafTrt72rsy-D3MNIIOtaJ67iCjPL9Jvqt99-v9OOVo5lxacIvPeX5SioE7pk.&amp;amp;URL=https%3A%2F%2Fgithub.com%2FFreescale%2Ffsl-community-bsp-platform" rel="nofollow noopener noreferrer noopener noreferrer" target="_blank"&gt;&lt;SPAN style="background: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="https://github.com/Freescale/fsl-community-bsp-platform" rel="nofollow noopener noreferrer noopener noreferrer" target="test_blank"&gt;https://github.com/Freescale/fsl-community-bsp-platform&lt;/A&gt;&lt;STRONG&gt; master&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;After enabling the &lt;STRONG&gt;setexpr&lt;/STRONG&gt; command in u-boot config i can flash the M4 image with this command:&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;update_m4_from_sd=if sf probe 1:0; then if run loadm4image; then setexpr fw_sz ${filesize} + 0xffff; setexpr fw_sz ${fw_sz} / 0x10000; setexpr fw_sz ${fw_sz} * 0x10000; sf erase 0x0 ${fw_sz}; sf write ${loadaddr} 0x0 ${filesize}; fi; fi&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This works fine. With the u-boot from MQX i would run this to boot the M4 (works fine too):&lt;STRONG&gt; sf probe 1:0; bootaux 0x78000000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But in &lt;A href="https://github.com/Freescale/u-boot-fslc/tree/patches-2015.01" rel="nofollow noopener noreferrer noopener noreferrer" target="_blank" title="https://github.com/Freescale/u-boot-fslc/tree/patches-2015.01"&gt;Freescale/u-boot-fslc at patches-2015.01 · GitHub&lt;/A&gt; the &lt;STRONG&gt;bootaux &lt;/STRONG&gt;command is missing.&lt;/P&gt;&lt;P&gt;I have the following commands, i think they are used to boot the M4 from DDR, but i want to &lt;STRONG&gt;boot from QSPI flash:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE class="western" style="margin-top: 0.49cm; margin-bottom: 0.49cm;"&gt;&lt;SPAN style="background: #ffffff;"&gt;mw.l 0x4006e028 0x3f000485;&lt;/SPAN&gt;&lt;SPAN style="background: #ffffff;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="background: #ffffff;"&gt;mw.l 0x4006b08c 0x00015a5a;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="background: #ffffff;"&gt;So my question is, what exactly does the &lt;STRONG&gt;bootaux&lt;/STRONG&gt; command?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffff;"&gt;other question: How can i use "M4 Fast Up" with my u-boot-fslc in yocto?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffff;"&gt;In the machine config: &lt;STRONG&gt;meta-fsl-arm/conf/machine/imx6sxsabresd.conf&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffff;"&gt;There is: &lt;/SPAN&gt;&lt;STRONG&gt;UBOOT_CONFIG[m4fastup] = "mx6sxsabresd_m4fastup_config"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffff;"&gt;So i guess, the whole u-boot stuff for the SoloX is not yet in u-boot in Github.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffff;"&gt;would be nice to have the source code for all this stuff &lt;IMG alt="Smiley Happy" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="https://community.nxp.com/i/smilies/16x16_smiley-happy.png" title="Smiley Happy" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 13:13:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I-MX6SX-start-M4-from-U-Boot-with-QSPI-flash/m-p/363363#M51352</guid>
      <dc:creator>janhieber</dc:creator>
      <dc:date>2020-11-02T13:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: I.MX6SX start M4 from U-Boot with QSPI flash</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I-MX6SX-start-M4-from-U-Boot-with-QSPI-flash/m-p/363364#M51353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bootaux command uses QuadSPI Configuration Parameters Table&lt;/P&gt;&lt;P&gt;for running image, sect.8.6.3 QuadSPI Configuration Parameters&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6SXRM.pdf?fasp=1&amp;amp;WT_TYPE=Reference%20Manuals&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf"&gt;IMX6SXRM&lt;/A&gt;.&amp;nbsp; Attached Release Notes p.11, User Guide p.28&lt;/P&gt;&lt;P&gt;show its usage. Regarding &lt;SPAN style="background: #ffffff;"&gt;SoloX support it may be useful to look below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffff;"&gt;&lt;A href="http://comments.gmane.org/gmane.linux.embedded.yocto.meta-freescale/13145" title="http://comments.gmane.org/gmane.linux.embedded.yocto.meta-freescale/13145"&gt;Freescale OpenEmbedded/Yocto Layers discussion list ()&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 11:48:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I-MX6SX-start-M4-from-U-Boot-with-QSPI-flash/m-p/363364#M51353</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2015-03-31T11:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Re: I.MX6SX start M4 from U-Boot with QSPI flash</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I-MX6SX-start-M4-from-U-Boot-with-QSPI-flash/m-p/363365#M51354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the reply. For our application booting the M4 from environment/bootscript is useful,&lt;/P&gt;&lt;P&gt;but what we really want to use is the "m4fastup" as seen here: &lt;A href="https://github.com/Freescale/meta-fsl-arm/blob/master/conf/machine/imx6sxsabresd.conf" title="https://github.com/Freescale/meta-fsl-arm/blob/master/conf/machine/imx6sxsabresd.conf"&gt;meta-fsl-arm/imx6sxsabresd.conf at master · Freescale/meta-fsl-arm · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The m4fastup boots the M4 early in the U-Boot code, and for this we need the sourcecode.&lt;/P&gt;&lt;P&gt;The normal &lt;CODE&gt;&lt;STRONG&gt;mx6sxsabresd_config&lt;/STRONG&gt; &lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;is there but the&lt;/SPAN&gt; &lt;STRONG&gt;mx6sxsabresd_m4fastup_config&lt;/STRONG&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;is missing. When can we expect the source code for this?&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Best regards&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Jan Hieber&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 12:41:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I-MX6SX-start-M4-from-U-Boot-with-QSPI-flash/m-p/363365#M51354</guid>
      <dc:creator>janhieber</dc:creator>
      <dc:date>2015-04-07T12:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: I.MX6SX start M4 from U-Boot with QSPI flash</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I-MX6SX-start-M4-from-U-Boot-with-QSPI-flash/m-p/363366#M51355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm going through the same thing currently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The source code for bootaux is the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;boot_private_data = 0x78000000&lt;/P&gt;&lt;P&gt;M4_BOOTROM_BASE_ADDR = 0x007F8000&lt;/P&gt;&lt;P&gt;SRC_BASE_ADDR = 0x020D8000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; struct src *src_reg;&lt;/P&gt;&lt;P&gt;&amp;nbsp; u32 stack, pc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (!boot_private_data)&lt;/P&gt;&lt;P&gt;&amp;nbsp; return 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; stack = *(u32 *)boot_private_data;&lt;/P&gt;&lt;P&gt;&amp;nbsp; pc = *(u32 *)(boot_private_data + 4);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Set the stack and pc to M4 bootROM */&lt;/P&gt;&lt;P&gt;&amp;nbsp; writel(stack, M4_BOOTROM_BASE_ADDR);&lt;/P&gt;&lt;P&gt;&amp;nbsp; writel(pc, M4_BOOTROM_BASE_ADDR + 4);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Enable M4 */&lt;/P&gt;&lt;P&gt;&amp;nbsp; src_reg = (struct src *)SRC_BASE_ADDR;&lt;/P&gt;&lt;P&gt;&amp;nbsp; setbits_le32(&amp;amp;src_reg-&amp;gt;scr, 0x00400000);&lt;/P&gt;&lt;P&gt;&amp;nbsp; clrbits_le32(&amp;amp;src_reg-&amp;gt;scr, 0x00000010);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; return 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do this inside a u-boot version without the bootaux command, you can do something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;=&amp;gt; sf probe 1:0; cp 0x78000000 0x007F8000 8; mw.l 0x020D8000 0xA0480529;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;This started the M4 from QSPI2 for me.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 20:42:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I-MX6SX-start-M4-from-U-Boot-with-QSPI-flash/m-p/363366#M51355</guid>
      <dc:creator>nathanb_</dc:creator>
      <dc:date>2015-04-08T20:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: I.MX6SX start M4 from U-Boot with QSPI flash</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I-MX6SX-start-M4-from-U-Boot-with-QSPI-flash/m-p/363367#M51356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like the u-boot still is not in u-boot-fsl, or I'm looking at the wrong repo? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 21:22:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I-MX6SX-start-M4-from-U-Boot-with-QSPI-flash/m-p/363367#M51356</guid>
      <dc:creator>tcmichals</dc:creator>
      <dc:date>2015-07-24T21:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: I.MX6SX start M4 from U-Boot with QSPI flash</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I-MX6SX-start-M4-from-U-Boot-with-QSPI-flash/m-p/363368#M51357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are correct&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 13:31:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I-MX6SX-start-M4-from-U-Boot-with-QSPI-flash/m-p/363368#M51357</guid>
      <dc:creator>nathanb_</dc:creator>
      <dc:date>2015-08-07T13:31:04Z</dc:date>
    </item>
  </channel>
</rss>

