On Sun, 16 Sep 2007, mahesh waran wrote:

> Hi Engineers,
> Dear all:
> 
> When I use the g_file_strogae.ko module, I failed to write big file to the 
> disk.
> 
> Hardware platform:
> 
> CPU: S3C2440A
> 
> SDRAM: 32M sdram
> 
> Kernel:2.6.19 
> 
> processor:AT91SAM9261
> 
> I plug a 256MBytes usb flashdisk(fat32 type) into the board usb host
> interface, and connect a usb line between the board usb device interface
> and a PC with WinXP OS. 
> 
> In the board side, I use the following command:
> 
> #> insmod ./g_file_storage.ko file=/dev/sda removable=1
> 
> where /dev/sda is the external 256MB flash disk.
> 
> Then in the PC side, XP can recognize the board as a usb mass storage
> 
> device. And read big file(3Mbytes) is OK.
> 
> But when I write a big file(3Mbytes) into the board from XP side, the
> speed is very slow and finally failed. (Write a 3KBytes file is OK). In
> the board side, kernel repeatedly printed following message every
> several seconds. "g_file_storage gadget: full speed config #1".
> 
> What's wrong with it?

To find out what is wrong, you must edit the source file 
drivers/usb/gadget/file_storage.c.  Change the lines saying

#undef DEBUG
#undef VERBOSE

to

#define DEBUG
#define VERBOSE

Then rebuild the driver and run your test again.  When it is done, post 
the output from dmesg on the board so we can see what happened.

Alan Stern


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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