Attaching USB devices [Was: Re: usb serial confuddlement]

From: Alexandre \ <Alex.Kovalenko_at_verizon.net>
Date: Wed, 06 Oct 2004 20:24:06 -0400
On Mon, 2004-10-04 at 21:28, M. Warner Losh wrote:
> In message: <1096937887.50081.22.camel_at_RabbitsDen>
>             "Alexandre \"Sunny\" Kovalenko" <Alex.Kovalenko_at_verizon.net> writes:
> : One thing, I have noticed about my USB devices, is that driver needs to
> : be loaded *before* device is plugged in.
> 
> For ucom devices, this is true.  For others, this is no longer true.
> I'm trying to figure out why ucom is special.
> 
> Warner
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
I am running -CURRENT as of late September 29 EST, and I have mouse,
parallel port, Bluetooth, audio and couple of serial ports attached to
the hub. I have posted transcript below, where no devices are recognized
until I unplug the hub and plug it in again. Am I doing anything wrong?
If you need more details on my system, please, let me know.

Alexandre "Sunny" Kovalenko.

RabbitsDen# uname -a
FreeBSD RabbitsDen.RabbitsLawn.verizon.net 6.0-CURRENT FreeBSD
6.0-CURRENT #1: Thu Sep 30 08:23:22 EDT 2004    
root_at_RabbitsDen.RabbitsLawn.verizon.net:/usr/obj/usr/src/sys/AVERATEC 
i386
RabbitsDen# kldstat
Id Refs Address    Size     Name
 1   16 0xc0400000 47fc7c   kernel
 2    1 0xc0884000 3254     powernow_k7.ko
 3    1 0xc0888000 1cec     io.ko
 4    1 0xc088a000 4944     mem.ko
 5    1 0xc1e0f000 6000     linprocfs.ko
 6    1 0xc1e1d000 1a000    linux.ko
 7    1 0xc2174000 4c000    if_ndis.ko
 8    1 0xc21c0000 f000     ndis.ko
RabbitsDen# ls -l /dev/u*
lrwxr-xr-x  1 root  wheel  6 Oct  6 15:45 /dev/urandom -> random
RabbitsDen# kldload usb
RabbitsDen# ls -l /dev/u*
lrwxr-xr-x  1 root  wheel            6 Oct  6 15:45 /dev/urandom ->
random
crw-rw----  1 root  operator  234, 255 Oct  6 19:44 /dev/usb
crw-rw----  1 root  operator  234,   0 Oct  6 19:44 /dev/usb0
crw-rw----  1 root  operator  234,   1 Oct  6 19:44 /dev/usb1
crw-rw----  1 root  operator  234,   2 Oct  6 19:44 /dev/usb2
crw-rw----  1 root  operator  234,   3 Oct  6 19:44 /dev/usb3
RabbitsDen# usbdevs -v
Controller /dev/usb0:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
VIA(0x0000), rev 1.00
 port 1 addr 2: full speed, self powered, config 1, UT-USB41
hub(0x1446), Texas Instruments(0x0451), rev 1.00
  port 1 addr 3: full speed, power 120 mA, config 1, Bluetooth USB
dongle(0x00a0), 3Com(0x0506), rev 1.15
  port 2 addr 4: full speed, power 100 mA, config 1, PL2303 Serial
adapter (ATEN/IOGEAR UC232A)(0x2303), Prolific Technology(0x067b), rev
2.02
  port 3 addr 5: full speed, power 500 mA, config 1, USB Audio(0x3010),
Creative(0x041e), rev 1.00
  port 4 addr 6: low speed, power 50 mA, config 1, USB
Trackball(0xc408), Logitech(0x046d), rev 14.00
  port 5 addr 7: full speed, power 100 mA, config 1, USB-232
Adapter(0x1203), Belkin Components(0x050d), rev 2.07
  port 6 addr 8: low speed, power 100 mA, config 1, USB-PS2
Adapter(0x0119), Belkin Components(0x050d), rev 1.20
  port 7 addr 9: full speed, power 98 mA, config 1, product
0x1202(0x1202), Belkin Components(0x050d), rev 1.04
 port 2 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
VIA(0x0000), rev 1.00
 port 1 powered
 port 2 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
VIA(0x0000), rev 1.00
 port 1 powered
 port 2 powered
Controller /dev/usb3:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000),
VIA(0x0000), rev 1.00
 port 1 powered
 port 2 powered
 port 3 powered
 port 4 powered
 port 5 powered
 port 6 powered
RabbitsDen# kldload ums
RabbitsDen# ls -l /dev/u*
lrwxr-xr-x  1 root  wheel            6 Oct  6 15:45 /dev/urandom ->
random
crw-rw----  1 root  operator  234, 255 Oct  6 19:44 /dev/usb
crw-rw----  1 root  operator  234,   0 Oct  6 19:44 /dev/usb0
crw-rw----  1 root  operator  234,   1 Oct  6 19:44 /dev/usb1
crw-rw----  1 root  operator  234,   2 Oct  6 19:44 /dev/usb2
crw-rw----  1 root  operator  234,   3 Oct  6 19:44 /dev/usb3
RabbitsDen# kldload ulpt
RabbitsDen# ls -l /dev/u*
lrwxr-xr-x  1 root  wheel            6 Oct  6 15:45 /dev/urandom ->
random
crw-rw----  1 root  operator  234, 255 Oct  6 19:44 /dev/usb
crw-rw----  1 root  operator  234,   0 Oct  6 19:44 /dev/usb0
crw-rw----  1 root  operator  234,   1 Oct  6 19:44 /dev/usb1
crw-rw----  1 root  operator  234,   2 Oct  6 19:44 /dev/usb2
crw-rw----  1 root  operator  234,   3 Oct  6 19:44 /dev/usb3
RabbitsDen# kldload ng_ubt
RabbitsDen# /etc/rc.bluetooth start ubt0
ngctl: send msg: No such file or directory
RabbitsDen# kldload uaudio
RabbitsDen# ls -l /dev/u*
lrwxr-xr-x  1 root  wheel            6 Oct  6 15:45 /dev/urandom ->
random
crw-rw----  1 root  operator  234, 255 Oct  6 19:44 /dev/usb
crw-rw----  1 root  operator  234,   0 Oct  6 19:44 /dev/usb0
crw-rw----  1 root  operator  234,   1 Oct  6 19:44 /dev/usb1
crw-rw----  1 root  operator  234,   2 Oct  6 19:44 /dev/usb2
crw-rw----  1 root  operator  234,   3 Oct  6 19:44 /dev/usb3
RabbitsDen# kldstat
Id Refs Address    Size     Name
 1   32 0xc0400000 47fc7c   kernel
 2    1 0xc0884000 3254     powernow_k7.ko
 3    1 0xc0888000 1cec     io.ko
 4    1 0xc088a000 4944     mem.ko
 5    1 0xc1e0f000 6000     linprocfs.ko
 6    1 0xc1e1d000 1a000    linux.ko
 7    1 0xc2174000 4c000    if_ndis.ko
 8    1 0xc21c0000 f000     ndis.ko
 9    5 0xc2b68000 26000    usb.ko
10    1 0xc2bd3000 4000     ums.ko
11    1 0xc2be2000 3000     ulpt.ko
12    1 0xc2be5000 b000     ng_ubt.ko
13    4 0xc2bf1000 2000     ng_bluetooth.ko
14    1 0xc2bfb000 14000    ng_hci.ko
15    1 0xc2c10000 17000    ng_l2cap.ko
16    1 0xc2c27000 1e000    ng_btsocket.ko
17    1 0xc2c47000 5000     ng_socket.ko
18    1 0xc2c4c000 6000     snd_uaudio.ko
RabbitsDen#dmesg
[irrelevant pieces removed]
uhci0: <VIA 83C572 USB controller> port 0xe400-0xe41f irq 11 at device
16.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <VIA 83C572 USB controller> port 0xe800-0xe81f irq 5 at device
16.1 on pci0
uhci1: [GIANT-LOCKED]
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
 THERMAL-0391 [117] acpi_tz_monitor       : got 43.0C
uhci2: <VIA 83C572 USB controller> port 0xec00-0xec1f irq 10 at device
16.2 on pci0
uhci2: [GIANT-LOCKED]
usb2: <VIA 83C572 USB controller> on uhci2
usb2: USB revision 1.0
uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0: <VIA VT6202 USB 2.0 controller> mem 0xdfffff00-0xdfffffff irq 5
at device 16.3 on pci0
ehci0: [GIANT-LOCKED]
ehci_pci_attach: companion usb0
ehci_pci_attach: companion usb1
ehci_pci_attach: companion usb2
usb3: EHCI version 1.0
usb3: companion controllers, 2 ports each: usb0 usb1 usb2
usb3: <VIA VT6202 USB 2.0 controller> on ehci0
usb3: USB revision 2.0
uhub3: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub3: 6 ports with 6 removable, self powered
uhub4: Texas Instruments UT-USB41 hub, class 9/0, rev 1.00/1.00, addr 2
uhub4: 7 ports with 7 removable, self powered
[nothing, but some ACPI thermal debug output below]

Now if I unplug the hub and plug it back again I will get all the
devices

uhub4: at uhub0 port 1 (addr 2) disconnected
(null): at uhub4 port 1 (addr 3) disconnected
(null): at uhub4 port 2 (addr 4) disconnected
(null): at uhub4 port 3 (addr 5) disconnected
(null): at uhub4 port 4 (addr 6) disconnected
(null): at uhub4 port 5 (addr 7) disconnected
(null): at uhub4 port 6 (addr 8) disconnected
(null): at uhub4 port 7 (addr 9) disconnected
uhub4: detached
uhub4: Texas Instruments UT-USB41 hub, class 9/0, rev 1.00/1.00, addr 2
uhub4: 7 ports with 7 removable, self powered
 THERMAL-0391 [143] acpi_tz_monitor       : got 45.0C
ubt0: 3Com Bluetooth USB dongle, rev 1.10/1.15, addr 3
ubt0: 3Com Bluetooth USB dongle, rev 1.10/1.15, addr 3
ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2
ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3;
wMaxPacketSize=49; nframes=6, buffer size=294
uaudio0: Creative USB Audio, rev 1.10/1.00, addr 5
uaudio_add_selector: NOT IMPLEMENTED
uaudio0: audio rev 1.00
pcm0: <USB Audio> on uaudio0
ums0: Logitech USB Trackball, rev 1.10/14.00, addr 6, iclass 3/1
ums0: 5 buttons
ums1: Belkin Components USB-PS2 Adapter, rev 1.10/1.20, addr 8, iclass
3/1
ums1: 5 buttons and Z dir.
ulpt0: Belkin Components product 0x1202, rev 1.00/1.04, addr 9, iclass
7/1
ulpt0: using bi-directional mode
RabbitsDen#
Received on Wed Oct 06 2004 - 22:24:28 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:16 UTC