Need help with RT73 driver for CentOS v4.7

Issues related to configuring your network
Post Reply
teknomage
Posts: 1
Joined: 2010/02/23 17:03:58

Need help with RT73 driver for CentOS v4.7

Post by teknomage » 2010/02/23 17:24:33

Hi, I recently bought a TP-Link Wireless USB adapter TL-WN321G and since the accompanying CD did not have drivers for Linux, I downloaded the firmware source package from the TP-Link website. I am using CentOS v4.7 Final Release (2.6.9-89.0.20.EL) on an Athlon processor. Ever since I downloaded the firmware, I've been trying to compile the RT73 driver source on my system, but to no avail. I followed the instructions provided in the Readme but when I type in the line "make all", this is the error I receive:

[root@localhost Module]# make all
make -C /lib/modules/2.6.9-89.0.20.EL/build SUBDIRS=/home/TPLink/TL-WN321G_Linux /Module modules
make[1]: Entering directory `/usr/src/kernels/2.6.9-89.0.20.EL-i686'
CC [M] /home/TPLink/TL-WN321G_Linux/Module/rtmp_main.o
/home/TPLink/TL-WN321G_Linux/Module/rtmp_main.c:46: warning: `MODULE_PARM_' is d eprecated (declared at include/linux/module.h:554)
/home/TPLink/TL-WN321G_Linux/Module/rtmp_main.c:120: error: syntax error before "pm_message_t"
/home/TPLink/TL-WN321G_Linux/Module/rtmp_main.c:120: warning: function declarati on isn't a prototype
/home/TPLink/TL-WN321G_Linux/Module/rtmp_main.c:149: error: syntax error before "pm_message_t"
/home/TPLink/TL-WN321G_Linux/Module/rtmp_main.c:150: warning: function declarati on isn't a prototype
/home/TPLink/TL-WN321G_Linux/Module/rtmp_main.c: In function `rt73_suspend':
/home/TPLink/TL-WN321G_Linux/Module/rtmp_main.c:155: error: `intf' undeclared (f irst use in this function)
/home/TPLink/TL-WN321G_Linux/Module/rtmp_main.c:155: error: (Each undeclared ide ntifier is reported only once
/home/TPLink/TL-WN321G_Linux/Module/rtmp_main.c:155: error: for each function it appears in.)
make[2]: *** [/home/TPLink/TL-WN321G_Linux/Module/rtmp_main.o] Error 1
make[1]: *** [_module_/home/TPLink/TL-WN321G_Linux/Module] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.9-89.0.20.EL-i686'
make: *** [all] Error 2

I've tried different variations of the RT73 driver that I could find on the net and I have not succeeded so far. I really need to get this TP-Link USB adapter working on my system, so if anyone here can help me figure this out, that'd be great... OR even better, it'd be awesome if I could get already compiled driver for my version of Centos.

If you require any further details, please do let me know...

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Need help with RT73 driver for CentOS v4.7

Post by pschaff » 2010/02/24 18:02:40

Welcome to the CentOS fora.

If running that kernel you are presumably running 4.8 - the current CentOS-4 release. If not you should update the rest of the system.

As to your problem, you should not be building as root. Only installation should be done as root. See the [url=http://wiki.centos.org/HowTos/BuildingKernelModules]Wiki article on building kernel modules[/url] for more information.

My guess is that the supplied code is not compatible with the kernel version.

You would probably have a better shot at getting it to work with CentOS-5 which includes an rt73usb driver.
https://www.centos.org/modules/newbb/viewtopic.php?topic_id=24203&forum=38&post_id=95747#forumpost95747

You will also need the [url=http://elrepo.org/tiki/tiki-index.php?page=rt73usb-firmware]firmware[/url].

User avatar
AlanBartlett
Forum Moderator
Posts: 9320
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: Need help with RT73 driver for CentOS v4.7

Post by AlanBartlett » 2010/02/24 19:16:11

Just for the record, I have downloaded a copy of the same tarball and performed three test builds.

(1) For kernel-2.6.9-89.0.20.ELsmp, on an up to date [i]C-4[/i] system, the build will fail.
(2) For kernel-2.6.18-164.11.1.el5, on an up to date [i]C-5[/i] system, the build will succeed with a number of warnings.
(3) For kernel 2.6.32.8, using the latest stable mainline kernel on a test system, the build will fail.

My conclusion: It is a, poor, badly written source code package that should be avoided. :-x

Post Reply