LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 05-17-2009, 08:22 AM   #1
someone Awesome
Member
 
Registered: Nov 2008
Posts: 70

Rep: Reputation: 17
problem getting TL-WN321G (USB) working on ubuntu


I am having problems getting the wireless network working.
I found out it is tricky.
I'm new to Linux.
Tried it before but gave up but now im just sick of running XP on a old computer.

anyway, i have tryed setting it up with ndiswrapper using the guide here:
http://ubuntuforums.org/showthread.php?t=563547

got trough all of the levels but when running
Quote:
ndiswrapper -l
i only got
Quote:
rt2500usb : driver installed
it is not a problem detecting the usb himself because it did detect my disk on key.

I am speaking of TP-LINK TL-WN321G wireless usb network adapter.
running Linux ubuntu 9.X with dual boot to windows (that im running as we speak because i don't have any Internet on the Linux boot).

Thanks in advance.


P.S
As i said im a Linux newbie so keep in mind you need to write every small step. it was even hard for me getting the guide i was talking about working.
 
Old 05-17-2009, 09:23 AM   #2
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 997
Blog Entries: 15

Rep: Reputation: 136Reputation: 136
Hi, from what I've found out you're trying to use the wrong driver, your card apparently usually comes with a rt73usb chip, so the rt73usb driver is to be used... (you may post the output of lsusb here to confirm that).
Since you're using the newest Ubuntu, and the opensource drivers have already been available there for quite a long time, I suggest you use them. ("modprobe rt73usb"; if that doesn't work, look for rt2x00 in the package manager).

With the rt73 chip, you also need firmware to be loaded, to do that, just take the rt73.bin from the install CD and place it into /lib/firmware/ . (a separate package for this may exist though, so be sure to check the package manager first).

to see if you only need the firmware, check 'dmesg | grep rt2x' ; if you get any output, it means that the driver is trying to load, but can't initialize the device.Serafean
 
Old 05-17-2009, 11:15 AM   #3
someone Awesome
Member
 
Registered: Nov 2008
Posts: 70

Original Poster
Rep: Reputation: 17
Quote:
ido@ido-desktop:~$ lsusb
Bus 001 Device 002: ID 148f:2573 Ralink Technology, Corp. RT2501USB Wireless Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 046d:c03e Logitech, Inc. Premium Optical Wheel Mouse
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 04d9:1603 Holtek Semiconductor, Inc.
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
ido@ido-desktop:~$ modprobe rt73usb
WARNING: All config files need .conf: /etc/modprobe.d/blacklist, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/ndiswrapper, it will be ignored in a future release.
WARNING: Error inserting mac80211 (/lib/modules/2.6.28-11-generic/kernel/net/mac80211/mac80211.ko): Operation not permitted
WARNING: Error inserting led_class (/lib/modules/2.6.28-11-generic/kernel/drivers/leds/led-class.ko): Operation not permitted
WARNING: Error inserting rt2x00lib (/lib/modules/2.6.28-11-generic/kernel/drivers/net/wireless/rt2x00/rt2x00lib.ko): Operation not permitted
WARNING: Error inserting rt2x00usb (/lib/modules/2.6.28-11-generic/kernel/drivers/net/wireless/rt2x00/rt2x00usb.ko): Operation not permitted
WARNING: Error inserting crc_itu_t (/lib/modules/2.6.28-11-generic/kernel/lib/crc-itu-t.ko): Operation not permitted
FATAL: Error inserting rt73usb (/lib/modules/2.6.28-11-generic/kernel/drivers/net/wireless/rt2x00/rt73usb.ko): Operation not permitted
ido@ido-desktop:~$
ido@ido-desktop:~$ modprobe rt2501usb
WARNING: All config files need .conf: /etc/modprobe.d/blacklist, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/ndiswrapper, it will be ignored in a future release.
FATAL: Module rt2501usb not found.
ido@ido-desktop:~$ modprobe rt25001usb
WARNING: All config files need .conf: /etc/modprobe.d/blacklist, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/ndiswrapper, it will be ignored in a future release.
FATAL: Module rt25001usb not found.
ido@ido-desktop:~$ modprobe rt2500usb
WARNING: All config files need .conf: /etc/modprobe.d/blacklist, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/ndiswrapper, it will be ignored in a future release.
WARNING: Error inserting mac80211 (/lib/modules/2.6.28-11-generic/kernel/net/mac80211/mac80211.ko): Operation not permitted
WARNING: Error inserting led_class (/lib/modules/2.6.28-11-generic/kernel/drivers/leds/led-class.ko): Operation not permitted
WARNING: Error inserting rt2x00lib (/lib/modules/2.6.28-11-generic/kernel/drivers/net/wireless/rt2x00/rt2x00lib.ko): Operation not permitted
WARNING: Error inserting rt2x00usb (/lib/modules/2.6.28-11-generic/kernel/drivers/net/wireless/rt2x00/rt2x00usb.ko): Operation not permitted
FATAL: Error inserting rt2500usb (/lib/modules/2.6.28-11-generic/kernel/drivers/net/wireless/rt2x00/rt2500usb.ko): Operation not permitted
ido@ido-desktop:~$ dmesg | grep rt2x
ido@ido-desktop:~$

thats what i tried.
didn't found anything on disc. if you tell me where it would be great.

and please keep in ind im a newbe. i can't realty get what you told me to do.
 
Old 05-17-2009, 11:38 AM   #4
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 997
Blog Entries: 15

Rep: Reputation: 136Reputation: 136
Hi, sorry if I wasn't clear...
1st : my mistake, I forgot to mention that you have to run modprobe as root, ie : "sudo modprobe rt73usb"

2nd : all software is managed by a package manager, in ubuntu's case, Aptitude, what I was suggesting is that you use it to look for the rt2x00 drivers (which you already have, as modprobe found the files) and the firmware (which you probably don't have).

In order for you to get the firmware, I suggested you look on the CD that came with your card for a file named rt73.bin, and copy this file (as root) to the /lib/firmware directory. The firmware is of course available on the Ralink site with their drivers.
 
Old 05-17-2009, 03:04 PM   #5
someone Awesome
Member
 
Registered: Nov 2008
Posts: 70

Original Poster
Rep: Reputation: 17
thank you for clearing that up!
Tryed it, and i have some questions
first i did the "sudo modprobe rt73usb"
and got
Quote:
ido@ido-desktop:~$ sudo modprobe rt73usb
[sudo] password for ido:
WARNING: All config files need .conf: /etc/modprobe.d/blacklist, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/ndiswrapper, it will be ignored in a future release.
what does the warning mean?
i found out my package manger is called synaptic not aptitude.
anyway, i downloaded the driver using the link you gave me.
and found out i dont have access/authority.
as i heard (and if its true you probably know) ubuntu has no root.
I don't know how to change the freaking files!
if you mind spitting it out for me it would be great.
 
Old 05-18-2009, 05:29 AM   #6
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 997
Blog Entries: 15

Rep: Reputation: 136Reputation: 136
Hi, sorry for misleading you with the package manager, aptitude is the command line version...

Ubuntu does have root disabled, but a normal user can gain root acces using the "sudo" command. ie : "sudo modprobe rt73usb" in plain english is "get root access, run modprobe rt73usb (=load the rt73usb module), close root access.
To get full time root access in a terminal, run "sudo -s".
Quote:
and found out i dont have access/authority.
Access to what? to copying rt73.bin to /etc/firmware? "sudo cp /path/to/rt73.bin /etc/firmware"
Also, now that you have rt73usb loaded, check dmesg if its looking for firmware... (enter dmesg in a terminal, and look for anything related to rt2x00 that mentions firmware; if you modprobed manually, it should be near the end, the same applies if you plugged in the dongle after boot was finished)

To modify files your normal user doesn't have access to, use a console text editor (for example nano) run as root, for example : "sudo nano /etc/modprobe.conf"

PS : i was looking around for the warning, from what I've gathered it's nothing more than a .conf file migration step... nothing to worry about.

Last edited by serafean; 05-18-2009 at 05:32 AM.
 
Old 05-18-2009, 09:25 AM   #7
someone Awesome
Member
 
Registered: Nov 2008
Posts: 70

Original Poster
Rep: Reputation: 17
thank you for making me feel dumb lol.
will try it when ill be back to my computer tommrow.
thanks.
 
Old 05-19-2009, 06:57 AM   #8
someone Awesome
Member
 
Registered: Nov 2008
Posts: 70

Original Poster
Rep: Reputation: 17
i love you man!
thank you so much!
im writing this message from:
Linux Ubuntu 9.04!
 
Old 05-19-2009, 07:59 AM   #9
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 997
Blog Entries: 15

Rep: Reputation: 136Reputation: 136
Quote:
thank you for making me feel dumb lol.
Really sorry about that, please believe that it wasn't my intention at any point. Its me who should thank you, for giving me a good opportunity to make myself a little list of things I shouldn't assume all people know... And that most people prefer not to be in console mode... :-D
Anyway, I'm glad you're up and running...
 
Old 07-30-2009, 02:18 PM   #10
goose2
LQ Newbie
 
Registered: Jul 2009
Posts: 1

Rep: Reputation: 0
Similar Problem

I am also in need of your expertise. I have the exact same USB Wireless adapter (TL-WN321G USB) and I am running Ubuntu 8.10 Intrepid. When I start the OS (or boot from the live cd) I am able to connect to my wireless network (WPA TKIP Secured) using the default drivers. However, the connection is barely usable, and I experience top speeds of about 800 bytes/s. I tried using NDISWrapper to install the provided Win32 drivers, but this didn't seem to solve the problem (I'm not sure whether or not I correctly blacklisted all the previous drivers, is there a way to determine this?) I'm not sure what I should do now to rectify this problem, any help would be appreciated.
 
  


Reply



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
wn321g+ Wireless Internet USB Adapter driver problems. Please help me hide1713 Linux - Hardware 9 02-21-2008 08:41 AM
Unable to Install TP-LINK WN321G usb wireless adapter on RHEL 4 ? crazyvish Linux - Wireless Networking 0 02-16-2008 08:04 AM
rt73 wn321g+ wireless usb adapter problem. Please help me hide1713 Slackware 1 02-07-2008 01:20 PM
My USB isn't working in Ubuntu... SonoranFun Linux - Hardware 1 12-03-2004 06:48 AM

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

All times are GMT -5. The time now is 09:02 AM.

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