On Thu, 15 Mar 2007 [EMAIL PROTECTED] wrote:

> Yes Vista appears to work fine with regular flash drives.
> 
> Rebuilt g_file_storage.ko in debug mode as suggested.  Dmesg output
> for Vista follows:

This is interesting.  Here's the important part:

>      0:  55 53 42 43 40 1c 63 83  ff 00 00 00 80 00 06 12
>     10:  01 80 00 ff 00 00 00 00  00 00 00 00 00 00 00
> g_file_storage gadget: SCSI command: INQUIRY;  Dc=6, Di=255;  Hc=6, Hi=255

It's an INQUIRY command with the transfer length set to 255 and the Enable 
Vital Product Data bit turned on.  All earlier versions of Windows have 
used transfer lengths of 36 and left EVPD turned off -- and we know that 
many USB devices will crash if the transfer length is anything other than 
36.

Anyway, g_file_storage doesn't support EVPD, so in compliance with the 
SCSI spec it sendt back an error status:

> g_file_storage gadget: bulk-in, length 0:
> g_file_storage gadget: bulk-in set halt
> g_file_storage gadget: sending command-failure status
> g_file_storage gadget:   sense data: SK x05, ASC x24, ASCQ x00;  info x0

At that point Vista just gave up.  The question is: How does Vista behave
when a real flash device is plugged in?  I don't know if USBSnoopy will
work under Vista, but it's worth a try.  You can get it from SourceForge.

Alan Stern


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Linux-usb-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to