SD CARD NOT WORKING in IMX6UL

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SD CARD NOT WORKING in IMX6UL

1,874 Views
nagaprasadvasam
Contributor III

Hi everyone,

      I have connected two SD cards i.e one is mmc card & another one is SD card, i am using mmc card as boot purpose, i need to use SD card to read/write purpose.i have connected SD card through SD card connector,but it is not detecting in /dev.

output of dmsg is as follows

mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
mmc0: sdhci: Sys addr:  0x00000000 | Version:  0x00000002
mmc0: sdhci: Blk size:  0x00000000 | Blk cnt:  0x00000001
mmc0: sdhci: Argument:  0x00000000 | Trn mode: 0x00000000
mmc0: sdhci: Present:   0x01f88088 | Host ctl: 0x00000000
mmc0: sdhci: Power:     0x00000000 | Blk gap:  0x00000080
mmc0: sdhci: Wake-up:   0x00000008 | Clock:    0x0000800f
mmc0: sdhci: Timeout:   0x00000080 | Int stat: 0x00000000
mmc0: sdhci: Int enab:  0x007f1003 | Sig enab: 0x007f1003
mmc0: sdhci: AC12 err:  0x00000000 | Slot int: 0x00000302
mmc0: sdhci: Caps:      0x07eb0000 | Caps_1:   0x0000b407
mmc0: sdhci: Cmd:       0x00000000 | Max curr: 0x00ffffff
mmc0: sdhci: Resp[0]:   0x00000000 | Resp[1]:  0x00000000
mmc0: sdhci: Resp[2]:   0x00000000 | Resp[3]:  0x00000000
mmc0: sdhci: Host ctl2: 0x00000000
mmc0: sdhci: ADMA Err:  0x00000000 | ADMA Ptr: 0x00000000
mmc0: sdhci: ============================================
mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA
sdhci-esdhc-imx 2194000.usdhc: could not get ultra high speed state, work on normal mode

mmc0: mmc_rescan_try_freq: trying to init card at 400000 Hz
mmc0: host does not support reading read-only switch, assuming write-enable
mmc0: new high speed SDHC card at address aaaa
mmcblk0: mmc0:aaaa SB16G 14.8 GiB
 mmcblk0: p1
failed to power up DHD generic adapter, 3 retry left
wifi_platform_bus_enumerate device present 0
mmc0: card aaaa removed
wifi_platform_bus_enumerate device present 1
mmc0: mmc_rescan_try_freq: trying to init card at 400000 Hz
mmc0: host does not support reading read-only switch, assuming write-enable
mmc0: new high speed SDHC card at address aaaa
mmcblk0: mmc0:aaaa SB16G 14.8 GiB
 mmcblk0: p1
failed to power up DHD generic adapter, 2 retry left
wifi_platform_bus_enumerate device present 0
mmc0: card aaaa removed
wifi_platform_bus_enumerate device present 1
mmc0: mmc_rescan_try_freq: trying to init card at 400000 Hz
mmc0: host does not support reading read-only switch, assuming write-enable
mmc0: new high speed SDHC card at address aaaa
mmcblk0: mmc0:aaaa SB16G 14.8 GiB
 mmcblk0: p1
failed to power up DHD generic adapter, 1 retry left
wifi_platform_bus_enumerate device present 0
mmc0: card aaaa removed
wifi_platform_bus_enumerate device present 1
mmc0: mmc_rescan_try_freq: trying to init card at 400000 Hz
mmc0: host does not support reading read-only switch, assuming write-enable
mmc0: new high speed SDHC card at address aaaa
mmcblk0: mmc0:aaaa SB16G 14.8 GiB
 mmcblk0: p1

but it is not showing any node in /dev folder,how can i use it to read/write purpose

Thanks&Regards,

Prasad.

0 Kudos
2 Replies

1,210 Views
igorpadykov
NXP Employee
NXP Employee

Hi Prasad

from logs "DHD,wifi_platform_bus_enumerate" seems image is configured

for usdhc wifi card using:

linux/arch/arm/boot/dts/imx6ul-evk-btwifi.dtsi

https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/boot/dts/imx6qdl-sabresd-btwifi.d...imx6ul-evk-btwifi.dtsi\dts\boot\arm\arch - linux-imx - i.MX Linux kernel 

If wifi is not used (just sd card) one can try to remove wifi driver and use appropriate dts file,

using Chapter 46 Wi-Fi BCM4339 Driver attached Linux Manual.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,210 Views
nagaprasadvasam
Contributor III

Hi  igor ,

Thanks for your reply.i have removed wifi driver now the sd card was detecting in my board.

0 Kudos