*ERR => whilst initialising MMC card

I want to read SD card but it was error. I have use dmesg to look and got this:

[ 2901.288285] sdhci_msm 7864900.sdhci: no support for card’s volts
[ 2901.288303] mmc0: error -22 whilst initialising MMC card
[ 2902.405661] mmc0: error -84 whilst initialising SDIO card

and no mmc in lsmod
root@swi-mdm9x28-wp:~# ls /dev/mmc*
ls: /dev/mmc*: No such file or directory

you need to try more SD card.
As i know, not all SD card can be read.

I have use with the my old wp76xx it can read
FW : I have used this (mangOH Yellow Resources - Software - mangOH) to install:

[ 43.699789] sdhci_msm 7864900.sdhci: sdhci_msm_probe: ICE device is not enabd
[ 43.699831] of_get_named_gpiod_flags: can’t parse ‘cd-gpios’ property of nod’
[ 43.701184] sdhci_msm 7864900.sdhci: sdhci_msm_pm_qos_parse_irq: error -22 ru
[ 43.708484] sdhci_msm 7864900.sdhci: sdhci_msm_pm_qos_parse: PM QoS voting fd
[ 43.708506] sdhci_msm 7864900.sdhci: sdhci_msm_pm_qos_parse: PM QoS voting fd
[ 43.746275] sdhci_msm 7864900.sdhci: No vmmc regulator found
[ 43.746299] sdhci_msm 7864900.sdhci: No vqmmc regulator found
[ 43.746802] mmc0: SDHCI controller on 7864900.sdhci [7864900.sdhci] using 32e
[ 43.830966] mmc0: new high speed SDHC card at address 0001
[ 43.832013] mmcblk0: mmc0:0001 00000 7.25 GiB
[ 43.833997] mmcblk0: p1
[ 46.022744] usbcore: registered new interface driver brcmfmac

but the new one for the factory it give me the error as above
should I have to install fw or other before?? I haven’t done any thing with it yet.

If same software is used, probably it is hardware connection problem in the metal case

  1. I have use in different board. Does software and fw is affect to this??

  2. Should I have to do any thing to get /dev/mmc before using sd card?
    root@swi-mdm9x28-wp:~# ls /dev/mmc*
    ls: /dev/mmc*: No such file or directory
    root@swi-mdm9x28-wp:~# lsmod
    Not tainted
    cfg80211 258877 0 - Live 0xbf000000

  1. I don’t know, you need to test it
  2. Please see the document on how to do mmc test

where can i get msm_sdcc driver from??

you can download the yocto source and go to yocto/kernel/drivers/mmc/host/msm_sdcc.c

how can i make .ko and install to wp76xx?

  1. setup the yocto menuconfig:
# cd yocto
# make dev
build_bin# bitbake linux-quic -c menuconfig
  1. add the following:

  1. rebuild the yocto image by “make”

  2. download the yocto image to the module

But it seems to me it is not for WP76xx (MDM9607 chipset), you can double check.

make dev is error how to fix it?

When build yocto:

Error: bash is not set as default provider for /bin/sh
       build is not guaranteed to work, aborting
make: *** [image_bin] Error 1

sudo apt-get remove ccache
sudo dpkg-reconfigure dash
Answer “No” to the question.

Where I have to add Symbol: MMC_MSM??

you should config it in the menuconfig (device driver → MMC/SD/SDIO card support)

I cannot find the text file to config
after device driver → MMC/SD/SDIO card support , Where I have to select next?


You can try to add the following in ./kernel/arch/arm/configs/mdm9607_defconfig and then rebuild the yocto image

CONFIG_MMC_MSM=y

yocto download error

Have another way to download?

It is normal that module reboot after image upgrade.

Another way to update image is that you can transfer the file by WINSCP in /tmp and then use “fwupdate download /tmp/yocto.cwe” in module’s console

It still cannot modprobe MSM_SDCC and cannot find .ko file
what shuold I do?

update result:

warning for “make image_bin” :

You can type some rubbish characters in msm_sdcc.c and see if there is error when make image

This can confirm if the msm_sdcc.c is compiled