FORUMS
Remove All Ads from XDA

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

1,177 posts
Thanks Meter: 2,763
 
By AmalD, Recognized Themer on 12th April 2012, 01:34 AM
Post Reply Email Thread
6th March 2014, 03:28 PM |#91  
luqman98's Avatar
Senior Member
Flag Pasir Mas, Kelantan
Thanks Meter: 578
 
More
Quote:
Originally Posted by inogbox

Main question is : Can I use this downloaded kernel source from http://opensource.samsung.com/ to create kernel for other model (e.g Galaxy Mini GT-S5570 code name TASS) if ihave :

  1. GT-S5360_GB_Opensource_Update3.zip
  2. And because i saw "bcm21553_tassve_defconfig" in folder /Kernel_GTS5360/common/arch/arm/configs

No. Galaxy Y chipset and Galaxy Mini (not the i variant) have different chipset.
 
 
6th March 2014, 06:03 PM |#92  
inogbox's Avatar
Junior Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by luqman98

No. Galaxy Y chipset and Galaxy Mini (not the i variant) have different chipset.

So, 497 Mb unpacked kernel source is just for 4 or 5 Mb boot.img , Wow...such a huge shrink. Thanks.
6th March 2014, 06:36 PM |#93  
aniket.lamba's Avatar
Senior Member
Flag New Delhi
Thanks Meter: 4,942
 
Donate to Me
More
Quote:
Originally Posted by inogbox

So, 497 Mb unpacked kernel source is just for 4 or 5 Mb boot.img , Wow...such a huge shrink. Thanks.

It's just for Galaxy Y.
Don't talk about HTC One X and Galaxy S 4/5
6th March 2014, 07:20 PM |#94  
inogbox's Avatar
Junior Member
Thanks Meter: 1
 
More
Quote:

Don't talk about HTC One X and Galaxy S 4/5

Sorry ... I don't mean to OFF TOPIC just try to understand what all those extracted file's purpose and to start learning kernel development. I'm new on this thing. And i have most comfortable ROM for my galaxy Y, but this ROM is perfect with stock kernel and stock kernel lack on init.d support, swap support. This is why i want to start to build my own kernel.
9th March 2014, 03:36 PM |#95  
Androlover98's Avatar
Senior Member
Flag Mumbai
Thanks Meter: 55
 
More
Quote:
Originally Posted by inogbox

Sorry ... I don't mean to OFF TOPIC just try to understand what all those extracted file's purpose and to start learning kernel development. I'm new on this thing. And i have most comfortable ROM for my galaxy Y, but this ROM is perfect with stock kernel and stock kernel lack on init.d support, swap support. This is why i want to start to build my own kernel.

You don't need init.d support on a kernel. Download Init.d toggler from play store.

Sent from my Nexus 7 using Tapatalk

Quote:
Originally Posted by tabenf

Hi have u fixed this?if not can you show me the path u put in make file,

Ya I fixed it. It wasn't a path issue, it was a permission issue.

I tried to compile in mint. Now I am getting

hostcc BASIC/scripts/fixdep.c not found

I fixed it and I forgot what fix was it.😈

After fixing that I got

make execvp:cc1 not found.
11th May 2014, 10:21 AM |#96  
Souroking's Avatar
Senior Member
Flag Kolkata
Thanks Meter: 230
 
More
1+

___________________________________
««||Proud to be a geek. #lovexda||»»
17th March 2016, 05:44 PM |#97  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by irfanbagus

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


In requirement one will Linux 64bit (ubuntu 15.10 ) work??
Post Reply Subscribe to Thread

Tags
sgy kernel

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes