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.

TI Sitara Building Source Code for ICS on Ubuntu 12.04 LTS

Has anyone built Kernel for TI Sitara SK on a Ubuntu 12.04 LTS. I used the following link the process terminated with following errors. 

arm-linux-gcc: Command not found

I have the tool chain installed on my machine. I used the following command again to install the tool chain. Is there something I that I am missing.

sudo apt-get install gcc-arm-linux-gnueabi

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

gcc-arm-linux-gnueabi


I have read the following post too  http://e2e.ti.com/support/embedded/android/f/509/p/213364/753467.aspx#753467

  • Mahendra,

    Are you using our linux SDK or android?  Either way the process should be similar. I will list the steps you can use to build it with our linux SDK 6.00.

    You can build the kernel in our sdk by doing the following:

    1. in the main sdk folder, "cd" into the board-support/linux-<version>/ directory
    2. export the PATH to your toolchain.  Example:
      • export PATH=$PATH:/home/sitara/ti-sdk-am335x-evm-06.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin/
    3. set your kernel config for am335x evm (works for sk, too):
      • make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-   tisdk_am335x-evm_defconfig
    4. now build uImage:
      • make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-  uImage

    Please let me know if that is helpful to you.

    Regards,

    Josh

  • @Josh,

    Thank you for the respond. The error was due the fact the on the machine that I was compiling didn't have ia32-libs library installed.  After I did a 

    sudo apt-get install ia32-libs.

    I was able to compile both the u-boot and the kernel built.

    How ever the for the kernel process the output file was a "Image" file and not a "uImage" as described by the documentation?

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

    Can you please comment on this issue?

    Thank you


  • Mahendra,

    I'm glad to hear you were able to build the kernel.

    As for a lack of uImage, did you check the contents of the <top kernel source dir>/arch/arm/boot directory to make sure there is no uImage there?

    Also, are you using our linux SDK or android?  If you are using the android sdk, I don't have much experience with it, so you may want to ask this question in the Android Forum: http://e2e.ti.com/support/embedded/android/f/509.aspx

    Anyway, let me know what kernel images you see in arch/arm/boot.

    **Edit: I realized you mentioned ICS in the title, which I assume is Ice Cream Sandwich.  If you can't find uImage in the directory I specified above, then you'll probably just want to see if the guys in the Android forum know what's going on here.

    Regards,

    Josh