Re: da(4) not attaching to USB drive

2011-01-23 Thread Hans Petter Selasky
On Monday 24 January 2011 08:50:52 Hans Petter Selasky wrote:
> It is the USB device number from the USB device descriptor.
  ^^^ version

--HPS
___
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: da(4) not attaching to USB drive

2011-01-23 Thread Hans Petter Selasky
On Monday 24 January 2011 06:31:42 Matthias Apitz wrote:
> El día Sunday, January 23, 2011 a las 07:44:04PM +0100, Hans Petter Selasky 
escribió:
> > Try adding some mass storage quirks:
> > 
> > kldload usb_quirk
> > 
> > usbconfig -d X.Y add_dev_quirk_vplh x x x x x x
> 
> I tried w/o understanding what I do:
> 
> usbconfig -d 4.3 add_dev_quirk_vplh 0x07ab 0xfc8e 0x 0x
> UQ_CFG_INDEX_0
> 
> and printed some of the quirks:
> 
> ...
> VID=0x0204 PID=0x6026 REVLO=0x REVHI=0x QUIRK=UQ_MSC_NO_SYNC_CACHE
> VID=0x07ff PID=0x00ff REVLO=0x REVHI=0x QUIRK=UQ_MSC_NO_SYNC_CACHE
> VID=0x07ab PID=0xfc8e REVLO=0x REVHI=0x QUIRK=UQ_CFG_INDEX_0
> 
> is there some documentation of the parameters REVLO, REVHI and QUIRK?
> Thx
> 

It is the USB device number from the USB device descriptor.

--HPS
___
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: da(4) not attaching to USB drive

2011-01-23 Thread Matthias Apitz
El día Sunday, January 23, 2011 a las 07:44:04PM +0100, Hans Petter Selasky 
escribió:

> Try adding some mass storage quirks:
> 
> kldload usb_quirk
> 
> usbconfig -d X.Y add_dev_quirk_vplh x x x x x x

I tried w/o understanding what I do:

usbconfig -d 4.3 add_dev_quirk_vplh 0x07ab 0xfc8e 0x 0x UQ_CFG_INDEX_0

and printed some of the quirks:

...
VID=0x0204 PID=0x6026 REVLO=0x REVHI=0x QUIRK=UQ_MSC_NO_SYNC_CACHE
VID=0x07ff PID=0x00ff REVLO=0x REVHI=0x QUIRK=UQ_MSC_NO_SYNC_CACHE
VID=0x07ab PID=0xfc8e REVLO=0x REVHI=0x QUIRK=UQ_CFG_INDEX_0

is there some documentation of the parameters REVLO, REVHI and QUIRK?
Thx

matthias
-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e  - w http://www.unixarea.de/
___
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: da(4) not attaching to USB drive

2011-01-23 Thread Hans Petter Selasky
On Sunday 23 January 2011 19:29:18 Matthias Apitz wrote:
> El día Sunday, January 23, 2011 a las 05:48:24PM +0100, Hans Petter Selasky 
escribió:
> > On Sunday 23 January 2011 10:06:00 Hans Petter Selasky wrote:
> > > Hi Mav,
> > > 
> > > Do you know if there are any recent changes in the SCSI layer on
> > > FreeBSD that will affect USB SCSI devices?
> > 
> > Another idea:
> > 
> > Maybe your device is too late identifying itself. You could try:
> > 
> > usbconfig -d X.Y set_config 0
> > 
> > Then:
> > 
> > usbconfig -d X.Y set_config 1
> > 
> > After that the device has been plugged.
> 
> usbconfig -d X.Y set_config 1 always gives
> usbconfig: could not set config index: Input/output error
> regardless if the disk is plugged in or not;
> 
> today once it connected by its own, i.e. it was sitting pluged in and
> after a while it diconnected and connected again (without my action, I
> was reading some mail):
> 
> ...
> Jan 23 18:10:03 tinyCurrent kernel: (probe0:umass-sim0:0:0:0): AutoSense
> failed Jan 23 18:10:03 tinyCurrent kernel: ugen4.3:  at usbus4
> (disconnected) Jan 23 18:10:03 tinyCurrent kernel: umass0: at uhub4, port
> 1, addr 3 (disconnected) Jan 23 18:10:05 tinyCurrent root: Unknown USB
> device: vendor 0x07ab product 0xfc8e bus uhub4 Jan 23 18:10:05 tinyCurrent
> kernel: ugen4.3:  at usbus4
> Jan 23 18:10:05 tinyCurrent kernel: umass0:  on usbus4
> Jan 23 18:10:05 tinyCurrent kernel: umass0:  SCSI over Bulk-Only; quirks =
> 0x Jan 23 18:10:06 tinyCurrent kernel: umass0:0:0:-1: Attached to
> scbus0 Jan 23 18:11:16 tinyCurrent kernel: (probe0:umass-sim0:0:0:0):
> AutoSense failed Jan 23 18:11:16 tinyCurrent kernel: ugen4.3:  at
> usbus4 (disconnected) Jan 23 18:11:16 tinyCurrent kernel: umass0: at
> uhub4, port 1, addr 3 (disconnected)
> 
> and now it connects with success by its own:
> 
> Jan 23 18:11:18 tinyCurrent kernel: ugen4.3:  at usbus4
> Jan 23 18:11:18 tinyCurrent kernel: umass0:  on usbus4
> Jan 23 18:11:18 tinyCurrent kernel: umass0:  SCSI over Bulk-Only; quirks =
> 0x Jan 23 18:11:18 tinyCurrent root: Unknown USB device: vendor 0x07ab
> product 0xfc8e bus uhub4 Jan 23 18:11:19 tinyCurrent kernel:
> umass0:0:0:-1: Attached to scbus0 Jan 23 18:11:19 tinyCurrent kernel: da0
> at umass-sim0 bus 0 scbus0 target 0 lun 0 Jan 23 18:11:19 tinyCurrent
> kernel: da0:  Fixed Direct Acc ess SCSI-2
> device Jan 23 18:11:19 tinyCurrent kernel: da0: 40.000MB/s transfers
> 

Try adding some mass storage quirks:

kldload usb_quirk

usbconfig -d X.Y add_dev_quirk_vplh x x x x x x

--HPS
___
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: da(4) not attaching to USB drive

2011-01-23 Thread Matthias Apitz
El día Sunday, January 23, 2011 a las 05:48:24PM +0100, Hans Petter Selasky 
escribió:

> On Sunday 23 January 2011 10:06:00 Hans Petter Selasky wrote:
> > Hi Mav,
> > 
> > Do you know if there are any recent changes in the SCSI layer on FreeBSD
> > that will affect USB SCSI devices?
> 
> Another idea:
> 
> Maybe your device is too late identifying itself. You could try:
> 
> usbconfig -d X.Y set_config 0
> 
> Then:
> 
> usbconfig -d X.Y set_config 1
> 
> After that the device has been plugged.

usbconfig -d X.Y set_config 1 always gives 
usbconfig: could not set config index: Input/output error
regardless if the disk is plugged in or not;

today once it connected by its own, i.e. it was sitting pluged in and
after a while it diconnected and connected again (without my action, I
was reading some mail):

...
Jan 23 18:10:03 tinyCurrent kernel: (probe0:umass-sim0:0:0:0): AutoSense failed
Jan 23 18:10:03 tinyCurrent kernel: ugen4.3:  at usbus4 (disconnected)
Jan 23 18:10:03 tinyCurrent kernel: umass0: at uhub4, port 1, addr 3 
(disconnected)
Jan 23 18:10:05 tinyCurrent root: Unknown USB device: vendor 0x07ab product 
0xfc8e bus uhub4
Jan 23 18:10:05 tinyCurrent kernel: ugen4.3:  at usbus4
Jan 23 18:10:05 tinyCurrent kernel: umass0:  on usbus4
Jan 23 18:10:05 tinyCurrent kernel: umass0:  SCSI over Bulk-Only; quirks = 
0x
Jan 23 18:10:06 tinyCurrent kernel: umass0:0:0:-1: Attached to scbus0
Jan 23 18:11:16 tinyCurrent kernel: (probe0:umass-sim0:0:0:0): AutoSense failed
Jan 23 18:11:16 tinyCurrent kernel: ugen4.3:  at usbus4 (disconnected)
Jan 23 18:11:16 tinyCurrent kernel: umass0: at uhub4, port 1, addr 3
 (disconnected)

and now it connects with success by its own:

Jan 23 18:11:18 tinyCurrent kernel: ugen4.3:  at usbus4
Jan 23 18:11:18 tinyCurrent kernel: umass0:  on usbus4
Jan 23 18:11:18 tinyCurrent kernel: umass0:  SCSI over Bulk-Only; quirks = 
0x
Jan 23 18:11:18 tinyCurrent root: Unknown USB device: vendor 0x07ab product 
0xfc8e bus uhub4
Jan 23 18:11:19 tinyCurrent kernel: umass0:0:0:-1: Attached to scbus0
Jan 23 18:11:19 tinyCurrent kernel: da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
Jan 23 18:11:19 tinyCurrent kernel: da0:  Fixed 
Direct Acc ess SCSI-2 device
Jan 23 18:11:19 tinyCurrent kernel: da0: 40.000MB/s transfers

Let me know if you need more debug output

Thx

matthias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e  - w http://www.unixarea.de/
___
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: da(4) not attaching to USB drive

2011-01-23 Thread Hans Petter Selasky
On Sunday 23 January 2011 10:06:00 Hans Petter Selasky wrote:
> Hi Mav,
> 
> Do you know if there are any recent changes in the SCSI layer on FreeBSD
> that will affect USB SCSI devices?

Another idea:

Maybe your device is too late identifying itself. You could try:

usbconfig -d X.Y set_config 0

Then:

usbconfig -d X.Y set_config 1

After that the device has been plugged.

--HPS
___
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: da(4) not attaching to USB drive

2011-01-23 Thread Hans Petter Selasky
Hi Mav,

Do you know if there are any recent changes in the SCSI layer on FreeBSD that 
will affect USB SCSI devices?

--HPS


On Saturday 22 January 2011 16:08:35 Matthias Apitz wrote:
> El día Saturday, January 22, 2011 a las 04:03:01PM +0100, Hans Petter 
Selasky escribió:
> > > > Is the HDD supplied with external power?
> > > 
> > > Yes.
> > > 
> > >   matthias
> > 
> > Have you tried a:
> > 
> > camcontrol rescan all
> 
> yes:
> 
> # usbconfig -u 4 -a 3 dump_device_desc
> ugen4.3:  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 = 0x07ab
>   idProduct = 0xfc8e
>   bcdDevice = 0x0108
>   iManufacturer = 0x0002  
>   iProduct = 0x0003  
>   iSerialNumber = 0x0001  
>   bNumConfigurations = 0x0001
> 
> # camcontrol rescan all
> Re-scan of bus 0 was successful

___
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: da(4) not attaching to USB drive

2011-01-22 Thread Matthias Apitz

and if I pull out the USB cable and plug it into my EeePC sitting next
to the Acer, da(4) attaches fine ... but all the other laptops are
running a 8.x version;

matthias
-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e  - w http://www.unixarea.de/
___
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: da(4) not attaching to USB drive

2011-01-22 Thread Matthias Apitz
El día Saturday, January 22, 2011 a las 04:03:01PM +0100, Hans Petter Selasky 
escribió:

> > > Is the HDD supplied with external power?
> > 
> > Yes.
> > 
> > matthias
> 
> Have you tried a:
> 
> camcontrol rescan all

yes:

# usbconfig -u 4 -a 3 dump_device_desc
ugen4.3:  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 = 0x07ab 
  idProduct = 0xfc8e 
  bcdDevice = 0x0108 
  iManufacturer = 0x0002  
  iProduct = 0x0003  
  iSerialNumber = 0x0001  
  bNumConfigurations = 0x0001 

# camcontrol rescan all
Re-scan of bus 0 was successful

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e  - w http://www.unixarea.de/
___
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: da(4) not attaching to USB drive

2011-01-22 Thread Hans Petter Selasky
On Saturday 22 January 2011 16:00:28 Matthias Apitz wrote:
> El día Saturday, January 22, 2011 a las 02:49:36PM +0100, Hans Petter 
Selasky escribió:
> > On Saturday 22 January 2011 11:42:39 Matthias Apitz wrote:
> > > Drive XS 1.00> Fixed Direct Access SCSI-2 device Jan 22 09:23:11
> > > tinyCurrent kernel: da0: 40.000MB/s transfers
> > > Jan 22 09:23:11 tinyCurrent kernel: da0: 1430799MB (2930277168 512 byte
> > > sectors: 255H 63S/T 182401C)
> > > 
> > > The kernel is 9-CURRENT r21 (October 2010). Any ideas?
> > > 
> > >   matthias
> > 
> > Is the HDD supplied with external power?
> 
> Yes.
> 
>   matthias

Have you tried a:

camcontrol rescan all

--HPS
___
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: da(4) not attaching to USB drive

2011-01-22 Thread Matthias Apitz
El día Saturday, January 22, 2011 a las 02:49:36PM +0100, Hans Petter Selasky 
escribió:

> On Saturday 22 January 2011 11:42:39 Matthias Apitz wrote:

> > Drive XS 1.00> Fixed Direct Access SCSI-2 device Jan 22 09:23:11
> > tinyCurrent kernel: da0: 40.000MB/s transfers
> > Jan 22 09:23:11 tinyCurrent kernel: da0: 1430799MB (2930277168 512 byte
> > sectors: 255H 63S/T 182401C)
> > 
> > The kernel is 9-CURRENT r21 (October 2010). Any ideas?
> > 
> > matthias
> 
> Is the HDD supplied with external power?

Yes.

matthias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e  - w http://www.unixarea.de/
___
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: da(4) not attaching to USB drive

2011-01-22 Thread Hans Petter Selasky
On Saturday 22 January 2011 11:42:39 Matthias Apitz wrote:
> Hello,
> 
> I have the problem with my new laptop Acer Aspire One that an USB disk
> is not attaching most of the time; the disk itself works in 3 other
> laptops without any problem; here is a (normal) bad and one positive
> example from messages:
> 
> 
> Jan 22 09:22:44 tinyCurrent root: Unknown USB device: vendor 0x07ab product
> 0xfc8e bus uhub4 Jan 22 09:22:44 tinyCurrent kernel: ugen4.3:  at
> usbus4
> Jan 22 09:22:44 tinyCurrent kernel: umass0:  on usbus4
> Jan 22 09:22:44 tinyCurrent kernel: umass0:  SCSI over Bulk-Only; quirks =
> 0x Jan 22 09:22:45 tinyCurrent kernel: umass0:0:0:-1: Attached to
> scbus0 Jan 22 09:22:57 tinyCurrent kernel: ugen4.3:  at usbus4
> (disconnected) Jan 22 09:22:57 tinyCurrent kernel: umass0: at uhub4, port
> 1, addr 3 (disconnected) Jan 22 09:22:57 tinyCurrent kernel:
> (probe0:umass-sim0:0:0:0): AutoSense failed
> 
> 
> Jan 22 09:23:10 tinyCurrent root: Unknown USB device: vendor 0x07ab product
> 0xfc8e bus uhub4 Jan 22 09:23:10 tinyCurrent kernel: ugen4.3:  at
> usbus4
> Jan 22 09:23:10 tinyCurrent kernel: umass0:  on usbus4
> Jan 22 09:23:10 tinyCurrent kernel: umass0:  SCSI over Bulk-Only; quirks =
> 0x Jan 22 09:23:11 tinyCurrent kernel: umass0:0:0:-1: Attached to
> scbus0 Jan 22 09:23:11 tinyCurrent kernel: da0 at umass-sim0 bus 0 scbus0
> target 0 lun 0 Jan 22 09:23:11 tinyCurrent kernel: da0:  Drive XS 1.00> Fixed Direct Access SCSI-2 device Jan 22 09:23:11
> tinyCurrent kernel: da0: 40.000MB/s transfers
> Jan 22 09:23:11 tinyCurrent kernel: da0: 1430799MB (2930277168 512 byte
> sectors: 255H 63S/T 182401C)
> 
> The kernel is 9-CURRENT r21 (October 2010). Any ideas?
> 
>   matthias

Is the HDD supplied with external power?

--HPS
___
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"