This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux: MMC errors

Other Parts Discussed in Thread: AM5728

Tool/software: Linux

Hi,

I am using TI AM5728 GP EVM board Linux kernel 4.9.69 (TI SDK - 04.03.00.05).

I am trying connect a third party wifi module (Marvell 88W8997 chipset, Laird’s 60 Series) to mmc1 of the EVM.

dmesg output:

[  217.692499] omap_hsmmc 4809c000.mmc: Unable to find match
[  217.697930] omap_hsmmc 4809c000.mmc: Tuning failed. Using fixed sampling clock
[  217.707333] mmc0: tuning execution failed: -5
[  217.712368] mmc0: error -5 whilst initialising SDIO card
[  217.717756] omap_hsmmc 4809c000.mmc: card claims to support voltages below defined range
[  217.731184] omap_hsmmc 4809c000.mmc: card busy
[  217.770707] omap_hsmmc 4809c000.mmc: card busy
[  217.845156] mmc0: error -110 whilst initialising SD card

May I know the reason for the errors occurred in the above debug output.
Is there anyway to resolve this?

Thanks and Regards,
babji.

  • Hi Babji,

    The posted kernel log dmesg output informs that:
    There are some fails during MMC card tuning.
    Registering a new MMC card with the driver model fails.

    You can find details about log messages in ../linux/drivers/mmc/host/omap_hsmmc.c and ../linux/drivers/mmc/core/sd.c files and you make your own debug there.
    Marvell 88W8997 chipset WiFi module is supported by this forum and I'm not familiar with the proper necessary configuration about this module.

    BR
    Tsvetolin Shulev
  • Hi,

    Thanks for the reply.

    I am now able to detect the SDIO device connected on the device properly.

    But, I am unable to set the a properly clock to the device.

    I tried modifying the device tree as follows. But I was unable to get it sdr25.

    In order to achieve this, I tried the following in the mmc1 section of am57xx-evm-reva3.dts

    /delete-property/ sd-uhs-sdr104;
    /delete-property/ sd-uhs-sdr50;
    /delete-property/ sd-uhs-ddr50;
    /delete-property/ sd-uhs-sdr25; //I modified this line as I needed sdr25.
    /delete-property/ sd-uhs-sdr104;

    But, I Still do not see the clock.

    Kinly help me set a proper clock frequency to the device through the device tree (or) may be by modifying the code.
    I am using mmc1 sd slot of the TI AM5728 RevA3 board with Linux 4.9.69.

    Thanks & Regards,
    Babji.