Google
  Web www.spinics.net

Re: g_file_storage gadget not working with Vista

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Thu, 15 Mar 2007 rockwell618@xxxxxxxxx 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@xxxxxxxxxxxxxxxxxxxxx
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

[Linux USB]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Video Projectors]     [PDAs]     [Free Online Dating]     [Hacking TiVo]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Devices]     [Big List of Linux Books]     [16.7MP]

Powered by Linux