<?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: Creating boot Image for ECSPI2 imx8mm-lpdrr4 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Creating-boot-Image-for-ECSPI2-imx8mm-lpdrr4/m-p/1647821#M205603</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/171173"&gt;@AldoG&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in addition to the previous message. we tried you suggested in the mail chain&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;you may need to enable eCSPI to be detected in uboot with the following Uboot configs:
 
CONFIG_MXC_SPI=y
CONFIG_SPI_FLASH=y&lt;/LI-CODE&gt;&lt;P&gt;We modified dts for it.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;+&amp;amp;ecspi2 {
+   fsl,spi-num-chipselects = &amp;lt;1&amp;gt;;
+    cs-gpios = &amp;lt;0&amp;gt;;
+   pinctrl-names = "default";
+   pinctrl-0 = &amp;lt;&amp;amp;pinctrl_ecspi2&amp;gt;;
+   status = "okay";
+};
+
 &amp;amp;iomuxc {
+
+	pinctrl_ecspi2: ecspi2grp {
+               fsl,pins = &amp;lt;
+                               MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x00000116
+                               MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x00000116
+                               MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x00001916
+                               MX8MM_IOMUXC_ECSPI2_SS0_ECSPI2_SS0 0x00000116
+               &amp;gt;;
+       };&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When we try:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;u-boot=&amp;gt; sf probe                                                               
SF: Detected n25q256a with page size 256 Bytes, erase size 4 KiB, total 32 MiB&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We only see the Qspi memory. we were unable to see the ECSPI2 memory in u-boot.&lt;/P&gt;</description>
    <pubDate>Wed, 10 May 2023 09:20:34 GMT</pubDate>
    <dc:creator>vignesh-baskaran</dc:creator>
    <dc:date>2023-05-10T09:20:34Z</dc:date>
    <item>
      <title>Creating boot Image for ECSPI2 imx8mm-lpdrr4</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Creating-boot-Image-for-ECSPI2-imx8mm-lpdrr4/m-p/1645607#M205338</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/171173"&gt;@AldoG&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is continuity of Case&amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/imx8mm-lpd4-eFUSE-not-booting/m-p/1631726#M204041" target="_self"&gt;imx8mm-lpdd4 eFUSE not booting&amp;nbsp;&lt;/A&gt;&amp;nbsp;for ECSPI2 booting.&lt;/P&gt;&lt;P&gt;1) We were trying to create a bootable image for ECSPI2.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We tried the following command to create one,&amp;nbsp; but after porting it We were unable to see any messages at console.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;echo "UBOOT_CONFIG = \"fspi\"" &amp;gt;&amp;gt; conf/local.conf"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you please let us know the issue?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;2) We also trying to modify the yocto build for u-boot,&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;We modified the u-boot source&amp;nbsp;code&amp;nbsp; under&amp;nbsp;tmp/work/imx8mmevk-poky-linux&lt;/DIV&gt;&lt;DIV&gt;We can able to see the u-boot binary get updated under tmp/deploy/images.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;but final image "&lt;SPAN&gt;imx-boot-imx8mm-lpddr4-evk-sd.&lt;/SPAN&gt;&lt;SPAN&gt;bin-flash_evk" (fspi in our case) didnt get updated.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Can you please let us know what command to invoke mkimage to get the final image get updated?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;$ bitbake-layers show-recipes | grep mkimage&lt;BR /&gt;imx-mkimage:&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;bitbake &amp;nbsp;imx-mkimage we tried to run this manually.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Since we were unable to modify the u-boot and create the final image with ECSPI2 enabled we were unable to move further.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;Vignesh.&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 14:56:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Creating-boot-Image-for-ECSPI2-imx8mm-lpdrr4/m-p/1645607#M205338</guid>
      <dc:creator>vignesh-baskaran</dc:creator>
      <dc:date>2023-05-05T14:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Creating boot Image for ECSPI2 imx8mm-lpdrr4</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Creating-boot-Image-for-ECSPI2-imx8mm-lpdrr4/m-p/1645946#M205378</link>
      <description>&lt;OL&gt;&lt;LI&gt;&lt;P&gt;checked the log files to see if there are any errors or warnings related to creating the bootable image? Also, have you &lt;A href="https://tutuappx.com/" target="_self"&gt;tutuapp&lt;/A&gt; verified that the output file was actually created and placed in the correct location?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;To update &lt;A href="https://vidmate.onl/" target="_self"&gt;vidmate&lt;/A&gt; the final image with your modified u-boot source code, you need to re-run the build process using the updated source code. You can try the following steps:&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;UL&gt;&lt;LI&gt;Clean the build directory: bitbake -c cleanall u-boot-imx&lt;/LI&gt;&lt;LI&gt;Build u-boot: bitbake u-boot-imx&lt;/LI&gt;&lt;LI&gt;Build the final image: bitbake imx-boot -c populate_sdk&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Make sure to update the u-boot-imx recipe to include your modifications before running these commands. Also, make sure that the imx-boot recipe is configured to include the fspi option for ECSPI2 booting.&lt;/P&gt;&lt;P&gt;If this doesn't work, you may need to provide more specific details about your setup and any error messages you are encountering.&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 12:33:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Creating-boot-Image-for-ECSPI2-imx8mm-lpdrr4/m-p/1645946#M205378</guid>
      <dc:creator>emmafrost1</dc:creator>
      <dc:date>2023-05-09T12:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Creating boot Image for ECSPI2 imx8mm-lpdrr4</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Creating-boot-Image-for-ECSPI2-imx8mm-lpdrr4/m-p/1647404#M205557</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/209908"&gt;@vignesh-baskaran&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Actually the answer provided by&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/216864"&gt;@emmafrost1&lt;/a&gt;&amp;nbsp;is perfect, thank you for your anser!&lt;BR /&gt;&lt;BR /&gt;Please try it and let us know of the results.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Aldo.&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 20:45:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Creating-boot-Image-for-ECSPI2-imx8mm-lpdrr4/m-p/1647404#M205557</guid>
      <dc:creator>AldoG</dc:creator>
      <dc:date>2023-05-09T20:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Creating boot Image for ECSPI2 imx8mm-lpdrr4</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Creating-boot-Image-for-ECSPI2-imx8mm-lpdrr4/m-p/1647808#M205599</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/171173"&gt;@AldoG&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for the reply&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/216864"&gt;@emmafrost1&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We were trying the same with th command you suggested.&lt;/P&gt;&lt;P&gt;$ bitbake imx-boot -c populate_sdk&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ERROR: Task do_populate_sdk does not exist for target imx-boot (/home/vignesh/imx-yocto-bsp/sources/meta-imx/meta-bsp/recipes-bsp/imx-mkimage/imx-boot_1.0.bb:do_populate_sdk). Close matches:ETA:  0:00:00
  do_populate_lic
  do_populate_sysroot
ERROR: Command execution failed: 1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We also trying to enable the spi for spl.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ make imx8mm_evk_fspi_defconfig&lt;/P&gt;&lt;P&gt;$ make menuconfig&lt;/P&gt;&lt;P&gt;SPL / TPL ---&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;Support SPI drivers&lt;/P&gt;&lt;P&gt;$ make -j6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;drivers/spi/nxp_fspi.c: In function 'nxp_fspi_supports_op':
drivers/spi/nxp_fspi.c:434:20: error: 'struct spi_slave' has no member named 'dev'
  434 |         bus = slave-&amp;gt;dev-&amp;gt;parent;
      |                    ^~
drivers/spi/nxp_fspi.c: In function 'nxp_fspi_exec_op':
drivers/spi/nxp_fspi.c:875:20: error: 'struct spi_slave' has no member named 'dev'
  875 |         bus = slave-&amp;gt;dev-&amp;gt;parent;
      |                    ^~
drivers/spi/nxp_fspi.c: In function 'nxp_fspi_adjust_op_size':
drivers/spi/nxp_fspi.c:919:20: error: 'struct spi_slave' has no member named 'dev'
  919 |         bus = slave-&amp;gt;dev-&amp;gt;parent;
      |                    ^~&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 09:21:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Creating-boot-Image-for-ECSPI2-imx8mm-lpdrr4/m-p/1647808#M205599</guid>
      <dc:creator>vignesh-baskaran</dc:creator>
      <dc:date>2023-05-10T09:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Creating boot Image for ECSPI2 imx8mm-lpdrr4</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Creating-boot-Image-for-ECSPI2-imx8mm-lpdrr4/m-p/1647821#M205603</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/171173"&gt;@AldoG&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in addition to the previous message. we tried you suggested in the mail chain&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;you may need to enable eCSPI to be detected in uboot with the following Uboot configs:
 
CONFIG_MXC_SPI=y
CONFIG_SPI_FLASH=y&lt;/LI-CODE&gt;&lt;P&gt;We modified dts for it.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;+&amp;amp;ecspi2 {
+   fsl,spi-num-chipselects = &amp;lt;1&amp;gt;;
+    cs-gpios = &amp;lt;0&amp;gt;;
+   pinctrl-names = "default";
+   pinctrl-0 = &amp;lt;&amp;amp;pinctrl_ecspi2&amp;gt;;
+   status = "okay";
+};
+
 &amp;amp;iomuxc {
+
+	pinctrl_ecspi2: ecspi2grp {
+               fsl,pins = &amp;lt;
+                               MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x00000116
+                               MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x00000116
+                               MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x00001916
+                               MX8MM_IOMUXC_ECSPI2_SS0_ECSPI2_SS0 0x00000116
+               &amp;gt;;
+       };&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When we try:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;u-boot=&amp;gt; sf probe                                                               
SF: Detected n25q256a with page size 256 Bytes, erase size 4 KiB, total 32 MiB&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We only see the Qspi memory. we were unable to see the ECSPI2 memory in u-boot.&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 09:20:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Creating-boot-Image-for-ECSPI2-imx8mm-lpdrr4/m-p/1647821#M205603</guid>
      <dc:creator>vignesh-baskaran</dc:creator>
      <dc:date>2023-05-10T09:20:34Z</dc:date>
    </item>
  </channel>
</rss>

