LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-22-2004, 06:56 PM   #1
davidbalt
Member
 
Registered: Feb 2004
Distribution: Gentoo -- always from stage1
Posts: 85

Rep: Reputation: 15
PCMCIA - ATMEL Drivers Refuse to Function


I've been battling with this problem for a few days.

I have a Wireless PCMCIA Network Card that is supported via ATMEL's downloadable drivers. I downloaded and installed the driver, but I can't get the kernel to accept the modules. When I try to modprobe the appropriate module, the kernel reports that the module is invalid.

I recompiled the kernel after setting some options, and then compiled the drivers, so the same version of gcc should be used for both.

the cardsrv ident response is OK - It can see the card, etc. THe problem is that the kernel won't load the module as I compiled it.

If anyone else has ever tried to use the ATMEL drivers on 2.6 kernels, please help me to understand what I am doing wrong.
 
Old 06-26-2004, 08:12 AM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 65
The Atmel card is still a pcmcia card, not a cardbus card, so modprobe won't work, cardctl still has to load the module for you, for that to work right though, you have to have an entry in /etc/pcmcia/config for the module that matches its manfid or ident line. You can get a patch file off of: atmelwlandriver.sourceforge.net by just downloading the whole source mess, finding their additional .conf file and pasting it onto the end of /etc/pcmcia/config, or you can hack it up by hand.

Its a matter of whatever distro you have has too old a version of pcmcia to have an entry for the atmel chipset cards.

Cheers,

Finegan
 
Old 07-08-2004, 12:06 PM   #3
davidbalt
Member
 
Registered: Feb 2004
Distribution: Gentoo -- always from stage1
Posts: 85

Original Poster
Rep: Reputation: 15
Resolution to this Problem: Atmel's drivers don't work under 2.6 . They are supposed to, but they don't. The solution was to patch my /lib/modules/Kernel-xxx/drivers/net/wireless/atmel_cs.c file with a line I found via Google and recompile the kernel.

It worked like a charm, and after that everything was fine. To hell with ATMEL's drivers.
 
Old 07-08-2004, 07:31 PM   #4
steep
LQ Newbie
 
Registered: Jul 2004
Posts: 1

Rep: Reputation: 0
could you give the line please ?

Please post or email me the line thanks
 
Old 07-08-2004, 07:48 PM   #5
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
To assist future visitors who may encounter the same issue, it is strongly preferred that any problem resolutions be posted publicly here at LQ rather than communicated via private Emails, because that way many people will benefit from the knowledge rather than just one. Thanks -- J.W.
 
Old 07-08-2004, 09:04 PM   #6
davidbalt
Member
 
Registered: Feb 2004
Distribution: Gentoo -- always from stage1
Posts: 85

Original Poster
Rep: Reputation: 15
This is a patchfile transcript for the code, but I didn't use it since the change is so brief.

Instead, I just used emacs to edit the lines and then recompiled.

--- linux.orig/drivers/net/wireless/atmel_cs.c
+++ linux/drivers/net/wireless/atmel_cs.c
@@ -350,6 +350,9 @@ static struct {

static struct device atmel_device = {
.bus_id = "pcmcia",
+ .kobj = {
+ .k_name = "atmel_cs"
+ }
};

static void atmel_config(dev_link_t *link)

Hopefully yours will work as easily as mine did. The most challenging thing was to get the kernel compiled and loaded properly - I was a real newbie to kernel hacking/compiling when I did this. Anyone can do it if you are unafraid.
 
Old 07-09-2004, 12:01 AM   #7
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
Thanks for the follow-through davidbalt -- J.W.
 
  


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
Topcom (Atmel?) Skyr@cer PCMCIA, can't connect Recirqie Linux - Wireless Networking 1 12-21-2004 09:24 AM
atmel drivers dont' seem to load Hylke Bons Linux - Wireless Networking 0 07-28-2004 08:57 AM
Kernel 2.6 and Atmel-wlan PCMCIA semicolon Slackware 0 12-21-2003 12:06 PM
Problems with ATMEL wireless pcmcia drivers on Gigafast WF721-AEX 0ber0n Linux - Laptop and Netbook 4 09-04-2003 07:42 AM
Can't make PCMCIA Atmel AT76C503A WLAN card load OrangePeel Linux - Wireless Networking 1 07-30-2003 05:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration