SD2 card slot is not working for WiFi

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

SD2 card slot is not working for WiFi

Jump to solution
4,159 Views
oslreddy
Contributor II

hi all,

I am trying to use sd2 card slot for my wifi module (BCM43241 from broadcom)

but I could not be able to read or write to the module

at the boot time it is giving the following logs

 

mmc_attach_sdio():

wifi_set_power = 1

mmc_attach_sdio():

wifi_set_carddetect = 1

ehci_fsl_bus_suspend begins, Host 1

ehci_fsl_bus_suspend ends, Host 1

F1 signature read @0x18000000=0xffffffff

dhdsdio_probe_attach: si_attach failed!

dhdsdio_probe: dhdsdio_probe_attach failed

 

I tried to insert SD card and test even for the SD card also it is giving the following error

 

mmcblk1: error -110 transferring data, sector 0, nr 8, cmd response 0x900, card status 0x0

 

 

I tried changing the SDIO data to

static const struct esdhc_platform_data mx6q_sabresd_sd2_data __initconst = {

    //.cd_gpio = SABRESD_SD2_CD,

    //.wp_gpio = SABRESD_SD2_WP,

    .always_present = 1,

    .keep_power_at_suspend = 1,

    .support_8bit = 0,

    .delay_line = 0,

    .cd_type = ESDHC_CD_PERMANENT,

    //.runtime_pm = 1,

};

 

but no use

Did anybody tried integrating BROADCOM or any other WIFI module on SD2 slot

If tried Kindly share me if I need to change anything

In schematics for sabereSD

I am finding in pgno 15 as

The developer

may need to consult the datasheet

of other WIFI solutions for compatibility

with this card socket.

is it mean the socket will support only few cards if that is the case kindly let me know whether BCM43241 will support on this socket or not

 

Regards

Reddy

 

 

 

 

 

 

Original Attachment has been moved to: logs_wifi_card_mmc_sd2.txt.zip

Labels (3)
0 Kudos
1 Solution
1,723 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello,Reddy,

       From log messages, It seems that mmc1 didn't find new attached device(wifi) at the beginning, So could you try to power up wifi in BSP file ? At first, we should ensure mmc controller can find wifi .

weidong

View solution in original post

0 Kudos
8 Replies
1,723 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello,reddy,

     Please try to compile wifi driver into a single module, such as dhd.ko file. then use insmod dhd.ko "here is firmaware", for example, I load BCM4329 on command line:

# /system/bin/insmod /system/lib/modules/dhd.ko "firmware_path=/system/etc/wifi/sdio-bcm4329-dhd.bin nvram_path=/system/etc/wifi/nvram.txt"

Regards,

Weidong

0 Kudos
1,723 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi,Reddy,

     Did you resolve wifi issue ?

weidong

0 Kudos
1,723 Views
oslreddy
Contributor II

Hi weidong sun,

There are some problems with building as a module I am working on that.

Mean while Kindly let me know how it is different from loading as a static.

Do you mean SDIO core is going to load after bcmdhd?

Kindly note: I am able to detect the card on SD3 slot by following same procedure ( loading as a static), the problem is only with the SD2, even on SD2 it is detecting the card and it is reading wrong signature F1 signature read @0x18000000=0xffffffff

and another thing is SD card is not working by giving -110 error

mmcblk1: error -110 transferring data, sector 0, nr 8, cmd response 0x900, card status 0x0

soon I will update on  building as loadable module scenario

Thanks

Reddy

0 Kudos
1,723 Views
oslreddy
Contributor II

Hi

If I am loading as a module I am getting the following error

insmod: init_module 'bcmdhd.ko' failed (No such device)

and the driver is not loading i.e it is not showing in lamod

and for the SD card the error is same -110

log is at

sd2 slot log - Pastebin.com

Regards

Reddy

0 Kudos
1,724 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello,Reddy,

       From log messages, It seems that mmc1 didn't find new attached device(wifi) at the beginning, So could you try to power up wifi in BSP file ? At first, we should ensure mmc controller can find wifi .

weidong

0 Kudos
1,723 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello,Reddy,

      How about your questions ? Did you resolve it ?

weidong

0 Kudos
1,723 Views
oslreddy
Contributor II

Hi weidong,

The problem is resolved now As you said the mmc not finding wifi device

yes there is some problem with reset pin once that is resolved it is solved

Thanks for the help

Regards

Reddy

0 Kudos
1,723 Views
anilhani
Contributor II

Hello,

I am also facing the similar issue.

Could you please tell me what was the issue with the reset line?

What is the changes you have done to resolved the issue.

Regards,

Anil

0 Kudos