<?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: imx8qxpmek: spi does not work on sd card boot</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxpmek-spi-does-not-work-on-sd-card-boot/m-p/1279373#M174292</link>
    <description>&lt;P&gt;I still has this problem (lsio_fspi0[237] not owned by the curr partition) when using Linux 5.10.9 version from building Yocto .&lt;/P&gt;&lt;P&gt;Can anyone help ?&lt;/P&gt;&lt;P&gt;Alex Lu&lt;/P&gt;</description>
    <pubDate>Thu, 20 May 2021 02:52:58 GMT</pubDate>
    <dc:creator>alexlu6</dc:creator>
    <dc:date>2021-05-20T02:52:58Z</dc:date>
    <item>
      <title>imx8qxpmek: spi does not work on sd card boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxpmek-spi-does-not-work-on-sd-card-boot/m-p/986653#M146518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an imx8qxpmek board developer kit and boot with sd card bootmode and the delivered sd card into U-Boot (or linux), and spi access works fine, see[1].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I builded the sd card image from the sources with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ repo init -u &lt;A href="https://source.codeaurora.org/external/imx/imx-manifest" target="test_blank"&gt;https://source.codeaurora.org/external/imx/imx-manifest&lt;/A&gt; -b imx-linux-thud -m imx-4.19.35-1.0.0.xml&lt;/P&gt;&lt;P&gt;$ repo sync&lt;/P&gt;&lt;P&gt;$ DISTRO=fsl-imx-xwayland MACHINE=imx8qxpmek source fsl-setup-release.sh -b build-xwayland&lt;/P&gt;&lt;P&gt;[...]&lt;BR /&gt;$ bitbake fsl-image-qt5-validation-imx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and boot this image, but sf probe fails, see [2]. Building the spi image (with setting UBOOT_CONFIG = "fspi") from this source code and burning this image into SPI NOR (luckily this works with the original sd card) and booting the board with bootmode SPI results in working U-Boot with SPI NOR access [3]. Also linux boots and detect the SPI NOR now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok, there are different U-Boot versions, also (and I think more important) other scfw firmware verions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The U-Boot error log shows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lsio_fspi0 [237] not owned by curr partition&lt;BR /&gt;sc_pm_set_resource_power_mode: resource:237 mode:3: res:4&lt;BR /&gt;Error: lsio_fspi0 Power up failed! (error = 243)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which means:&lt;/P&gt;&lt;P&gt;resource&lt;/P&gt;&lt;P&gt;#define SC_R_FSPI_0 237&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and errorcode 4 = SC_ERR_NOACCESS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok, so I think I have to adapt the scfw ... but I am totally new to imx8 ... and I just wonder why with newer source SPI access does not work from sd card boot. Any reason for disabling this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remark: I downloaded the scfw porting kit:&lt;BR /&gt; &lt;A href="https://www.nxp.com/webapp/Download?colCode=L4.19.35_1.1.0_SCFWKIT-1.2.7.1&amp;amp;appType=license&amp;amp;location=null" rel="nofollow"&gt;https://www.nxp.com/webapp/Download?colCode=L4.19.35_1.1.0_SCFWKIT-1.2.7.1&amp;amp;appType=license&amp;amp;location=null&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;builded it and added the image successfully to the yocto build, but same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas, help, hint, where I have to tweak the source to get SPI NOR on sd card boot working again?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye,&lt;/P&gt;&lt;P&gt;Heiko&lt;/P&gt;&lt;P&gt;[1] sd card bootlog with original sd card image&lt;/P&gt;&lt;P&gt;U-Boot 2017.03-imx_v2017.03_4.9.88_imx8qxp_beta2+g84c4e82 (Jun 28 2018 - 09:07:20 +0800)&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;CPU:&amp;nbsp;&amp;nbsp; Freescale i.MX8QXP revB A35 at 1200 MHz at 17C&lt;BR /&gt;Model: Freescale i.MX8QXP MEK&lt;BR /&gt;Board: iMX8QXP MEK&lt;BR /&gt;Boot:&amp;nbsp; SD1&lt;BR /&gt;DRAM:&amp;nbsp; 3 GiB&lt;BR /&gt;TCPC:&amp;nbsp; Vendor ID [0x1fc9], Product ID [0x5110]&lt;BR /&gt;MMC:&amp;nbsp;&amp;nbsp; FSL_SDHC: 0, FSL_SDHC: 1&lt;BR /&gt;[pcie_ctrlb_sata_phy_init_rc] LNK DOWN 8600000&lt;BR /&gt;In:&amp;nbsp;&amp;nbsp;&amp;nbsp; serial&lt;BR /&gt;Out:&amp;nbsp;&amp;nbsp; serial&lt;BR /&gt;Err:&amp;nbsp;&amp;nbsp; serial&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;BuildInfo: &lt;BR /&gt;&amp;nbsp; - SCFW 3301c1a9, SECO-FW eeb55e1e, IMX-MKIMAGE 5c18f544, ATF 00b653e&lt;BR /&gt;&amp;nbsp;&amp;nbsp; - U-Boot 2017.03-imx_v2017.03_4.9.88_imx8qxp_beta2+g84c4e82 &lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;switch to partitions #0, OK&lt;BR /&gt;mmc1 is current device&lt;BR /&gt;Net:&amp;nbsp;&amp;nbsp; eth0: ethernet@5b040000 [PRIME]&lt;BR /&gt;Warning: ethernet@5b050000 (eth1) using random MAC address - 9e:97:b2:b1:f1:c7&lt;BR /&gt;, eth1: ethernet@5b050000&lt;BR /&gt;Normal Boot&lt;BR /&gt;Hit any key to stop autoboot:&amp;nbsp; 0 &lt;BR /&gt;=&amp;gt; &lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;=&amp;gt; &lt;/P&gt;&lt;P&gt;=&amp;gt; sf probe&lt;BR /&gt;SF: Detected mt35xu512aba with page size 256 Bytes, erase size 128 KiB, total 64 MiB&lt;BR /&gt;=&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[2] sd card bootlog with thud branch builded sources:&lt;BR /&gt;U-Boot 2019.04-imx_v2019.04_4.19.35_1.0.0+g85bdcc7 (Dec 11 2019 - 11:59:46 +0000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CPU:&amp;nbsp;&amp;nbsp; NXP i.MX8QXP RevB A35 at 1200 MHz at 19C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Model: Freescale i.MX8QXP MEK&lt;BR /&gt;Board: iMX8QXP MEK&lt;BR /&gt;Boot:&amp;nbsp; SD1&lt;BR /&gt;DRAM:&amp;nbsp; 2.8 GiB&lt;BR /&gt;VService: Connection is ok on MU mu@5d230000&lt;BR /&gt;TCPC:&amp;nbsp; Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C1 0x50]&lt;BR /&gt;MMC:&amp;nbsp;&amp;nbsp; FSL_SDHC: 0, FSL_SDHC: 1&lt;BR /&gt;Loading Environment from MMC... Run CMD11 1.8V switch&lt;BR /&gt;*** Warning - bad CRC, using default environment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[pcie_ctrlb_sata_phy_init_rc] LNK DOWN 8600000&lt;BR /&gt;In:&amp;nbsp;&amp;nbsp;&amp;nbsp; serial&lt;BR /&gt;Out:&amp;nbsp;&amp;nbsp; serial&lt;BR /&gt;Err:&amp;nbsp;&amp;nbsp; serial&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;BuildInfo: &lt;BR /&gt;&amp;nbsp; - SCFW 4e91f37b, SECO-FW d7523fe8, IMX-MKIMAGE 2a3ec5e2, ATF f92d379&lt;BR /&gt;&amp;nbsp; - U-Boot 2019.04-imx_v2019.04_4.19.35_1.0.0+g85bdcc7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run CMD11 1.8V switch&lt;BR /&gt;switch to partitions #0, OK&lt;BR /&gt;mmc1 is current device&lt;BR /&gt;flash target is MMC:1&lt;BR /&gt;Run CMD11 1.8V switch&lt;BR /&gt;Net:&amp;nbsp; &amp;nbsp;&lt;BR /&gt;Warning: ethernet@5b040000 using MAC address from ROM&lt;BR /&gt;eth0: ethernet@5b040000 [PRIME]&lt;BR /&gt;Warning: ethernet@5b050000 (eth1) using random MAC address - 8e:57:bf:a1:d5:be&lt;BR /&gt;, eth1: ethernet@5b050000&lt;BR /&gt;Fastboot: Normal&lt;BR /&gt;Normal Boot&lt;BR /&gt;Hit any key to stop autoboot:&amp;nbsp; 0 &lt;BR /&gt;=&amp;gt; sf probe&lt;BR /&gt;lsio_fspi0 [237] not owned by curr partition&lt;BR /&gt;sc_pm_set_resource_power_mode: resource:237 mode:3: res:4&lt;BR /&gt;Error: lsio_fspi0 Power up failed! (error = 243)&lt;BR /&gt;Invalid bus 0 (err=-5)&lt;BR /&gt;Failed to initialize SPI flash at 0:0 (error -5)&lt;BR /&gt;=&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[3] spi bootmode with spi image created from imx-linux-thud -m branch&lt;/P&gt;&lt;P&gt;U-Boot SPL 2019.04-imx_v2019.04_4.19.35_1.0.0+g85bdcc7981 (Dec 05 2019 - 06:54:18 +0000)&lt;BR /&gt;Normal Boot&lt;BR /&gt;Trying to boot from SPI&lt;BR /&gt;Load image from QSPI 0x48000&lt;BR /&gt;U&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U-Boot 2019.04-imx_v2019.04_4.19.35_1.0.0+g85bdcc7981 (Dec 05 2019 - 06:54:18 +0000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CPU:&amp;nbsp;&amp;nbsp; NXP i.MX8QXP RevB A35 at 1200 MHz at 20C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Model: Freescale i.MX8QXP MEK&lt;BR /&gt;Board: iMX8QXP MEK&lt;BR /&gt;Boot:&amp;nbsp; FLEXSPI&lt;BR /&gt;DRAM:&amp;nbsp; 3 GiB&lt;BR /&gt;TCPC:&amp;nbsp; Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C1 0x50]&lt;BR /&gt;MMC:&amp;nbsp;&amp;nbsp; FSL_SDHC: 0, FSL_SDHC: 1&lt;BR /&gt;Loading Environment from MMC... Run CMD11 1.8V switch&lt;BR /&gt;*** Warning - bad CRC, using default environment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[pcie_ctrlb_sata_phy_init_rc] LNK DOWN 8600000&lt;BR /&gt;In:&amp;nbsp;&amp;nbsp;&amp;nbsp; serial&lt;BR /&gt;Out:&amp;nbsp;&amp;nbsp; serial&lt;BR /&gt;Err:&amp;nbsp;&amp;nbsp; serial&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;BuildInfo: &lt;BR /&gt;&amp;nbsp; - SCFW cb6f758b, SECO-FW d7523fe8, IMX-MKIMAGE 2a3ec5e2, ATF f92d379&lt;BR /&gt;&amp;nbsp; - U-Boot 2019.04-imx_v2019.04_4.19.35_1.0.0+g85bdcc7981&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run CMD11 1.8V switch&lt;BR /&gt;switch to partitions #0, OK&lt;BR /&gt;mmc1 is current device&lt;BR /&gt;Net:&amp;nbsp; &amp;nbsp;&lt;BR /&gt;Warning: ethernet@5b040000 using MAC address from ROM&lt;BR /&gt;eth0: ethernet@5b040000 [PRIME]&lt;BR /&gt;Warning: ethernet@5b050000 (eth1) using random MAC address - ba:99:1a:4a:4d:9d&lt;BR /&gt;, eth1: ethernet@5b050000&lt;BR /&gt;Fastboot: Normal&lt;BR /&gt;Normal Boot&lt;BR /&gt;Hit any key to stop autoboot:&amp;nbsp; 0 &lt;BR /&gt;=&amp;gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2019 05:22:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8qxpmek-spi-does-not-work-on-sd-card-boot/m-p/986653#M146518</guid>
      <dc:creator>heikoschocher</dc:creator>
      <dc:date>2019-12-17T05:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: imx8qxpmek: spi does not work on sd card boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxpmek-spi-does-not-work-on-sd-card-boot/m-p/986654#M146519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Heiko&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for "fspi0 [237] not owned by curr partition" error one can check&lt;BR /&gt;partition management discussion on &lt;A href="https://community.nxp.com/thread/495357"&gt;SCFW Resource Management Confusion&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Partition APIs description can be found in SCFW documentation included in &lt;A href="https://www.nxp.com/webapp/Download?colCode=L4.19.35_1.1.0_SCFWKIT-1.2.7.1&amp;amp;appType=license" target="_blank"&gt;SCFW Porting Kit&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The i.MX 8 and 8X families require a minimum SCFW release version for correct operation and&lt;/P&gt;&lt;P&gt;to prevent potential reliability issues. Versions compatibility can be found on&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/design/i.mx-developer-resources/i.mx-software-and-development-tools:IMX-SW" title="https://www.nxp.com/design/i.mx-developer-resources/i.mx-software-and-development-tools:IMX-SW"&gt;i.MX Software and Development Tools | NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and described in&amp;nbsp;&amp;nbsp;&lt;A href="https://www.nxp.com/webapp/Download?colCode=L4.19.35_1.1.0_LINUX_DOCS" target="_blank"&gt;Linux 4.19.35_1.1.0 Documentation&lt;/A&gt;&amp;nbsp; (Release Notes) &amp;nbsp;&lt;/P&gt;&lt;P&gt;For example L4.19.35_1.1.0 should be used with SCFWKIT-1.2.7.1 and uboot v2019.04&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/uboot-imx/tree/?h=imx_v2019.04_4.19.35_1.1.0" title="https://source.codeaurora.org/external/imx/uboot-imx/tree/?h=imx_v2019.04_4.19.35_1.1.0"&gt;uboot-imx - i.MX U-Boot&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is not recommended to use SCFW release tied to a non-GA BSP release,&lt;/P&gt;&lt;P&gt;as early versions of the SCFW may lead to operational or reliability issues with the processor. &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2019 06:20:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8qxpmek-spi-does-not-work-on-sd-card-boot/m-p/986654#M146519</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-12-18T06:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: imx8qxpmek: spi does not work on sd card boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxpmek-spi-does-not-work-on-sd-card-boot/m-p/986655#M146520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your answer ... I use as base:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;repo init -u &lt;/SPAN&gt;&lt;A class="" data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fsource.codeaurora.org%2Fexternal%2Fimx%2Fimx-manifest" rel="nofollow" target="_blank"&gt;https://source.codeaurora.org/external/imx/imx-manifest&lt;/A&gt;&lt;SPAN&gt; -b imx-linux-thud -m imx-4.19.35-1.0.0.xml&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So this should be correct, or?&lt;BR /&gt;&lt;BR /&gt;And if building the image for the spi flash, and burning it, spi access works. But booting the sd card&lt;BR /&gt;image, SPI does not work (in u-boot and linux)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;bye,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Heiko&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2019 08:27:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8qxpmek-spi-does-not-work-on-sd-card-boot/m-p/986655#M146520</guid>
      <dc:creator>heikoschocher</dc:creator>
      <dc:date>2019-12-18T08:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: imx8qxpmek: spi does not work on sd card boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxpmek-spi-does-not-work-on-sd-card-boot/m-p/986656#M146521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN&gt;Heiko&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for building please use Yocto Guide included in &lt;A href="https://www.nxp.com/webapp/Download?colCode=L4.19.35_1.1.0_LINUX_DOCS" target="_blank"&gt;Linux 4.19.35_1.1.0 Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and Chapter 3 Porting U-Boot i.MX Porting Guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2019 12:03:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8qxpmek-spi-does-not-work-on-sd-card-boot/m-p/986656#M146521</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-12-18T12:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: imx8qxpmek: spi does not work on sd card boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxpmek-spi-does-not-work-on-sd-card-boot/m-p/986657#M146522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Heiko,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class="" data-group="0-0" data-section="0" data-sentence="0" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;Have you solved this problem?&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-1" data-section="0" data-sentence="1" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;I'm having the same problem as you。&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-1" data-section="0" data-sentence="1" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/97131i45A1DDFC7D70418B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2020 06:49:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8qxpmek-spi-does-not-work-on-sd-card-boot/m-p/986657#M146522</guid>
      <dc:creator>山水之间</dc:creator>
      <dc:date>2020-01-20T06:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: imx8qxpmek: spi does not work on sd card boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxpmek-spi-does-not-work-on-sd-card-boot/m-p/986658#M146523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hagen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it seems to me it is a problem with scfw firmware ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added to "imx-scfw-porting-kit-1.2.7.1" the following 2 patches (Sorry do not know how to add here files)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hs@xmglap:scfw_export_mx8qx_b0 [master] $ cat 0001-spi.patch &lt;BR /&gt;From ed274d498488417615ce7a39156000fd70457ce7 Mon Sep 17 00:00:00 2001&lt;BR /&gt;From: Heiko Schocher &amp;lt;hs@denx.de&amp;gt;&lt;BR /&gt;Date: Wed, 18 Dec 2019 11:05:30 +0100&lt;BR /&gt;Subject: [PATCH] platform/board/mx8qx_mek/board.c: get SPI flash working&lt;/P&gt;&lt;P&gt;remove some code to get SPI flash working.&lt;/P&gt;&lt;P&gt;Signed-off-by: Heiko Schocher &amp;lt;hs@denx.de&amp;gt;&lt;/P&gt;&lt;P&gt;diff --git a/platform/board/mx8qx_mek/board.c b/platform/board/mx8qx_mek/board.c&lt;BR /&gt;index d0a6b4e..8f40f28 100755&lt;BR /&gt;--- a/platform/board/mx8qx_mek/board.c&lt;BR /&gt;+++ b/platform/board/mx8qx_mek/board.c&lt;BR /&gt;@@ -721,8 +721,17 @@ sc_err_t board_system_config(sc_bool_t early, sc_rm_pt_t pt_boot)&lt;BR /&gt; SC_R_CAN_2, SC_TRUE));&lt;BR /&gt; BRD_ERR(rm_set_resource_movable(pt_boot, SC_R_I2C_1,&lt;BR /&gt; SC_R_I2C_1, SC_TRUE));&lt;BR /&gt;+#if 0&lt;BR /&gt;+ /*&lt;BR /&gt;+ * without this code I see now in U-Boot:&lt;BR /&gt;+ * =&amp;gt; sf probe&lt;BR /&gt;+ * unrecognized JEDEC id bytes: 00, 00, 00&lt;BR /&gt;+ * Failed to initialize SPI flash at 0:0 (error -2)&lt;BR /&gt;+ * =&amp;gt;&lt;BR /&gt;+ */&lt;BR /&gt; BRD_ERR(rm_set_resource_movable(pt_boot, SC_R_FSPI_0,&lt;BR /&gt; SC_R_FSPI_0, SC_TRUE));&lt;BR /&gt;+#endif&lt;BR /&gt; &lt;BR /&gt; /* Move some pads not in the M4_0 subsystem */&lt;BR /&gt; BRD_ERR(rm_set_pad_movable(pt_boot, SC_P_FLEXCAN0_RX,&lt;BR /&gt;@@ -731,8 +740,16 @@ sc_err_t board_system_config(sc_bool_t early, sc_rm_pt_t pt_boot)&lt;BR /&gt; SC_P_USB_SS3_TC1, SC_TRUE));&lt;BR /&gt; BRD_ERR(rm_set_pad_movable(pt_boot,SC_P_USB_SS3_TC3,&lt;BR /&gt; SC_P_USB_SS3_TC3, SC_TRUE));&lt;BR /&gt;+#if 0&lt;BR /&gt;+ /*&lt;BR /&gt;+ * and without this code:&lt;BR /&gt;+ * =&amp;gt; sf probe&lt;BR /&gt;+ * SF: Detected mt35xu512aba with page size 256 Bytes, erase size 128 KiB, total 64 MiB&lt;BR /&gt;+ * =&amp;gt;&lt;BR /&gt;+ */&lt;BR /&gt; BRD_ERR(rm_set_pad_movable(pt_boot, SC_P_QSPI0A_DATA0,&lt;BR /&gt; SC_P_COMP_CTL_GPIO_1V8_3V3_QSPI0B, SC_TRUE));&lt;BR /&gt;+#endif&lt;BR /&gt; &lt;BR /&gt; /* Move everything flagged as movable */&lt;BR /&gt; BRD_ERR(rm_move_all(pt_boot, pt_boot, pt_m4_0, SC_TRUE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hs@xmglap:scfw_export_mx8qx_b0&amp;nbsp; [master] $ cat 0002-spi.patch &lt;BR /&gt;From cccbf78ed6800a54c073ae0411069ed54ff49bf7 Mon Sep 17 00:00:00 2001&lt;BR /&gt;From: Heiko Schocher &amp;lt;hs@denx.de&amp;gt;&lt;BR /&gt;Date: Wed, 18 Dec 2019 12:32:14 +0100&lt;BR /&gt;Subject: [PATCH] platform/board/mx8qx_mek/board.c: fix sf read with sizes &amp;gt;&lt;BR /&gt;&amp;nbsp;0x80000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;without this code, sf read with sizes &amp;gt; 0x80000 works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Signed-off-by: Heiko Schocher &amp;lt;hs@denx.de&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;diff --git a/platform/board/mx8qx_mek/board.c b/platform/board/mx8qx_mek/board.c&lt;BR /&gt;index 8f40f28..b21ab76 100755&lt;BR /&gt;--- a/platform/board/mx8qx_mek/board.c&lt;BR /&gt;+++ b/platform/board/mx8qx_mek/board.c&lt;BR /&gt;@@ -769,10 +769,15 @@ sc_err_t board_system_config(sc_bool_t early, sc_rm_pt_t pt_boot)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x088000000ULL, 0x08FFFFFFFULL));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BRD_ERR(rm_assign_memreg(pt_boot, pt_m4_0, mr_m4_0));&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;+#if 0&lt;BR /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*&lt;BR /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * without this code, sf read works with sizes &amp;gt; 0x80000&lt;BR /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Reserve FlexSPI for M4_0 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BRD_ERR(rm_memreg_frag(pt_boot, &amp;amp;mr_m4_0, 0x08081000ULL,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x08180FFFULL));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BRD_ERR(rm_assign_memreg(pt_boot, pt_m4_0, mr_m4_0));&lt;BR /&gt;+#endif&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Allow AP and M4_1 to use SYSTEM */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BRD_ERR(rm_set_peripheral_permissions(pt_m4_0, SC_R_SYSTEM,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and compiled the firmware new with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ make qx B=mek R=B0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and added it to my yocto build ... with that change it works like a charm ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye,&lt;/P&gt;&lt;P&gt;Heiko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2020 15:47:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8qxpmek-spi-does-not-work-on-sd-card-boot/m-p/986658#M146523</guid>
      <dc:creator>heikoschocher</dc:creator>
      <dc:date>2020-01-20T15:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: imx8qxpmek: spi does not work on sd card boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxpmek-spi-does-not-work-on-sd-card-boot/m-p/986659#M146524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Heiko,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="" data-group="0-0" data-section="0" data-sentence="0" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 13.600001335144043px;"&gt;I tried your method is feasible.&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-1" data-section="0" data-sentence="1" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 13.600001335144043px;"&gt;But I have a question.&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-2" data-section="0" data-sentence="2" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 13.600001335144043px;"&gt;Same source code, I use Makefile to manually compile a flash.bin file to write into sd card, can use SPI flash.&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-3" data-section="0" data-sentence="3" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 13.600001335144043px;"&gt;I suspect there is a problem with the yocto build.&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-4" data-section="0" data-sentence="4" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 13.600001335144043px;"&gt;I tried to call SCFW's API in UBOOT to get the permission of SPI Flash, but it was not successful. Do you have any idea?&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-5" data-section="0" data-sentence="5" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 13.600001335144043px;"&gt;Please tell me. Thank you very much.&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-5" data-section="0" data-sentence="5" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 13.600001335144043px;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-5" data-section="0" data-sentence="5" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 13.600001335144043px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-5" data-section="0" data-sentence="5" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 13.600001335144043px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Best regards&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;Hagen&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2020 07:20:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8qxpmek-spi-does-not-work-on-sd-card-boot/m-p/986659#M146524</guid>
      <dc:creator>山水之间</dc:creator>
      <dc:date>2020-02-12T07:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: imx8qxpmek: spi does not work on sd card boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxpmek-spi-does-not-work-on-sd-card-boot/m-p/986660#M146525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Hagen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hmm... I am sorry, I cannot say very much, but a good lead. I did not thought about there could be a problem with SCFW API in U-Boot,as it is source from NXP. I just wait for the real hw from the customer, and if I got them, I can take a look again into it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the hint!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye,&lt;/P&gt;&lt;P&gt;Heiko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2020 04:51:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8qxpmek-spi-does-not-work-on-sd-card-boot/m-p/986660#M146525</guid>
      <dc:creator>heikoschocher</dc:creator>
      <dc:date>2020-02-13T04:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: imx8qxpmek: spi does not work on sd card boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxpmek-spi-does-not-work-on-sd-card-boot/m-p/1279373#M174292</link>
      <description>&lt;P&gt;I still has this problem (lsio_fspi0[237] not owned by the curr partition) when using Linux 5.10.9 version from building Yocto .&lt;/P&gt;&lt;P&gt;Can anyone help ?&lt;/P&gt;&lt;P&gt;Alex Lu&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 02:52:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8qxpmek-spi-does-not-work-on-sd-card-boot/m-p/1279373#M174292</guid>
      <dc:creator>alexlu6</dc:creator>
      <dc:date>2021-05-20T02:52:58Z</dc:date>
    </item>
  </channel>
</rss>

