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.

problem with mmc and sdio configure for wl1271 .

Other Parts Discussed in Thread: AM3703, WL1271

 

1) i am working on am3703 custom board with kernel-2.6.32 as beagleboard configure.

2) i am trying to integrate the wl1271 for wifi_wg7310-2a chip.

3) my kernel configuration related network and wireless.

        Networking support--->Wireless ---->  Wireless extensions sysfs files        

        Device Drivers-->Network device support-->Wireless LAN-->WL1271 TI's SDIO based wireless card

4) i had build the wl1271 driver.

    while inserting module to my kernel i got following messages

# insmod tiwlan_drv.ko    

TIWLAN: driver init

TIWLAN: 3213.118296: wlanDrvIf_Open()

wlanDrvIf_Open() Driver not created!

 

please suggest me !!!

what is the problem?

like hardware connection or software  problem..

 

 

 

 

 

 

 

 

 

  • Hi venkatraju,

     

    Since you are using Linux 2.6.32 then I assume that you are using the Legacy driver and not the Open source driver, any way insmod tiwlan_drv.ko calls the function wlanDrvIf_ModuleInit() that is located at  \platforms\os\linux\src\WlanDrvIf.c that function calls function wlanDrvIf_Create() that function Initialize driver OS resources (IRQ, workqueue, events socket)  Setup driver network interface and Create and link all driver modules. But for some reason that function is not successful and some ware in the code it fails. That has to be further debug and put prints along the code to verify why that functioned failed.   

     

    Regards,

    Eyal

     

  • Hi Eyal,

    thanks for your response.

    you are  saying linux 2.6.32 have legacy driver!! then i download  V3.00.01.06-WL6.1.6.0-Linux-x86-Install_1.0-Linux-x86-Install installer

    and i build the tiwlan_drv.ko , then after i disable the sdio configure option on the  kernel  config and build the uImage i had ported.

    #insmod tiwlan_drv.ko

    [   36.460906] TIWLAN: driver init

    [   36.470520] irq_gpio=16 return=176 drv->tWork wlanDrvIf_DriverTask //  this one i written in ./wireless/WiLink/platforms/os/linux/src/WlanDrvIf.c

    after this line drv->irq = (OMAP_GPIO_IRQ(IRQ_GPIO));

     

     

    while running the ifconfig tiwlan0 up i got following error message.

    #ifconfig tiwlan0 up

    TIWLAN: 2151.822760: wlanDrvIf_Open()
    [  203.909240] TIWLAN: 2151.828070: pInitParams->RoamingScanning_2_4G_enable 0
    [  203.916412] TIWLAN: 2151.835272:  EvHandlerSendEvent 2 
    [  203.921752] TIWLAN: 2151.840613:  EvHandlerSendEvent 2 to OS
    [  203.927551] TIWLAN: 2151.846411: EvHandlerSendEvent Matching OS Registered event found at EvType = 2,ModuleIndex = 0 
    [  204.110107] SDIO clock Configuration is now set to 24Mhz
    [  204.309356] sdioDrv_ExecuteCmd() SDIO Command error status = 0x18000
    [  204.315765] TIWLAN: 2152.234625: Try to SDBus Connect again...
    [  204.578826] SDIO clock Configuration is now set to 24Mhz
    [  204.584197] sdioDrv_InitHw() - request_irq FAILED!!
    [  204.589263] TIWLAN: 2152.508124: Try to SDBus Connect again...
    [  204.852325] SDIO clock Configuration is now set to 24Mhz
    [  205.051544] sdioDrv_ExecuteCmd() SDIO Command error status = 0x18000
    [  205.057952] TIWLAN: 2152.976813: Try to SDBus Connect again...
    [  205.406738] SDIO clock Configuration is now set to 24Mhz
    [  205.412109] sdioDrv_InitHw() - request_irq FAILED!!
    [  205.417205] TIWLAN: 2153.336035: Try to SDBus Connect again...
    [  205.765899] SDIO clock Configuration is now set to 24Mhz
    [  205.965179] sdioDrv_ExecuteCmd() SDIO Command error status = 0x18000
    [  205.971588] TIWLAN: 2153.890448: Try to SDBus Connect again...
    [  206.320434] SDIO clock Configuration is now set to 24Mhz
    [  206.325775] sdioDrv_InitHw() - request_irq FAILED!!
    [  206.330841] TIWLAN: 2154.249701: Try to SDBus Connect again...
    [  206.679321] SDIO clock Configuration is now set to 24Mhz
    [  206.878570] sdioDrv_ExecuteCmd() SDIO Command error status = 0x18000
    [  206.884979] TIWLAN: 2154.803839: Try to SDBus Connect again...
    [  207.233642] SDIO clock Configuration is now set to 24Mhz
    [  207.239044] sdioDrv_InitHw() - request_irq FAILED!!
    [  207.244079] TIWLAN: 2155.162939: SDBus Connect Failed, Set Object Event !

    i am using mmc2 and my custom board address

    mmc2_clk = 0x4800 2158,

    mmc2_data0 = 0x4800 215C,

    mmc2_data2 =0x4800 2160.

    WLAN_ENABLE= 0x4800 25DC (gpio_15)

    WLAN_IRQ=0x4800 25E0 (gpio_16)

    and one more thing is sdio_clk was not coming .

    please suggest me what is wrong here is this hard ware connection or driver code.

    i had been struggling this issues !

    Regards,

    kvraju

     

     

     

     

     

     


  • Hi Eyal,

    i had include some more printk in sdiodrv.c file

    #ifconfig tiwlan0 up
    [  110.944366] TIWLAN: 2039.215704: wlanDrvIf_Open()
    [  110.949707] TIWLAN: 2039.221045: pInitParams->RoamingScanning_2_4G_enable 0
    [  110.956878] TIWLAN: 2039.228247:  EvHandlerSendEvent 2 
    [  110.962219] TIWLAN: 2039.233588:  EvHandlerSendEvent 2 to OS
    [  110.968017] TIWLAN: 2039.239386: EvHandlerSendEvent Matching OS Registered event found at EvType = 2,ModuleIndex = 0 
    [  111.151397] func sdiodrv_poll_status
    [  111.154541] SDIO clock Configuration is now set to 24Mhz
    [  111.159942] OMAP_MMC_IRQ num=0
    [  111.163024] func sdiodrv_poll_status
    [  111.166198] func sdioDrv_ExecuteCmd
    [  111.169281] uCmdReg=0,uCmd=0,uRespType=0sdiodrv_send_command
    [  111.174987] func sdiodrv_poll_status
    [  111.178161] uStatus=1sdioDrv_ExecuteCmd
    [  111.182037] uCmdReg=5020000,uCmd=5,uRespType=2sdiodrv_send_command
    [  111.188262] func sdiodrv_poll_status
    [  111.385528] uStatus=18000sdioDrv_ExecuteCmd() SDIO Command error status = 0x18000
    [  111.393066] TIWLAN: 2039.664435: Try to SDBus Connect again...
    [  111.657135] func sdiodrv_poll_status
    [  111.660339] SDIO clock Configuration is now set to 24Mhz
    [  111.665679] OMAP_MMC_IRQ num=-16
    [  111.668945] sdioDrv_InitHw() - request_irq FAILED!!
    [  111.673828] func sdiodrv_poll_status
    [  111.677001] func sdioDrv_ExecuteCmd
    [  111.680084] uCmdReg=0,uCmd=0,uRespType=0sdiodrv_send_command
    [  111.685791] func sdiodrv_poll_status
    [  111.688934] uStatus=1sdioDrv_ExecuteCmd
    [  111.692962] uCmdReg=5020000,uCmd=5,uRespType=2sdiodrv_send_command
    [  111.699218] func sdiodrv_poll_status
    [  111.896545] uStatus=18000sdioDrv_ExecuteCmd() SDIO Command error status = 0x18000
    [  111.904083] TIWLAN: 2040.175452: Try to SDBus Connect again...
    [  112.168151] func sdiodrv_poll_status
    [  112.171295] SDIO clock Configuration is now set to 24Mhz
    [  112.176666] OMAP_MMC_IRQ num=0
    [  112.179901] sdioDrv_InitHw() - request_irq FAILED!!
    [  112.184814] func sdiodrv_poll_status
    [  112.187957] func sdioDrv_ExecuteCmd
    [  112.191070] uCmdReg=0,uCmd=0,uRespType=0sdiodrv_send_command
    [  112.196746] func sdiodrv_poll_status
    [  112.199920] uStatus=1sdioDrv_ExecuteCmd
    [  112.203765] uCmdReg=5020000,uCmd=5,uRespType=2sdiodrv_send_command
    [  112.210021] func sdiodrv_poll_status
    [  112.407348] uStatus=18000sdioDrv_ExecuteCmd() SDIO Command error status = 0x18000
    [  112.414916] TIWLAN: 2040.686285: Try to SDBus Connect again...
    [  112.765014] func sdiodrv_poll_status
    [  112.768188] SDIO clock Configuration is now set to 24Mhz
    [  112.773529] OMAP_MMC_IRQ num=-16
    [  112.776794] sdioDrv_InitHw() - request_irq FAILED!!
    [  112.781677] func sdiodrv_poll_status
    [  112.784881] func sdioDrv_ExecuteCmd
    [  112.787963] uCmdReg=0,uCmd=0,uRespType=0sdiodrv_send_command
    [  112.793701] func sdiodrv_poll_status
    [  112.796844] uStatus=1sdioDrv_ExecuteCmd
    [  112.800750] uCmdReg=5020000,uCmd=5,uRespType=2sdiodrv_send_command
    [  112.806976] func sdiodrv_poll_status
    [  113.004547] uStatus=18000sdioDrv_ExecuteCmd() SDIO Command error status = 0x18000
    [  113.012115] TIWLAN: 2041.283484: Try to SDBus Connect again...
    [  113.362060] func sdiodrv_poll_status
    [  113.365234] SDIO clock Configuration is now set to 24Mhz
    [  113.370574] OMAP_MMC_IRQ num=0
    [  113.373809] sdioDrv_InitHw() - request_irq FAILED!!
    [  113.378906] func sdiodrv_poll_status
    [  113.382049] func sdioDrv_ExecuteCmd
    [  113.385131] uCmdReg=0,uCmd=0,uRespType=0sdiodrv_send_command
    [  113.390838] func sdiodrv_poll_status
    [  113.394012] uStatus=1sdioDrv_ExecuteCmd
    [  113.397857] uCmdReg=5020000,uCmd=5,uRespType=2sdiodrv_send_command
    [  113.404083] func sdiodrv_poll_status
    [  113.601409] uStatus=18000sdioDrv_ExecuteCmd() SDIO Command error status = 0x18000
    [  113.608947] TIWLAN: 2041.880316: Try to SDBus Connect again...
    [  113.958953] func sdiodrv_poll_status
    [  113.962097] SDIO clock Configuration is now set to 24Mhz
    [  113.967468] OMAP_MMC_IRQ num=-16
    [  113.970703] sdioDrv_InitHw() - request_irq FAILED!!
    [  113.975616] func sdiodrv_poll_status
    [  113.978790] func sdioDrv_ExecuteCmd
    [  113.981872] uCmdReg=0,uCmd=0,uRespType=0sdiodrv_send_command
    [  113.987579] func sdiodrv_poll_status
    [  113.990722] uStatus=1sdioDrv_ExecuteCmd
    [  113.994598] uCmdReg=5020000,uCmd=5,uRespType=2sdiodrv_send_command
    [  114.000823] func sdiodrv_poll_status
    [  114.198089] uStatus=18000sdioDrv_ExecuteCmd() SDIO Command error status = 0x18000
    [  114.205627] TIWLAN: 2042.476996: Try to SDBus Connect again...
    [  114.555541] func sdiodrv_poll_status
    [  114.558715] SDIO clock Configuration is now set to 24Mhz
    [  114.564056] OMAP_MMC_IRQ num=0
    [  114.567321] sdioDrv_InitHw() - request_irq FAILED!!
    [  114.572235] func sdiodrv_poll_status
    [  114.575408] func sdioDrv_ExecuteCmd
    [  114.578460] uCmdReg=0,uCmd=0,uRespType=0sdiodrv_send_command
    [  114.584167] func sdiodrv_poll_status
    [  114.587341] uStatus=1sdioDrv_ExecuteCmd
    [  114.591217] uCmdReg=5020000,uCmd=5,uRespType=2sdiodrv_send_command
    [  114.597595] func sdiodrv_poll_status
    [  114.794891] uStatus=18000sdioDrv_ExecuteCmd() SDIO Command error status = 0x18000
    [  114.802459] TIWLAN: 2043.073828: Try to SDBus Connect again...
    [  115.152252] func sdiodrv_poll_status
    [  115.155395] SDIO clock Configuration is now set to 24Mhz
    [  115.160919] OMAP_MMC_IRQ num=-16
    [  115.164154] sdioDrv_InitHw() - request_irq FAILED!!
    [  115.169097] func sdiodrv_poll_status
    [  115.172271] func sdioDrv_ExecuteCmd
    [  115.175354] uCmdReg=0,uCmd=0,uRespType=0sdiodrv_send_command
    [  115.181060] func sdiodrv_poll_status
    [  115.184234] uStatus=1sdioDrv_ExecuteCmd
    [  115.188079] uCmdReg=5020000,uCmd=5,uRespType=2sdiodrv_send_command
    [  115.194335] func sdiodrv_poll_status
    [  115.391632] uStatus=18000sdioDrv_ExecuteCmd() SDIO Command error status = 0x18000
    [  115.399169] TIWLAN: 2043.670538: SDBus Connect Failed, Set Object Event !!

    i have been following bellow link.

    http://processors.wiki.ti.com/index.php/Android_wireless_build_and_porting_guide

    please suggest me what is the wrong in my case!!!!!

  • Hi,

    It looks like the SDIO is not working. Have you compiled and run the SDIO driver?

    The sequence with the Legacy driver is as follows:

    insmod sdio.ko 
    insmod bmtrace.ko 
    insmod tiwlan_drv.ko 
    ./tiwlan_loader

    also please see more information in the following link: http://processors.wiki.ti.com/index.php/OMAP35x_Wireless_Connectivity_Getting_Started_Guide

    Regards,

    Eyal

  • Hi Eyal,

     

    thanks for your response!!!

    i had been following same link, but i compile this modues with  arm-none-linux-gnueabi- instead of android tool chain

    but i am using the angstrom file system 

    if i do

    #insmod sdio.ko

    #insmod bmtrace.ko

    #insmod tiwlan_drv.ko // after i got error like it's already inserted