[beginner] Kernel Development - XDA-University

Hey.
I was going through the xda-university site, and i think its pretty amazing. However, one question lurks in my mind and its regarding kernel development, as the title states. Is there any universal method to develop a kernel for any phone? to be honest it seems like a dumb question, but how would it be possible for me to learn how to develop a kernel for xperia u as i don't have a htc desire and the guide for kernels on the site deals with basically htc desire.
Also, if this isn't the appropriate place to ask this question, where could i as when i tick "yes, this thread is a question!" it says it isn't.
Thank you.

[Q] would work.

developing from scratch will take you a while, since you dont know how anyway. start by getting kernel source for your device and learn that way.

pratibhanu said:
Hey.
I was going through the xda-university site, and i think its pretty amazing. However, one question lurks in my mind and its regarding kernel development, as the title states. Is there any universal method to develop a kernel for any phone? to be honest it seems like a dumb question, but how would it be possible for me to learn how to develop a kernel for xperia u as i don't have a htc desire and the guide for kernels on the site deals with basically htc desire.
Also, if this isn't the appropriate place to ask this question, where could i as when i tick "yes, this thread is a question!" it says it isn't.
Thank you.
Click to expand...
Click to collapse
There are 'usually' two places you can start building your kernel from:
1) OEM (your phone's manufacturer's website), It already has board support and all 'necessary' stuff in it. All you need to do is change what you want and do a simple make build after choosing the config file for your board.
2) Vanilla/Stock linux (kernel.org or android.com), This will be extremely hard and is only for boards that don't have support in linux kernel already. This is what engineers at manufacturers do.
If you don't understand the meaning of any word/term in this post, feel free to google them (helps really) or to reply here.

Is there any place that have patches so we can use to kernel if we can't make our own???like governers I/O etc??

pikachukaki said:
Is there any place that have patches so we can use to kernel if we can't make our own???like governers I/O etc??
Click to expand...
Click to collapse
You cant. U just look for a kernel that has the governor added. You will understand that its very easy. Its just a few codes of addition.
Sent from my GT-I9300 using xda app-developers app

Cross-compiling modules
nicholaschw said:
You cant. U just look for a kernel that has the governor added. You will understand that its very easy. Its just a few codes of addition.
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
Hi sirs, im glad of this concept "XDA University". I have a question, lets say I have SGS2, with modified kernel and I would like to extract modules kernel from it (/lib/modules/usbserial.ko) and apply to stock kernel. Would this be possible? Can somebody point me to a link on how should I start?
Thanks in advance and Happy Holidays!

Kernel
pratibhanu said:
Hey.
I was going through the xda-university site, and i think its pretty amazing. However, one question lurks in my mind and its regarding kernel development, as the title states. Is there any universal method to develop a kernel for any phone? to be honest it seems like a dumb question, but how would it be possible for me to learn how to develop a kernel for xperia u as i don't have a htc desire and the guide for kernels on the site deals with basically htc desire.
Also, if this isn't the appropriate place to ask this question, where could i as when i tick "yes, this thread is a question!" it says it isn't.
Thank you.
Click to expand...
Click to collapse
Try pulling the kernel off of your device first.

Related

[Q] Where do i start?

Hi i've been using the x8 for 2 months now running on GingerDX v009.. I've learned many things from this community.. and i wanna learn more..
For starters.. How do i build a ROM? using ROM kitchen? if yes which one is compatible with our X8? Will i need extensive knowledge in linux or in programming?
With the ROM kitchen you don't actually build a ROM, you just give it some features (I've tried it). If you know anything about coding and stuff like that, I've been told that the android developers site is a good start. I'm a beginner myself. So far I've made only an icon pack apk LOL
Chris95X8 said:
With the ROM kitchen you don't actually build a ROM, you just give it some features (I've tried it). If you know anything about coding and stuff like that, I've been told that the android developers site is a good start. I'm a beginner myself. So far I've made only an icon pack apk LOL
Click to expand...
Click to collapse
LOL
I want to start too. Can you or any other give me an "How to start guide for NOOBS" for me? I'm really noob in this xD
Before you start developing, you should know how Android works. As I said before, you will find everything you need in the Android Developers site. And..c'mon! You can't start making ROMs when you haven't even made a simple app yet!
I want to start developing apps, and after that developing some modifications to existing apps and system files. When i know how to do that i can simply make a rom because i know how to compile roms on kitchen
Sent from my X8 using XDA App
Anybody knows any Dev Guide like the one in Android Developers, but in Portuguese?
It's better for me to understand. I can read and understand in English but is more dificult for me :S
RockitOut11 said:
Anybody knows any Dev Guide like the one in Android Developers, but in Portuguese?
It's better for me to understand. I can read and understand in English but is more dificult for me :S
Click to expand...
Click to collapse
Take a look at this.
I don't know if this is good, because I didn't read it all... but I think it may help you
http://www.slideshare.net/jorgecardoso/introduo-programao-para-android
(this link is in portuguese, so don't bother going there if you don't understand)
Online tutorials might help you... There are a lot of them out there... Choose the one which you feel is better... I'm also on the same boat as you..
I personally prefer "thenewbiston" channel.. There you can find tutorials for android application development as well as java(which is very important for app development)..
Then you can move onto cooking roms...
All the best....
adiles said:
Online tutorials might help you... There are a lot of them out there... Choose the one which you feel is better... I'm also on the same boat as you..
I personally prefer "thenewbiston" channel.. There you can find tutorials for android application development as well as java(which is very important for app development)..
Then you can move onto cooking roms...
All the best....
Click to expand...
Click to collapse
thank you, the "thenewboston" channel is great, it's so much easy to learn with his toturials!
i will now start developing some little things, just for fun

[Q] publish the source code of Corn Kernel

Hi there,
I'm looking for the source code of Corn Kernel, especially the version 7.0A.
I already tried to compile the kernel from Samsung with no success.
If by any chance the author can share his code this would be great for me.
Thanks
Might want to check with mtcarey here
http://forum.xda-developers.com/showthread.php?t=1294477
I don't believe they have enough posts to post in the development section, if I remember right it has to be 10
Oops, on the app didn't see post count. Could prolly send mtcarey a pm
mcduck2002 said:
Hi there,
I'm looking for the source code of Corn Kernel, especially the version 7.0A.
I already tried to compile the kernel from Samsung with no success.
If by any chance the author can share his code this would be great for me.
Thanks
Click to expand...
Click to collapse
Refer here. MtCarey explains how to compile KK4.
Actually according to GNU/GPL licencing, all source code must be made available to the public for anything built on or modified from software built with that licence and the licence must carry over.
basically if you build it from a GPL licenced source, you must provide your source for your changes/additions.
But im sure if you send the dev of the kernel in question, he would be happy to abide. (by xda rules he should).
sometimes with modifying kernels/roms of leak versions, and software for which source has not been provided to us, we are able to change 90% less, and are breaking GPL, but we dont really have a choice in the matter. well... we could just not mod it.. LOL.
prbassplayer said:
Refer here. MtCarey explains how to compile KK4.
Click to expand...
Click to collapse
he says in that, that there is much more to tweak to get it proper, but those are the 2 main things missing to get it to boot. not exactly a how-to compile guide.
Hi Guys,
In response to the quote below, I already tried to compile other kernel with some success. I managed to do that with HTC kernel by following the instructions. The explanation MtCarey gave is more like a hint or some info. Even though the info might be good enough for experienced kernel developer, I'm still not experienced enough.
All I'm asking weather the full source code with minimum modification can be contributed to the public so we all can have the benefit of it.
And of course! many thanks for MtCarey if he's willing to do that.
TRusselo said:
Actually according to GNU/GPL licencing, all source code must be made available to the public for anything built on or modified from software built with that licence and the licence must carry over.
basically if you build it from a GPL licenced source, you must provide your source for your changes/additions.
But im sure if you send the dev of the kernel in question, he would be happy to abide. (by xda rules he should).
sometimes with modifying kernels/roms of leak versions, and software for which source has not been provided to us, we are able to change 90% less, and are breaking GPL, but we dont really have a choice in the matter. well... we could just not mod it.. LOL.
he says in that, that there is much more to tweak to get it proper, but those are the 2 main things missing to get it to boot. not exactly a how-to compile guide.
Click to expand...
Click to collapse
mcduck2002 said:
Hi Guys,
All I'm asking weather the full source code with minimum modification can be contributed to the public so we all can have the benefit of it.
And of course! many thanks for MtCarey if he's willing to do that.
Click to expand...
Click to collapse
did you PM him? the un-modified stock kernel or unmodified corn kernel??...
and if you arent that experienced with it... why?? learning?? most of the kernel devs hang out in irc and talk and help kernel developing.. go make some friends.
Where can I get the information how to get to the irc?
TRusselo said:
did you PM him? the un-modified stock kernel or unmodified corn kernel??...
and if you arent that experienced with it... why?? learning?? most of the kernel devs hang out in irc and talk and help kernel developing.. go make some friends.
Click to expand...
Click to collapse

[Q] Can someone teach me how to port CM to desire C cdma (golfc)?

I've been waiting for someone to post a port of cm for my version of my phone but i just can't seem to find anything. And i want to take the initiative to bring my favorite android flavor to my phone.
My phone is rooted and i have a back up of stock.
i would also like to port Ubuntu touch but i guess one step at a time.
i also read the wiki "how to port CM" and i've gotten stuck, i just really don't know what im doing and would like a helping hand.
Thanks for your time.
xorrito said:
I've been waiting for someone to post a port of cm for my version of my phone but i just can't seem to find anything. And i want to take the initiative to bring my favorite android flavor to my phone.
My phone is rooted and i have a back up of stock.
i would also like to port Ubuntu touch but i guess one step at a time.
i also read the wiki "how to port CM" and i've gotten stuck, i just really don't know what im doing and would like a helping hand.
Thanks for your time.
Click to expand...
Click to collapse
You need to have the same base to port roms. You cant port a CM10 golfu without a build CM10 golfc
well if that is so. then where are the roms for golfc? or are you talking of the other way around?
other than your confusing answer does that mean not willing to teach/help me?
me4488 said:
You need to have the same base to port roms. You cant port a CM10 golfu without a build CM10 golfc
Click to expand...
Click to collapse
me4488 said:
You need to have the same base to port roms. You cant port a CM10 golfu without a build CM10 golfc
Click to expand...
Click to collapse
Change the Ril? and then have a kernel which supports that Ril? @soupmagnet was working on this kind of thing, think it's a lost cause as only like 3 people ever bought a golfc (not sure that even is it's codename tbh)
Just checked soups profile, his bio is legendary xD
xorrito said:
well if that is so. then where are the roms for golfc? or are you talking of the other way around?
other than your confusing answer does that mean not willing to teach/help me?
Click to expand...
Click to collapse
Have you got an unlocked bootloader? and have you got a recovery? If so, try flashing my SHTD and then flashing NOPE/Prometheus and tell me what the outcome is.. SHTD has cdma i think..
And Nick, don't try tell me otherwise. If you can flash do it brother!
Edit: Dude, Thank me448 for helping you out, valuable advise right there, click thanks for him... It's what it's there for
penguin449 said:
Change the Ril? and then have a kernel which supports that Ril? @soupmagnet was working on this kind of thing, think it's a lost cause as only like 3 people ever bought a golfc (not sure that even is it's codename tbh)
Just checked soups profile, his bio is legendary xD
Have you got an unlocked bootloader? and have you got a recovery? If so, try flashing my SHTD and then flashing NOPE/Prometheus and tell me what the outcome is.. SHTD has cdma i think..
And Nick, don't try tell me otherwise. If you can flash do it brother!
Edit: Dude, Thank me448 for helping you out, valuable advise right there, click thanks for him... It's what it's there for
Click to expand...
Click to collapse
Well, after hanging around here for a little while, I learned that you were definitely not exaggerating when you said less than a handful of people have the golfc and want to customize it. I have a new addition to my family, and with the new moderator duties and the Kindle Fire support I already provide, I just don't have the time to devote towards getting a working ROM for just 3 people. The golfc is cheap anyway and I just gave it to my wife because there's not much fun to be had with a phone that is only rooted and still has S-ON. Note to self: Never buy another HTC phone.
I still have a working root for it (Linux) if anyone needs it, but it's just a modified version of Bin4ry's "Root Many Android" (used with permission of course), and anyone with a little scripting knowledge can easily make his exploit work for them on pretty much any OS.
I'm sorry I couldn't be of more assistance
xorrito said:
well if that is so. then where are the roms for golfc? or are you talking of the other way around?
other than your confusing answer does that mean not willing to teach/help me?
Click to expand...
Click to collapse
There is currnently no official GolfC forum. Since this is a GolfU only 1 or 2 ROMs will work on the GolfC.
Base: I mean a source built ROM with the device tree edited to the according specifics.
There is no device tree for the GolfC Neither is there a base to use because of that fact.
I have no experience in building device trees therefore I don't really have the ability to help you.
You could try SHTD (fuk u Olli <3) but be careful of bricking your device. I heard that installing GolfU recoveries and boot imgs will brick your device.
Make sure you have a backup of the current ones. Please.
If you do something that makes your phone melt or turn into a ring that wants to get melted in a volcano, don't hold me responsible.
I gave you all the information you asked for, if there is anything else go ahead and reply =3
Edit: @soupmagnet Congrats/feels for the new duty dude =3
penguin449 said:
Change the Ril? and then have a kernel which supports that Ril? @soupmagnet was working on this kind of thing, think it's a lost cause as only like 3 people ever bought a golfc (not sure that even is it's codename tbh)
Just checked soups profile, his bio is legendary xD
Have you got an unlocked bootloader? and have you got a recovery? If so, try flashing my SHTD and then flashing NOPE/Prometheus and tell me what the outcome is.. SHTD has cdma i think..
And Nick, don't try tell me otherwise. If you can flash do it brother!
Edit: Dude, Thank me448 for helping you out, valuable advise right there, click thanks for him... It's what it's there for
Click to expand...
Click to collapse
Im so sorry but you guys lost me
xorrito said:
Im so sorry but you guys lost me
Click to expand...
Click to collapse
Um, it can't be done by us, unless you learn to build from source (use google) and learn to configure RILs (google it) then simply no, it cannot be done, bad luck having a CDMA device /: I think that's 2 to the tally of CDMA now..
GSM: 7k+?
CDMA: 2-5
**Original comment deleted**
EDIT: Nevermind there is nothing in common with desire c and desire u, if those are the phones. Compiling isn't hard to do but requires patience. I can reccomond some helpful guides if you'd like
Sent from my C525c using xda app-developers app
Please and thank you!
awidawad said:
**Original comment deleted**
EDIT: Nevermind there is nothing in common with desire c and desire u, if those are the phones. Compiling isn't hard to do but requires patience. I can reccomond some helpful guides if you'd like
Sent from my C525c using xda app-developers app
Click to expand...
Click to collapse

Kernel for 4.3 Sense 5.5

I found the most AMAZING Kernel for the HTC ONE HERE ON XDA!!!
I have had a hard time finding one that had a bunch of different options, but I search NO LONGER!!!
Now go to the link below and read CAREFULLY and see what all the fuss is about!!!
http://forum.xda-developers.com/showthread.php?t=2608332
Heres a link to see the results of the Benchmark test i did after
https://share.htc.com/O27TdsbqA
Is this a question ot what? The kernel has it's own thread no need to start spamming around
Sent from my HTC One using Tapatalk
??
elvisypi said:
Is this a question ot what? The kernel has it's own thread no need to start spamming around
Sent from my HTC One using Tapatalk
Click to expand...
Click to collapse
I was just trying to help out if anyone needed any advice... not to bother anyone...
pitbull8265 said:
I was just trying to help out if anyone needed any advice... not to bother anyone...
Click to expand...
Click to collapse
That's actually a good sentiment, and I commend you.
But to single out one kernel as being "the most amazing" when there are more kernels out there that users may prefer is not really what XDA is about.
We encourage all users to try out each kernel on their own and decide which one they personally prefer.
Therefore I am closing this thread down.
Thanks for being an excited and engaged member of our forum, there are tons of threads here to help out people, fear not :good:

what is the advantage of custom kernels?

can someone explain me this? would also they affect in something to custom roms?
You could have just searched your question on Google. There are many posts already about this.
More tuneable and optimisations
yunior597 said:
can someone explain me this? would also they affect in something to custom roms?
Click to expand...
Click to collapse
Advantage? Well simply put, there is absolutely no way to answer that in a "general" sense. Read the write-up on the various kernels and sysimages you are interested in knowing about -- the author of those will most likely explain what makes it "special". If they don't, then you can safely assume that whoever set that one up has no plan.
doitright said:
Advantage? Well simply put, there is absolutely no way to answer that in a "general" sense. Read the write-up on the various kernels and sysimages you are interested in knowing about -- the author of those will most likely explain what makes it "special". If they don't, then you can safely assume that whoever set that one up has no plan.
Click to expand...
Click to collapse
Hehe franco kernel threads don't list features
advantage? well, itll differ with every kernel, but most add more cpu control. some set up your cpu completely different to stock, so battery could be better, could gain some performance as well(or the other way around). also, there are certain features that get added into kernels, not roms, that can be taken advantage of. the list can go on and on, since all custom kernels differ. but its the cpu control, and certain features mainly.
zephiK said:
You could have just searched your question on Google. There are many posts already about this.
Click to expand...
Click to collapse
because i prefer to spam here :v
another question, if i change rom do i also change the kernel? i mean what about if i want to back to stock kernel.
yunior597 said:
because i prefer to spam here :v
Click to expand...
Click to collapse
You could have had your answer replied in more depth if you just searched for it. XDA Rule #1
1. Search before posting.
Use one of our search functions before posting or creating a new thread. Whether you have a question or just something new to share, it's very likely that someone has already asked that question or shared that news.
Click to expand...
Click to collapse
yunior597 said:
another question, if i change rom do i also change the kernel? i mean what about if i want to back to stock kernel.
Click to expand...
Click to collapse
Each rom is equipped with a kernel on it, if you use a custom kernel you'll have to reflash it after flashing a rom.
If you want to go back to stock kernel then flash stock kernel.

Categories

Resources