LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices



Reply
 
Search this Thread
Old 01-31-2007, 08:56 AM   #1
DanThomas
LQ Newbie
 
Registered: Jan 2007
Location: Princeton, NJ
Distribution: FC6
Posts: 6

Rep: Reputation: 0
Trouble compiling driver for D-Link DWL-G122 USB wireless


I've been unable to get the driver for my D-Link DWL-G122 (rev B1) USB wireless card to work. I bought the driver just over a year ago, but the set of driver files has a makefile for the 2.6 kernel, so I'm hoping I can use it. (It has been working on Windows, and I just installed FC6.) My initial problems were due to missing FC6 packages, but now the errors seem to relate to the driver code:

make -C /lib/modules/2.6.19-1.2895.fc6/build SUBDIRS=/usr/src/modules/RT2500-Linux-STA-1.4.6.6/Module modules
make[1]: Entering directory `/usr/src/kernels/2.6.19-1.2895.fc6-i686'
CC [M] /usr/src/modules/RT2500-Linux-STA-1.4.6.6/Module/rtmp_main.o
In file included from /usr/src/modules/RT2500-Linux-STA-1.4.6.6/Module/rtmp_main.c:38:
/usr/src/modules/RT2500-Linux-STA-1.4.6.6/Module/rt_config.h:62:40: error: linux/config.h: No such file or directory
/usr/src/modules/RT2500-Linux-STA-1.4.6.6/Module/rtmp_main.c: In function "RT2500_probe":
/usr/src/modules/RT2500-Linux-STA-1.4.6.6/Module/rtmp_main.c:181: error: "struct net_device" has no member named "get_wireless_stats"
/usr/src/modules/RT2500-Linux-STA-1.4.6.6/Module/rtmp_main.c: In function "RT2500_open":
/usr/src/modules/RT2500-Linux-STA-1.4.6.6/Module/rtmp_main.c:268: warning: passing argument 2 of "request_irq" from incompatible pointer type
make[2]: *** [/usr/src/modules/RT2500-Linux-STA-1.4.6.6/Module/rtmp_main.o] Error 1
make[1]: *** [_module_/usr/src/modules/RT2500-Linux-STA-1.4.6.6/Module] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.19-1.2895.fc6-i686'
make: *** [all] Error 2


Any suggestions?
 
Old 01-31-2007, 06:40 PM   #2
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
It appears your driver kit needs the linux/config.h file that has been removed from FC6, try creating an empty config.h file that seems to work for most of these errors with this command as root or through sudo:

touch /usr/src/kernels/2.6.19-1.2895.fc6-i686/include/linux/config.h

or:

touch linux/config.h

Then check in the directory in first touch command to see if it was created.
This may not be the only problem, but does appear to be one of them or the root of all other errors.

Before trying to re-compile it is wise to issue command:

make clean

Prior to using make command again.

Last edited by Junior Hacker; 01-31-2007 at 06:48 PM.
 
Old 02-02-2007, 08:31 AM   #3
DanThomas
LQ Newbie
 
Registered: Jan 2007
Location: Princeton, NJ
Distribution: FC6
Posts: 6

Original Poster
Rep: Reputation: 0
Adding the empty config.h did take away that error message, but I still was left with several others and no compiled driver. Eventually I tried a couple of other packages, and one of them compiled. (I had downloaded these earlier, but they also didn't work without the extra header and devel files.) Now I just need to figure out how to configure it... Thanks for the help.
 
Old 02-02-2007, 09:17 AM   #4
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
Alright then, good luck.

I tried to help someone else regarding a wireless card on a Dell unit, apparently they are a bitch.
 
  


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
How can I get the D-Link AirPlus G DWL-G122 Wireless USB Adapter working under Debian No_Good_With_Linux Debian 3 09-14-2006 01:58 PM
Mandriva Official 2006 - D-Link DWL-G122 USD Wireless Dongle caulfiek Mandriva 0 08-26-2006 06:37 AM
Installing the D-Link AirPlus G DWL-G122 Wireless USB Adapter on SuSE 9.2 SuSE starter Linux - Wireless Networking 28 02-05-2006 03:27 PM
Is it possible to install the D-Link DWL-G122 wireless USB adapter on SuSE 8.2 ? SuSE starter Linux - Hardware 2 03-05-2005 12:20 PM
D-Link DWL-G122 (USB) not working with ndiswrapper Anders1 Linux - Wireless Networking 8 02-27-2005 11:57 AM


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

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