[Huawei Ideos X5 U8800] fjsferreira:
Ok, in this guide, we'll build our development environment so we can start compiling aurora's kernel (3.0.8) in ubuntu.

NOTES:

- Every command is to be used in the terminal (Applications-Accessories-Terminal).

- There are scripts you can use to automate stuff, I'll post them in the second post on this thread.

- Sorry, I won't guide you on how to install Ubuntu or Android SDK, there are guides on the web all over the place.

1 - First things first, here's what we need:

a) Ubuntu 10.04 LTS x64 (this is recommended by google, it might work in other ubuntu versions, but I didn't tried it). To download it, go to:

http://releases.ubuntu.com/lucid/

And select the 64-bit PC (AMD64) desktop CD version. Your processor must support 64bits (most modern ones support it, else, use the x86 iso, not tested though).

Install ubuntu, you can use dual-boot with windows. I won't post a guide to this, as it's very easy and there are guides all over the net.

b) Install android sdk, to use adb (this is optional, but you really should if you use adb).

Follow this guide:

http://xdaforums.com/showthread.php?t=921169

Note: Eclipse is not needed

c) Install some tools that are needed, like git, compiler stuff etc (this is a single command, copy and paste everythin):

sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc abootimg

NOTE: If abootimg doesn't install (It didn't for me, for some reason) go in here, download and install the deb package.

d) Install the toolchain (it's a set of tools used to compile the kernel, I think. This takes a while):

git clone https://android.googlesource.com/platform/prebuilt

e) Download dzo's kernel from git and set the git branch to "master":

git clone https://github.com/dzo/kernel_huawei.git
git checkout master

2 - Getting to the fun stuff...

a) First, copy the boot.img attached to this post to your /home/kernel_huawei folder.

b) Set up the environment. Do this, in the terminal (must be done for each compilation session, I'll post scripts in the end, to automate this stuff):

cd kernel_huawei
export ARCH=arm
export CROSS_COMPILE=/home/username/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
make u8800_defconfig

Note, replace /username/ in the third command with your username.

c) Compile. This takes like 10 minutes, depending on your pc:

make

TIP - Speedup compilation (thanks to Unrealized)

You can use

make -jx

to speed up the compilation.

ie, if you have 2 cores, use

make -j3

for 4

use -j5

3 - Create the boot.img. If you aren't already in the kernel_huawei folder, do this:

cd kernel_huawei

Then:

abootimg -u boot.img -k arch/arm/boot/zImage

After this, the boot.img in your kernel_huawei folder is updated. You can copy that to your phone.

_________________________________________

That's it. In the second post, I'll tell you how to check for latest version, check changelogs and scripts to automate stuff.

If you find any errors, please let me know.