On Fri, 7 Jan 2005, Vladimir Trukhin wrote: > 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.
This is a second, separate problem. To debug it, you should turn on CONFIG_USB_STORAGE_DEBUG on the 2.4.26 PC and post the debugging log showing what happens when you try using fdisk. Also post the g_file_storage debugging log from the PXA gadget, showing the same events as seen from the other end of the connection. > 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. Can you post the g_file_storage debugging log, showing what happens during those 5 minutes? I haven't had any trouble connecting a file-storage gadget to a Windows system, but I haven't been using a PXA board. > But for Linux host it doesn't matter whether or not I use 'removable' > option. The Storage Gadget works properly in both cases. It's nice to know that Linux can handle some devices better than Windows can! Alan Stern ------------------------------------------------------- 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