LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 10-07-2012, 07:55 AM   #1
Steve W
Member
 
Registered: Mar 2007
Distribution: Ubuntu 12.04, Mint 12 LXDE
Posts: 431

Rep: Reputation: 36
Texet Wireless adaptor USB not working


I just purchased the above adaptor to connect my desktop PC, running Ubuntu 11.04, to my new wireless modem. The adaptor comes with a little CD of Windows drivers, so after installing it works on Windows XP on the same computer (it's a dual boot), but not Ubuntu 11.04. it just ignores it completely. The back of the packet does state that it works in Linux (and the usual OS's).

Having plugged my ethernet cable back in again, a Google search reveals a thread on this exact issue: http://ubuntuforums.org/showthread.php?t=1791972

However, contrary to the optimistic post of one individual, this device does not "work out of the box on ubuntu 11.04". Unless by out of the box, he means "once suitably configured".

With regard to the questions the gurus on that forum asked, "lsusb" produces:

Bus 001 Device 006: ID 148f:5370 Ralink Technology, Corp

... which is the manufacturer of the device, so it is being recognised. I also checked the Additional Drivers section in Ubuntu, but it came up empty.

The thread ends with the OP realising that he has 10.04 and would need extra drivers, then posting that he "installed 11.04, wireless works out of the box."

Well, lucky him! It doesn't work out of any box for me!

Does anyone have any suggestions? Thank you for any help you can give.
 
Old 10-07-2012, 08:37 AM   #2
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,840

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
The driver for that device is called
Quote:
rt5370sta.ko
If another user claims the device worked out of the box, the driver must be part of 11.04.

Try to load the module, with the command 'sudo modprobe rt5370.ko' and see what happens. If you get no output, your module loaded. If you do not have the module, you will get output saying not found.

If its not in the repos ( must be or the other guy is full of it ) then yo can download it and compile it. I found several How to links by googling
Quote:
linux driver for ID 148f:5370 Ralink Technology, Corp
You can check to see if the module is loaded at any time with the command 'sudo lsmod | grep rt5370' ( all commands without quotes ).

Once loaded, you still have to configure it to connect to your wireless access point. Network Manager is the tool supplied with Ubuntu. You can config it in there.
 
Old 10-07-2012, 09:02 AM   #3
Steve W
Member
 
Registered: Mar 2007
Distribution: Ubuntu 12.04, Mint 12 LXDE
Posts: 431

Original Poster
Rep: Reputation: 36
Thank you for your reply. "sudo modprobe rt5370.ko" did come up not found.

I had a look at the accompanying CD, and surprisingly there are drivers supplied for Linux in there. However, for someone like me it is far from "out of the box", as the drivers are in .c format, with makefiles etc, so presumably need to be compiled by hand.

The quite complex Readme file states that the driver supplied is rt2870.o/rt2870.ko, Linux kernel 2.4 and 2.6 series, tested in Redhat 7.3 or later.

Here is an excerpt from the build instructions:

Quote:
1> $tar -xvzf DPB_RT2870_Linux_STA_x.x.x.x.tgz
go to "./DPB_RT2870_Linux_STA_x.x.x.x" directory.

2> In Makefile
set the "MODE = STA" in Makefile and chose the TARGET to Linux by set "TARGET = LINUX"
define the linux kernel source include file path LINUX_SRC
modify to meet your need.

3> In os/linux/config.mk
define the GCC and LD of the target machine
define the compiler flags CFLAGS
modify to meet your need.
** Build for being controlled by NetworkManager or wpa_supplicant wext functions
Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y'.
=> #>cd wpa_supplicant-x.x
=> #>./wpa_supplicant -Dwext -ira0 -c wpa_supplicant.conf -d
** Build for being controlled by WpaSupplicant with Ralink Driver
Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n'.
=> #>cd wpa_supplicant-0.5.7
=> #>./wpa_supplicant -Dralink -ira0 -c wpa_supplicant.conf -d
And so it goes on. You gotta be kidding me. This is the reason people still say Linux is not suitable for mainstream desktop use: peripheral makers! Windows users, by contrast, get a nice executable installer program for this device.


Could I impose on a kind soul on this forum to guide me through the compilation and installation process for these drivers? I don't want to mess around with the network settings and mess up my wired connection inadvertently.
 
Old 10-07-2012, 09:27 AM   #4
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,840

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
That is not a very new chip set. Since another user got it to go 'out of the box', I have to believe the driver is in the repos for Ubuntu. The problem may be the name of the package. Typically, several drivers are in one package, and the name of the package may not be all that clear on what is in the package.

I no longer run Ubuntu, so I do not have a system to look with.

Suggestions. 1. Try another command, 'sudo modprobe rt5370' ( leave the .ko off ) there is a chance the file has a different extension. If it still not found, then...

2. Search with Synaptic package manager with works like 'wireless' 'drivers'. I would guess that may produce a longer list of packages. There should be some kind of description of each package. It will take some time, you are looking for 'rt5370'.

Quote:
Windows users, by contrast, get a nice executable installer program for this device.
True enough, since windoze is closed source, if the driver exists. I've been at this game a long time, try to find an older driver, or something on the bleeding edge. You have no option with Bills code. At least linux you can get the source and compile.

There are instructions tailored to Ubuntu, if you try my suggestion of googling. They are less cryptic for a new user. Getting your first compile to run successfully is 'Freedom from microbucks'.
 
Old 10-12-2012, 05:20 AM   #5
Steve W
Member
 
Registered: Mar 2007
Distribution: Ubuntu 12.04, Mint 12 LXDE
Posts: 431

Original Poster
Rep: Reputation: 36
I followed the instructions here: http://ubuntuforums.org/showthread.php?t=1958673

... near the bottom, which said:

"I believe you just need to enable the driver for your USB Adapter. Open up a terminal and type: sudo modprobe rt2870sta

Then type: gksudo gedit /etc/modules

A text editor should open up, at the end just type rt2870sta and then save it, close it and restart your computer."

After typing the modprobe line, for a change I did not get a not found message. However, I edited that "modules" file as instructed, I have also set up the wireless details in Ubuntu network connections dialog, entering the SSID and the wireless key.

Still no joy. So, does the modprobe instruction "turn on" the driver then?

Also, I followed the instructions here for compiling the driver supplied with the device: http://forums.bodhilinux.com/index.p...post__p__42733

After rebooting, it still doesn't work. The thread advises posting the output of dmesg | grep rt53; which for me, doesn't look good:

[ 21.249569] rt5370sta: module license 'unspecified' taints kernel.
[ 21.250448] rt5370sta: Unknown symbol usb_alloc_urb (err 0)
[ 21.250573] rt5370sta: Unknown symbol usb_free_urb (err 0)
[ 21.250780] rt5370sta: Unknown symbol usb_alloc_coherent (err 0)
[ 21.251053] rt5370sta: Unknown symbol usb_register_driver (err 0)
[ 21.251365] rt5370sta: Unknown symbol usb_put_dev (err 0)
[ 21.251472] rt5370sta: Unknown symbol usb_get_dev (err 0)
[ 21.251659] rt5370sta: Unknown symbol usb_submit_urb (err 0)
[ 21.251935] rt5370sta: Unknown symbol usb_free_coherent (err 0)
[ 21.252248] rt5370sta: Unknown symbol usb_control_msg (err 0)
[ 21.252582] rt5370sta: Unknown symbol usb_deregister (err 0)
[ 21.253023] rt5370sta: Unknown symbol usb_kill_urb (err 0)
[ 276.278819] rt5370sta: Unknown symbol usb_alloc_urb (err 0)
[ 276.278966] rt5370sta: Unknown symbol usb_free_urb (err 0)
[ 276.279175] rt5370sta: Unknown symbol usb_alloc_coherent (err 0)
[ 276.279448] rt5370sta: Unknown symbol usb_register_driver (err 0)
[ 276.279761] rt5370sta: Unknown symbol usb_put_dev (err 0)
[ 276.279868] rt5370sta: Unknown symbol usb_get_dev (err 0)
[ 276.280086] rt5370sta: Unknown symbol usb_submit_urb (err 0)
[ 276.280590] rt5370sta: Unknown symbol usb_free_coherent (err 0)
[ 276.280871] rt5370sta: Unknown symbol usb_control_msg (err 0)
[ 276.281204] rt5370sta: Unknown symbol usb_deregister (err 0)
[ 276.281645] rt5370sta: Unknown symbol usb_kill_urb (err 0)

Can anyone tell me what's wrong, please?

Last edited by Steve W; 10-12-2012 at 05:47 AM.
 
Old 10-12-2012, 08:34 AM   #6
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,840

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
Quote:
Still no joy. So, does the modprobe instruction "turn on" the driver then?
The modprobe command loads the module ( driver ) into the kernel, so the code can run. Once loaded, ifconfig and iwconfig should show information for your wireless card.

Here is a link to a thread, where the dmesg output shows the 'tainted' message you have, with a fix.

-->http://www.linuxforums.org/forum/wir...el-solved.html

Hope this helps.
 
Old 10-12-2012, 01:11 PM   #7
Steve W
Member
 
Registered: Mar 2007
Distribution: Ubuntu 12.04, Mint 12 LXDE
Posts: 431

Original Poster
Rep: Reputation: 36
I did the amendments to the files as specified in that link, recompiled and rebooted. Still nothing, although when I do "sudo modprobe rt5370sta" now, I get:

FATAL: Error inserting rt5370sta (/lib/modules/2.6.38-8-generic/kernel/drivers/net/wireless/rt5370sta.ko): Device or resource busy

Well, it might be busy, but it's not busy giving me wireless connections! Does this mean that the driver is now in place, but not getting started somehow? Also "dmesg | grep rt53" now produces nothing, so I guess that's a good thing.

Is there any other command I could type in, and give you the result of, that might indicate where the sticking point is? "iwconfig" shows:

lo no wireless extensions.
eth0 no wireless extensions.

Thank you for your patience on this matter.

Last edited by Steve W; 10-12-2012 at 01:13 PM.
 
Old 10-12-2012, 01:25 PM   #8
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,840

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
Quote:
FATAL: Error inserting rt5370sta (/lib/modules/2.6.38-8-generic/kernel/drivers/net/wireless/rt5370sta.ko): Device or resource busy
Did you make sure there was not a module loaded before you tried to modprobe the new module?

Could you boot the system, and before you try anything, run the command 'sudo lsmod' copy and paste the results. I'm wondering it there is some other module that is loaded, causing the 'busy' condition.
 
Old 10-13-2012, 03:15 AM   #9
Steve W
Member
 
Registered: Mar 2007
Distribution: Ubuntu 12.04, Mint 12 LXDE
Posts: 431

Original Poster
Rep: Reputation: 36
Okay, I did this command before anything else. The output is:

Code:
Module                  Size  Used by
binfmt_misc            13213  1 
snd_hda_codec_realtek   255820  1 
snd_hda_intel          24140  2 
snd_hda_codec          90901  2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep              13274  1 snd_hda_codec
snd_pcm                80244  2 snd_hda_intel,snd_hda_codec
snd_seq_midi           13132  0 
snd_rawmidi            25269  1 snd_seq_midi
snd_seq_midi_event     14475  1 snd_seq_midi
snd_seq                51291  2 snd_seq_midi,snd_seq_midi_event
snd_timer              28659  2 snd_pcm,snd_seq
i915                  450944  2 
snd_seq_device         14110  3 snd_seq_midi,snd_rawmidi,snd_seq
ppdev                  12849  0 
parport_pc             32111  1 
snd                    55295  13 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
drm_kms_helper         40745  1 i915
drm                   180037  3 i915,drm_kms_helper
rt2870sta             410104  0 
soundcore              12600  1 snd
snd_page_alloc         14073  2 snd_hda_intel,snd_pcm
crc_ccitt              12595  1 rt2870sta
i2c_algo_bit           13184  1 i915
video                  18951  1 i915
lp                     13349  0 
parport                36746  3 ppdev,parport_pc,lp
usbhid                 41704  0 
hid                    77084  1 usbhid
r8169                  42534  0
I note that rt2870sta is loaded, then. But in the directory /lib/modules/2.6.38-8-generic/kernel/drivers/net/wireless, the file present is called "rt5370sta.ko". This switching around with the names of the various drivers (5370 to 2870 etc) is prevalent throughout the driver software supplied with the device. The actual directory for the drivers on the supplied CD has the string "RT5370_RT5372" within its filename, but there seem interchangable references between "28" series and "53" series drivers all over the place. Is it possible that in one place or another, I'm interchanging references to the two where I shouldn't?

Last edited by Steve W; 10-13-2012 at 04:38 AM.
 
Old 10-13-2012, 08:39 AM   #10
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,840

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
rt2780sta is loaded already. You are trying to load rt5370sta a different driver. They are conflicting with each other.

To have any chance of loading the new driver, you are going to have to blacklist the old driver.

See this post. -->http://www.linuxquestions.org/questi...rt2870-918706/

It is rather long, however, this person fought the same battle. Post #7 has a link to Ubuntu forum, and a user who got the same chip set working.

On my Slackware systems, modules are blacklisted in /usr/etc/modprobe.d/blacklist.conf file. I don't run Ubuntu, so you will have to look into how to blacklist in Ubuntu. It could be the same, I'm not sure.
 
Old 10-14-2012, 09:35 AM   #11
Steve W
Member
 
Registered: Mar 2007
Distribution: Ubuntu 12.04, Mint 12 LXDE
Posts: 431

Original Poster
Rep: Reputation: 36
Oh, give me strength....!

I had an idea for an alternative strategy. I downloaded Sabayon 10 Mate, and wrote it to a bootable USB stick. Sabayon, according to their publicity, pride themselves on "out of the box" usability. I booted up Live from the USB, and it located and recognised the USB wireless stick straight away. I'm typing this message using it now.

I'm going to install this distro to my hard drive, and use it as my main distro. My Ubuntu currently installed is 11.04, which is soon going out of date anyway, and I'm not sure why the other guy said it worked "out of the box" with 11.04 when mine doesn't. However with Sabayon 10 Mate, not only do I get my "standard Ubuntu" Gnome 2 layout (Applications, Places, System across the top, not the Gnome 3 desktop), but the wireless stick works without having to install anything. Result.

Thank you, Camorri, for your patient tutoring of my problem. I am not sure why this USB wireless stick did not want to work in the first instance; maybe I did not have it configured properly in Ubuntu and my installing a different driver just confused things.

But anyway, I should be thinking of installing an updated Linux distro anyway, so finding Sabayon 10 seems to have solved both problems.

Thank you for your patience and your help, Camorri.

Last edited by Steve W; 10-14-2012 at 09:36 AM.
 
Old 10-14-2012, 10:03 AM   #12
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,840

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
First of all, let me say I'm happy you have found a way in linux to get things working. That said, it appears from the threads I have read, some USB cards with your chip set do in fact work out of the box on Ubuntu 11.04, and some do not.

What the differences are, would take a lot more investigation.

Quote:
Thank you, Camorri, for your patient tutoring of my problem.
You are most welcome, I'm always happy to assist.

I don't think the problems you saw were just from configuration, for what that's worth.

Hope Sabayon goes well for you.
 
Old 10-17-2012, 11:11 AM   #13
Steve W
Member
 
Registered: Mar 2007
Distribution: Ubuntu 12.04, Mint 12 LXDE
Posts: 431

Original Poster
Rep: Reputation: 36
Quote:
Hope Sabayon goes well for you.
Doesn't look like it will! I'm getting a bug report when I try to install it. Googling reveals that installation problems with Sabayon are quite common, and on their Forums a frustrated user was told "no one here knows why it won't work, file a bug report"!

The LQ Sabayon forum does not look too busy, and I don't think Sabayon is a massively popular distro (I wonder why...!), so I'm currently downloading Ubuntu 12.04.1, in the hope that this distro will be compatible with my Texet wireless stick.

I've put a request for help on the LQ Sabayon forum. I shall just have to wait and see. It's a shame because the distro booted from USB very well indeed. Shame it won't install!
 
Old 10-22-2012, 03:18 AM   #14
Steve W
Member
 
Registered: Mar 2007
Distribution: Ubuntu 12.04, Mint 12 LXDE
Posts: 431

Original Poster
Rep: Reputation: 36
Final update: Ubuntu 12.04 does indeed work with this Texet wireless stick, "out of the box" with no configuration necessary other than entering my router security passcode into the Edit Connections dialog.
 
  


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
Can't get USB wireless adaptor working in Debian. I know it does work. Help? alarazr Linux - Hardware 4 07-11-2012 05:25 AM
[SOLVED] wireless usb adaptor no longer working since kernel update comradeluigi Linux - Wireless Networking 5 07-13-2011 02:01 PM
USB wireless adaptor Tsagadai Linux - Wireless Networking 0 08-03-2006 06:02 PM
ps/2-mouse via usb-adaptor not working - usb error=-110 mule Fedora 0 01-30-2004 06:23 AM


All times are GMT -5. The time now is 09:11 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration