Hi

Matt Reimer wrote:
On Wed, Apr 21, 2010 at 9:41 AM, Michael Trimarchi
<trimar...@gandalf.sssup.it> wrote:
Hi,

Dark Knight wrote:
Hi Everyone,

I have some more information regarding this. Its seems the driver is
not able to create bulk end points. I added some debug prints in
f_adb.c and epautoconf.c Here is the output

       pxa27x_udc: version 2008-04-18
       android init
       android_bind
       mass_storage_function_add
       usb_add_function:
                       usb_configuration label=android
       usb_function name= usb_mass_storage
        name[epautoconf.c: ep_matches] ep->Name=ep1out-bulk ,
       [epautoconf.c: ep_matches] ep->Name=ep2in-bulk ,
       [epautoconf.c: ep_matches] ep->Name=ep1out-bulk ,
       android_usb gadget: Number of LUNs=1
       adb_function_add
       usb_add_function:
                       usb_configuration label=android
       usb_function name= adb
        name<7>android_usb gadget: adb_function_bind dev: c39b89a0
       [epautoconf.c: ep_matches] ep->Name=ep1out-bulk ,
       [epautoconf.c: ep_matches] Ep Claimed. Returning
       [epautoconf.c: ep_matches] ep->Name=ep2in-bulk ,
       [epautoconf.c: ep_matches] Ep Claimed. Returning
       [epautoconf.c: ep_matches] ep->Name=ep3in-iso ,
       [epautoconf.c: ep_matches] ep->Name=ep4out-iso ,
       [epautoconf.c: ep_matches] ep->Name=ep5in-int ,
       adb_function_bind: create_bulk_endpoints failure
       adb gadget driver failed to initialize
       usb_add_config failed
       pxa27x-udc pxa27x-udc: bind to driver android_usb --> error -19

It seems, it is not able to search and find the required "free"
endpoint. So how do I take this issue further? Is there any solution
for this?

There is a static matching on the pxa27xx driver usb and you have only two
bulk (in/out) so you can use gadget and no the storage.
One solution that give the possibilty to have more bulk point is to create
manually in the static table. I have tried this but I have some
problem of stability.

I have some patches to pxa27x_udc that get the Android composite
gadget driver working with f_adb, f_mass_storage, f_rndis, and
(probably, untested) f_acm, simultaneously. I've tested them on a
pxa320 (pinging over rndis while using adb shell and md5sum of a file
from a f_mass_storage device) but I think they'll work on other pxa3xx
and on pxa27x processors.

I'll try to get them pushed upstream soon, but it will probably take a
bit longer since I'll have to make a case for an additional controller
driver hook ep_autoconfig.
Can you send to us a preview of that. I have done a quite similar work and the only problem
was plug/unplug on the 2.6.32 kernel

Michael

Matt


--
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to