Long story short: I compiled my kernel from source (G900F) and added schedulers and governors. Haven't seen any articles regarding hotplug drivers, anyone there that knows how to add one or modify one?
I looked at other's source on their git but I just can't understand how and where should I look.
bump. Anyone that can really help me? I posted questions regarding this, ask some devs, searched for hours, and whatnot.
same question
Related
Hi there,
Now, I understand that there's a thread or two and a few web pages directed at compiling Android and its kernel from source.
However, the thread in question is months old, and didn't fully explain the process.
As for the web pages, they are mostly outdated and don't include enough information, not to mention desire specific instructions.
I think that, properly explained, building Android shouldn't be daunting, and everyone should be able to attempt it, if they wanted to.
So, I hope to compose a comprehensive guide on how to do just that.
The problem is that I myself have not been able to put enough instructions together to be able to complete a build. And there is no point digging up old threads.
So, If anyone who knows the ropes (that is, compiling android and a kernel from source) would be willing to lead the way, I'd happily turn it into an easy to understand guide.
Josh.
fllash said:
Hi there,
Now, I understand that there's a thread or two and a few web pages directed at compiling Android and its kernel from source.
However, the thread in question is months old, and didn't fully explain the process.
As for the web pages, they are mostly outdated and don't include enough information, not to mention desire specific instructions.
I think that, properly explained, building Android shouldn't be daunting, and everyone should be able to attempt it, if they wanted to.
So, I hope to compose a comprehensive guide on how to do just that.
The problem is that I myself have not been able to put enough instructions together to be able to complete a build. And there is no point digging up old threads.
So, If anyone who knows the ropes (that is, compiling android and a kernel from source) would be willing to lead the way, I'd happily turn it into an easy to understand guide.
Josh.
Click to expand...
Click to collapse
I followed this guide here and successfully compiled a modified HTC Kernel and I had very little Linux and Android experience.
Obviously instead of cloning the Cyanogen git, you just use the gits you wish to compile
Mekrel said:
I followed this guide here and successfully compiled a modified HTC Kernel and I had very little Linux and Android experience.
Obviously instead of cloning the Cyanogen git, you just use the gits you wish to compile
Click to expand...
Click to collapse
Thanks for the link
Though i don't fully understand the whole 'git' thing. Where do i find them? And how to i know which ones are the ones i want to use?
Josh
EDIT: Also, how do you 'edit' the kernel (i imagine it is somewhat like make menuconfig?). Also:
- Are these sense kernels?
- How do you add modules like OC and UV?
fllash said:
Thanks for the link
Though i don't fully understand the whole 'git' thing. Where do i find them? And how to i know which ones are the ones i want to use?
Josh
EDIT: Also, how do you 'edit' the kernel (i imagine it is somewhat like make menuconfig?). Also:
- Are these sense kernels?
- How do you add modules like OC and UV?
Click to expand...
Click to collapse
A git is a repository for source code, developers upload their source code there and can commit changes. The commit can allow descriptions of what was changed and also details the files changed.
The git system allows other people to add to the source if they have permission, or allows others to read the changes and download the source code.
Git links are usually posted by people who release software, as Android is GPL licensed so people have to release their source code if they're distributing their work.
Editing the kernel, take a look into the git and the commits and it will show you which files were changed and how exactly they were changed. That will give you the best understanding.
UV/OC is done by changing the acpu table in the architectures files and changing the minimum/maximum voltage figures in the board_bravo.c file.
The Cyanogen kernels are not Sense kernels no, it's a modified Google Kernel.
Thanks for the explanation. I followed the guide and built the rom, and it works (always a plus )
Now, the next thing is the kernel. How do I build a kernel with the CM tweaks integrated? I understand that all i would be doing is rebuilding the same one that is already installed, but im doing it to learn.
So, if i synced the GIT, does that include the CyanogenMOD kernel source? If it does, where is it and how do i rebuild it. If not, where do i find it?
Thanks,
Josh.
hello. im new to android and i'm messing with openvpn and i need tun.ko. from what i understand, not just any tun.ko will work with a particular rom so i was wondering if anyone knows where i can obtain or at least make this file that would possibly work with the TPGB20110518 rom? thanks.
You should probably post in the author's thread, but I sse you probably can't post in the dev section yet (need 10 posts I think). Anyway, I looked at that ROM in the dev section and it's apparently running Di11igaf's kernel. I checked out his thread here:
http://forum.xda-developers.com/showthread.php?t=1070501
but he doesn't post any links to the kernel source.
With the source, it would be a simple matter of compiling in the module and adding it. I'd suggest you contact the author.
Pm the developer and he will respond asap
the issue was actually already resolved. did a bit of reading and apparently tun.ko file was built into cm so seeing as tpgb is based off of cm, it was built in as well. =)
Source is posted. Git is in my sig for the kernel
Never mind, a further search pointed the source on the LG web site. But it is still appreciated if someone can post tun.ko because people were looking for it and I don't have the setup to do the compiling yet.
===============
I was trying to get tun.ko for ThiaiZO3D or other GB build. I searched the forum and found several people asked before in ThiaiZ's thread and ThiaiZ seemed to acknowledge to add TUN support long ago but it never appeared in ThiaiZ's kernel. I PM'ed ThiaiZ but he did not respond to me. So I am asking help here. In order to build tun.ko, do I need the original source to compile, or can I just grab some other source and set the correct CPU type and version header to just compile the module? If the original source is needed, where to find it? Or if someone had the source handy, can you post the tun.ko? Thanks for your help.
mbuugg said:
Never mind, a further search pointed the source on the LG web site. But it is still appreciated if someone can post tun.ko because people were looking for it and I don't have the setup to do the compiling yet.
===============
I was trying to get tun.ko for ThiaiZO3D or other GB build. I searched the forum and found several people asked before in ThiaiZ's thread and ThiaiZ seemed to acknowledge to add TUN support long ago but it never appeared in ThiaiZ's kernel. I PM'ed ThiaiZ but he did not respond to me. So I am asking help here. In order to build tun.ko, do I need the original source to compile, or can I just grab some other source and set the correct CPU type and version header to just compile the module? If the original source is needed, where to find it? Or if someone had the source handy, can you post the tun.ko? Thanks for your help.
Click to expand...
Click to collapse
Hi mate, sorry if I didn't answer, I have really a lot of things to do right now, but would like to help as soon as I make my 4 ROM out there stable. 2/4 are already working stable, so soon we can join forces to port what you need in the kernel.
Sent from my LG-P920 using xda premium
Thanks ThiaiZ! Actually trax11 has post tun/cifs modules long time ago. I should have done more homework before posting.
http://forum.xda-developers.com/showthread.php?p=23264904
Can someone tell me how to add SmartassV2 to kernel.
I dont know much but i think you have to add it to your kernel source before compiling. Not sure though
Hit thanks if helped
You will have to find the source for the specific governor type, then you will have to add it to your kernel source, then compile it. I'm not a kernel dev but this is probably the approach to it. There are plenty of tutorials that should help you.
Hello All,
I am new in the android world, but am fairly experienced on the Linux side of things. I would like to build a loadable kernel module for a specific version of JB (4.2.2_r1) and have some general questions.
As I understand it, the process should be as follows:
Get kernel source for JB, compile kernel, then compile kernel module. Please correct me if I am wrong
I can't seem to find the kernel source for this, can anyone point me to exactly where it is?
Thanks