LinuxQuestions.org
Help answer threads with 0 replies.
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 12-03-2007, 07:40 PM   #1
Scott271
Member
 
Registered: Nov 2006
Location: New York
Distribution: Slackware-14.1 / Mint
Posts: 103

Rep: Reputation: 21
USB adapter problem


Howdy all,

I need a little help setting up my wireless usb adapter on a new (to me) laptop.

Background:
IBM thinkpad T22-12g hdd, PIII, 900mhz, 128 RAM; Linksys WRT54Gv6 wireless router - running DD-WRT firmware; Linksys WUSB54Gv4 wireless usb adapter with rt2500usb drivers installed; ---all courtesy of that wonderful place called eBay!

I tried putting Ubuntu, Xubuntu, and maybe one other on it, then Zenwalk 4.8. The laptop is for the wife mainly, and I was interested in trying other distros. Having gotten the usb working - only once with Ubuntu - which also slowed down the laptop; I decided to give Zen a try on it, having used it before and enjoying the lightwieght and speed of it.

The Rt2500usb driver is showing up in Ndiswrapper, as well as the adapter being detected. After this I'm lost, the power light comes on when plugged in and stays on for a minute or two then goes off.

While I had Ubuntu on it, I tried everything from building ndiswrapper from source to building the rt2570 drivers from serialmonkey from source - it worked once for 20 minutes- . If there is an easier way, or someone who has some experience with this - I'd be willing to send a beer by PayPal grin. I'm checking out a few links/resources; but having never had to do this before- I may need to grow some hair just to pull it out!


So, without further ado.........

lsusb:

Code:
root[root]# lsusb
Bus 001 Device 087: ID 13b1:000d Linksys 
Bus 001 Device 001: ID 0000:0000

Code:
root[root]# lsusb -v
Bus 001 Device 095: ID 13b1:000d Linksys 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x13b1 Linksys
  idProduct          0x000d 
  bcdDevice            0.04
  iManufacturer           1 Cisco-Linksys
  iProduct                2 Wireless-G USB Network Adapter
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              300mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0000
  (Bus Powered)

Bus 001 Device 001: ID 0000:0000  
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         0 Full speed (or root) hub
  bMaxPacketSize0        64
  idVendor           0x0000 
  idProduct          0x0000 
  bcdDevice            2.06
  iManufacturer           3 Linux 2.6.22.9 uhci_hcd
  iProduct                2 UHCI Host Controller
  iSerial                 1 0000:00:07.2
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0002  1x 2 bytes
        bInterval             255
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             2
  wHubCharacteristic 0x000a
    No power switching (usb 1.0)
    Per-port overcurrent protection
  bPwrOn2PwrGood        1 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0xff
 Hub Port Status:
   Port 1: 0000.0103 power enable connect
   Port 2: 0000.0100 power
Device Status:     0x0003
  Self Powered
  Remote Wakeup Enabled

iwconfig:


Code:
root[root]# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.
ifconfig:

Code:
root[root]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:03:47:74:7E:F6  
          inet addr:192.168.1.116  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:40517 errors:0 dropped:0 overruns:0 frame:0
          TX packets:38431 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:41042707 (39.1 MiB)  TX bytes:5213398 (4.9 MiB)
          Interrupt:11 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

I tried editing /etc/rc.d/rc.inet.conf and just got finished fixing whatever I did to stop internet connections altogether. I also looked in the /rc.wireless.conf file and decide better of myself and changed nothing.

So, if anyone has some pointers, I'd appreciate it. I guess I just need to know what lines to edit/add and if I'm using the right drivers. I've got the rt2500usb, but have read that rt2570usb and rt73 might also be used - I'm willing to try them, but would like to limit the amount of things I'd have to go back and change later.

Thanks in advance,
Scott
 
Old 12-04-2007, 08:53 AM   #2
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
Are you checking lsmod to make sure the ndisrapper driver is loaded? Also check dmesg for messages concerning ndiswrapper and detection of the device. For things like ndiswrapper building from source is always best to make sure the driver matches your kernel.

It may help to try starting the device manually. Try ifconfig wlan0 up or ifup wlan0 then check the output of ifconfig again. If it's there you can use iwconfig to connect to the router and ifconfig or dhclient to give it an address.

If all that works then you can work on getting it started automatically.
 
Old 12-04-2007, 05:14 PM   #3
Scott271
Member
 
Registered: Nov 2006
Location: New York
Distribution: Slackware-14.1 / Mint
Posts: 103

Original Poster
Rep: Reputation: 21
Here's what I got:

Code:
root[root]# ifconfig wlan0 up
wlan0: ERROR while getting interface flags: No such device
root[root]# ifup wlan0
bash: ifup: command not found
root[root]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:03:47:74:7E:F6  
          inet addr:192.168.1.116  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2174 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2402 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1420967 (1.3 MiB)  TX bytes:442883 (432.5 KiB)
          Interrupt:11 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

This where it stop this time, before it was up around 120.
Code:
usb 1-1: USB disconnect, address 78
usb 1-1: new full speed USB device using uhci_hcd and address 79
usb 1-1: configuration #1 chosen from 1 choice
hub 1-0:1.0: port 1 disabled by hub (EMI?), re-enabling...
usb 1-1: USB disconnect, address 79
usb 1-1: new full speed USB device using uhci_hcd and address 80
usb 1-1: configuration #1 chosen from 1 choice
Code:
root[root]# lsmod
Module                  Size  Used by
snd_seq_oss            18816  0 
snd_seq_midi_event      3456  1 snd_seq_oss
snd_seq                27760  4 snd_seq_oss,snd_seq_midi_event
snd_pcm_oss            25984  0 
snd_mixer_oss          10112  3 snd_pcm_oss
iptable_mangle          1664  0 
nf_conntrack_ftp        5504  0 
xt_state                1408  3 
iptable_nat             3332  0 
nf_nat                  9516  1 iptable_nat
nf_conntrack_ipv4       7692  5 iptable_nat
nf_conntrack           28680  5 nf_conntrack_ftp,xt_state,iptable_nat,nf_nat,nf_conntrack_ipv4
nfnetlink               2456  3 nf_nat,nf_conntrack_ipv4,nf_conntrack
iptable_filter          1536  1 
ip_tables               7124  3 iptable_mangle,iptable_nat,iptable_filter
x_tables                6148  3 xt_state,iptable_nat,ip_tables
video                  10504  0 
thermal                 7560  0 
processor              16852  1 thermal
fuse                   25236  0 
fan                     2436  0 
button                  4112  0 
battery                 6276  0 
ac                      2564  0 
pcmcia                 21036  0 
intel_agp              14228  1 
agpgart                15948  1 intel_agp
i2c_piix4               5388  0 
snd_cs46xx             59112  2 
eepro100               17808  0 
mii                     3200  1 eepro100
tsdev                   4032  0 
i2c_core               11520  1 i2c_piix4
gameport                6024  2 snd_cs46xx
yenta_socket           15116  2 
rsrc_nonstatic          6784  1 yenta_socket
pcmcia_core            19096  3 pcmcia,yenta_socket,rsrc_nonstatic
evdev                   4992  0 
uhci_hcd               14220  0 
sg                     18204  2 
snd_rawmidi            10880  1 snd_cs46xx
snd_seq_device          3724  3 snd_seq_oss,snd_seq,snd_rawmidi
snd_ac97_codec         68772  1 snd_cs46xx
ac97_bus                1664  1 snd_ac97_codec
snd_pcm                38660  3 snd_pcm_oss,snd_cs46xx,snd_ac97_codec
snd_timer              11268  2 snd_seq,snd_pcm
snd                    25988  10 snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_cs46xx,snd_rawmidi,snd_seq_device,snd_ac97_codec,snd_pcm,snd_timer
soundcore               3552  3 snd
snd_page_alloc          4744  2 snd_cs46xx,snd_pcm
and tried one more time....
Code:
root[root]# ifconfig wlan0 up
wlan0: ERROR while getting interface flags: No such device
I understand that I'll need to get wlan0 or rausb0 up, but I'm not quitew sure how to go about that.

Thanks,
Scott
 
Old 12-04-2007, 07:37 PM   #4
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
A little checking around shows that the kernel has it's own driver for rt2500usb. According to a post in LQ's HCL sometimes it works and sometimes it doesn't. If it doesn't, try the rt2570 from serialmonkey, but make sure the 2500 is not loaded at the same time. You shouldn't need ndiswrapper, but if you do make sure the kernel's 2500 or the 2570 isn't loaded at the same time.

Hope this helps.
 
  


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
Problem with usb adapter Jinx0r Linux - Networking 1 11-15-2007 03:02 AM
problem with USB ISDN adapter Atifkhan Linux - Enterprise 0 06-16-2006 08:53 AM
2wire USB adapter problem Skorch_Creature Linux - Networking 0 05-22-2006 10:23 AM
Speedstream usb adapter problem melenex SUSE / openSUSE 1 04-10-2006 05:21 AM
USB-Serial Adapter problem oceanfun Linux - Hardware 1 10-26-2005 06:29 PM

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

All times are GMT -5. The time now is 03:40 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