This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Android GingerBread- Kernel Build error

Hi,

 

I have downloaded Android Gingerbread 2_3_4source from TI site.

I am trying to build the kernel, but i am getting an error message when building the kernel.

  CHK     include/generated/compile.h
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
drivers/built-in.o: In function `composite_unbind':
/home/guest/rowboat-android/TI_Android_GingerBread_2_3_4Sources/kernel/drivers/usb/gadget/composite.c:1205: undefined reference to `switch_dev_unregister'
/home/guest/rowboat-android/TI_Android_GingerBread_2_3_4Sources/kernel/drivers/usb/gadget/composite.c:1206: undefined reference to `switch_dev_unregister'
drivers/built-in.o: In function `composite_switch_work':
/home/guest/rowboat-android/TI_Android_GingerBread_2_3_4Sources/kernel/drivers/usb/gadget/composite.c:1239: undefined reference to `switch_set_state'
/home/guest/rowboat-android/TI_Android_GingerBread_2_3_4Sources/kernel/drivers/usb/gadget/composite.c:1247: undefined reference to `switch_set_state'
drivers/built-in.o: In function `composite_bind':
/home/guest/rowboat-android/TI_Android_GingerBread_2_3_4Sources/kernel/drivers/usb/gadget/composite.c:1300: undefined reference to `switch_dev_register'
/home/guest/rowboat-android/TI_Android_GingerBread_2_3_4Sources/kernel/drivers/usb/gadget/composite.c:1304: undefined reference to `switch_dev_register'
make: *** [.tmp_vmlinux1] Error 1

 

need help in resolving the above issue.

 

Regards,

Prajith

 

 

  • Prajith,

    Which board are you building the kernel for?

    The TI Android DevKit kernels are meant for use with android on AM35x and AM/DM37x processors.

     

  • Hi

    BeagleBoard-XM

    host System: Ubuntu 11.04

  • Which defconfig file are you using for build? You should be using omap3_beagle_android_defconfig for beagle.

    From the error logs you gave, it looks like CONFIG_SWITCH may not be enabled.

     

    Please use the Android e2e forum for TI Android DevKit queries http://e2e.ti.com/android

     

  • Hi Vishveshwar,

    This is a software issue. Can you please move this to the correct software form - OMAP35x Processors Forum

    Thank you

  • hi

    thanks . i was using the omap3_beagle_defconfig.

     

    now i used omap3_beagle_android_defconfig an there are no more errors.

     

    i used the following now

    $ make ARCH=arm CROSS_COMPILE=arm-none-eabi-  distclean
      $ make ARCH=arm CROSS_COMPILE=arm-none-eabi- omap3_beagle_android_defconfig
      $ make ARCH=arm CROSS_COMPILE=arm-none-eabi-  uImage


    i followed the procedure given i ti-wiki link for booting using SD card. with the uimage given by TI a red screen is coming with Android Logo.


    i used the generated a new uImage after compiling the kernel . with this uImage nothing comes on the display.

    not sure wether it is the problem with the display(HDMi) or the any problem with the kernel compilation???


    Regards
    Prajith
  • PRAJITH WARRIER80347 said:

    drivers/built-in.o: In function `composite_unbind':
    /home/guest/rowboat-android/TI_Android_GingerBread_2_3_4Sources/kernel/drivers/usb/gadget/composite.c:1205: undefined reference to `switch_dev_unregister'
    /home/guest/rowboat-android/TI_Android_GingerBread_2_3_4Sources/kernel/drivers/usb/gadget/composite.c:1206: undefined reference to `switch_dev_unregister'
    drivers/built-in.o: In function `composite_switch_work':
    /home/guest/rowboat-android/TI_Android_GingerBread_2_3_4Sources/kernel/drivers/usb/gadget/composite.c:1239: undefined reference to `switch_set_state'
    /home/guest/rowboat-android/TI_Android_GingerBread_2_3_4Sources/kernel/drivers/usb/gadget/composite.c:1247: undefined reference to `switch_set_state'
    drivers/built-in.o: In function `composite_bind':
    /home/guest/rowboat-android/TI_Android_GingerBread_2_3_4Sources/kernel/drivers/usb/gadget/composite.c:1300: undefined reference to `switch_dev_register'
    /home/guest/rowboat-android/TI_Android_GingerBread_2_3_4Sources/kernel/drivers/usb/gadget/composite.c:1304: undefined reference to `switch_dev_register'
    make: *** [.tmp_vmlinux1] Error 1

    I was also getting these errors today.  For me the solution was to set CONFIG_SWITCH=y.