rt2x00 compile error

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

distant.origin

03-01-2008 02:04:19

Hi,

I'm new to linux and I've just switched to gutsy ubuntu.
I've been trying to get monitor mode working on my RT61. Installed the RT61pci driver, but that doesnt support monitor mode? Correct?

So I've been trying to get the rt2x00 driver working, but i can't make it properly. i get

[code22ckmqu5]
CC [M] /home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.o
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:33:32: error: linux/eeprom_93cx6.h: No such file or directory
In file included from /home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:35:
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2x00.h:400: error: field ‘conf’ has incomplete type
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2x00.h:420: warning: ‘struct ieee80211_vif’ declared inside parameter list
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2x00.h:420: warning: its scope is only this definition or declaration, which is probably not what you want
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2x00.h: In function ‘vif_to_intf’:
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2x00.h:422: error: dereferencing pointer to incomplete type
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2x00.h: At top level:
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2x00.h:957: warning: ‘struct ieee80211_vif’ declared inside parameter list
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2x00.h:965: warning: ‘struct ieee80211_vif’ declared inside parameter list
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:160: warning: ‘struct eeprom_93cx6’ declared inside parameter list
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c: In function ‘rt2400pci_eepromregister_read’:
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:162: error: dereferencing pointer to incomplete type
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:167: error: dereferencing pointer to incomplete type
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:168: error: dereferencing pointer to incomplete type
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:169: error: dereferencing pointer to incomplete type
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:171: error: dereferencing pointer to incomplete type
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c: At top level:
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:175: warning: ‘struct eeprom_93cx6’ declared inside parameter list
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c: In function ‘rt2400pci_eepromregister_write’:
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:177: error: dereferencing pointer to incomplete type
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:180: error: dereferencing pointer to incomplete type
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:181: error: dereferencing pointer to incomplete type
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:183: error: dereferencing pointer to incomplete type
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:185: error: dereferencing pointer to incomplete type
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c: In function ‘rt2400pci_fill_rxdone’:
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:1065: error: ‘RX_FLAG_FAILED_FCS_CRC’ undeclared (first use in this function)
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:1065: error: (Each undeclared identifier is reported only once
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:1065: error: for each function it appears in.)
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:1067: error: ‘RX_FLAG_FAILED_PLCP_CRC’ undeclared (first use in this function)
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c: In function ‘rt2400pci_validate_eeprom’:
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:1174: error: storage size of ‘eeprom’ isn’t known
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:1185: error: ‘PCI_EEPROM_WIDTH_93C46’ undeclared (first use in this function)
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:1185: error: ‘PCI_EEPROM_WIDTH_93C66’ undeclared (first use in this function)
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:1191: warning: implicit declaration of function ‘eeprom_93cx6_multiread’
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:1199: warning: implicit declaration of function ‘DECLARE_MAC_BUF’
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:1199: error: ‘macbuf’ undeclared (first use in this function)
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:1202: warning: implicit declaration of function ‘print_mac’
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:1202: warning: format ‘%s’ expects type ‘char *’, but argument 5 has type ‘int’
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:1174: warning: unused variable ‘eeprom’
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c: At top level:
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:1383: warning: ‘struct dev_addr_list’ declared inside parameter list
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c: In function ‘rt2400pci_configure_filter’:
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:1393: error: ‘FIF_ALLMULTI’ undeclared (first use in this function)
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:1394: error: ‘FIF_FCSFAIL’ undeclared (first use in this function)
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:1395: error: ‘FIF_PLCPFAIL’ undeclared (first use in this function)
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:1396: error: ‘FIF_CONTROL’ undeclared (first use in this function)
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:1397: error: ‘FIF_OTHER_BSS’ undeclared (first use in this function)
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:1398: error: ‘FIF_PROMISC_IN_BSS’ undeclared (first use in this function)
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c: At top level:
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:1509: error: unknown field ‘start’ specified in initializer
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:1510: warning: initialisation from incompatible pointer type
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:1514: warning: initialisation from incompatible pointer type
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:1515: error: unknown field ‘configure_filter’ specified in initializer
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:1515: warning: initialisation from incompatible pointer type
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:1518: error: unknown field ‘bss_info_changed’ specified in initializer
/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.c:1518: warning: initialisation from incompatible pointer type
make[2]: *** [/home/albert/Desktop/rt2x00-cvs-2008010219/rt2400pci.o] Error 1
make[1]: *** [_module_/home/albert/Desktop/rt2x00-cvs-2008010219] Error 2
make: *** [default] Error 2
[/code22ckmqu5]

i'm not sure if this has anything to do with me http//rt2x00.serialmonkey.com/phpBB2/v ... php?t=4190

Still can't quite figure out what to do. Newbie help would be appreciated.

Thanks!

IvD

03-01-2008 18:56:35


I'm new to linux and I've just switched to gutsy ubuntu.
I've been trying to get monitor mode working on my RT61. Installed the RT61pci driver, but that doesnt support monitor mode? Correct?
[/quote2fljux2f]

No, rt61 does support monitor mode.


So I've been trying to get the rt2x00 driver working, but i can't make it properly. i get
[/quote2fljux2f]

What kernel version do you have? And why do I have the feeling that you edited rt2x00_compat.h to bypass compatibility fixes?

distant.origin

03-01-2008 21:14:46

I'm running 2.6.22-14-generic

I'm pretty sure I haven't edited anything... Wouldn't know how to bypass compatibility fixes anyway.. D

Thanks!

IvD

03-01-2008 22:03:19

Strange, anyway 2.6.22 is not sufficient for rt2x00.
Check the README that came with rt2x00 and you will see what kernel config options you need to enable in a 2.6.24 kernel.

distant.origin

04-01-2008 04:38:45

I've upgraded the kernel to 2.6.24-rc6-kernelcheck
still having problems

[code1dgmyxew] CC [M] /home/albert/Desktop/rt2x00-cvs-2008010314/rt2400pci.o
In file included from /home/albert/Desktop/rt2x00-cvs-2008010314/rt2x00.h:38,
from /home/albert/Desktop/rt2x00-cvs-2008010314/rt2400pci.c:35:
include/net/mac80211.h:268:1: warning: "IEEE80211_TXCTL_LONG_RETRY_LIMIT" redefined
In file included from <command line>:1:
/home/albert/Desktop/rt2x00-cvs-2008010314/rt2x00_compat.h:66:1: warning: this is the location of the previous definition
In file included from /home/albert/Desktop/rt2x00-cvs-2008010314/rt2400pci.c:35:
/home/albert/Desktop/rt2x00-cvs-2008010314/rt2x00.h:400: error: field ‘conf’ has incomplete type
/home/albert/Desktop/rt2x00-cvs-2008010314/rt2x00.h:420: warning: ‘struct ieee80211_vif’ declared inside parameter list
/home/albert/Desktop/rt2x00-cvs-2008010314/rt2x00.h:420: warning: its scope is only this definition or declaration, which is probably not what you want
/home/albert/Desktop/rt2x00-cvs-2008010314/rt2x00.h: In function ‘vif_to_intf’:
/home/albert/Desktop/rt2x00-cvs-2008010314/rt2x00.h:422: error: dereferencing pointer to incomplete type
/home/albert/Desktop/rt2x00-cvs-2008010314/rt2x00.h: At top level:
/home/albert/Desktop/rt2x00-cvs-2008010314/rt2x00.h:957: warning: ‘struct ieee80211_vif’ declared inside parameter list
/home/albert/Desktop/rt2x00-cvs-2008010314/rt2x00.h:965: warning: ‘struct ieee80211_vif’ declared inside parameter list
/home/albert/Desktop/rt2x00-cvs-2008010314/rt2400pci.c:1514: warning: initialisation from incompatible pointer type
/home/albert/Desktop/rt2x00-cvs-2008010314/rt2400pci.c:1518: error: unknown field ‘bss_info_changed’ specified in initializer
/home/albert/Desktop/rt2x00-cvs-2008010314/rt2400pci.c:1518: warning: initialisation from incompatible pointer type
make[2]: *** [/home/albert/Desktop/rt2x00-cvs-2008010314/rt2400pci.o] Error 1
make[1]: *** [_module_/home/albert/Desktop/rt2x00-cvs-2008010314] Error 2
make: *** [default] Error 2
[/code1dgmyxew]

what now?

IvD

04-01-2008 19:08:19

http//rt2x00.serialmonkey.com/phpBB2/v ... php?t=4537

distant.origin

11-01-2008 07:13:36

sorry for the delay.. been away.

still the same error with the git.

just wondering, is there any way i can get it to compile with the vanilla kernel? i don't feel like downloading the git every time i install the drivers on a separate computer, etc..

alex-it

11-01-2008 10:08:20

just wondering, is there any way i can get it to compile with the vanilla kernel? i don't feel like downloading the git every time i install the drivers on a separate computer, etc..[/quote2j3xu6p1]Yes, it is.
http//linuxwireless.org/en/users/Download

Works great on my Gutsy wink

distant.origin

11-01-2008 11:10:23

That's quite cool. Thanks for that.
hmm. still doesn't compile.

well, i think i'm using the in kernel drivers now, but i can set monitor mode using iwconfig, and that shows up, but airmon doesn't recognise the card. Not sure where the problem lies..

alex-it

11-01-2008 12:52:00

That's quite cool. Thanks for that.
hmm. still doesn't compile.[/quote1mi8ncda]
Check you have build-essential and kernel headers
[code1mi8ncda]sudo apt-get install build-essential linux-headers-$(uname -r)[/code1mi8ncda]
Then follow the instructions

You can verify a successfully upgrading with
[code1mi8ncda]modinfo rt61pci | grep version[/code1mi8ncda] which should look like that
[code1mi8ncda]version: 2.0.14[/code1mi8ncda]