• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [Avail] Compiling Kernel [successfully] [GUIDE] (update 5/3 11AM)

anthony062991

Well-Known Member
Has anyone had any luck trying to build a kernel from source? I have been trying cm7 and stock kernel with no luck at all... Here is a guide I have been trying Building Kernel from source - CyanogenMod Wiki Maybe someone else can give it a try?

I will update this posting as much as possible until I can get this kernel to build right. If you know anything about compiling the kernel please feel free to post any input to help out.
 
I have successfully managed to merge zte blade kernel with no errors!

Here is the kernel source I used:
https://github.com/TomGiordano/kernel_zte_blade

Here is my output:
zteblade output

The phone will boot up without a bootloop! :)

Here is the kernel I compiled if you want to give it a try on your current rom!
(This is only for testing) It has updated drivers and merged zte blade and skate kernels.
boot.img

Let me know if you have any issues!

THIS GUIDE IS NOT COMPLETED! I WILL FINISH WHEN I GET OFF WORK TODAY! :)

Guide:
MUST BE USING LINUX! (UBUNTU OR MINT)

Must have android sdk installed!
Use this guide before moving on:
http://forum.xda-developers.com/showthread.php?p=11823740#post11823740

Download the Source:
(Just copy and paste without the "#")

# mkdir -p ~/android/system
# cd ~/android/system
# repo init -u git://github.com/CyanogenMod/android.git -b gingerbread
# repo sync -j8

This may take 1.5 hours, more or less, depending on your connection.

Create an environment variable denoting the location of the android toolchain as follows:

# export CCOMPILER=${HOME}/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-

Configure the Build:

Retrieve a working kernel config from the device, and unzip it:

# mkdir -p ~/android/zteroamer
# cd ~/android/zteroamer

(make sure you plug in your phone and make sure USB Debugging is ON)

# adb pull /proc/config.gz /home/user_name/android/zteroamer/config.gz
(replace user_name with your computers name)

# cat config.gz | gunzip > .config


Configure the build. Just keep hitting enter to accept defaults, or customize as needed:

# make ARCH=arm CROSS_COMPILE=$CCOMPILER oldconfig

or

[For advanced users]
# make ARCH=arm CROSS_COMPILE=$CCOMPILER menuconfig

Now lets compile the kernel:

# make ARCH=arm CROSS_COMPILE=$CCOMPILER -j`grep 'processor' /proc/cpuinfo | wc -l`

When it is done you will get the zImage from zteroamer/arch/arm/boot/zImage

Before you flash make sure you MAKE A NANDROID BACKUP!
 
i've been wanting to try and port my own ROM over for this phone but haven't really been able to mess with anything for lack of a pc running linux. Might get to that sometime this week.
 
IGNORE THE CODE*******

You missed a rather big step there:

No kernel sources.

Code:
Download Kernel Source Code

mkdir -p ~/android/kernel
cd ~/android/kernel
git clone git://github.com/CyanogenMod/cm-kernel.git
cd cm-kernel

***BUT this doesn't compile at all. The steps above work fine. What I added was for cm type builds, that will have to wait for cm support for our phone.



Sorry
 
I have successfully managed to merge zte blade kernel with no errors!

Here is the kernel source I used:
https://github.com/TomGiordano/kernel_zte_blade

Here is my output:
zteblade output

The phone will boot up without a bootloop! :)

Here is the kernel I compiled if you want to give it a try on your current rom!
(This is only for testing) It has updated drivers and merged zte blade and skate kernels.
boot.img

Let me know if you have any issues!

THIS GUIDE IS NOT COMPLETED! I WILL FINISH WHEN I GET OFF WORK TODAY! :)

Guide:
MUST BE USING LINUX! (UBUNTU OR MINT)

Must have android sdk installed!
Use this guide before moving on:
http://forum.xda-developers.com/showthread.php?p=11823740#post11823740

Download the Source:
(Just copy and paste without the "#")

# mkdir -p ~/android/system
# cd ~/android/system
# repo init -u git://github.com/CyanogenMod/android.git -b gingerbread
# repo sync -j8

This may take 1.5 hours, more or less, depending on your connection.

Create an environment variable denoting the location of the android toolchain as follows:

# export CCOMPILER=${HOME}/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-

Configure the Build:

Retrieve a working kernel config from the device, and unzip it:

# mkdir -p ~/android/zteroamer
# cd ~/android/zteroamer

(make sure you plug in your phone and make sure USB Debugging is ON)

# adb pull /proc/config.gz /home/user_name/android/zteroamer/config.gz
(replace user_name with your computers name)

# cat config.gz | gunzip > .config


Configure the build. Just keep hitting enter to accept defaults, or customize as needed:

# make ARCH=arm CROSS_COMPILE=$CCOMPILER oldconfig

or

[For advanced users]
# make ARCH=arm CROSS_COMPILE=$CCOMPILER menuconfig

Now lets compile the kernel:

# make ARCH=arm CROSS_COMPILE=$CCOMPILER -j`grep 'processor' /proc/cpuinfo | wc -l`

When it is done you will get the zImage from zteroamer/arch/arm/boot/zImage

Before you flash make sure you MAKE A NANDROID BACKUP!

Where is the boot.img from this post seems the link is broken i wanted to test it on my device
 
Back
Top Bottom