• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Anyone have any experience in building kernels? :p

Rxpert83

Dr. Feelgood
The fun begins..... :)

So those of you who know me from the EVO 4G forums know I like to learn via experience. See my failed ROM building epic lol :rolleyes: (Never got that darn thing booting. I now know that the 3D ROM I was porting was simply too big to fit into the EVO's tiny partitions the way I was trying to do it.)

Anyway, this is how I learn the inner workings of everything. So now that I'm fairly comfortable with ROMS its time to move onto kernels.

Problem is, most tutorials I try to follow seem to do things differently. I've got to the point where I've actually started making changes to the kernels, and I've added things like different governors (ex-SmartassV2).

Where I'm stuck is how to get this thing to compile :confused: Most threads I'm reading about building from source do it differently, and differences in devices aren't exactly making this transition easy.

At some point I hope to have a working kernel with at least a few customizations, so if you guys want to possibly brick your devices give me the heads up and you can be the first to test (kidding? :smokingsomb:)

Once I figure out how to make I can research more additions.




Time to start 'sperimentin

Edit:
Lithid may be to the rescue here. Forgot about his autocompiler. Lets see if I can make the changes to get it to compile my kernel
 
The fun begins..... :)

So those of you who know me from the EVO 4G forums know I like to learn via experience. See my failed ROM building epic lol :rolleyes: (Never got that darn thing booting. I now know that the 3D ROM I was porting was simply too big to fit into the EVO's tiny partitions the way I was trying to do it.)

Anyway, this is how I learn the inner workings of everything. So now that I'm fairly comfortable with ROMS its time to move onto kernels.

Problem is, most tutorials I try to follow seem to do things differently. I've got to the point where I've actually started making changes to the kernels, and I've added things like different governors (ex-SmartassV2).

Where I'm stuck is how to get this thing to compile :confused: Most threads I'm reading about building from source do it differently, and differences in devices aren't exactly making this transition easy.

At some point I hope to have a working kernel with at least a few customizations, so if you guys want to possibly brick your devices give me the heads up and you can be the first to test (kidding? :smokingsomb:)

Once I figure out how to make I can research more additions.




Time to start 'sperimentin

Edit:
Lithid may be to the rescue here. Forgot about his autocompiler. Lets see if I can make the changes to get it to compile my kernel

good luck let us know how if progresses.
 
I gave up around 2:30 this morning and went to bed haha. I think I need to completely scrap the project and start over fresh. The thing about linux is, if the working environment isnt set up correctly your screwed from the get go.

I think I need to backtrack, follow one of the guides for building a kernel from source and just use whatever source is in that guide and build the kernel for some other device without modifications. That way I at least know I have things set up properly.
 
The thing about linux is, if the working environment isnt set up correctly your screwed from the get go.
so whats the issue? how can we help? what distro are you running and why? if the sky was green would we really have trouble finding out where to stop mowing?
 
I'm in the middle of completely reinstalling my Linux os right now to try and give me some more space to work with and a fresh start. I contacted ca1ne and he said 12.04 should work..
It's my understanding that only 10.04 is officially supported by the guys at source.Android.Com


My slow Internet connection is going to make this a long process
 
I've at least got the build tools I think I need installed now, source is just finishing up. What it comes down to I guess is I dont know the correct terminal commands to build the physical kernel.

I can untar it, make changes, and then thats the end of the line.

Some guides reference cross compiling, some want me to pull the current kernel config via adb, ect. I'm trying to limit the posts I'm reading to HTC specific phones, but thats easier said than done.


I was just wondering if anyone had any experience with this kind of thing. I'm such a linux noob haha
 
My advice, take it steps.

Create a virtual machine that you can use as a sandbox. Make backups of the virtual image as you go along.

Try building a module and adding it to the desktop kernel inside your virtual sandbox.

Work your way up to a full kernel build.

After you're comfortable then turn to cross-building.

Then turn to building a Linux kernel for Android.

That's not the only way, but that's how I would proceed.

Have you seen -

http://en.wikipedia.org/wiki/Linux_From_Scratch

http://www.linuxfromscratch.org/
 
Back
Top Bottom