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.

Compile Errors TI Sitara SK ICS

I have been trying to recompile the android linux kernel for the TI Sitara SK for the ICS distribution. When I execute the follow command 

1
make CROSS_COMPILE=arm-eabi- am335x_evm_config

I get the following errors 

1
2
3
4
5
6
7
8
9
10
11
12
HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
***
*** Can't find default configuration "arch/x86/configs/am335x_evm_android_defconfig"!
***
make[1]: *** [am335x_evm_android_defconfig] Error 1
make: *** [am335x_evm_android_defconfig] Error 2
1
 

When I investigated I found that file am335x_evm_android_defconfig was missing in the arch/x86/configs/ directory

I found the a am335x_evm_android_defconfig in the JB download. So I copied that file reran and still got errors. 

I am following the instruction the following link

TI Android ICS-4.0.3-DevKit-3.0.1 Developer Guide

Please kindly let me know how to fix this problem.

Thank you

  • From your log its not building for ARM architecture its building for X86 architecture. To build the kernel for ARM architecture you need to specify ARCH=arm while building. 

    make ARCH=arm CROSS_COMPILE=arm-eabi- am335x_evm_android_defconfig
    make ARCH=arm CROSS_COMPILE=arm-eabi- uImage

     

  • @ Sangilio

    You are correct because I copied the the following command from the boot loader and executed for the Android linux Kernel.

    1
    2
    3
    make CROSS_COMPILE=arm-eabi- distclean
    make CROSS_COMPILE=arm-eabi- am335x_evm_config
    make CROSS_COMPILE=arm-eabi-

    Related question.

    Are the file am335x_evm_andriod_defconfig ICS and JB the same. For some reason the files

     am335x_evm_android_defconfig were not present in the ICS repo so I copied from the JB repo.

    Thank you for the feedback

  • Hi,

    The configs am335x_evm_config and am335x_evm_android_defconfig are updated for JB. But should be present for ICS as well. Please check if you have checked out the right branches in your ICS kernel and u-boot sources.

    Regards,

    Arun

  • @Arun,

    With reference to am335x_evm_config file, I checked the /rowboat-android/kernel/arch/arm/config as well as executed "locate am335x_evm_config" and "find $HOME -name 'am335x_evm_config'" commands. I could not find the file in the downloads. 

    Also when I  execute the following on ICS distribution 

      $ make CROSS_COMPILE=arm-eabi- distclean
      $ make CROSS_COMPILE=arm-eabi- am335x_evm_config
      $ make CROSS_COMPILE=arm-eabi- 

    It does execute, but not sure against which config file the u-boot compiled. 

    BTW following are the instructions I used to download the repository.

      $ mkdir $HOME/rowboat-android
      $ cd $HOME/rowboat-android
      $ repo init -u git://gitorious.org/rowboat/manifest.git -m TI-Android-ICS-4.0.3-DevKit-3.0.1.xml
      $ repo sync

    Thank you

  • Hi,

    Forgot to mention, for u-boot am335x_evm_config is specified to select the include/configs/am335x_evm.h file as configuration. There is no actual file exists namely am335x_evm_config.

    Regards,

    Arun

  • Hi mahendra dont confuse between kernel and u-boot build command. Please follow the Wiki developer guide building procedure as it as.