On Tue, Feb 28, 2006 at 10:29:03PM -0800, David Brownell wrote: > On Tuesday 28 February 2006 9:48 pm, Marc Singer wrote: > > > The question is this: what is the simplest gadget to use for debugging > > a UDC driver? I started with the serial gadget because I figured it > > would be easy to verify that it is working. > > Gadget Zero is designed to be the place to start; see also the scriptable > tests (and other testing information) at > > http://www.linux-usb.org/usbtest/#gadgets > > Be sure to download not just "testusb.c" to whack it using common > types of sadism, but also use "test.sh" to make sure you hit some of > the significant boundary conditions (short packets, patterns, etc). > > You will likely find getting control transfers to behave with "test 10" > overnight will be ... interesting, but worthwhile. Once you can leave > your host running "sh test.sh control in out" overnight, the driver > will be sufficiently revived for most purposes. :)
I'm not seeing an explanation of what the tests should look like. How long should each one last? Most take about a second. A couple, 6, 7, 8, and 9 take less than 20 seconds. 10 is still running after a few minutes. I always see this as well, [EMAIL PROTECTED] ~/z/usb > sudo ./testusb -a -t10 unknown speed /proc/bus/usb/002/005 Is the unknown speed message expected? The only oddity I've seen so far is that the gadget wasn't detected when the target (gadget) rebooted. I know that the driver has an error in the USB power control. Perhaps that's at fault in the detection. I'm also finding that the tests don't respond to ^C or ^\. In fact, it looks like test 10 has locked-up, but I cannot be sure.. It stops when I remove the USB cable. I'm running test.sh in out overnight to see if it finds anything peculiar. Cheers. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel