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.

SD Card Detection / Mounting Problems Under Linux

I have built a kernel for my davinci board with the follow options:

#

# OTG and related infrastructure
#
CONFIG_USB_OTG_UTILS=y
# CONFIG_USB_GPIO_VBUS is not set
CONFIG_NOP_USB_XCEIV=m
CONFIG_MMC=y
CONFIG_MMC_DEBUG=y
# CONFIG_MMC_UNSAFE_RESUME is not set

#
# MMC/SD/SDIO Card Drivers
#
CONFIG_MMC_BLOCK=y
CONFIG_MMC_BLOCK_BOUNCE=y
# CONFIG_SDIO_UART is not set
# CONFIG_MMC_TEST is not set

#
# MMC/SD/SDIO Host Controller Drivers
#
CONFIG_MMC_SDHCI=y
# CONFIG_MMC_SDHCI_PLTFM is not set
# CONFIG_MMC_SPI is not set
# CONFIG_MEMSTICK is not set
# CONFIG_ACCESSIBILITY is not set
# CONFIG_NEW_LEDS is not set
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
# CONFIG_RTC_DEBUG is not set

When I boot my davinci board with this new kernel and insert the SD card (formatted to ext2) it is not detected in /proc/partitions.

dmesg doesn't look any different with the card removed or inserted. Any advice?

I could be going about this all wrong.

  • Phil,

    Have you enabled the DAVINCI host controller in your configs? Use "menuconfig" to set it. 

  • I don't seem to have that option with kernel version 2.6.31.12. It seems like support wasn't added until version 2.6.33 or so. I'll see if I can do something with this.

    EDIT: Just did a make menuconfig with kernel 2.6.34.13 and I didn't see a DAVINCI host controller option, although the files are there and the option is in the drivers/mmc/host/Kconfig file

    Is there a recomended kernel to use?

  • Phil,

    Can you do a search of the Kconfig field for DAVINCI Host controller in menuconfig by typing the search command "/" in  menuconfig window? It will give the description of the path where you can find the davinci host controller config, which can be enabled then.