Problem with 2.5 USB drive

2009-12-10 Thread Spil Oss
Hello all,

Can't get my 2.5 USB drive to work reliably. The device has a ALI
M5642 Chip and connects 2.5 PATA disks. Vendor 0x0402 is
USB_VENDOR_ACERLABS /* Acer Labs */ which ALi is afaik.

When I connect it:
Dec  8 16:11:20 gw root: Unknown USB device: vendor 0x0402 product
0x5642 bus uhub3
Dec  8 16:11:20 gw kernel: ugen3.2: vendor 0x0402 at usbus3
Dec  8 16:11:20 gw kernel: umass0: vendor 0x0402 USB 2.0 Storage
Device, class 0/0, rev 2.00/1.00, addr 2 on usbus3
Dec  8 16:11:20 gw kernel: umass0:  SCSI over Bulk-Only; quirks = 0x
Dec  8 16:11:21 gw kernel: umass0:0:0:-1: Attached to scbus0
Dec  8 16:11:21 gw kernel: da0 at umass-sim0 bus 0 target 0 lun 0
Dec  8 16:11:21 gw kernel: da0: USB 2.0 Storage Device 0100 Fixed
Direct Access SCSI-0 device
Dec  8 16:11:21 gw kernel: da0: 40.000MB/s transfers
Dec  8 16:11:21 gw kernel: da0: 38154MB (78140160 512 byte sectors:
255H 63S/T 4864C)

When I try to dd/fdisk/bsdlabel the disk I tend to get
Dec  9 12:47:49 gw kernel: (da0:umass-sim0:0:0:0): AutoSense Failed
Sometimes the LED on the cage stays red until I reconnect it.
When I first `usbconfig -u 3 -a 2 reset` and then reconnect the disk
it is recognized again. Tried both on an Intel GM855 and a nVidia
nForce4 system.

Errors that pop up when transferring data:
Dec  8 16:11:21 gw kernel: (da0:umass-sim0:0:0:0): SYNCHRONIZE
CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0
Dec  8 16:11:21 gw kernel: (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0
Dec  8 16:11:21 gw kernel: (da0:umass-sim0:0:0:0): Not ready to ready
change, medium may have changed

Strangely it seems that this device was recognized on a previous
version of FreeBSD see http://takaq1.plala.jp/freebsd/usb/index.html
(not that I've tried!) Not quite clear what version of FreeBSD that
is.

Ultimately FreeBSD crashes when I play around too long..

Can anyone assist?
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: USB modem?

2009-12-10 Thread Mike Tancsa

At 10:40 PM 12/9/2009, Ernst W. Winter wrote:

Hello,

well I have a NetPC from Asus with a UMTS modem.

What is the output of

usbdevs -v
or if RELENG_8
usbconfig dump_device_desc

---Mike




Is there anything for it that I can use with FreeBSD?

I can use it with Ubuntu, tried once and testet and it works, but
since I use FreeBSD only it would be nice to know that it is possible
too with FreeBSD.

Thanks in advance for any feedback.

Ernst Winter

--
O ascii ribbon campaign - stop html mail - www.asciiribbon.org
Mail plain ASCII text.  HTML  Base64 text are spam.

___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org



Mike Tancsa,  tel +1 519 651 3400
Sentex Communications,m...@sentex.net
Providing Internet since 1994www.sentex.net
Cambridge, Ontario Canada www.sentex.net/mike

___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: Problem with 2.5 USB drive

2009-12-10 Thread Spil Oss
On Thu, Dec 10, 2009 at 10:08 AM, Spil Oss spil@googlemail.com wrote:
 Hello all,

 Can't get my 2.5 USB drive to work reliably. The device has a ALI
 M5642 Chip and connects 2.5 PATA disks. Vendor 0x0402 is
 USB_VENDOR_ACERLABS /* Acer Labs */ which ALi is afaik.

 When I connect it:
 Dec  8 16:11:20 gw root: Unknown USB device: vendor 0x0402 product
 0x5642 bus uhub3
 Dec  8 16:11:20 gw kernel: ugen3.2: vendor 0x0402 at usbus3
 Dec  8 16:11:20 gw kernel: umass0: vendor 0x0402 USB 2.0 Storage
 Device, class 0/0, rev 2.00/1.00, addr 2 on usbus3
 Dec  8 16:11:20 gw kernel: umass0:  SCSI over Bulk-Only; quirks = 0x
 Dec  8 16:11:21 gw kernel: umass0:0:0:-1: Attached to scbus0
 Dec  8 16:11:21 gw kernel: da0 at umass-sim0 bus 0 target 0 lun 0
 Dec  8 16:11:21 gw kernel: da0: USB 2.0 Storage Device 0100 Fixed
 Direct Access SCSI-0 device
 Dec  8 16:11:21 gw kernel: da0: 40.000MB/s transfers
 Dec  8 16:11:21 gw kernel: da0: 38154MB (78140160 512 byte sectors:
 255H 63S/T 4864C)

 When I try to dd/fdisk/bsdlabel the disk I tend to get
 Dec  9 12:47:49 gw kernel: (da0:umass-sim0:0:0:0): AutoSense Failed
 Sometimes the LED on the cage stays red until I reconnect it.
 When I first `usbconfig -u 3 -a 2 reset` and then reconnect the disk
 it is recognized again. Tried both on an Intel GM855 and a nVidia
 nForce4 system.

 Errors that pop up when transferring data:
 Dec  8 16:11:21 gw kernel: (da0:umass-sim0:0:0:0): SYNCHRONIZE
 CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0
 Dec  8 16:11:21 gw kernel: (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0
 Dec  8 16:11:21 gw kernel: (da0:umass-sim0:0:0:0): Not ready to ready
 change, medium may have changed

 Strangely it seems that this device was recognized on a previous
 version of FreeBSD see http://takaq1.plala.jp/freebsd/usb/index.html
 (not that I've tried!) Not quite clear what version of FreeBSD that
 is.

 Ultimately FreeBSD crashes when I play around too long..

 Can anyone assist?

Saw on the list that usbconfig dump_device_desc is helpful,
problematic device is ugen3.2:

ugen0.1: UHCI root HUB Intel at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON

  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0100
  bDeviceClass = 0x0009
  bDeviceSubClass = 0x
  bDeviceProtocol = 0x
  bMaxPacketSize0 = 0x0040
  idVendor = 0x
  idProduct = 0x
  bcdDevice = 0x0100
  iManufacturer = 0x0001  Intel
  iProduct = 0x0002  UHCI root HUB
  iSerialNumber = 0x  no string
  bNumConfigurations = 0x0001

ugen1.1: UHCI root HUB Intel at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON

  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0100
  bDeviceClass = 0x0009
  bDeviceSubClass = 0x
  bDeviceProtocol = 0x
  bMaxPacketSize0 = 0x0040
  idVendor = 0x
  idProduct = 0x
  bcdDevice = 0x0100
  iManufacturer = 0x0001  Intel
  iProduct = 0x0002  UHCI root HUB
  iSerialNumber = 0x  no string
  bNumConfigurations = 0x0001

ugen2.1: UHCI root HUB Intel at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON

  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0100
  bDeviceClass = 0x0009
  bDeviceSubClass = 0x
  bDeviceProtocol = 0x
  bMaxPacketSize0 = 0x0040
  idVendor = 0x
  idProduct = 0x
  bcdDevice = 0x0100
  iManufacturer = 0x0001  Intel
  iProduct = 0x0002  UHCI root HUB
  iSerialNumber = 0x  no string
  bNumConfigurations = 0x0001

ugen3.1: EHCI root HUB Intel at usbus3, cfg=0 md=HOST spd=HIGH
(480Mbps) pwr=ON

  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0200
  bDeviceClass = 0x0009
  bDeviceSubClass = 0x
  bDeviceProtocol = 0x0001
  bMaxPacketSize0 = 0x0040
  idVendor = 0x
  idProduct = 0x
  bcdDevice = 0x0100
  iManufacturer = 0x0001  Intel
  iProduct = 0x0002  EHCI root HUB
  iSerialNumber = 0x  no string
  bNumConfigurations = 0x0001

ugen3.2: USB 2.0 Storage Device vendor 0x0402 at usbus3, cfg=0
md=HOST spd=HIGH (480Mbps) pwr=ON

  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0200
  bDeviceClass = 0x
  bDeviceSubClass = 0x
  bDeviceProtocol = 0x
  bMaxPacketSize0 = 0x0040
  idVendor = 0x0402
  idProduct = 0x5642
  bcdDevice = 0x0100
  iManufacturer = 0x  no string
  iProduct = 0x0001  USB 2.0 Storage Device
  iSerialNumber = 0x0002  12345678901234567890
  bNumConfigurations = 0x0001

Thanks!

Spil
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: USB modem?

2009-12-10 Thread Ernst W. Winter
On Thu, 10 Dec 2009, Mike Tancsa wrote:

 At 10:40 PM 12/9/2009, Ernst W. Winter wrote:
 Hello,
 
 well I have a NetPC from Asus with a UMTS modem.
 What is the output of
 
 usbdevs -v

 or if RELENG_8
 usbconfig dump_device_desc
 
-Snip-

ugen1.1: UHCI root HUB Intel at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON

  bLength = 0x0012 
  bDescriptorType = 0x0001 
  bcdUSB = 0x0100 
  bDeviceClass = 0x0009 
  bDeviceSubClass = 0x 
  bDeviceProtocol = 0x 
  bMaxPacketSize0 = 0x0040 
  idVendor = 0x 
  idProduct = 0x 
  bcdDevice = 0x0100 
  iManufacturer = 0x0001  Intel
  iProduct = 0x0002  UHCI root HUB
  iSerialNumber = 0x  no string
  bNumConfigurations = 0x0001 

ugen0.1: UHCI root HUB Intel at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON

  bLength = 0x0012 
  bDescriptorType = 0x0001 
  bcdUSB = 0x0100 
  bDeviceClass = 0x0009 
  bDeviceSubClass = 0x 
  bDeviceProtocol = 0x 
  bMaxPacketSize0 = 0x0040 
  idVendor = 0x 
  idProduct = 0x 
  bcdDevice = 0x0100 
  iManufacturer = 0x0001  Intel
  iProduct = 0x0002  UHCI root HUB
  iSerialNumber = 0x  no string
  bNumConfigurations = 0x0001 

ugen2.1: UHCI root HUB Intel at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON

  bLength = 0x0012 
  bDescriptorType = 0x0001 
  bcdUSB = 0x0100 
  bDeviceClass = 0x0009 
  bDeviceSubClass = 0x 
  bDeviceProtocol = 0x 
  bMaxPacketSize0 = 0x0040 
  idVendor = 0x 
  idProduct = 0x 
  bcdDevice = 0x0100 
  iManufacturer = 0x0001  Intel
  iProduct = 0x0002  UHCI root HUB
  iSerialNumber = 0x  no string
  bNumConfigurations = 0x0001 

ugen3.1: UHCI root HUB Intel at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON

  bLength = 0x0012 
  bDescriptorType = 0x0001 
  bcdUSB = 0x0100 
  bDeviceClass = 0x0009 
  bDeviceSubClass = 0x 
  bDeviceProtocol = 0x 
  bMaxPacketSize0 = 0x0040 
  idVendor = 0x 
  idProduct = 0x 
  bcdDevice = 0x0100 
  iManufacturer = 0x0001  Intel
  iProduct = 0x0002  UHCI root HUB
  iSerialNumber = 0x  no string
  bNumConfigurations = 0x0001 

ugen4.1: EHCI root HUB Intel at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) 
pwr=ON

  bLength = 0x0012 
  bDescriptorType = 0x0001 
  bcdUSB = 0x0200 
  bDeviceClass = 0x0009 
  bDeviceSubClass = 0x 
  bDeviceProtocol = 0x0001 
  bMaxPacketSize0 = 0x0040 
  idVendor = 0x 
  idProduct = 0x 
  bcdDevice = 0x0100 
  iManufacturer = 0x0001  Intel
  iProduct = 0x0002  EHCI root HUB
  iSerialNumber = 0x  no string
  bNumConfigurations = 0x0001 

ugen4.2: product 0x5406 vendor 0x0781 at usbus4, cfg=0 md=HOST spd=HIGH 
(480Mbps) pwr=ON

  bLength = 0x0012 
  bDescriptorType = 0x0001 
  bcdUSB = 0x0200 
  bDeviceClass = 0x 
  bDeviceSubClass = 0x 
  bDeviceProtocol = 0x 
  bMaxPacketSize0 = 0x0040 
  idVendor = 0x0781 
  idProduct = 0x5406 
  bcdDevice = 0x0200 
  iManufacturer = 0x0001  SanDisk
  iProduct = 0x0002  U3 Cruzer Micro
  iSerialNumber = 0x0003  19421007B791AE82
  bNumConfigurations = 0x0001 

ugen4.3: HUAWEI Mobile HUAWEI Technology at usbus4, cfg=0 md=HOST spd=HIGH 
(480Mbps) pwr=ON

  bLength = 0x0012 
  bDescriptorType = 0x0001 
  bcdUSB = 0x0200 
  bDeviceClass = 0x 
  bDeviceSubClass = 0x 
  bDeviceProtocol = 0x 
  bMaxPacketSize0 = 0x0040 
  idVendor = 0x12d1 
  idProduct = 0x1001 
  bcdDevice = 0x 
  iManufacturer = 0x0002  HUAWEI Technology
  iProduct = 0x0001  HUAWEI Mobile
  iSerialNumber = 0x  no string
  bNumConfigurations = 0x0001 

ugen1.2: product 0x0535 vendor 0x0d62 at usbus1, cfg=0 md=HOST spd=LOW 
(1.5Mbps) pwr=ON

  bLength = 0x0012 
  bDescriptorType = 0x0001 
  bcdUSB = 0x0110 
  bDeviceClass = 0x 
  bDeviceSubClass = 0x 
  bDeviceProtocol = 0x 
  bMaxPacketSize0 = 0x0008 
  idVendor = 0x0d62 
  idProduct = 0x0535 
  bcdDevice = 0x0231 
  iManufacturer = 0x  no string
  iProduct = 0x  no string
  iSerialNumber = 0x  no string
  bNumConfigurations = 0x0001 


and here the uname -a:


FreeBSD eeepc.ewinter.org 9.0-CURRENT FreeBSD 9.0-CURRENT #5: Mon Nov
16 07:57:28 CET 2009
ewin...@eeepc.ewinter.org:/usr/obj/usr/src/sys/eeepc  i386

-Snip-

I will have to reinstall again and then see with 8.0 as that way I
can sychronize with my other laptop.

Can you give me a couple days over the weekend please?

Looking forward to hear more about it.

Ernst


  ---Mike
 
 
 
 Is there anything for it that I can use with FreeBSD?
 
 I can use it with Ubuntu, tried once and testet and it works, but
 since I use FreeBSD only it would be nice to know that it is possible
 too with FreeBSD.
 
 Thanks in advance for any feedback.
 
 Ernst Winter
 
 --
 O ascii ribbon campaign - stop html mail - www.asciiribbon.org
 Mail plain ASCII text.  HTML  Base64 text are spam.
 
 ___
 freebsd-usb@freebsd.org mailing list
 

Re: USB modem?

2009-12-10 Thread Mike Tancsa

At 03:42 PM 12/10/2009, Ernst W. Winter wrote:

ugen4.3: HUAWEI Mobile HUAWEI Technology at usbus4, cfg=0 md=HOST 
spd=HIGH (480Mbps) pwr=ON


  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0200
  bDeviceClass = 0x
  bDeviceSubClass = 0x
  bDeviceProtocol = 0x
  bMaxPacketSize0 = 0x0040
  idVendor = 0x12d1
  idProduct = 0x1001
  bcdDevice = 0x
  iManufacturer = 0x0002  HUAWEI Technology
  iProduct = 0x0001  HUAWEI Mobile
  iSerialNumber = 0x  no string
  bNumConfigurations = 0x0001


It should be recognized by the stock u3g driver.  If you do kldload 
u3g, do some /dev/cuaU#.# devices appear ?


and here the uname -a:



FreeBSD eeepc.ewinter.org 9.0-CURRENT FreeBSD 9.0-CURRENT #5: Mon Nov
16 07:57:28 CET 2009
ewin...@eeepc.ewinter.org:/usr/obj/usr/src/sys/eeepc  i386


RELENG_8 and above should be the same for this.

---Mike




Mike Tancsa,  tel +1 519 651 3400
Sentex Communications,m...@sentex.net
Providing Internet since 1994www.sentex.net
Cambridge, Ontario Canada www.sentex.net/mike

___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


USB serial device naming

2009-12-10 Thread Trevor Blackwell


I cannot seem to find a way to identify serial ports. I have two  
serial USB devices, which I can distinguish easily from usbconfig:


	ugen2.3: URG-Series USB Driver Hokuyo Data Flex for USB at usbus2,  
cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON
	ugen0.2: USB-Serial Controller Prolific Technology Inc. at usbus0,  
cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON


and they result in two ttys:
/dev/cuaU0
/dev/cuaU1

but I can't figure out how to map the USB devices to tty names.  
They're assigned sequentially by a bitmap system in usb_serial.c


Currently, no devices seem to be using this mechanism:

sys/dev/usb/serial/usb_serial.c:
/* Check if the client has a custom TTY name */
if (sc-sc_callback-ucom_tty_name) {
sc-sc_callback-ucom_tty_name(sc, buf,
sizeof(buf), sc-sc_local_unit);
}

is that the right way? Or, what I really want is some sort of ioctl on  
the raw USB device or usbconfig option to tell me what serial port it  
appears as.


--
Trevor Blackwell650 776 7870t...@tlb.org





___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org