LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   Trouble compiling driver for D-Link DWL-G122 USB wireless (https://www.linuxquestions.org/questions/linux-wireless-networking-41/trouble-compiling-driver-for-d-link-dwl-g122-usb-wireless-524337/)

DanThomas 01-31-2007 07:56 AM

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?

Junior Hacker 01-31-2007 05:40 PM

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.

DanThomas 02-02-2007 07:31 AM

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.

Junior Hacker 02-02-2007 08:17 AM

Alright then, good luck.

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


All times are GMT -5. The time now is 11:34 AM.