Hi Alan,

Thanks for your fast reply!


Alan Stern wrote:

On Thu, 6 Jan 2005, Vladimir Trukhin wrote:


Due to mkdosfs does not work with USB directly (it failed with " unable to get drive geometry for '/dev/uba1' "),



It probably would have worked better if you had used usb-storage instead of ub.




I switched to kernel 2.4.26 on my PC (Slackware 10) and tryed to use usb-storage module.
But fdisk told me " Unable to read /dev/sda ".


At the same time /proc/bus/usb/devices shows that device is connected:
------------------------------------
T:  Bus=04 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  6 Spd=12  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=16 #Cfgs=  1
P:  Vendor=0525 ProdID=a4a5 Rev= 3.03
S:  Manufacturer=Linux 2.6.10-pxa255-ez-x5 with pxa2xx_u
S:  Product=File-backed Storage Gadget
S:  SerialNumber=3238204A756C
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  2mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
------------------------------------

That's rather strange cause it works fine with an ordinary Flash Memory Card in the same USB socket.

Also, if I use kernel 2.6.9 on my PC and ub driver instead of usb-storage the board works properly.


........
udc: USB reset
udc: USB reset
g_file_storage gadget: full speed config #1
udc: USB reset
udc: USB reset
g_file_storage gadget: full speed config #1
... and so on.



That looks normal.


<>Everything in your log looked normal. And it should only have taken a few
seconds. What happened during the remainder of the 3-5 minutes of
waiting?


Well, I found one thing which is probably important.
If I specify 'removable' parameter for g_file_storage module my WinXP eventually connects to the board after about 2...3 minutes of resetting.
But if not, it never connects. And Windows stops to reset approximately in 5 minutes.
In both cases it shows that USB Mass Storage Device is working properly in the Device Manager.


Also, in the first case (after successful connection) I can see that Storage Volume->Generic Volume appears in the Device Manager in 2 or 3 minutes since plugin (and about 20 resets with 5...20 sec timeouts between them).

I tryed to connect the board to the another PCs (WinXP and Win2k). The result was the same.

But for Linux host it doesn't matter whether or not I use 'removable' option. The Storage Gadget works properly in both cases.


Best regards, Vlad Trukhin

PS: I'm sory for double posting my first message. Actually, this was the first time I'd tryed to communicate through a such message list.



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to