On Tue, 13 Sep 2005, xiuzhanyu wrote:

> Dear All:
>       I insmod g_file_storage module of linux 2.6.12 on smdk2440 platform,
> usb slave simulate a usb mass storage ,
> My configuration :
> Insmod g_file_storage.ko file=/dev/mtdblock/3 removable=1 
> 
> Then plug it in Windows XP host,  the Host can found a usb mass storage
> (Linux File-Stor Gadget) and read file from it,  it can formattedit also;
> 
> But this mass storage can not writed file ; I use bushond tool catch some
> info (attached file).
> 
> ////////////////////////////////////////////////////////////////////////////
> ////////////////////////////////
>  
> When do_scsi_command()-->do_write() , the g_file_storage "Timeout" , why to
> cause timeout ? 

You can get better debugging if you edit the file_storage.c source file.  
Find the lines that say

#undef DEBUG
#undef VERBOSE
#undef DUMP_MSGS

and change them to #define.  Then the system log on the gadget will show 
what's going wrong.

Alan Stern



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to