Re: writing large file in the usb
Alan Stern <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 11 Sep 2007 [email protected] wrote: > Dear Engineers, > > When I use the g_file_strogae.ko module, I failed to write big file to > the disk. > Hardware platform: > CPU: ARM926T > SDRAM: 32M sdram > Kernel:2.6.19. patch > > > I plug a 512MBytes 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=/fat.fs removable=y > where /fat.fs is the external 512MB flash disk. > Then in the PC side, XP can recognize the board as a usb mass storage > device. And read big file(3Mkbytes) is OK. > But when I write a big file(above 30kbytes) into the board from XP side, the > speed is very slow and finally failed. (Write a 30KBytes 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? and i have face i/o device error when writing the big file. > please can you help me. I have answered your questions already. Didn't you see my reply? In order to find out what's going wrong, you must enable debugging in the g_file_storage source code. Near the start of drivers/usb/gadget/file_storage.c, change the lines that say #undef DEBUG #undef VERBOSE_DEBUG to #define DEBUG #define VERBOSE_DEBUG and then rebuild the driver. 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/ _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel