Verdin am62-booting from MMC2 using SD card

Hi, Iā€™m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Based on the provided context, it seems like you have made the necessary device tree changes to enable MMC2 for booting from an SD card on the Verdin AM62. However, you are encountering an issue where U-Boot does not recognize the MMC2 device.

Here are a few suggestions to troubleshoot and resolve the issue:

  1. Verify Hardware Connections:
    Ensure that the SD card is properly inserted into the MMC2 slot and that there are no hardware issues with the slot or the SD card itself.

  2. Check Device Tree Configuration:
    Double-check the device tree configuration to ensure that all pin mappings and settings are correct. Specifically, verify that the pinctrl settings and GPIO configurations are accurate.

  3. U-Boot Configuration:
    Ensure that U-Boot is configured to support MMC2. You may need to enable MMC2 support in the U-Boot configuration. This typically involves setting the appropriate configuration options in the U-Boot source code and rebuilding U-Boot.

    For example, you might need to enable the following in your U-Boot configuration:

    CONFIG_MMC=y
    CONFIG_GENERIC_MMC=y
    CONFIG_MMC_SDHCI=y
    CONFIG_MMC_SDHCI_AM62X=y
    
  4. U-Boot Environment Variables:
    Ensure that the U-Boot environment variables are correctly set to use MMC2 for booting. You can set the environment variables in the U-Boot console:

    setenv mmcdev 2
    setenv bootcmd 'mmc dev 2; ext4load mmc 2:1 ${loadaddr} /boot/uImage; bootm ${loadaddr}'
    saveenv
    
  5. Debugging in U-Boot:
    Use U-Boot commands to debug the MMC2 device. For example, you can use the following commands to list available MMC devices and probe MMC2:

    mmc list
    mmc dev 2
    
  6. Kernel Configuration:
    Ensure that the Linux kernel is configured to support MMC2. This typically involves enabling the appropriate kernel configuration options for MMC and SDHCI.

If you have verified all the above steps and the issue persists, it might be helpful to check the U-Boot and kernel logs for any error messages or clues that could indicate what is going wrong.

If you still face issues, please provide more details about the U-Boot version you are using and any relevant logs or error messages. This will help in providing more specific guidance.

Please, also check if these links can help you solve your problem:

AM62 Wifi Device Not Appearing.