LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 03-23-2007, 07:37 AM   #1
damber
Member
 
Registered: Nov 2006
Location: UK
Distribution: RHEL/CentOS, Ubuntu, Mint
Posts: 46

Rep: Reputation: 15
Angry 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
 
Old 03-26-2007, 06:39 PM   #2
kaz2100
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: Reputation: 108Reputation: 108
Did you try serialmonkey driver?

Happy Penguins!
 
Old 03-27-2007, 04:38 AM   #3
damber
Member
 
Registered: Nov 2006
Location: UK
Distribution: RHEL/CentOS, Ubuntu, Mint
Posts: 46

Original Poster
Rep: Reputation: 15
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
 
Old 03-27-2007, 09:44 PM   #4
kaz2100
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: Reputation: 108Reputation: 108
http://rt2x00.serialmonkey.com/wiki/index.php/Main_Page

If you have been tried this, check your system again.

Happy Penguins!
 
Old 03-30-2007, 07:12 PM   #5
damber
Member
 
Registered: Nov 2006
Location: UK
Distribution: RHEL/CentOS, Ubuntu, Mint
Posts: 46

Original Poster
Rep: Reputation: 15
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 ?
 
Old 03-31-2007, 07:08 PM   #6
kaz2100
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: Reputation: 108Reputation: 108
Hya,

I am sorry to hear your story. Do you see anything suspicious in any log?

Happy Penguins!
 
Old 04-14-2007, 04:00 PM   #7
aquayol
LQ Newbie
 
Registered: Apr 2007
Posts: 2

Rep: Reputation: 0
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.
 
Old 04-14-2007, 07:52 PM   #8
kaz2100
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: Reputation: 108Reputation: 108
Hya,

Cool.

I think you (or we, but I do not know how to) should submit bug report.

Happy Penguins!
 
Old 04-15-2007, 11:16 AM   #9
damber
Member
 
Registered: Nov 2006
Location: UK
Distribution: RHEL/CentOS, Ubuntu, Mint
Posts: 46

Original Poster
Rep: Reputation: 15
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:
Code:
rt73                  192896  0
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.
 
Old 04-16-2007, 02:02 AM   #10
aquayol
LQ Newbie
 
Registered: Apr 2007
Posts: 2

Rep: Reputation: 0
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 */
 
Old 04-16-2007, 04:37 AM   #11
damber
Member
 
Registered: Nov 2006
Location: UK
Distribution: RHEL/CentOS, Ubuntu, Mint
Posts: 46

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems compiling Neutrino on FC6 kahlil88 Linux - Software 8 01-03-2007 01:24 AM
Compiling and installing RT73 driver on Slackware 10.2 txr13 Linux - Wireless Networking 7 12-31-2006 06:38 AM
Problem compiling RT73 driver maxmike83 Fedora 1 11-29-2006 10:20 AM
problems installing ati driver in fc6 raim1312 Linux - Hardware 2 11-20-2006 12:04 AM
Driver compiling problems silverline Linux - Hardware 1 03-12-2004 04:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 06:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration