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 issue in kernel

Hi,

SD card not detect in linux kernel

mmc0: error -110 whilst initialising SD card error comes every time

what is meaning 110 ?

Thanks

Tejas

  • Hello Tejas,

    Probably the SD card is write protected or damaged. Have you tried another SD card?

    Best regards,
    Kemal
  • Hi,

    I was try insert another card but error is same mmc0: error -110 whilst initialising SD card

    Thanks
    Tejas
  • Are they from different vendors or they are not?
  • Not same i m using sandisk class 4.
  • Hi,

    Using different vendor same error comes to me


    Thx
    Tejas
  • Which board and SDK version are you using? Is the behaviour seen on all SDK versions? Is your card holder pins properly aligned and making good contact with the SD card?

  • Hi,
    I am using DM8168 custom board. mmc working on 2 boards but other boards mmc can not detect mmc0: error -110 whilst initialising SD card error comes.

    Thanks
    Tejas
  • You might want to enable debug for mmc drivers. Do a make menuconfig and somewhere in 'drivers' you can select mmc and there is an option to enable debug. That might help figure out what is going on.

    Looking in errno.h, a -110 is defined as ETIMEDOUT. The error message you see comes from drivers/mmc/core/mmc.c. So it probably means that omap_hsmmc.c is timing out somewhere.

    Steve K.

  • I am enabled debug
    Below logs are coming
    mmci-omap-hs mmci-omap-hs.0: mmc_fclk: enabled
    mmci-omap-hs mmci-omap-hs.0: context was not lost
    mmci-omap-hs mmci-omap-hs.0: mmc_fclk: disabled
    mmci-omap-hs mmci-omap-hs.0: mmc_fclk: enabled
    mmci-omap-hs mmci-omap-hs.0: context was not lost
    mmci-omap-hs mmci-omap-hs.0: mmc_fclk: disabled
    mmci-omap-hs mmci-omap-hs.0: mmc_fclk: enabled
    mmci-omap-hs mmci-omap-hs.0: context was not lost
    mmc0: mmc_rescan: trying to init card at 400000 Hz
    mmc0: clock 0Hz busmode 1 powermode 1 cs 0 Vdd 21 width 0 timing 0
    Powering on wl12xx
    mmc0: clock 400000Hz busmode 1 powermode 2 cs 0 Vdd 21 width 0 timing 0
    mmc0: starting CMD52 arg 00000c00 flags 00000195
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD52, argument 0x00000c00
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 18000
    mmci-omap-hs mmci-omap-hs.0: MMC IRQ 0x18000 : ERRI CTO
    mmc0: req done (CMD52): -110: 00000000 00000000 00000000 00000000
    mmc0: starting CMD52 arg 80000c08 flags 00000195
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD52, argument 0x80000c08
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 18000
    mmci-omap-hs mmci-omap-hs.0: MMC IRQ 0x18000 : ERRI CTO
    mmc0: req done (CMD52): -110: 00000000 00000000 00000000 00000000
    mmc0: clock 400000Hz busmode 1 powermode 2 cs 1 Vdd 21 width 0 timing 0
    mmc0: starting CMD0 arg 00000000 flags 000000c0
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD0, argument 0x00000000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1
    mmc0: req done (CMD0): 0: 00000000 00000000 00000000 00000000
    mmc0: clock 400000Hz busmode 1 powermode 2 cs 0 Vdd 21 width 0 timing 0
    mmc0: starting CMD8 arg 000001aa flags 000002f5
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD8, argument 0x000001aa
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1
    mmc0: req done (CMD8): 0: 000001aa 00000000 00000000 00000000
    mmc0: starting CMD5 arg 00000000 flags 000002e1
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD5, argument 0x00000000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 18000
    mmci-omap-hs mmci-omap-hs.0: MMC IRQ 0x18000 : ERRI CTO
    mmc0: req failed (CMD5): -110, retrying...
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD5, argument 0x00000000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 18000
    mmci-omap-hs mmci-omap-hs.0: MMC IRQ 0x18000 : ERRI CTO
    mmc0: req failed (CMD5): -110, retrying...
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD5, argument 0x00000000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 18000
    mmci-omap-hs mmci-omap-hs.0: MMC IRQ 0x18000 : ERRI CTO
    mmc0: req failed (CMD5): -110, retrying...
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD5, argument 0x00000000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 18000
    mmci-omap-hs mmci-omap-hs.0: MMC IRQ 0x18000 : ERRI CTO
    mmc0: req done (CMD5): -110: 00000000 00000000 00000000 00000000
    mmc0: starting CMD55 arg 00000000 flags 000000f5
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD55, argument 0x00000000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1
    mmc0: req done (CMD55): 0: 00400120 00000000 00000000 00000000
    mmc0: starting CMD41 arg 00000000 flags 000000e1
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD41, argument 0x00000000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1
    mmc0: req done (CMD41): 0: 00ff8000 00000000 00000000 00000000
    mmc0: clock 400000Hz busmode 1 powermode 2 cs 0 Vdd 21 width 0 timing 0
    mmc0: clock 400000Hz busmode 1 powermode 2 cs 1 Vdd 21 width 0 timing 0
    mmc0: starting CMD0 arg 00000000 flags 000000c0
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD0, argument 0x00000000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1
    mmc0: req done (CMD0): 0: 00000000 00000000 00000000 00000000
    mmc0: clock 400000Hz busmode 1 powermode 2 cs 0 Vdd 21 width 0 timing 0
    mmc0: starting CMD8 arg 000001aa flags 000002f5
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD8, argument 0x000001aa
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1
    mmc0: req done (CMD8): 0: 000001aa 00000000 00000000 00000000
    mmc0: starting CMD55 arg 00000000 flags 000000f5
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD55, argument 0x00000000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1
    mmc0: req done (CMD55): 0: 00000120 00000000 00000000 00000000
    mmc0: starting CMD41 arg 40200000 flags 000000e1
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD41, argument 0x40200000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1
    mmc0: req done (CMD41): 0: 00ff8000 00000000 00000000 00000000
    mmc0: starting CMD55 arg 00000000 flags 000000f5
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD55, argument 0x00000000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1
    mmc0: req done (CMD55): 0: 00000120 00000000 00000000 00000000
    mmc0: starting CMD41 arg 40200000 flags 000000e1
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD41, argument 0x40200000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1
    mmc0: req done (CMD41): 0: 00ff8000 00000000 00000000 00000000
    mmc0: starting CMD55 arg 00000000 flags 000000f5
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD55, argument 0x00000000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1
    mmc0: req done (CMD55): 0: 00000120 00000000 00000000 00000000
    mmc0: starting CMD41 arg 40200000 flags 000000e1
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD41, argument 0x40200000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1
    mmc0: req done (CMD41): 0: 00ff8000 00000000 00000000 00000000
    mmc0: starting CMD55 arg 00000000 flags 000000f5
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD55, argument 0x00000000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1
    mmc0: req done (CMD55): 0: 00000120 00000000 00000000 00000000
    mmc0: starting CMD41 arg 40200000 flags 000000e1
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD41, argument 0x40200000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1
    mmc0: req done (CMD41): 0: 00ff8000 00000000 00000000 00000000
    mmc0: starting CMD55 arg 00000000 flags 000000f5
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD55, argument 0x00000000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1
    mmc0: req done (CMD55): 0: 00000120 00000000 00000000 00000000
    mmc0: starting CMD41 arg 40200000 flags 000000e1
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD41, argument 0x40200000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1
    mmc0: req done (CMD41): 0: 00ff8000 00000000 00000000 00000000
    mmc0: starting CMD55 arg 00000000 flags 000000f5
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD55, argument 0x00000000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1
    mmc0: req done (CMD55): 0: 00000120 00000000 00000000 00000000
    mmc0: starting CMD41 arg 40200000 flags 000000e1
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD41, argument 0x40200000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1
    mmc0: req done (CMD41): 0: 00ff8000 00000000 00000000 00000000
    mmc0: starting CMD55 arg 00000000 flags 000000f5
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD55, argument 0x00000000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1
    mmc0: req done (CMD55): 0: 00000120 00000000 00000000 00000000
    mmc0: starting CMD41 arg 40200000 flags 000000e1
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD41, argument 0x40200000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1
    mmc0: req done (CMD41): 0: 40ff8000 00000000 00000000 00000000
    mmc0: starting CMD55 arg 00000000 flags 000000f5
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD55, argument 0x00000000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1
    mmc0: req done (CMD55): 0: 00000120 00000000 00000000 00000000
    mmc0: starting CMD41 arg 40200000 flags 000000e1
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD41, argument 0x40200000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1
    mmc0: req done (CMD41): 0: c0ff8000 00000000 00000000 00000000
    mmc0: starting CMD2 arg 00000000 flags 00000067
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD2, argument 0x00000000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1
    mmc0: req done (CMD2): 0: 03534453 55303447 80b07123 c800e433
    mmc0: starting CMD3 arg 00000000 flags 00000075
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD3, argument 0x00000000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1
    mmc0: req done (CMD3): 0: e6240520 00000000 00000000 00000000
    mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
    mmc0: starting CMD9 arg e6240000 flags 00000007
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD9, argument 0xe6240000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1
    mmc0: req done (CMD9): 0: 400e0032 5b590000 1d8a7f80 0a4040b9
    mmc0: starting CMD7 arg e6240000 flags 00000015
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD7, argument 0xe6240000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1
    mmc0: req done (CMD7): 0: 00000700 00000000 00000000 00000000
    mmc0: starting CMD55 arg e6240000 flags 00000095
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD55, argument 0xe6240000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1
    mmc0: req done (CMD55): 0: 00000920 00000000 00000000 00000000
    mmc0: starting CMD51 arg 00000000 flags 000000b5
    mmc0: blksz 8 blocks 1 flags 00000200 tsac 100 ms nsac 0
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD51, argument 0x00000000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 2
    mmc0: req done (CMD51): 0: 00000920 00000000 00000000 00000000
    mmc0: 8 bytes transferred: 0
    mmc0: starting CMD55 arg e6240000 flags 00000095
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD55, argument 0xe6240000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1
    mmc0: req done (CMD55): 0: 00000920 00000000 00000000 00000000
    mmc0: starting CMD13 arg 00000000 flags 000001b5
    mmc0: blksz 64 blocks 1 flags 00000200 tsac 100 ms nsac 0
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD13, argument 0x00000000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 2
    mmc0: req done (CMD13): 0: 00000920 00000000 00000000 00000000
    mmc0: 64 bytes transferred: 0
    mmc0: starting CMD6 arg 00fffff1 flags 000000b5
    mmc0: blksz 64 blocks 1 flags 00000200 tsac 100 ms nsac 0
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD6, argument 0x00fffff1
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 2
    mmc0: req done (CMD6): 0: 00000900 00000000 00000000 00000000
    mmc0: 64 bytes transferred: 0
    mmc0: starting CMD6 arg 80fffff1 flags 000000b5
    mmc0: blksz 64 blocks 1 flags 00000200 tsac 100 ms nsac 0
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD6, argument 0x80fffff1
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 1
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 2
    mmc0: req done (CMD6): 0: 00000900 00000000 00000000 00000000
    mmc0: 64 bytes transferred: 0
    mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 2
    mmc0: clock 50000000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 2
    mmc0: starting CMD55 arg e6240000 flags 00000095
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD55, argument 0xe6240000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 38000
    mmci-omap-hs mmci-omap-hs.0: MMC IRQ 0x38000 : ERRI CTO CCRC
    mmc0: req done (CMD55): -110: 00000000 00000000 00000000 00000000
    mmc0: starting CMD55 arg e6240000 flags 00000095
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD55, argument 0xe6240000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 38000
    mmci-omap-hs mmci-omap-hs.0: MMC IRQ 0x38000 : ERRI CTO CCRC
    mmc0: req done (CMD55): -110: 00000000 00000000 00000000 00000000
    mmc0: starting CMD55 arg e6240000 flags 00000095
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD55, argument 0xe6240000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 38000
    mmci-omap-hs mmci-omap-hs.0: MMC IRQ 0x38000 : ERRI CTO CCRC
    mmc0: req done (CMD55): -110: 00000000 00000000 00000000 00000000
    mmc0: starting CMD55 arg e6240000 flags 00000095
    mmci-omap-hs mmci-omap-hs.0: mmc0: CMD55, argument 0xe6240000
    mmci-omap-hs mmci-omap-hs.0: IRQ Status is 38000
    mmci-omap-hs mmci-omap-hs.0: MMC IRQ 0x38000 : ERRI CTO CCRC
    mmc0: req done (CMD55): -110: 00000000 00000000 00000000 00000000
    mmc0: clock 0Hz busmode 1 powermode 0 cs 0 Vdd 0 width 0 timing 0
    Powering off wl12xx
    mmc0: error -110 whilst initialising SD card
    mmc0: clock 0Hz busmode 1 powermode 0 cs 0 Vdd 0 width 0 timing 0
    mmci-omap-hs mmci-omap-hs.0: mmc_fclk: disabled
  • Hi,
    Did you verify the hw connections of that particular problematic SD card slot section?
  • Yes. its hardware prob. issue is resolved
    Thanks
    Tejas
  • Hi Tejas,
    Oh !
    Sounds good.
    Thanks for your update.
  • Hi,
    Its hardware issue . Remove 22K ohm Reg on clk line its short then
    mmc is working

    Thanks
    Tejas
  • Hi Tejas,
    Thank you for sharing the solution with us.
    I hope it would help other community members as well.