I would like to know whether you recommend implementing an
USB gadget driver or an USB function driver for ADB support
on a new device?
Also drivers/usb/gadget/android.c and f_adb.c looks buggy.
Do you have a plan to fix them? Just want to decide whether it
is worth debugging them.
RR
On 3月20日, 午後9:10, Mike Lockwood <lockw...@android.com> wrote:
> Hi atom10jj,
>
> I also ran into this problem while attempting to run the android
> gadget driver as a module in the x86 kernel. Unfortunately I haven't
> had time to track it down, but plan on getting back to this after
> cupcake is done. In the mean time I would suggest linking the driver
> directly in the kernel (unless you want to help me debug it :-)
>
> Mike
>
>
>
>
>
> On Fri, Mar 20, 2009 at 5:20 AM, atom10jj <atom1...@gmail.com> wrote:
>
> > Hi~ there,
>
> > I've been trying to build "g_android"(ADBComposite Gadget)
> > dynamically.
>
> > In case of building statically,ADBand Mass-storage are working well.
> Google android team- 引用テキストを表示しない -
>
> - 引用テキストを表示 -
I have finally gotten back to working on USB gadget and finally have
some news about this. As part of our switch from 2.6.29 to 2.6.32, we
will be abandoning the /drivers/usb/function/ drivers and switching to
using gadget for all platforms. This is still a work in progress, but
we now have USB gadget working on HTC Magic (sapphire) and Nexus One
in our experimental 2.6.32 kernel tree. Note that we do not have this
working in 2.6.29, but the changes to the gadget code between 29 and
32 were minimal so it should be easy to backport.
Since the older code in 2.6.27 and 29, we have reworked the
interaction between the driver and the board files to make it more
flexible to specify your USB interface (similar to how it works in the
function drivers). Since all the configuration is driven by the board
files, we do not support building the driver as a module at present.
At some point in the future we would like to have the USB
configuration controlled by userspace - at that point it would be much
easier to build the driver as a module.
In addition to what is on the branch mentioned above, we are working
on getting the USB gadget ACM serial and RNDIS ethernet functions
working with the android gadget driver. Beyond this I am hoping to
work with the Linux USB community to integrate this better with the
gadget/composite framework, but for now the android gadget support is
fairly self contained as a separate composite gadget driver.
Mike
2009/7/18 RR <roundr...@yahoo.co.jp>: