[TUTORIAL][VIDEO]Build your own Android kernel

Which developer are you?


  • Total voters
    264
Search This thread

sakisosf

Member
Jul 24, 2012
35
1
Epirus
You can take a look at Emwno's kitchen, it has a feature to pack a compiled kernel to a boot.img.

"Press thanks if I helped you!"

Does it require the ramdisk.img?Because I don't have it like you in the video.Anyway thanks a lot for the answer and the videos.They are just awesome and very helpful!
 

brakke97

Senior Member
Jul 16, 2012
412
216
Leuven
Thanks a lot lot lot lot lot lot lot lot lot.It works now!!!!!!!!!!!

Off topic
Can you make a video on how to compile popular ROMs like CyanogenMod,AOKP or ParanoidAndroid or porting JoyOS for example?Thanks a lot again!

It would be nice but my knowledge about compiling ROMs isn't that big. Maybe in the near future.
 

azliazmi

Senior Member
Mar 28, 2011
305
165
OnePlus 8
Hi.I have a Dual Core PC @ 2.5Ghz with 3GBs RAM.How long time will it take to build a CM or AOKP ROM?

My spec (old school spec) :

Core2duo
2gb ram
120 hdd
2ghz

Compiled cm or slim rom about 3 hours with not very fast Internet connection sorry for off topic here

Sent from my N7000 using cm10.2-Asyluminator by chasmodo
 

SnakeEyesNinja

Senior Member
Aug 23, 2013
225
12
In U r Brain
Commands for ubuntu

Hey Folks,
I'm contributing this tutorial video for people that want to make an Android kernel!

Step-by-step tutorial:
http://ohheyitslou.blogspot.com/2011/09/ohheyitslou-custom-android-kernel-guide.html

Things that are needed:
Just check the vid out!

Part 1: Configure, Compile the kernel
youtube.com/watch?v=IV4jhXWc7AE

Part 2: Install your kernel
youtube.com/watch?v=gjN8x8Pfcl0

Enjoy it! :laugh::p

Caution: Commands in the video are for Fedora not for Ubuntu, Ubuntu commands are in the step by step guide, above!

Extra:
- If you want to give your kernel extra features like new governors or overclocking, check this guide on XDA-University out!
http://xda-university.com/as-a-developer/adding-features-to-your-kernel
- Keep in mind you need to share your source after you've compiled the kernel due the GPLv3 licence. (GPL?)

I give the full credits to:
- OhHeyItsLou (Youtube)



Please rate 5 stars and press Thanks!

are these commands for ubuntu-12.04.2-desktop-amd64 i use that
do they require specific ubuntu versions or will it work fine with the version i specified :rolleyes:
 

WEM97

Senior Member
Jun 25, 2011
978
929
Woodinville
Hey Folks,
I'm contributing this tutorial video for people that want to make an Android kernel!

Step-by-step tutorial:
http://ohheyitslou.blogspot.com/2011/09/ohheyitslou-custom-android-kernel-guide.html

Things that are needed:
Just check the vid out!

Part 1: Configure, Compile the kernel
youtube.com/watch?v=IV4jhXWc7AE

Part 2: Install your kernel
youtube.com/watch?v=gjN8x8Pfcl0

Enjoy it! :laugh::p

Caution: Commands in the video are for Fedora not for Ubuntu, Ubuntu commands are in the step by step guide, above!

Extra:
- If you want to give your kernel extra features like new governors or overclocking, check this guide on XDA-University out!
http://xda-university.com/as-a-developer/adding-features-to-your-kernel
- Keep in mind you need to share your source after you've compiled the kernel due the GPLv3 licence. (GPL?)

I give the full credits to:
- OhHeyItsLou (Youtube)

Please rate 5 stars and press Thanks!

Handy! Thanks!
 
  • Like
Reactions: brakke97

SnakeEyesNinja

Senior Member
Aug 23, 2013
225
12
In U r Brain
thanks , helped a lot .
just needed to know do we require to download the android sdk for ubuntu also
actually i have it for windows ,but as i am compiling the kernel in ubuntu thought may be we need sdk package for that or not
 
G

GuestK00191

Guest
Hello, @brakke97 !
I have some error when I build kernel for Moto G KitKat from source without modding. I use linaro toolchain 4.8 and Xubuntu x64 on VirtualBox. Can you help me? Sry for my English :eek:

Code:
CC      lib/string.o
  CC      lib/timerqueue.o
  CC      lib/vsprintf.o
  AR      lib/lib.a
  LD      vmlinux.o
  MODPOST vmlinux.o
WARNING: vmlinux.o(.data+0xbce4): Section mismatch in reference from the variable msm_mpm_debug_mask to the function .init.text:mpm_irq_domain_linear_size()
The variable msm_mpm_debug_mask references
the function __init mpm_irq_domain_linear_size()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

WARNING: vmlinux.o(.data+0xbcfc): Section mismatch in reference from the variable msm_mpm_debug_mask to the function .init.text:mpm_irq_domain_legacy_size()
The variable msm_mpm_debug_mask references
the function __init mpm_irq_domain_legacy_size()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

To build the kernel despite the mismatches, build with:
'make CONFIG_NO_ERROR_ON_MISMATCH=y'
(NOTE: This is not recommended)
make[2]: *** [vmlinux.o] Error 1
make[1]: *** [vmlinux.o] Error 2
make: *** [sub-make] Error 2
 

Top Liked Posts