<?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 SPL doesn't detect SD card in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/SPL-doesn-t-detect-SD-card/m-p/1610283#M202384</link>
    <description>&lt;P&gt;I have a problem booting from SD card and it appears SPL doesn't detect the SD card. I am using Yocto and building for the IMX8M Mini. The board I am using has an eMMC chip and an SD card. It looks like the eMMC (usdhc1) is recognized during the boot attempt, but not the SD card (usdhc2). The eMMC is blank, so I am using the ROM bootloader to boot to SD card. It does boot to SPL, but when SPL tries to detect the SD card it can't find it and the boot halts.&lt;/P&gt;&lt;P&gt;I know the hardware works because I can use a different image to boot successfully.&lt;/P&gt;&lt;P&gt;I've verified that u-boot-spl.dtb has entries for usdhc2, my defconfig has CONFIG_SPL_OF_CONTROL. Maybe I am missing a critical config?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the boot text. You can see the line "FSL_SDHC: 0" which is output from a call to print_mmc_devices() I added. This tells me the eMMC is detected, but not SD card.&lt;/P&gt;&lt;P&gt;U-Boot SPL 2022.04-lf_v2022.04+g1c881f4da8 (Jun 07 2022 - 05:16:02 +0000)&lt;BR /&gt;DDRINFO: start DRAM init&lt;BR /&gt;DDRINFO: DRAM rate 2600MTS&lt;BR /&gt;DDRINFO:ddrphy calibration done&lt;BR /&gt;DDRINFO: ddrmix config done&lt;BR /&gt;Normal Boot&lt;BR /&gt;Trying to boot from MMC2&lt;BR /&gt;FSL_SDHC: 0&lt;BR /&gt;MMC Device 1 not found&lt;BR /&gt;spl: could not find mmc device 1. error: -19&lt;BR /&gt;SPL: failed to boot from all boot devices&lt;BR /&gt;### ERROR ### Please RESET the board ###&lt;/P&gt;</description>
    <pubDate>Mon, 06 Mar 2023 20:52:04 GMT</pubDate>
    <dc:creator>Jamier</dc:creator>
    <dc:date>2023-03-06T20:52:04Z</dc:date>
    <item>
      <title>SPL doesn't detect SD card</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SPL-doesn-t-detect-SD-card/m-p/1610283#M202384</link>
      <description>&lt;P&gt;I have a problem booting from SD card and it appears SPL doesn't detect the SD card. I am using Yocto and building for the IMX8M Mini. The board I am using has an eMMC chip and an SD card. It looks like the eMMC (usdhc1) is recognized during the boot attempt, but not the SD card (usdhc2). The eMMC is blank, so I am using the ROM bootloader to boot to SD card. It does boot to SPL, but when SPL tries to detect the SD card it can't find it and the boot halts.&lt;/P&gt;&lt;P&gt;I know the hardware works because I can use a different image to boot successfully.&lt;/P&gt;&lt;P&gt;I've verified that u-boot-spl.dtb has entries for usdhc2, my defconfig has CONFIG_SPL_OF_CONTROL. Maybe I am missing a critical config?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the boot text. You can see the line "FSL_SDHC: 0" which is output from a call to print_mmc_devices() I added. This tells me the eMMC is detected, but not SD card.&lt;/P&gt;&lt;P&gt;U-Boot SPL 2022.04-lf_v2022.04+g1c881f4da8 (Jun 07 2022 - 05:16:02 +0000)&lt;BR /&gt;DDRINFO: start DRAM init&lt;BR /&gt;DDRINFO: DRAM rate 2600MTS&lt;BR /&gt;DDRINFO:ddrphy calibration done&lt;BR /&gt;DDRINFO: ddrmix config done&lt;BR /&gt;Normal Boot&lt;BR /&gt;Trying to boot from MMC2&lt;BR /&gt;FSL_SDHC: 0&lt;BR /&gt;MMC Device 1 not found&lt;BR /&gt;spl: could not find mmc device 1. error: -19&lt;BR /&gt;SPL: failed to boot from all boot devices&lt;BR /&gt;### ERROR ### Please RESET the board ###&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 20:52:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SPL-doesn-t-detect-SD-card/m-p/1610283#M202384</guid>
      <dc:creator>Jamier</dc:creator>
      <dc:date>2023-03-06T20:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: SPL doesn't detect SD card</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SPL-doesn-t-detect-SD-card/m-p/1611030#M202447</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;This may be related to drive strength, similar issue described on&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/imx8m-mini-custom-board-usdhc1-sd-card-detection-issue/m-p/1244329" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/imx8m-mini-custom-board-usdhc1-sd-card-detection-issue/m-p/1244329&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/eMMC-8GB-to-4GB-crash-on-linux-yocto-boot/m-p/373231" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/i-MX-Processors/eMMC-8GB-to-4GB-crash-on-linux-yocto-boot/m-p/373231&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;One can try to tweak "USDHC pad setting override" described in Table 6-19. USDHC boot eFUSE descriptions&amp;nbsp; &lt;A id="relatedDocsClick_1" href="https://www.nxp.com/webapp/Download?colCode=IMX8MMRM" target="_blank" rel="noopener nofollow noreferrer"&gt;&lt;STRONG&gt;i.MX 8M Mini Applications Processor Reference Manual&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Regards&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 16:14:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SPL-doesn-t-detect-SD-card/m-p/1611030#M202447</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2023-03-07T16:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: SPL doesn't detect SD card</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SPL-doesn-t-detect-SD-card/m-p/1611161#M202455</link>
      <description>&lt;P&gt;Thanks for your time and input. I think I've figured out where I was going wrong. Much of the documentation and other posts I've seen about this type of problem suggested the SD card can be detected with a proper device tree and CONFIG settings. However this was not the case for my situation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;After reviewing the boot up code related to mmc initialization, I found an implementation of&amp;nbsp;&lt;SPAN&gt;board_mmc_init() in our source code that was only initializing the eMMC slot. After changing this to initialize the SD card slot as well, SPL will now detect the SD card and boot to U-boot. The initialization was not referring to the device tree at all.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 21:18:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SPL-doesn-t-detect-SD-card/m-p/1611161#M202455</guid>
      <dc:creator>Jamier</dc:creator>
      <dc:date>2023-03-07T21:18:27Z</dc:date>
    </item>
  </channel>
</rss>

