Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-23-2007, 07:37 AM
|
#1
|
Member
Registered: Nov 2006
Location: UK
Distribution: RHEL/CentOS, Ubuntu, Mint
Posts: 46
Rep:
|
Problems Compiling RaLink's RT73 Linux Driver on FC6
I'm having problems compiling the RaLink RT73 drivers for my EDIMAX EW-7318Ug wifi USB.
Error:
Code:
make -C /lib/modules/2.6.20-1.2925.fc6/build SUBDIRS=/home/damber/Desktop/RT73_Linux_STA_Drv1.0.3.6/Module modules
make[1]: Entering directory `/usr/src/kernels/2.6.20-1.2925.fc6-i686'
CC [M] /home/damber/Desktop/RT73_Linux_STA_Drv1.0.3.6/Module/rtmp_main.o
/home/damber/Desktop/RT73_Linux_STA_Drv1.0.3.6/Module/rtmp_main.c: In function ‘usb_rtusb_probe’:
/home/damber/Desktop/RT73_Linux_STA_Drv1.0.3.6/Module/rtmp_main.c:2065: error: ‘struct net_device’ has no member named ‘get_wireless_stats’
/home/damber/Desktop/RT73_Linux_STA_Drv1.0.3.6/Module/rtmp_main.c:2085: warning: unused variable ‘device’
make[2]: *** [/home/damber/Desktop/RT73_Linux_STA_Drv1.0.3.6/Module/rtmp_main.o] Error 1
make[1]: *** [_module_/home/damber/Desktop/RT73_Linux_STA_Drv1.0.3.6/Module] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.20-1.2925.fc6-i686'
make: *** [all] Error 2
uname -r:
2.6.20-1.2925.fc6
kernel packages:
kernel-devel-2.6.20-1.2925.fc6
kernel-2.6.20-1.2925.fc6
kernel-headers-2.6.20-1.2925.fc6
It seems that either the source code has one or two bugs and referencing none existent variables etc, or that it isn't referencing the kernel source /headers properly.
Any ideas on how I can resolve this ? Your thoughts would be appreciated.
(...I seem to be doomed where linux and wifi are concered....... :-( )
Thanks
|
|
|
03-26-2007, 06:39 PM
|
#2
|
Senior Member
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,837
Rep:
|
Did you try serialmonkey driver?
Happy Penguins!
|
|
|
03-27-2007, 04:38 AM
|
#3
|
Member
Registered: Nov 2006
Location: UK
Distribution: RHEL/CentOS, Ubuntu, Mint
Posts: 46
Original Poster
Rep:
|
mmm - not sure - it sounds familiar, and I tried 2, the open source ones as part of a sourceforge project and the ones from the RaLink website - both had the same result.
Is this what you're referring to, or could you post a link ?
Cheers
|
|
|
03-27-2007, 09:44 PM
|
#4
|
Senior Member
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,837
Rep:
|
http://rt2x00.serialmonkey.com/wiki/index.php/Main_Page
If you have been tried this, check your system again.
Happy Penguins!
|
|
|
03-30-2007, 07:12 PM
|
#5
|
Member
Registered: Nov 2006
Location: UK
Distribution: RHEL/CentOS, Ubuntu, Mint
Posts: 46
Original Poster
Rep:
|
Thanks for getting back to me. Although it looks very familiar, I tried the serial monkey driver again, and it compiled.... however the system becomes very unstable.. short freezes, keyboard repeats/lock-ups etc - and worst of all, I can't even get the interface up/connected. Obviously doesn't like the module.
So I tried with the driver from RaLink (may be the 'open source' version on Sourceforge) - same error as above. So I downloaded the tarball directly from RaLinks website and it still doesn't compile, but throws many more error messages whilst trying to 'make'....
Am I missing something really obvious here ?
|
|
|
03-31-2007, 07:08 PM
|
#6
|
Senior Member
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,837
Rep:
|
Hya,
I am sorry to hear your story. Do you see anything suspicious in any log?
Happy Penguins!
|
|
|
04-14-2007, 04:00 PM
|
#7
|
LQ Newbie
Registered: Apr 2007
Posts: 2
Rep:
|
new kernel headers
CC [M] /home/damber/Desktop/RT73_Linux_STA_Drv1.0.3.6/Module/rtmp_main.o
/home/damber/Desktop/RT73_Linux_STA_Drv1.0.3.6/Module/rtmp_main.c: In function ‘usb_rtusb_probe’:
/home/damber/Desktop/RT73_Linux_STA_Drv1.0.3.6/Module/rtmp_main.c:2065: error: ‘struct net_device’ has no member named ‘get_wireless_stats’
The problem comes from a change in some "wireless extensions" structures from the kernel-headers
Edit your rtmp_main.c file and change line 2065 this "get_wireless_stats" in "get_stats"
It compiled and worked for me after this.
|
|
|
04-14-2007, 07:52 PM
|
#8
|
Senior Member
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,837
Rep:
|
Hya,
Cool.
I think you (or we, but I do not know how to) should submit bug report.
Happy Penguins!
|
|
|
04-15-2007, 11:16 AM
|
#9
|
Member
Registered: Nov 2006
Location: UK
Distribution: RHEL/CentOS, Ubuntu, Mint
Posts: 46
Original Poster
Rep:
|
thanks aquayol, that's got it to compile. :-)
unfortunately, it still isn't playing ball...
I've inserted the module rt73.ko (for the 2.6 kernel), and I get this in dmesg:
Code:
rtusb init ====>
usbcore: registered new interface driver rt73
However, no rausb0 device is created/found .. ? ifconfig/iwconfig provide only the standard eth0 and loopback devices
lsusb returns:
Code:
Bus 001 Device 006: ID 148f:2573 Ralink Technology, Corp.
lsmod returns:
So, it does seem as though it has loaded the module, initialised the driver, etc, but not created rausb0... any ideas on what to check next ?
To insert the module and load the device I'm using the ralink script 'load':
Code:
/sbin/insmod rt73.ko
/sbin/ifconfig rausb0 inet x.x.x.x up
/sbin/route add default gw x.x.x.x
This results in the following errors:
Code:
SIOCSIFADDR: No such device
rausb0: unknown interface: No such device
rausb0: unknown interface: No such device
SIOCADDRT: File exists
Last edited by damber; 04-15-2007 at 11:30 AM.
|
|
|
04-16-2007, 02:02 AM
|
#10
|
LQ Newbie
Registered: Apr 2007
Posts: 2
Rep:
|
I am not sure it will help, but try these two things :
1° try it with wlan0 instead of rausb0
2° From what you describe it seems your usb card, even if detected does not get associated to the driver, by me : lsusb returns : Bus 001 Device 002: ID 050d:705a Belkin Components and this card was not listed in the original driver
look in the "VID/PID" section of the rtmp_def.h (by the end of file, about line 800) and please check the presence of your card ID (should be there) <- as by me i can find your card, it does not seem to be the problem ...
Code:
//-------------------
// VID/PID
//-------------------
#define RT73_USB_DEVICES { \
{USB_DEVICE(0x148f,0x2573)}, /* Ralink */ \
{USB_DEVICE(0x050d,0x705a)}, /* my */ \
.......
{USB_DEVICE(0,0)}} /* end marker */
|
|
|
04-16-2007, 04:37 AM
|
#11
|
Member
Registered: Nov 2006
Location: UK
Distribution: RHEL/CentOS, Ubuntu, Mint
Posts: 46
Original Poster
Rep:
|
Thanks again for the ideas.
Unfortunately no luck - the device ID is present in the file you mentioned (the first one actually), and ifconfig only returns eth0 and lo so no wlan0 - I tried wlan0 anyway, but no joy.
|
|
|
All times are GMT -5. The time now is 06:23 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|