6/22/2012

Is Gadget frame work supported and how to enable Gadget framework?

Q) Is gadget framework supported on Android Eclair?
Ans) Yes, Gadget framework is supported on the Android éclair



Q) How to check whether Gadget framework is enabled or not?

Ans) There are two frameworks for USB device driver in Android. One is Gadget framework and the other is Function framework.

Android Cupcake and Donut baselines use Function framework.



Android éclair have Gadget framework enabled by default. OEMs can check the below flags for their reference.

If gadget frame is enabled following flags are defined in the .config file of the chipset.

1) USB_MSM_OTG_72K(Device Drivers-> USB support -> OTG Support for Qualcomm On-chip USB controller).

2) CONFIG_USB_GADGET(Drivers-> USB support -> USB Gadget support ).

3) USB_GADGET_MSM_72K(Drivers-> USB support -> USB Gadget support -> USB peripheral Controller as MSM 72k USB controller).

4) CONFIG_USB_ANDROID(Drivers-> USB support -> USB Gadget support -> USB Gadget Drivers as Android Gadget).

5) CONFIG_USB_ANDROID_DIAG (select Diag function driver).

6) CONFIG_USB_ANDROID_CDC_ECM

7) CONFIG_USB_F_SERIAL

8) CONFIG_MODEM_SUPPORT

9) CONFIG_USB_CSW_HACK



Note: If gadget frame work is enabled, function frame work should to be disabled. Please check that flag CONFIG_USB_FUNCTION undefined or not.

Go to Device Drivers-> USB support -> USB Function support -> [ ] Support for USB Function drivers.(Exclude this)

Exclude this option in the kernelconfig.

No comments:

Post a Comment