On Fri, Feb 22, 2008 at 8:52 AM, David Brownell <[EMAIL PROTECTED]> wrote: > On Wednesday 20 February 2008, Francis Moreau wrote: > > Hello, > > > > I'm struggling with this module to test my udc. > > > > I loaded the zero driver like the following: > > > > $ modprobe g_zero pattern=1 > > > > and loaded usbtest module on the host: > > > > $ modprobe usbtest pattern=1 > > > > So I basically use the default parameters for both modules. > > No; default params would not pass "pattern=1" on the command line. >
yeah I should have said "I almost use the default parameters..." > > > > Specially the 'buflen' parameter for the zero driver is 4096 bytes. > > > > To start the tests, I use the testusb user tool with the wrapper script > test.sh. > > In this script, the buflen for the host is set to 2048. > > Which as you note is incompatible with "pattern=1". > > If you want to use "pattern=1" you need a different test script. > > Well we could do a set_interface of set_config after each loop that way the pattern restart to 0. Or make the pattern %64 instead of %63 could work when buflen is a power of 2. -- Francis - To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
