android source support

This topic contains 4 replies, has 2 voices, and was last updated by  ZubairLK 2 years, 8 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #31963

    boy3dfx
    Member

    Hi,

    I just bought a Creator CI20.
    I can see the tutorials point me to downloadable images for debian and android.
    This is nice, but I would like to customize the OS itself: features in the Android Linux kernel, or stuff in the AOSP software stack. Things that won’t impact the binary blob API for graphics, etc.

    Is there a plan for access to download the linux kernel source and/or public AOSP sources for the Creator CI20?

    Thank you

    #39444

    ZubairLK
    Member

    Hi,

    Welcome to the forum.

    Yes it is possible to make your own Android and kernel for the CI20.

    Check out the following page

    http://elinux.org/How_to_Make_an_Android_SD_Card_Flash_Image_for_MIPS_CI20

    Regards,
    ZubairLK

    #39445

    boy3dfx
    Member

    Thank you very much for the feedback.

    #39446

    boy3dfx
    Member

    Hello again,

    I was able to clone the AOSP repo.

    I also cloned the recommended kernel git repository.

    I ran into problems on both fronts (AOSP and kernel) this time around. I have build succesfully Android AOSP and kernels for ARM CPUs before.

    For AOSP, I belive my problem lies in the java selected. So I will only refer to the kernel issue in this post.

    For the kernel, as you suggested, I started from the http://elinux.org/How_to_Make_an_Android_SD_Card_Flash_Image_for_MIPS_CI20 page.
    I cloned the kernel using:
    git clone -b dev-mips-kitkat-v3.0.8 https://github.com/MIPS/CI20_linux.git

    I also downloaded and decompressed the toolchain mentioned in http://elinux.org/CI20_Dev_Zone#Toolchain (in my case this was mips-2013.11-36-mips-linux-gnu-i686-pc-linux-gnu.tar.bz2).

    I issued the following commands on my Ubuntu box:

    export ARCH=mips
    export SUBARCH=mips
    make ci20_android_defconfig
    make zImage -j 3

    I got a bunch of
    /bin/sh: mipsel-linux-android-gcc: command not found

    My /bin/sh points to bash 4.2.25.

    I thought to overload the default toolchain path, as I used to do on ARM: export CROSS_COMPILE=/path/to/mips-2013.11/bin/mips-linux-gnu-

    I gather the toolchain prefix defaults to (mipsel-) something other than codesourcery (mips-), but I thought CROSS_COMPILE env variable would overwrite this. I didn’t.

    Anyhow, I was able to find a mipsel toolchain in the AOSP sources. there were multiple choices, but I picked gcc-4.6 from prebuilts/gcc/linux-x86/mips/mipsel-linux-android-4.6/bin, and after adjusting my $PATH variable to find it, I am able to build.

    Could you tell me if there is a better way to build the android kernel?

    Best regards,
    Gabi

    #39447

    ZubairLK
    Member

    I pass the cross compile path as an argument e.g.

    make ARCH=mips CROSS_COMPILE=/home/user/mentor-toolchain-2013.11.0.36/bin/mips-linux-gnu- -j4 zImage

    Regards,
    ZubairLK

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Creator Platforms’ is closed to new topics and replies.