Re: usb issues on OLD USB 1.0 machine...

From: John-Mark Gurney <jmg_at_funkthat.com>
Date: Thu, 12 Jun 2014 15:46:54 -0700
Hans Petter Selasky wrote this message on Thu, Jun 12, 2014 at 21:06 +0200:
> On 06/12/14 20:52, John-Mark Gurney wrote:
> >So, I'm trying to get USB functional on an old i386 machine that only
> >supports USB 1.0...  It works, but when I try to plug in a hub I get
> >the following:
> >uhub0: 2 ports with 2 removable, self powered
> >Root mount waiting for: usbus0
> >usb_alloc_device: set address 2 failed (USB_ERR_IOERROR, ignored)
> >Root mount waiting for: usbus0
> >usbd_setup_device_desc: getting device descriptor at addr 2 failed, 
> >USB_ERR_IOERROR
> >Root mount waiting for: usbus0
> >usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, 
> >ignored)
> >Root mount waiting for: usbus0
> >Root mount waiting for: usbus0
> >usbd_setup_device_desc: getting device descriptor at addr 2 failed, 
> >USB_ERR_IOERROR
> >Root mount waiting for: usbus0
> >usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, 
> >ignored)
> >Root mount waiting for: usbus0
> >Root mount waiting for: usbus0
> >usbd_setup_device_desc: getting device descriptor at addr 2 failed, 
> >USB_ERR_IOERROR
> >usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, 
> >ignored)
> >Root mount waiting for: usbus0
> >Root mount waiting for: usbus0
> >usbd_setup_device_desc: getting device descriptor at addr 2 failed, 
> >USB_ERR_IOERROR
> >Root mount waiting for: usbus0
> >usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, 
> >ignored)
> >Root mount waiting for: usbus0
> >Root mount waiting for: usbus0
> >usbd_setup_device_desc: getting device descriptor at addr 2 failed, 
> >USB_ERR_IOERROR
> >ugen0.2: <Unknown> at usbus0 (disconnected)
> >uhub_reattach_port: could not allocate new device
> >
> >This was working w/ code from around a month ago, but I don't remeber
> >which rev it was, and I forgot to save the old kernel..  This is from:
> >FreeBSD serbox.funkthat.com 11.0-CURRENT FreeBSD 11.0-CURRENT #0 
> >r266964:267061M: Wed Jun 11 15:35:27 PDT 2014     
> >jmg_at_carbon.funkthat.com:/usr/obj/i386.i386/usr/src/sys/serbox  i386
> >
> >Interesting parts of dmesg:
> >FreeBSD 11.0-CURRENT #0 r266964:267061M: Wed Jun 11 15:35:27 PDT 2014
> >     jmg_at_carbon.funkthat.com:/usr/obj/i386.i386/usr/src/sys/serbox i386
> >FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
> >CPU: AMD-K6tm w/ multimedia extensions (200.46-MHz 586-class CPU)
> >   Origin="AuthenticAMD"  Id=0x562  Family=0x5  Model=0x6  Stepping=2
> >   Features=0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX>
> >   AMD Features=0x400<<b10>>
> >real memory  = 134217728 (128 MB)
> >avail memory = 120770560 (115 MB)
> >[...]
> >uhci0: <VIA 83C572 USB controller> port 0x6400-0x641f irq 10 at device 7.2 
> >on pci0
> >usbus0 on uhci0
> >[...]
> >usbus0: 12Mbps Full Speed USB v1.0
> >ugen0.1: <VIA> at usbus0
> >uhub0: <VIA UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
> >
> >usbconfig:
> >ugen0.1: <UHCI root HUB VIA> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) 
> >pwr=SAVE (0mA)
> >ugen0.2: <USB-Serial Controller Prolific Technology Inc.> at usbus0, cfg=0 
> >md=HOST spd=FULL (12Mbps) pwr=ON (100mA)
> >
> >The ugen0.2 is plugged directly into the one of the ports, and works..
> >
> >Let me know if there is anything more info I can provide.
> 
> Possibly increase the timing variables under:
> 
> sysctl hw.usb.timings
> 
> If they are not there, possibly the USB_DEBUG option has been removed 
> from the kernel config. Can you check that?

This appears to be a compatibility issue w/ the hub...  If I reboot w/
the hub plugged it, it will go into this weird mode.  If I unplug the
hub, but leave the hub powered, it will still do it... But if I unplug
the hub and remove it's power (cold booting the hub) and plug it in,
it works fine...

If I reboot w/o the hub powered, but plugged in, it fails, but when
I unplug (now hub has no power) and plug it back in, it works fine...

Does this shed any light on the issue?

The only BIOS option related to USB is the keyboard in BIOS/DOS option.

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."
Received on Thu Jun 12 2014 - 20:46:56 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:50 UTC