Hello Everybody,

I wanted to put support for gadgetfs support on ADP1.

I have downloaded android-1.5r2.

My local_manifest.xml is --

<?xml version="1.0" encoding="UTF-8"?>
 <manifest>
  <remove-project name="kernel/common"/>
  <project path="kernel" name="kernel/msm" revision="refs/heads/
android-msm-2.6.27"/>
  <project path="vendor/htc/dream" name="platform/vendor/htc/dream"
revision="cupcake"/>
  <project path="hardware/msm7k" name="platform/hardware/msm7k"
revision="refs/heads/master"/>
 </manifest>

I have copied arch/arm/configs/msm_defconfig as .config in mydroid/
kernel.

I made changes in .config to support gadgetfs.

As Mike has suggested at 
http://groups.google.com/group/android-platform/browse_thread/thread/1531ac199565ed3c?pli=1
, I have disabled CONFIG_USB_FUNCTION and enabled CONFIG_USB_GADGET
and CONFIG_USB_GADGET_MSM_72K.

After configuring kernel, GADGET and USB_FUNCTION configuration looks
like below --

CONFIG_USB_GADGET=y
CONFIG_USB_GADGET_SELECTED=y
CONFIG_USB_GADGET_MSM_72K=y
CONFIG_USB_MSM_72K=y
CONFIG_USB_GADGET_DUALSPEED=y
CONFIG_USB_GADGETFS=y



#
# USB Function Support
#
# CONFIG_USB_FUNCTION is not set


Now I try to compile kernel and get below error --

arch/arm/mach-msm/htc_battery.c:187: error: variable
'usb_status_notifier' has initializer but incomplete type
arch/arm/mach-msm/htc_battery.c:188: error: unknown field 'name'
specified in initializer
arch/arm/mach-msm/htc_battery.c:188: warning: excess elements in
struct initializer
arch/arm/mach-msm/htc_battery.c:188: warning: (near initialization for
'usb_status_notifier')
arch/arm/mach-msm/htc_battery.c:189: error: unknown field 'func'
specified in initializer
arch/arm/mach-msm/htc_battery.c:189: warning: excess elements in
struct initializer
arch/arm/mach-msm/htc_battery.c:189: warning: (near initialization for
'usb_status_notifier')
arch/arm/mach-msm/htc_battery.c: In function 'htc_battery_init':
arch/arm/mach-msm/htc_battery.c:793: error: implicit declaration of
function 'usb_register_notifier'

I looked for declaration of t_usb_status_notifier and found it in arch/
arm/mach-msm/include/mach/board_htc.h, but this will be visible only
when CONFIG_USB_FUNCTION_MSM_HSUSB is defined. Since we have disabled
CONFIG_USB_FUNCTION, none of the CONFIG_USB_FUNCTION* are set.

I have tried enabling CONFIG_USB_FUNCTION and
CONFIG_USB_FUNCTION_MSM_HSUSB but that gave many multiple definition
error.

Please suggest how do I go about it?

Thanks

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

Reply via email to