View Single Post
  #2   (View Single Post)  
Old 4th January 2013
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,131
Default

From ugen(4)
Code:
NAME
     ugen - USB generic device support

SYNOPSIS
     ugen* at uhub?

DESCRIPTION
     The ugen driver provides support for all USB devices that do not have a
     special driver.  It supports access to all parts of the device, but not
     in a way that is as convenient as a special purpose driver.

     There can be up to 127 USB devices connected to a USB bus.  Each USB
     device can have up to 16 endpoints.
Yesterday I installed FreeBSD 9.1 on an USB stick:
Code:
# dmesg |grep ugenugen0.1: <Intel> at usbus0
ugen1.1: <Intel> at usbus1
ugen0.2: <vendor 0x8087> at usbus0
ugen1.2: <vendor 0x8087> at usbus1
ugen1.3: <ServerEngines> at usbus1
ugen1.4: <Kingston> at usbus1
The ugen1.4 is my Kingston USB stick with the FreeBSD install.
If I plug in another USB stick I see the following:
Code:
# tail -f /var/log/messages
Jan  4 05:37:50 usb-8g kernel: ugen1.5: <Prolific Technology Inc.> at usbus1
Jan  4 05:37:50 usb-8g kernel: uhub4: <Prolific Technology Inc. USB Embedded Hub, class 9/0, rev 2.00/1.00, addr 5> on usbus1
Jan  4 05:37:50 usb-8g kernel: uhub4: 1 port with 0 removable, self powered
Jan  4 05:37:52 usb-8g kernel: ugen1.6: <Prolific Technology Inc.> at usbus1
Jan  4 05:37:52 usb-8g kernel: umass1: <Prolific Technology Inc. USB Mass Storage Device, class 0/0, rev 2.00/1.00, addr 6> on usbus1
Jan  4 05:37:52 usb-8g kernel: umass1:  8070i (ATAPI) over Bulk-Only; quirks = 0x4100
Jan  4 05:37:52 usb-8g kernel: umass1:6:1:-1: Attached to scbus6
Jan  4 05:37:52 usb-8g kernel: da1 at umass-sim1 bus 1 scbus6 target 0 lun 0
Jan  4 05:37:52 usb-8g kernel: da1: <USB 2.0 Flash Disk 1.00> Removable Direct Access SCSI-0 device 
Jan  4 05:37:52 usb-8g kernel: da1: 40.000MB/s transfers
Jan  4 05:37:52 usb-8g kernel: da1: 992MB (2031616 512 byte sectors: 64H 32S/T 992C)
This one uses both 1.5 and 1.6
Code:
 # usbconfig -d 1.5 dump_info
ugen1.5: <USB Embedded Hub Prolific Technology Inc.> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE

# usbconfig -d 1.6 dump_info
ugen1.6: <USB Mass Storage Device Prolific Technology Inc.> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON
If I add a Sony USB stick at the back
Code:
Jan  4 05:45:58 usb-8g kernel: ugen0.3: <Sony> at usbus0
Jan  4 05:45:58 usb-8g kernel: umass2: <Sony Storage Media, class 0/0, rev 2.00/1.00, addr 3> on usbus0
Jan  4 05:45:58 usb-8g kernel: umass2:  SCSI over Bulk-Only; quirks = 0x0100
Jan  4 05:45:58 usb-8g kernel: umass2:7:2:-1: Attached to scbus7
Jan  4 05:45:58 usb-8g kernel: da2 at umass-sim2 bus 2 scbus7 target 0 lun 0
Jan  4 05:45:58 usb-8g kernel: da2: <Sony Storage Media 0100> Removable Direct Access SCSI-0 device 
Jan  4 05:45:58 usb-8g kernel: da2: 40.000MB/s transfers
Jan  4 05:45:58 usb-8g kernel: da2: 1920MB (3932160 512 byte sectors: 255H 63S/T 244C)
So you can conclude that it is not safe to assume that these numbers are fixed. They depend on the USB slot.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote