- February 12, 2015 at 3:00 pm #31963
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 youFebruary 16, 2015 at 9:30 am #39444
Welcome to the forum.
Yes it is possible to make your own Android and kernel for the CI20.
Check out the following page
ZubairLKFebruary 17, 2015 at 6:51 pm #39446
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:
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:
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?