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.

Generating uImage on AM335x- Starter Kit ?

Hi, 

I'm currently working on modifying the linux kernel for an Android Application on the AM335x Starter Kit board.

Following TI's guide for Android development (http://processors.wiki.ti.com/index.php/TI-Android-ICS-4.0.3-DevKit-3.0.1_DevelopersGuide) I tried to build the kernel and generate its image so I can boot the board using the SD Card with :

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

But the build wouldn't work. I looked back to the guide and saw :

      NOTE:Genrated uImage run on both am335xevm and beaglebone.

Does this means it is impossible to generate the kernel image on the AM335x Starter Kit board (am335xsk) ?

Is there another way (other than this procedure)  I could build and generate an image of the kernel to boot from an SD Card ? 


Thanks !

  • Martin,

    It looks like support for the SK (Starter Kit) was added through the below page:

    http://processors.wiki.ti.com/index.php/AM335X_EVM-SK_Android_Devkit_Guide

    I hope this helps you.

  • Hi RonB,

    Thanks for the quick answer. Unfortunately, the procedure is exactly the same, and so is the result. 

    If it help, here is the output I get from building :

    tramzyt@ubuntu:~/Development/TI-Android-4.0.3/TI_Android_4.AM335x_SRC/TI-Android-ICS-4.0.3-DevKit-EVM-SK-3.0.1/kernel$ make ARCH=arm CROSS-COMPILE=arm-eabi- uImage
    scripts/kconfig/conf --silentoldconfig Kconfig
    WRAP arch/arm/include/generated/asm/auxvec.h
    WRAP arch/arm/include/generated/asm/bitsperlong.h
    WRAP arch/arm/include/generated/asm/cputime.h
    WRAP arch/arm/include/generated/asm/emergency-restart.h
    WRAP arch/arm/include/generated/asm/errno.h
    WRAP arch/arm/include/generated/asm/ioctl.h
    WRAP arch/arm/include/generated/asm/irq_regs.h
    WRAP arch/arm/include/generated/asm/kdebug.h
    WRAP arch/arm/include/generated/asm/local.h
    WRAP arch/arm/include/generated/asm/local64.h
    WRAP arch/arm/include/generated/asm/percpu.h
    WRAP arch/arm/include/generated/asm/poll.h
    WRAP arch/arm/include/generated/asm/resource.h
    WRAP arch/arm/include/generated/asm/sections.h
    WRAP arch/arm/include/generated/asm/siginfo.h
    WRAP arch/arm/include/generated/asm/sizes.h
    CHK include/linux/version.h
    UPD include/linux/version.h
    CHK include/generated/utsrelease.h
    UPD include/generated/utsrelease.h
    Generating include/generated/mach-types.h
    CC kernel/bounds.s
    cc1: error: unrecognized command line option ‘-mlittle-endian’
    cc1: error: unrecognized command line option ‘-mapcs’
    cc1: error: unrecognized command line option ‘-mno-sched-prolog’
    cc1: error: unrecognized command line option ‘-mno-thumb-interwork’
    kernel/bounds.c:1:0: error: unknown ABI (aapcs-linux) for -mabi= switch
    kernel/bounds.c:1:0: error: bad value (armv5t) for -march= switch
    make[1]: *** [kernel/bounds.s] Error 1
    make: *** [prepare0] Error 2

  • Martin,

    This lines concerns me:

    kernel/bounds.c:1:0: error: bad value (armv5t) for -march= switch

    Can you provide the output of all 3 steps as well as your path?

    Thanks.

  • Of course.

    Here is the cleaning step

    tramzyt@ubuntu:~/Development/TI-Android-4.0.3/TI_Android_4.AM335x_SRC/TI-Android-ICS-4.0.3-DevKit-EVM-SK-3.0.1/kernel$ make ARCH=arm CROSS-COMPILE=arm-eabi- distclean
    CLEAN .tmp_versions
    CLEAN scripts/basic
    CLEAN scripts/kconfig
    CLEAN include/config include/generated arch/arm/include/generated
    CLEAN .config include/linux/version.h

    The Configuration step
    tramzyt@ubuntu:~/Development/TI-Android-4.0.3/TI_Android_4.AM335x_SRC/TI-Android-ICS-4.0.3-DevKit-EVM-SK-3.0.1/kernel$ make ARCH=arm CROSS-COMPILE=arm-eabi- am335x_evm_android_defconfig
    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
    #
    # configuration written to .config
    #

    Building step
    tramzyt@ubuntu:~/Development/TI-Android-4.0.3/TI_Android_4.AM335x_SRC/TI-Android-ICS-4.0.3-DevKit-EVM-SK-3.0.1/kernel$ make ARCH=arm CROSS-COMPILE=arm-eabi- uImage
    scripts/kconfig/conf --silentoldconfig Kconfig
    WRAP arch/arm/include/generated/asm/auxvec.h
    WRAP arch/arm/include/generated/asm/bitsperlong.h
    WRAP arch/arm/include/generated/asm/cputime.h
    WRAP arch/arm/include/generated/asm/emergency-restart.h
    WRAP arch/arm/include/generated/asm/errno.h
    WRAP arch/arm/include/generated/asm/ioctl.h
    WRAP arch/arm/include/generated/asm/irq_regs.h
    WRAP arch/arm/include/generated/asm/kdebug.h
    WRAP arch/arm/include/generated/asm/local.h
    WRAP arch/arm/include/generated/asm/local64.h
    WRAP arch/arm/include/generated/asm/percpu.h
    WRAP arch/arm/include/generated/asm/poll.h
    WRAP arch/arm/include/generated/asm/resource.h
    WRAP arch/arm/include/generated/asm/sections.h
    WRAP arch/arm/include/generated/asm/siginfo.h
    WRAP arch/arm/include/generated/asm/sizes.h
    CHK include/linux/version.h
    UPD include/linux/version.h
    CHK include/generated/utsrelease.h
    UPD include/generated/utsrelease.h
    Generating include/generated/mach-types.h
    CC kernel/bounds.s
    cc1: error: unrecognized command line option ‘-mlittle-endian’
    cc1: error: unrecognized command line option ‘-mapcs’
    cc1: error: unrecognized command line option ‘-mno-sched-prolog’
    cc1: error: unrecognized command line option ‘-mno-thumb-interwork’
    kernel/bounds.c:1:0: error: unknown ABI (aapcs-linux) for -mabi= switch
    kernel/bounds.c:1:0: error: bad value (armv5t) for -march= switch
    make[1]: *** [kernel/bounds.s] Error 1
    make: *** [prepare0] Error 2

    And finally, my path :

    tramzyt@ubuntu:~/Development/TI-Android-4.0.3/TI_Android_4.AM335x_SRC/TI-Android-ICS-4.0.3-DevKit-EVM-SK-3.0.1/kernel$ echo $PATH
    /home/tramzyt/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/tramzyt/Development/TI-Android-4.0.3/TI_Android_4.AM335x_SRC/TI-Android-ICS-4.0.3-DevKit-EVM-SK-3.0.1/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin

  • Based on what I see, are you missing "/Development" in front of the toolchain in your path?

  • I did, but just after posting it, I changed it, with no difference.The errors are exactly the same. 

    Something is really weird. Looks like it fails to build before even reaching the compiler. 

  • ... looks like it was another typo mistake that caused the error. 

    I had CROSS-COMPILE, instead of CROSS_COMPILE...

    Sorry to have troubled you with this. 

    Thanks for your time, and special thanks to Pankaj Bharadiya who has seen the error.

    http://e2e.ti.com/support/embedded/android/f/509/p/271856/950573.aspx