LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Wireless LAN SDIO card - Wrong SDIO driver loaded [i.MX31] (https://www.linuxquestions.org/questions/programming-9/wireless-lan-sdio-card-wrong-sdio-driver-loaded-%5Bi-mx31%5D-665815/)

Robert_A 08-27-2008 11:33 AM

Wireless LAN SDIO card - Wrong SDIO driver loaded [i.MX31]
 
Hi,

I try to run a WLAN module which is connected via SDIO to my i.MX31 Phytec evaluation board. I'm running Linux (PTXDist) with Kernel 2.6.19.2.
To build the WLAN-SDIO kernel modules I use Linux Sourcecode which is provided from the manufacturer.
I can build all the kernelmodules without errors and I can load all the kernelmodules with insmod on my target, see below :

root@phyCORE-iMX31:~> lsmod
Module Size Used by Tainted: PF
wlanmodule_sdio 744668 0
slot_spi 7588 0
slot_imx31 8768 0
sdio 25236 4 wlanmodule_sdio,slot_spi,slot_imx31
osal 2976 1 sdio
usbserial 31876 0
usb_storage 37508 0
ehci_hcd 32364 0
isp1504_arc 14528 0

Also, the necessary Firmware which is loaded by the WLAN module after startup is at the right place.

Calling dmesg after loading the modules, I get the following messages:

sdio: SDIO driver (sdioemb) v9 25 Aug 2008 13:39:44
Wlan Module SDIO Driver: vx.y (build:z) Aug 25 2008 13:39:55
Wlan: Using embedded SDIO driver
sdio: registered Wlan driver

So for my understanding everything is working correct.
But when I insert the WLAN-SDIO module into the SD-Card slot the Wlan SDIO Driver is not loaded and, of course, there is no wireless LAN functionality.
The only debug messages I see are the following:

mmc_setup - SDIO card supports 1 I/O functions
mmc0: host dies not support read-only switch. assuming write-enable.

On the same SD card slot normal SD-Cards work perfect.

What additional steps do I have to do to get the WLAN driver loaded after plugging in the WLAN-SDIO module in the SD-Card slot?
Is there an identical mechanism like the USB hotplug mechanism, or how do I tell my linux system that it should load the WLAN SDIO driver?

I also did activate the MMC debug outputs to see if my WLAN SDIO module is defect, but the card is communicating with my linux system.
So I thinks its a problem of using the right driver for the connected module.

Here some constraints:
Distribution : PTXDist 0.10.6
Kernel : 2.6.19.2
CPU : ARM 11, i.MX31

Are there any suggestions how to solve this issue?

Thanks in advance,
Robert

pinniped 08-28-2008 08:01 PM

Perhaps you should plug in the SDIO card and then load the driver? Otherwise, how is the driver meant to put the firmware onto the card? You can test that bit by using 'rmmod' or 'modprobe -r' to remove the drivers, then lead them again. It's really impossible to tell what the problem is without looking at the driver source; some drivers may be more intelligent and test for a firmware then upload if there is none.

the hope 03-14-2011 11:14 AM

Quote:

Originally Posted by Robert_A (Post 3261635)
Hi,

I try to run a WLAN module which is connected via SDIO to my i.MX31 Phytec evaluation board. I'm running Linux (PTXDist) with Kernel 2.6.19.2.
To build the WLAN-SDIO kernel modules I use Linux Sourcecode which is provided from the manufacturer.
I can build all the kernelmodules without errors and I can load all the kernelmodules with insmod on my target, see below :

root@phyCORE-iMX31:~> lsmod
Module Size Used by Tainted: PF
wlanmodule_sdio 744668 0
slot_spi 7588 0
slot_imx31 8768 0
sdio 25236 4 wlanmodule_sdio,slot_spi,slot_imx31
osal 2976 1 sdio
usbserial 31876 0
usb_storage 37508 0
ehci_hcd 32364 0
isp1504_arc 14528 0

Also, the necessary Firmware which is loaded by the WLAN module after startup is at the right place.

Calling dmesg after loading the modules, I get the following messages:

sdio: SDIO driver (sdioemb) v9 25 Aug 2008 13:39:44
Wlan Module SDIO Driver: vx.y (build:z) Aug 25 2008 13:39:55
Wlan: Using embedded SDIO driver
sdio: registered Wlan driver

So for my understanding everything is working correct.
But when I insert the WLAN-SDIO module into the SD-Card slot the Wlan SDIO Driver is not loaded and, of course, there is no wireless LAN functionality.
The only debug messages I see are the following:

mmc_setup - SDIO card supports 1 I/O functions
mmc0: host dies not support read-only switch. assuming write-enable.

On the same SD card slot normal SD-Cards work perfect.

What additional steps do I have to do to get the WLAN driver loaded after plugging in the WLAN-SDIO module in the SD-Card slot?
Is there an identical mechanism like the USB hotplug mechanism, or how do I tell my linux system that it should load the WLAN SDIO driver?

I also did activate the MMC debug outputs to see if my WLAN SDIO module is defect, but the card is communicating with my linux system.
So I thinks its a problem of using the right driver for the connected module.

Here some constraints:
Distribution : PTXDist 0.10.6
Kernel : 2.6.19.2
CPU : ARM 11, i.MX31

Are there any suggestions how to solve this issue?

Thanks in advance,
Robert

hi Robert
Please Roberts,can yopu tell me how do you load the driver of the SDIO wifi card or how do you developp the way to make the host able to detect wifi using the SDIO wifi card as an interface.
i hope that you understand my question because i nead really someone help me.
thanks in advance
best regards


All times are GMT -5. The time now is 02:31 PM.