On Friday 14 April 2006 9:16 am, Brian Wang wrote:
> Hello all,
> 
> I am testing the USB gadget support for S3C2410 on a platform similar
> to the SMDK2410 board.  I am using the patches found on:
> http://handhelds.org/moin/moin.cgi/HpIpaqH1940Downloads
> (Linux 2.6.14.3)

There's newer code, as I recall; search archives of this list in
the last month or two.  I'd expect the newer code would be able to
work on that older kernel.


> The test results are described below.  I am sorry that it's a bit long...
> "testusb.c" program is used to perform the testing (The host is
> running Gentoo, Linux 2.6.12-r1) on g_zero.
>    * -t9 always suceeds.
>    * -t10 seems to _pause_ when the "Operation not supported" message
> is issued by the s3c2410_udc.c driver.
>    * -t14 always fails.

I think the newer code got "-t9" and "-t10" to work, but still didn't
resolve the ep0out issues shown by "-t14".


>    * Those bulk-out tests all succeed.
>    * The first -t2 (bulk-in) test always succeed.  All the following
> -t2 tests will fail with -110 (connection timeout).

And I think the newer code was more successful with bulk-IN too.

 
> One more strange thing is that if the debugging messages of
> s3c2410_udc.c are turned on, M$ WinXP will recognize the board as a
> mass storage device, when g_file_storage is used.  I can even
> read/write small amount of data to it with extremely bad performance,
> of course.  When the messages are turned off, the enumeration will
> succeed, but XP will later claim that there is something wrong with
> the drive.  Does this indicate a race condition?

Another option would be "gremlins", but they're harder to catch.

 
> What should I check for the tests that failed?  I am a newbie...
> I must have done something very wrong since there seems to be people
> running Linux with the gadget support on h1940 (S3C2410 as the MCU).

The main wrong thing you're doing is trying an old driver version.

I don't know that there's ever been a fully functional one; sometimes
these things take time to solidify, especially when everyone looking
at the problem is a newbie either to Linux or to USB.  ;)

- Dave



-------------------------------------------------------
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

Reply via email to