Gentoo / 2.6.22 - Can't compile module

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

Caledorn

17-10-2007 00:52:35

Hello - thank you for this effort to provide a decent rt61 driver for linux )

I'm having some issues compiling the driver on my gentoo box however, and I've looked through the various topics here on the forum, and the readmes, but I can't find any immediate solution to my problem. I apologize if I've been dense or overlooked something - feel free to make fun of me and give me random pun if I have. ;)

Here is the output from my box

[codesad21hdn]
dagros Module # make
make[1]: Entering directory `/usr/src/linux-2.6.22-gentoo-r8'
CC [M] /usr/src/rt61-1.1.0-b2/Module/rtmp_main.o
/usr/src/rt61-1.1.0-b2/Module/rtmp_main.c: In function 'RT61_open':
/usr/src/rt61-1.1.0-b2/Module/rtmp_main.c:405: warning: 'deprecated_irq_flag' is deprecated (declare d at include/linux/interrupt.h:66)
/usr/src/rt61-1.1.0-b2/Module/rtmp_main.c: In function 'rt61_resume':
/usr/src/rt61-1.1.0-b2/Module/rtmp_main.c:1000: warning: ignoring return value of 'pci_enable_device ', declared with attribute warn_unused_result
/usr/src/rt61-1.1.0-b2/Module/rtmp_main.c: In function 'rt61_init_module':
/usr/src/rt61-1.1.0-b2/Module/rtmp_main.c:1044: warning: implicit declaration of function 'pci_modul e_init'
CC [M] /usr/src/rt61-1.1.0-b2/Module/mlme.o
/usr/src/rt61-1.1.0-b2/Module/mlme.c: In function 'MlmeEnqueueForRecv':
/usr/src/rt61-1.1.0-b2/Module/mlme.c:3297: warning: format '%ld' expects type 'long int', but argume nt 2 has type 'size_t'
CC [M] /usr/src/rt61-1.1.0-b2/Module/connect.o
CC [M] /usr/src/rt61-1.1.0-b2/Module/sync.o
CC [M] /usr/src/rt61-1.1.0-b2/Module/assoc.o
CC [M] /usr/src/rt61-1.1.0-b2/Module/auth.o
CC [M] /usr/src/rt61-1.1.0-b2/Module/auth_rsp.o
CC [M] /usr/src/rt61-1.1.0-b2/Module/rtmp_data.o
/usr/src/rt61-1.1.0-b2/Module/rtmp_data.c: In function 'RTMPHandleRxDoneInterrupt':
/usr/src/rt61-1.1.0-b2/Module/rtmp_data.c:477: error: 'struct sk_buff' has no member named 'mac'
/usr/src/rt61-1.1.0-b2/Module/rtmp_data.c: In function 'RTMPCheckDHCPFrame':
/usr/src/rt61-1.1.0-b2/Module/rtmp_data.c:4318: warning: unused variable 'dest_port'
/usr/src/rt61-1.1.0-b2/Module/rtmp_data.c:4317: warning: unused variable 'is_udp'
/usr/src/rt61-1.1.0-b2/Module/rtmp_data.c:4316: warning: unused variable 'is_ipv4'
/usr/src/rt61-1.1.0-b2/Module/rtmp_data.c:4315: warning: unused variable 'is_ip'
make[2]: *** [/usr/src/rt61-1.1.0-b2/Module/rtmp_data.o] Error 1
make[1]: *** [_module_/usr/src/rt61-1.1.0-b2/Module] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.22-gentoo-r8'
rt61.ko failed to build!
make: *** [module] Error 1
dagros Module # uname -a
Linux dagros 2.6.22-gentoo-r8 #2 Wed Oct 17 02:50:29 CEST 2007 i686 AMD Athlon(tm) XP 1800+ Authenti cAMD GNU/Linux
dagros Module #
[/codesad21hdn]

pezza

17-10-2007 09:29:00

Same kernel (2.6.22-k7 anyway), same problem, same output here with Debian testing. Same CPU, too ?

hennichodernich

17-10-2007 16:47:26

Same kernel (2.6.22-k7 anyway), same problem, same output here with Debian testing. Same CPU, too ?[/quote2syr6942]

Have you two tried the CVS snapshot of the legacy driver?

regards
Henning

Caledorn

17-10-2007 18:40:46

I have - but since I'm using Gentoo, I prefer to use the gentoo sources, which are only up to 2.6.22 - and as far as I saw, the CVS snapshot needs 2.6.23 for something? Regardless, the CVS snapshot didn't compile at all for me...

hennichodernich

17-10-2007 19:25:40

I have - but since I'm using Gentoo, I prefer to use the gentoo sources, which are only up to 2.6.22 - and as far as I saw, the CVS snapshot needs 2.6.23 for something? Regardless, the CVS snapshot didn't compile at all for me...[/quotey2cjx5nh]

I was talking about the rt61 legacy CVS snapshot, not the rt2x00 CVS snapshot which indeed requires the git kernel.

regards
Henning

Caledorn

17-10-2007 19:55:05

*blushes*

Well, with the CVS snapshot

make[1] Leaving directory `/usr/src/linux-2.6.22-gentoo-r8'
*** Module rt61.ko built successfully

Thanks ;)

Now let's see if I can figure out how this thing works ^^

Caledorn

17-10-2007 20:36:49

Well, the driver works like a charm - with one exception. According to iwconfig, the driver does not support Master mode. I was under the impression that this driver does support Master mode, so I assume I've done something wrong along the way... (Like not reading some docs or something which I should have read, most likely)

[code30csgufw]
* Starting wlan0
* Configuring wireless network for wlan0
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan0 ; Function not implemented.
* wlan0 does not support setting the mode to "master"
* wlan0 connected to ESSID "FeinWLAN"
* in managed mode on channel 6 (WEP disabled)
* Bringing up wlan0
[/code30csgufw]

(Oh, and I don't see any point in enabling security until I at the very least attach the antenna to the card - and then get the driver to work - thus the WEP disabled. ))

Could someone point me in the right direction, please? )

Thanks again!

Caledorn

18-10-2007 11:23:51

Nevermind my previous post. I realized that I have to use the git-based sources to be able to set the card in master mode - so I guess I'll just have to wait until the master mode goes into the CVS. )

pezza

18-10-2007 13:38:21

caledorn and I could be twins. oops Last time I tried the RT61 legacy driver, it didn't work. Now it does, and very well too. Thanks.