I'm having trouble installing my RaLink RT2561/RT61 wireless card. It seems that this driver causes problems for all ubuntu users, and I've tried a couple of work arounds, none of which work for me.
Firstly I downloaded the most recent driver from here:
RT2501PCI/mPCI/CB(RT61:RT2561/RT2561S/RT2661) is the driver I downloaded. Next I performed the following steps:
I extracted the contents of the download to a directory on the Dekstop. The drivers are in a "Module" subdirectory. I navigate to that folder and do the following:
robinsjp@home-desktop:~$ sudo apt-get install linux-headers-`uname -r` build-essential gcc
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-2.6.32-24-generic is already the newest version.
build-essential is already the newest version.
gcc is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
The source refuses to compile. I've tried creating a /module subdirectory in the linux headers folder, as per this page:
robinsjp@home-desktop:~/Desktop/2010_0825_RT61_Linux_STA_v18.104.22.168/Module$ make all
make -C /lib/modules/2.6.32-24-generic/build SUBDIRS=/home/robinsjp/Desktop/2010_0825_RT61_Linux_STA_v22.214.171.124/Module modules
make: Entering directory `/usr/src/linux-headers-2.6.32-24-generic'
CC [M] /home/robinsjp/Desktop/2010_0825_RT61_Linux_STA_v126.96.36.199/Module/rtmp_init.o
/home/robinsjp/Desktop/2010_0825_RT61_Linux_STA_v188.8.131.52/Module/rtmp_init.c: In function ‘NICLoadFirmware’:
/home/robinsjp/Desktop/2010_0825_RT61_Linux_STA_v184.108.40.206/Module/rtmp_init.c:2919: error: implicit declaration of function ‘current_fsuid’
/home/robinsjp/Desktop/2010_0825_RT61_Linux_STA_v220.127.116.11/Module/rtmp_init.c:2920: error: implicit declaration of function ‘current_fsgid’
make: *** [/home/robinsjp/Desktop/2010_0825_RT61_Linux_STA_v18.104.22.168/Module/rtmp_init.o] Error 1
make: *** [_module_/home/robinsjp/Desktop/2010_0825_RT61_Linux_STA_v22.214.171.124/Module] Error 2
make: Leaving directory `/usr/src/linux-headers-2.6.32-24-generic'
I've also tried
as this page suggests http://ubuntuforums.org/showthread.php?t=1274079 but neither of these things help.
sudo KBUILD_NOPEDANTIC=1 make all
I'm using Ubuntu 10.04 32 bit.
Any help is appreciated.