New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
bponury
Old
#1  
bponury's Avatar
Recognized Developer - OP
Thanks Meter 2524
Posts: 694
Join Date: Apr 2010
Location: Warsaw

 
DONATE TO ME
Question How to compile and boot custom kernel on linux

Hey, so I'm in a mood to compile and test kernel sources provided by Kali-. However I've used search and googled and seriously didn't find anything that would explain the whole process from downloading crosscompiler to putting it all in phone.

So is there any good tutorial for creating and booting custom kernel?

It shouldn't be important, but I'm on Ubuntu Lucid - debian lenny on other PC no windows available atm.

Any help would be appreciated.
 
fakts13
Old
#2  
Senior Member
Thanks Meter 3
Posts: 131
Join Date: Aug 2007
cyanogen's wiki has some info on compiling his kernel. i'd look there first
 
bponury
Old
(Last edited by bponury; 15th June 2010 at 06:37 PM.)
#3  
bponury's Avatar
Recognized Developer - OP
Thanks Meter 2524
Posts: 694
Join Date: Apr 2010
Location: Warsaw

 
DONATE TO ME
Yeah I did, but it's different and a bit outdated. My compilation end without error ($? == 0) but still no zImage.

edit: Few make's later zImage magically appeared! I've extracted current kernel and ramdisk. The question is now - how to flash it back ? Not sure if simple cat file.img > /dev/mtd/mtd2 will work.

edit2: Compiled native desire kernel using extracted .config, created image and flashed but still no go - It's my first android so I don't know how to even debug this. I believe i got kernel panic somewhere but still don't know how to fix it - any help? This is a dev forum right?
 
fakts13
Old
#4  
Senior Member
Thanks Meter 3
Posts: 131
Join Date: Aug 2007
maybe check #htc-linux on freenode irc. they might be able to help you out in compiling the kernel in general, maybe not so much in desire-specific.