5,606,409 Members 33,637 Now Online
XDA Developers Android and Mobile Development Forum

[KERNEL]How to build a custom Android Kernel for your device

Tip us?
 
AmalD
Old
(Last edited by AmalD; 9th November 2012 at 10:43 AM.)
#1  
AmalD's Avatar
Recognized Themer - OP
Thanks Meter 2563
Posts: 1,068
Join Date: Mar 2012
Location: kozhikode
Default [KERNEL]How to build a custom Android Kernel for your device

here is the guide

http://forum.xda-developers.com/show...81&postcount=4


thakz irfanbagus for the guide
The Following 21 Users Say Thank You to AmalD For This Useful Post: [ Click to Expand ]
 
kurotsugi
Old
#2  
kurotsugi's Avatar
Recognized Contributor
Thanks Meter 1757
Posts: 2,520
Join Date: Feb 2012
Location: yogyakarta
where's the package link?have you try this guide by yourself?
 
chenilen
Old
#3  
chenilen's Avatar
Member
Thanks Meter 13
Posts: 60
Join Date: Jan 2012

 
DONATE TO ME
i hope he tried
got a ubuntu, i will try this one (cross-fingers)
HD GAMES FOR SAMSUNG GALAXY Y

APAD TRICKS BLOG
OPENVPN FOR APAD


running hybrid rom 2.1 with a2sd an v6supercharger
fast, slick, amazing.
 
irfanbagus
Old
(Last edited by irfanbagus; 12th April 2012 at 05:38 AM.)
#4  
Senior Member
Thanks Meter 493
Posts: 307
Join Date: Mar 2012
it's not working. sgy stock kernel do not have /proc/config.gz and gcc version in arm-2011.03 not compatible with other precompiled module.

this is work for me

requirement :
1. linux box 32 bit with working gcc. you can use real linux machine or virtual machine
2. Sourcery G++ Lite 2009q3-68 toolchain for ARM EABI from http://www.codesourcery.com/ (Linux version without installer arm-2009q3-68-arm-none-eabi-i686-pc-linux-gnu.tar.bz2)
3. mkbootimg with md5support. got it from http://forum.xda-developers.com/show...&postcount=241 . credit to harish2704
4. split_bootimg.pl (google it)
5. kernel source from http://opensource.samsung.com . i use GT-S5360_GB_Opensource_Update2.zip
6. stock boot.img (or from your custom kernel).

step :
1. make folder "sgy" in your home. the result is folder "/home/<yourname>/sgy". <yourname> is your linux user name, and from now replace <yourname> with your user name. put all file you already download there
2. extract "GT-S5360_Kernel.tar.gz" from "GT-S5360_GB_Opensource_Update2.zip". put also in "sgy" folder
3. open terminal emulator and go to your working path with command

Code:
cd ~/sgy
4. extract your compiler with

Code:
tar -xvf arm-2009q3-68-arm-none-eabi-i686-pc-linux-gnu.tar.bz2
5. create folder "kernel" and extract kernel source there

Code:
mkdir kernel
cd kernel
tar -xvf ../GT-S5360_Kernel.tar.gz
you got 2 folder, "common" and "modules"

6. open folder "common", there is file "Makefile". open with text editor and find line with content "/opt/toolchains/arm-eabi-4.4.3/bin/arm-eabi-". replace with "/home/<yourname>/sgy/arm-2009q3/bin/arm-none-eabi-", don't forget replace <yourname>.

7. in terminal goto folder "common" and load default config for sgy

Code:
cd ~/sgy/kernel/common
make bcm21553_totoro_05_defconfig
8. if you want change you config run

Code:
make menuconfig
9. if you ready to build then run

Code:
make
or if you have dual core cpu and want to make it faster

Code:
make -j3
10. when complete and no error appear, copy your kernel to "sgy" folder

Code:
cp arch/arm/boot/zImage ~/sgy
11. extract ramdisk from your boot.img

Code:
cd ~/sgy/
perl split_bootimg.pl boot.img
you got "boot.img-kernel" and "boot.img-ramdisk.gz". move "boot.img" and "boot.img-kernel" to other place.

12. repack your new kernel and ramdisk. but first get md5sum of your new kernel

Code:
md5sum zImage
you got something like

Code:
1fd319aa60abc2abae2e5932bcb9fc77  zImage
you need that "1fd319aa60abc2abae2e5932bcb9fc77" write it or copy to text editor. you need run it every time compile new kernel

13. repack

Code:
chmod +x mkbootimg
./mkbootimg --kernel zImage --ramdisk boot.img-ramdisk.gz --base 0x81600000 --kernelMD5 <your md5sum result> -o boot.img
14. make odin flash-able

Code:
tar -cf boot-sgy.tar boot.img
The Following 68 Users Say Thank You to irfanbagus For This Useful Post: [ Click to Expand ]
 
kurotsugi
Old
#5  
kurotsugi's Avatar
Recognized Contributor
Thanks Meter 1757
Posts: 2,520
Join Date: Feb 2012
Location: yogyakarta
I thought you have to put your post into a new thread irfan...this one is a fake guide.
 
PREMOLIKES
Old
#6  
Senior Member
Thanks Meter 95
Posts: 1,152
Join Date: Mar 2009
Location: Imphal
Quote:
Originally Posted by kurotsugi View Post
I thought you have to put your post into a new thread irfan...this one is a fake guide.
Irfan must create a guide.yes yes..I also think Irfan sahab must compile a CM7.2 from sources.
 
kurotsugi
Old
#7  
kurotsugi's Avatar
Recognized Contributor
Thanks Meter 1757
Posts: 2,520
Join Date: Feb 2012
Location: yogyakarta
offtopic:
btw, do you know who's working on cm7 from source with motafoca?his thread is missing and I just get curious on their progress.
 
PREMOLIKES
Old
#8  
Senior Member
Thanks Meter 95
Posts: 1,152
Join Date: Mar 2009
Location: Imphal
Quote:
Originally Posted by kurotsugi View Post
offtopic:
btw, do you know who's working on cm7 from source with motafoca?his thread is missing and I just get curious on their progress.
His thread was closed by moderator.You can request MOD to reopen his thread.Motafoca wanted a galacy y to be lended for his experiments

---------- Post added at 03:37 PM ---------- Previous post was at 03:33 PM ----------

Can someone download the sources around 15Gigs and stripe down the file and share it to Maroc ?
 
soraci
Old
#9  
Senior Member
Thanks Meter 64
Posts: 270
Join Date: Jan 2012
Location: Pasay
Whre can i download it?

Sent from my GT-S5360 using xda premium
 
irfanbagus
Old
#10  
Senior Member
Thanks Meter 493
Posts: 307
Join Date: Mar 2012
Quote:
Originally Posted by kurotsugi View Post
I thought you have to put your post into a new thread irfan...this one is a fake guide.
i don't call it fake. it's just too general and missing some detail (but critical) for our device. and in the 'spirit of operation iron fist', i think it's better to put here

Quote:
Originally Posted by premolikeshtc View Post
Irfan must create a guide.yes yes..I also think Irfan sahab must compile a CM7.2 from sources.
with my internet connection, it will take weeks just to download the source. and i think cm, like android source, use repo. so you can't just download it. you clone it from their source repository, that mean no download accelerator.

btw beside kernel source, samsung also release their mod to android source. but to build it, you still need to get android source (about 10GB according their website).

The Following User Says Thank You to irfanbagus For This Useful Post: [ Click to Expand ]
Tags
sgy kernel
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes