LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 08-27-2008, 12:33 PM   #1
Robert_A
LQ Newbie
 
Registered: Jun 2008
Posts: 8

Rep: Reputation: 0
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
 
Old 08-28-2008, 09:01 PM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
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.
 
Old 03-14-2011, 12:14 PM   #3
the hope
LQ Newbie
 
Registered: Mar 2011
Posts: 12

Rep: Reputation: 0
Quote:
Originally Posted by Robert_A View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Initialization of sd/sdio card premgda Linux - Embedded & Single-board computer 0 02-21-2008 06:59 AM
LXer: Montavista, Atheros contribute open-source SDIO stack LXer Syndicated Linux News 0 12-20-2006 12:03 PM
SDIO supprot in Linux 2.6.x abhay7182 Linux - Laptop and Netbook 1 07-28-2005 07:02 AM
SDIO Wifi card Linux Drivers? mmx87 Linux - Hardware 2 09-06-2004 12:36 PM
SDIO 2.6.x abhay7182 Linux - Software 0 08-20-2004 08:36 AM


All times are GMT -5. The time now is 09:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration