Re: A-DATA flash drive: "Attempt to query device size failed"

2003-08-09 Thread Igor B. Bykhalo
From: "Kevin Oberman" <[EMAIL PROTECTED]>
To: "Igor B. Bykhalo" <[EMAIL PROTECTED]>
Cc: "FreeBSD Questions" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, August 07, 2003 6:17 PM
Subject: Re: A-DATA flash drive: "Attempt to query device size failed" 


> > From: "Igor B. Bykhalo" <[EMAIL PROTECTED]>
> > Date: Wed, 6 Aug 2003 11:15:40 +0400
> 
> > > I'm not too sure how many of the fixes in 5.0 have been MFC'ed to
> > > STABLE. The 5.0 USB code has had a lot of work of late and most flash
> > 
> > The last commit to scsi_da.c was a week ago by njl, and looking to it
> > via cvsweb i don't see difference in quirks (well, by my untrained eyes).
> 
> Nate MFCed the latest USB stuff last night. Try updating your system
> and see if things are better.
> -- 
> R. Kevin Oberman, Network Engineer
> Energy Sciences Network (ESnet)
> Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
> E-mail: [EMAIL PROTECTED] Phone: +1 510 486-8634

I tested fresh updates... All the same :-(

But i noticed a couple of strange things. From the output of the usbd -v:


/kernel: usbd: device-attach event at 0.020285000, USB Embedded Hub, A-DATA Technology 
Inc.:
/kernel: vndr=0x067b prdct=0x2515 rlse=0x0001 clss=0x0009 subclss=0x prtcl=0x
/kernel: device names: uhub1
/kernel: usbd: Found action 'USB device' for USB Embedded Hub, A-DATA Technology Inc. 
at uhub1

/kernel: usbd: device-attach event at 0.023338000, USB Mass Storage Device, A-DATA 
Technology Inc.:
/kernel: vndr=0x067b prdct=0x2517 rlse=0x0001 clss=0x subclss=0x prtcl=0x
/kernel: device names: umass0
/kernel: usbd: Found action 'USB device' for USB Mass Storage Device, A-DATA 
Technology Inc. at umass0

Here we have:

vendor 0x067b - according to usbdevs.h this is Prolific Technology... hmmm

product 0x2515 (not in usbdevs.h) class 0x0009 (hub) - well, it is identified
as hub (UICLASS_HUB in usb.h)

product 0x2517 (not in usbdevs.h) class 0x - my understanding is that
this should be 0x0008 (UICLASS_MASS in usb.h)

So: usbd reports vndr=0x067b but prints A-DATA; probably this is harmless...
usbd reports clss=0x for mass-storage part - i think this is bad?
products identifiers are not in usbdevs, usbdevs.h - ?

How should i act in this situation?

Oh, and when using "options DA_OLD_QUIRKS", am i right i still
need to manually add quirk to scsi_da_c?

TIA,
Igor


> 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: A-DATA flash drive: "Attempt to query device size failed"

2003-08-06 Thread Kevin Oberman
> From: "Igor B. Bykhalo" <[EMAIL PROTECTED]>
> Date: Tue, 5 Aug 2003 14:18:50 +0400
> Sender: [EMAIL PROTECTED]
> 
> I purchased the 256 MB A-DATA flash drive (USB 2.0 SpeedDrive),
> but the system can't query its size. Here is corresponding parts
> of system messages (boot -v):
> 
> Aug  5 12:53:57 goshik /kernel: uhub1: A-DATA Technology Inc. USB Embedded Hub, 
> class 9/0, rev 2.00/0.01, addr 2
> Aug  5 12:53:58 goshik /kernel: uhub1: 1 port with 0 removable, self powered

Hmm. Looks like a hub as well as a storage device. I'm not too sure
what impact that might have.

> goshik# camcontrol inquiry da0
> pass0:  Removable Direct Access SCSI-0 device
> pass0: Serial Number 
> pass0: 650KB/s transfers
> goshik# exit
> exit
> 
>  Script done on Tue Aug  5 13:42:17 2003
> 
> I tried to add the following quirk to cam/scsi/scsi_da.c
> and rebuilt kernel, but nothing changed. (Actually,
> i tried also with only DA_Q_NO_6_BYTE, but this didn't help either)
> 
> {
>   /*
>* A-DATA USB Flash 2.0 P1.0 SpeedDrive
>*/
>   {T_DIRECT, SIP_MEDIA_REMOVABLE, "A-DATA", "Flash Disk", "*"},
>   /*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE
> }
> 
> Can someone help me with this? I don't know what else
> to do...

I don't think the quirk is right. I'd try:
> {
>   /*
>* A-DATA USB Flash 2.0 P1.0 SpeedDrive
>*/
>   {T_DIRECT, SIP_MEDIA_REMOVABLE, "A-DATA", "Flas*", "*"},
>   /*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE
> }

Also, you either need to append a comma to the close brace (if this is
inserted in the list of quirks) or append a comma to the prior entry
if you are placing this at the end of the quirks. (I suspect that you
did this, but it is not clear.)

I'm not too sure how many of the fixes in 5.0 have been MFC'ed to
STABLE. The 5.0 USB code has had a lot of work of late and most flash
drives just work, now. I imagine that most of these will get to STABLE
soon. The 10 byte command issue was just resolved in current last
week, so it should make it into STABLE in a couple of weeks unless
there is an issue with STABLE that I m not aware of.

If I missed something obvious, perhaps someone else can point it out.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: [EMAIL PROTECTED]   Phone: +1 510 486-8634
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"