uhub0 problems after re-attaching atu0 - BSD

This is a discussion on uhub0 problems after re-attaching atu0 - BSD ; Hi, I'm getting the following error on my OpenBSD 3.7-release machine: uhub0: device problem, disabling port x This happens when after succesfully booting up with my atmel AT76C505 USB 802.11b adapter plugged in, disconnecting it, and after a minute or ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: uhub0 problems after re-attaching atu0

  1. uhub0 problems after re-attaching atu0

    Hi,

    I'm getting the following error on my OpenBSD 3.7-release machine:
    uhub0: device problem, disabling port x

    This happens when after succesfully booting up with my atmel AT76C505 USB
    802.11b adapter plugged in, disconnecting it, and after a minute or so
    connecting it to the same or another USB port on the machine.

    Output of dmesg: (note the comment on the end)


    OpenBSD 3.7 (GENERIC) #50: Sun Mar 20 00:01:57 MST 2005
    deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
    cpu0: AMD Athlon(tm) Processor ("AuthenticAMD" 686-class) 897 MHz
    cpu0:
    FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MC A,CMOV,PAT,PSE36,MMX,FXS
    R
    real mem = 402169856 (392744K)
    avail mem = 359710720 (351280K)
    using 4278 buffers containing 20209664 bytes (19736K) of memory
    mainbus0 (root)
    bios0 at mainbus0: AT/286+(87) BIOS, date 10/06/00, BIOS32 rev. 0 @ 0xfb140
    apm0 at bios0: Power Management spec V1.2
    apm0: AC on, battery charge unknown
    pcibios0 at bios0: rev 2.1 @ 0xf0000/0xb5c0
    pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdaf0/176 (9 entries)
    pcibios0: PCI Exclusive IRQs: 10 11 12
    pcibios0: PCI Interrupt Router at 000:07:0 ("VIA VT82C596A ISA" rev 0x00)
    pcibios0: PCI bus #1 is the last bus
    bios0: ROM list: 0xc0000/0x8000 0xc8000/0x4000!
    cpu0 at mainbus0
    pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
    pchb0 at pci0 dev 0 function 0 "VIA VT8363 Host" rev 0x03
    ppb0 at pci0 dev 1 function 0 "VIA VT8363 AGP" rev 0x00
    pci1 at ppb0 bus 1
    vga1 at pci1 dev 0 function 0 "Matrox MGA G400/G450 AGP" rev 0x04
    wsdisplay0 at vga1: console (80x25, vt100 emulation)
    wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
    pcib0 at pci0 dev 7 function 0 "VIA VT82C686 ISA" rev 0x22
    pciide0 at pci0 dev 7 function 1 "VIA VT82C571 IDE" rev 0x10: ATA66, channel
    0 c
    onfigured to compatibility, channel 1 configured to compatibility
    wd0 at pciide0 channel 0 drive 0:
    wd0: 8-sector PIO, LBA, 19470MB, 39876480 sectors
    wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
    atapiscsi0 at pciide0 channel 1 drive 1
    scsibus0 at atapiscsi0: 2 targets
    cd0 at scsibus0 targ 0 lun 0: SCSI0 5/cdrom removable
    cd0(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2
    uhci0 at pci0 dev 7 function 2 "VIA VT83C572 USB" rev 0x10: irq 12
    usb0 at uhci0: USB revision 1.0
    uhub0 at usb0
    uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
    uhub0: 2 ports with 2 removable, self powered
    uhci1 at pci0 dev 7 function 3 "VIA VT83C572 USB" rev 0x10: irq 12
    usb1 at uhci1: USB revision 1.0
    uhub1 at usb1
    uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
    uhub1: 2 ports with 2 removable, self powered
    viaenv0 at pci0 dev 7 function 4 "VIA VT82C686 SMBus" rev 0x30
    rl0 at pci0 dev 10 function 0 "Realtek 8139" rev 0x10: irq 10 address
    00:48:54:6
    2:75:67
    rlphy0 at rl0 phy 0: RTL internal phy
    de0 at pci0 dev 12 function 0 "DEC 21140" rev 0x22: irq 11
    de0: ACCTON EN1207 21140A [10-100Mb/s] pass 2.2 address 00:00:e8:4f:55:3e
    isa0 at pcib0
    isadma0 at isa0
    pckbc0 at isa0 port 0x60/5
    pckbd0 at pckbc0 (kbd slot)
    pckbc0: using irq 1 for kbd slot
    wskbd0 at pckbd0 (mux 1 ignored for console): console keyboard, using
    wsdisplay0
    pcppi0 at isa0 port 0x61
    midi0 at pcppi0:
    sysbeep0 at pcppi0
    lpt0 at isa0 port 0x378/4 irq 7
    npx0 at isa0 port 0xf0/16: using exception 16
    pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
    pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
    fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
    fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
    biomask f365 netmask ff65 ttymask ffe7
    pctr: user-level cycle counter enabled
    mtrr: Pentium Pro MTRR support
    atu0 at uhub0 port 1 configuration 1 interface 0
    atu0: Atmel AT76C505 (RFMD 2958 Radio), rev 1.10/1.00, addr 2
    dkcsum: wd0 matched BIOS disk 80
    root on wd0a
    rootdev=0x0 rrootdev=0x300 rawdev=0x302
    atu0: reattaching after firmware upload
    atu0: at uhub0 port 1 (addr 2) disconnected
    atu0 detached
    atu0 at uhub0 port 1 configuration 1 interface 0
    atu0: Atmel AT76C505 (RFMD 2958 Radio), rev 1.10/1.00, addr 2: address
    00:40:f4:
    95:14:8d
    atu0: at uhub0 port 1 (addr 2) disconnected
    pf_test6: kif == NULL, if_xname atu0
    pf_test6: kif == NULL, if_xname atu0
    atu0 detached
    ugen0 at uhub0 port 2 <--- testing a z-com XG-701A 802.11b/g usb
    adapter with Intersil Prism GT (ISL3880)
    ugen0: Z-Com product 0x0006, rev 2.00/2.03, addr 2
    ugen0: at uhub0 port 2 (addr 2) disconnected
    ugen0 detached
    uhub0: device problem, disabling port 2 <----- Plugging the ATU0 back in.
    This also happens without first using the Prism adapter
    uhub0: device problem, disabling port 1 <----- Trying the other usb port.


    Output of ifconfig:

    monolith# ifconfig atu0
    atu0: flags=8843 mtu 1500
    address: 00:40:f4:95:14:8d
    ieee80211: nwid test chan 1 bssid 02:40:f4:95:14:8d
    media: IEEE802.11 autoselect ibss
    status: active
    inet 172.16.76.254 netmask 0xffffff00 broadcast 172.16.76.255
    inet6 fe80::240:f4ff:fe95:148d%atu0 prefixlen 64 scopeid 0x7


    Output of wicontrol atu0: (note comment on port type)

    monolith# wicontrol atu0
    NIC serial number: [ ]
    Station name: [ monolith ]
    SSID for IBSS creation: [ test ]
    Current netname (SSID): [ test ]
    Desired netname (SSID): [ test ]
    Current BSSID: [ 02:40:f4:95:14:8d ]
    Channel list: [ 16383 ]
    IBSS channel: [ 1 ]
    Current channel: [ 1 ]
    Comms quality/signal/noise: [ 0 0 0 ]
    Promiscuous mode: [ Off ]
    Process 802.11b Frame: [ Off ]
    Port type (1=BSS, 3=ad-hoc, 6=Host AP): [ 0 ] <---- This is a bit weird.
    I can only use -p0 and -p1, -p3 gives a SIOCSWAVELAN: Invalid argument
    MAC address: [ 00:40:f4:95:14:8d ]
    TX rate (selection): [ 0 ]
    TX rate (actual speed): [ 1 ]
    Maximum data length: [ 2312 ]
    RTS/CTS handshake threshold: [ 2312 ]
    Create IBSS: [ On ]
    Antenna diversity (0=auto,1=pri,2=aux): [ ]
    Microwave oven robustness: [ Off ]
    Roaming mode(1=firm,3=disable): [ 1 ]
    Access point density: [ 1 ]
    Power Management: [ Off ]
    Max sleep time: [ 100 ]
    Enhanced Security mode: [ ]
    Intersil Prism2-based card: [ 1 ]
    Card info:
    Encryption: [ Off ]
    Encryption algorithm: [ Firmware WEP ]
    Authentication type
    (1=OpenSys, 2=Shared Key): [ 1 ]
    TX encryption key: [ 1 ]
    Encryption keys: [ ][ ][ ][ ]


    Maybe someone can use this to improve the driver in the future. If anyone
    needs more info please mail me.

    regards

    Marco



  2. Re: uhub0 problems after re-attaching atu0

    Marco Derix wrote:
    [..]

    Don;t know about your basic problem, sorry.

    > Port type (1=BSS, 3=ad-hoc, 6=Host AP): [ 0 ] <---- This is a bit weird.
    > I can only use -p0 and -p1, -p3 gives a SIOCSWAVELAN: Invalid argument

    [...]

    But this bit I've read about. Various docs say NOT to use the -p
    option on wicontrol because the wrong value can damage your card.
    This warning could be invalidated by the fact you have a USB device.
    But who knows.

    ifconfig foo media auto mediaopt adhoc
    ifconfig foo media auto mediaopt hostap
    ifconfig foo media auto

    are the kinds of things that switch modes "the safe way".

    ifconfig -m foo

    is also a good idea -- to find out what options the "foo" if supports
    under ifconfig.

    But also note: I've found while some of the options can be printed OUT,
    they can't be enter in.
    Small bugs in the drivers, I guess. :-}

+ Reply to Thread