(solved) Problem compiling on 2.6.27 (rc8)

Live forum: http://rt2x00.serialmonkey.com/viewtopic.php?t=5025

fek

04-10-2008 15:12:47

Hi there,

I cannot compile the driver with a 2.6.27 kernel... please let me know if I did something wrong.
Please find below the error message.

thanks for your help.

[code3ukavbve]
[rom@localhost Module]$ make
make[1]: entrant dans le répertoire « /usr/src/linux-2.6.27-desktop-0.rc8.2mnb »
CC [M] /home/rom/Téléchargement/rt2570-cvs-2008093011/Module/rtusb_init.o
/home/rom/Téléchargement/rt2570-cvs-2008093011/Module/rtusb_init.c: In function ‘KillThreads’:
/home/rom/Téléchargement/rt2570-cvs-2008093011/Module/rtusb_init.c:1300: erreur: implicit declaration of function ‘kill_proc’
make[2]: *** [/home/rom/Téléchargement/rt2570-cvs-2008093011/Module/rtusb_init.o] Erreur 1
make[1]: *** [_module_/home/rom/Téléchargement/rt2570-cvs-2008093011/Module] Erreur 2
make[1]: quittant le répertoire « /usr/src/linux-2.6.27-desktop-0.rc8.2mnb »
rt2570.ko failed to build!
make: *** [module] Erreur 1
[rom@localhost Module]$ uname -r
2.6.27-desktop-0.rc8.2mnb[/code3ukavbve]

intropedro

05-10-2008 10:59:31

I have try in Ubuntu 8.10 and I don't compile

[code26jpnk1i]
intropedro@pcpedro:~/rt2570-cvs-2008093011/Module$ make
make[1]: se ingresa al directorio `/usr/src/linux-headers-2.6.27-4-generic'
CC [M] /home/intropedro/rt2570-cvs-2008093011/Module/rtusb_main.o
CC [M] /home/intropedro/rt2570-cvs-2008093011/Module/mlme.o
CC [M] /home/intropedro/rt2570-cvs-2008093011/Module/rtusb_bulk.o
CC [M] /home/intropedro/rt2570-cvs-2008093011/Module/connect.o
CC [M] /home/intropedro/rt2570-cvs-2008093011/Module/sync.o
CC [M] /home/intropedro/rt2570-cvs-2008093011/Module/rtusb_init.o
/home/intropedro/rt2570-cvs-2008093011/Module/rtusb_init.c: In function ‘[b]KillThreads[/b]’:
/home/intropedro/rt2570-cvs-2008093011/Module/rtusb_init.c:1300: error: implicit declaration of function ‘kill_proc’
make[2]: *** [/home/intropedro/rt2570-cvs-2008093011/Module/rtusb_init.o] Error 1
make[1]: *** [_module_/home/intropedro/rt2570-cvs-2008093011/Module] Error 2
make[1]: se sale del directorio `/usr/src/linux-headers-2.6.27-4-generic'
rt2570.ko failed to build!
make: *** [module] Error 1
[/code26jpnk1i]

[code26jpnk1i]
>> uname -r
2.6.27-4-generic
[/code26jpnk1i]

But it work with rt2500usb and the led the transfer data is never on.

[code26jpnk1i]
>> lsusb
...
Bus 001 Device 003: ID 14b2:3c02 Atheros Communications Inc C54RU WLAN
..
[/code26jpnk1i]

[code26jpnk1i]
>> lsmod | grep rt2
[b]rt2500usb[/b] 27904 0
rt2x00usb 18816 1 [b]rt2500usb[/b]
rt2x00lib 36224 2 [b]rt2500usb[/b],rt2x00usb
rfkill 17048 1 rt2x00lib
led_class 12164 1 rt2x00lib
mac80211 216820 2 rt2x00usb,rt2x00lib
cfg80211 32392 2 rt2x00lib,mac80211
usbcore 148848 7 [b]rt2500usb[/b],rt2x00usb,btusb,usbhid,ohci_hcd,ehci_hcd
[/code26jpnk1i]

Greetings

danitool

06-10-2008 15:00:30

I solved the build making a "chapuza". I deleted the variable killthreads on the code, then "make" works. The module rt2570 now is working fine in my ubuntu intrepid. Perhaps this can cause some problems like scanning networks, but in a fixed configuration the module works very fine.

You can do the same, editing the source code on your own risk

Vern

06-10-2008 16:58:32

Hi fek, intropedro,

Looks like 2.6.27 deletes the kill_proc() function. This problem is also cropping up with the rt73 legacy driver - see here[/url20twdoyr].

In addition to breaking their kernel api yet again, these turkeys are also going to make me switch to cifs, which I'm not yet ready to do. So it'll be a while before I sully my system with kernel 2.6.27.

Re. the "chapuza" patch You understand by not killing the threads, an attempt to unload the module can be made while still leaving the two kernel threads it has spawned active, right?

If I make a patch, will you try it?

Thanks,

danitool

06-10-2008 18:05:40

yes, I expemiremented that, in certain times i was not be able to shutdown the system... but, sometimes a temporaly solution is required. Now I can use the system without problems, before that i had a "brick" without internet connection.

yes, i will try any patch
thanks

Vern

13-10-2008 01:30:18

Hi danitool,

There's a fix for the 2.6.27 compile problem on the RT73 legacy driver which I've adapted to the legacy RT2570 driver and put into CVS. So you should see that starting to show up soon in the hourly tarballs. If not, post a message here.

Thanks,

danitool

15-10-2008 09:11:25

I downloaded the tarball a minute ago

rt2570-cvs-2008093011

it seems nothing updated, and it does not build (the killthreads error)

Vern

15-10-2008 15:41:40

You're right. I tried it myself and got the same thing. I would expect at least something like "rt2570-cvs-2008101508" for today.

Maybe the admins can look into this?

Thanks,

Tarquinio

15-10-2008 18:56:37

Hi folks,

i have the same probleme and need the new tarball or a patch too.
When will it be updated?

thx

Vern

15-10-2008 22:14:58

Try this (all one line)[code1fd25lgf]cvs -d:pserver:anonymous@rt2400.cvs.sourceforge.net:/cvsroot/rt2400 co -P source/rt2570[/code1fd25lgf]Thanks,

danitool

16-10-2008 10:45:56

I downloaded it, builded, and installed the module. Now all working correctly

thanks, very much

josemar

16-10-2008 18:52:38

Hello, I'm new in ubuntu and I have had enough problems with the rt73.
I use intrepid in the beta version. I need to leave my card in monitor mode. Use your last method (cvs -dpserveranonymous@rt2400.cvs.sourceforge.net/cvsroot/rt2400 co -P source/rt2570) and be hanged after the "sudo make install", I don't now what to do. If I write the command "iwconfig" says my device is called "wlan0" instead of "rausb0." If someone can get me a manual or explain me what to do, would be of great help, I hope it can be, I need you.
Super good their task, they were grateful for any questions you have with what I said, I warn. Thank you.
PS Sorry for my English, I'm using the google translator, I'm Latin and I don't speak much English.

danitool

16-10-2008 19:40:34

i think you are in the wrong thread, rt73 is not rt2570.

But if you want to install properly any driver in ubuntu recent versions, the first i do is to remove the network manager, also doing a blacklist of the old drivers, that come as default on the system will help .... And wlan0 is only an alias for rausb0

And again.... rt73 is not rt2570.

josemar

16-10-2008 20:30:34

i think you are in the wrong thread, rt73 is not rt2570.

But if you want to install properly any driver in ubuntu recent versions, the first i do is to remove the network manager, also doing a blacklist of the old drivers, that come as default on the system will help .... And wlan0 is only an alias for rausb0

And again.... rt73 is not rt2570.[/quote1zqiowcz]

Thanks, i have to read a little more.

Tarquinio

18-10-2008 11:37:02

Try this (all one line)[code267w5fsh]cvs -d:pserver:anonymous@rt2400.cvs.sourceforge.net:/cvsroot/rt2400 co -P source/rt2570[/code267w5fsh]Thanks,[/quote267w5fsh]

Big thx. It works

Vern

26-10-2008 19:50:43

I should have mentioned that the CVS problem has been fixed. The latest hourly tarballs now have the patch.

Thanks,