Aosp kernel tutorial?

k_chupe

Member
Sep 14, 2010
19
0
0
Was wondering of there was a straight forward guide for compiling an aosp kernel for the droid inc? I'm having to build a rom myself cause of some issues. I guess the kernel is a good starting point. I want to compile it to be undervolted and overclocked with wifi capability. I want to build an miui rom. Been testing miui by Nix and really like it. Anyhow, any help on learning how to compile this myself would be great. I'm running win 7 on my pc but can run ubuntu 10.10 on vbox. Thanks in advance -kevin
 
Btw, this rom will be for personal use. I don't want to brick anyones phone. I'll take the chance myself. It's all a learning experience for me.
 
tried to compile a kernel but this is the error i get:
make: /home/kevin/android-ndk-r4b/build/prebuild/linux-x86/arm-eabi-4.4.gcc: Command not found
scripts/kconfig/conf -s arch/arm/Kconfig
#
# configuration written to .config
#
make: /home/kevin/android-ndk-r4b/build/prebuild/linux-x86/arm-eabi-4.4.gcc: Command not found
CHK include/linux/version.h
UPD include/linux/version.h
SYMLINK include/asm -> include/asm-arm
Generating include/asm-arm/mach-types.h
CHK include/linux/utsrelease.h
UPD include/linux/utsrelease.h
CC scripts/mod/empty.o
/bin/sh: /home/kevin/android-ndk-r4b/build/prebuild/linux-x86/arm-eabi-4.4.gcc: not found
make[2]: *** [scripts/mod/empty.o] Error 127
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
kevin@ubuntu:~/inc_kernel/msm$ ^C
kevin@ubuntu:~/inc_kernel/msm$ ^C
kevin@ubuntu:~/inc_kernel/msm$
 
It's been a LONG time since I've banged any code out but it looks like you don't have a path variable set or you are missing a SDK component. Check the SDK FAQ but I would imagine you need to set up some Environment variables in Win 7 for the compiler to find the correct dll's. Also make sure you have the correct components installed to compile.

Installing the SDK | Android Developers

Hope this helps.
 
compiling a kernel is the same procedure...you just need to mod the source to include screen drivers...you might want to take a look at github
 
http://forum.androidcentral.com/htc...how-build-your-own-kernel-package-source.html

substitute YOUR kernel source for the Hero kernel source used in the example.

Disregard the boot image steps, you'll need to contact an Incredible dev to get the correct base address to rebuild the boot.img, or look in the board file for the correct address.

Just be careful what you enable (the kernel can't be very big or it won't fit), what you disable, (have to support all the hardware), and what you build as a module (some hardware needs to be ready at init, before the OS boots)

And remember, a bad kernel will flash just the same as a good one will.
Good luck.
 
  • Like
Reactions: k_chupe
I use your boot.img steps all the time (i actually made it a script usable through gscript lite) and it works fine.
 
http://forum.androidcentral.com/htc...how-build-your-own-kernel-package-source.html

substitute YOUR kernel source for the Hero kernel source used in the example.

Disregard the boot image steps, you'll need to contact an Incredible dev to get the correct base address to rebuild the boot.img, or look in the board file for the correct address.

Just be careful what you enable (the kernel can't be very big or it won't fit), what you disable, (have to support all the hardware), and what you build as a module (some hardware needs to be ready at init, before the OS boots)

And remember, a bad kernel will flash just the same as a good one will.
Good luck.

Thank you for taking time out to reply. I can imagine be a supermod really consumes your time. The problem I will most likely run int owill be custom configuration in the kernel build. There are alot of options to choose and I'm not quite sure which ones to pick. I want to enable wifi, undervolt and overclock it a bit to give it optimal qualities for my rom. Is ther a place to go and see some guidelines for determining what setting to choose when building a rom? Thanks
 
svs, bfs, ocuv, havs, smartass gov, etc is configured in the source, BFq, SLUB, kernel panicking is enabled in the config..just a tidbit of info :)
 

Trending Posts

Forum statistics

Threads
956,347
Messages
6,967,699
Members
3,163,516
Latest member
KidColoringPage