Where to Find Kernel Source to Build tun.ko - LG Optimus 3D

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

Related

Compiling Android + Kernel from Source.

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.

[REQUEST]tun.ko for the Inspire kernel

If anyone with the know-how could compile a tun.ko file for the 2.6.32-g3c08447 kernel I would be very appreciative. I have been reading for the past few hours but I just don't know enough about linux to do it myself. The only thing that I do not have working yet is the ability to connect to Cisco ASA VPNs and the tun.ko file will give us that.
Thank you in advance!!
NVM. After more reading I found that you need the source for the kernel and we don't have that yet. Mods can delete this post, please.

TPGB20110518 & tun.ko

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

[Q][EASY $30] Need to compile Android kernel - Help wanted

Hey guys,
After two weeks of research and trying myself, I have decided I need someone to help this linux noobie out.
What I am looking for is to change 1 value which is in 1 file in the kernel source.
I've found which file it is. The problem is that with all the tutorials I've read and kernels I tried to compile,
they don't seem to be working with the source code I need to compile.
Details:
Source code I need to compile is for Samsung Tablet 2 10.1 - GT-P5110
Source code can be found @ samsung's open source site (can't post link here ) ... search for "GT-P5110_ICS_Opensource.zip"
Value I need to change is in the company layer of kernel.
I have been able to compile this kernel and get a zImage and some modules.
But I fear this isn't enough, I think I need a system.img?!
In any case, is there anyone who can help me out?
Do I need something else, patch/boot.img? Maybe I'm overlooking another easy solution?
I'll give you $30 on your Paypal account, same day!!
***Please note that $30 is only for the first working solution/person who can help, not for every solution :angel:***

[Question] Kernel Compilation for Modules

First post in the Dev section but this seemed to be the place to talk about kernel compilation and module development.
I have twice now, and am working on my third kernel compilation for the purposes of custom module building for the TF700 and the TF201.
The question I have has to do with the compilation process. Every time I have gone through this with the downloadable Asus Kernel zip I run in to several issues. Either missing references in code or portions that won't compile at all. Is this normal for kernel compilations? I would have thought that it would be fully compilable out of the box ( so to speak). Is it ASUS or just android/Linux in general that works out this way?
Is there a better way to do it? Should I use some generic source with the same version numbers? The current source is just not working at all. I am using an Ubuntu distro. Have the cross compile tools etc... but it just fails. I have already resolved two missing definition references and it just keeps on failing in new places
Hopefully this question doesn't offend developers. I have moved from WinPhone to here and want to better my understanding of how this should all work but need to start with some basics before I can make a meaningful contribution.
Thanks.
P.S... I looked and didn't find a "Compiling android kernels for dummies" book
hx4700 Killer said:
I looked and didn't find a "Compiling android kernels for dummies" book
Click to expand...
Click to collapse
"Dummies" doesn't write a book on kernel dev. Too wrapped up in telling people how to download iTunes.....
Use your "Google". And when you find it, Google XDA University.
There, you will find steps for setting a build environment and kernel and cross arm.
Understand, all kernels are different, but a good place to start. Plus, you learn how to use Google. An added bonus.
Oh... and... as an extra bonus, I will move this to Q & A, as this post has no development work attached. :silly:
MD
My question wasn't HOW to cross compile. I have done it.
My question is WHY are there so many errors that need correcting when compiling the ASUS downloadable kernels and if this is typical of the source from any device or just ASUS?
hx4700 Killer said:
The question I have has to do with the compilation process. Every time I have gone through this with the downloadable Asus Kernel zip I run in to several issues. Either missing references in code or portions that won't compile at all.
Click to expand...
Click to collapse
I had to fix exactly one pair of quotes vs. angle brackets somewhere in the RIL - get the patch pack from my kernel and apply the ril include fix. Then it should compile. If not, you are doing something wrong.
Can you post any links or names of everything ill need to get started on cross compiling a kernel for my tf700t I download the source and get my config.gz and am running a ubuntu distribution but if you could post a link to a tutorial that has detailed instructions that will work for the infinity that would be greatly appreciated thankyou
alexcass4 said:
Can you post any links or names of everything ill need to get started on cross compiling a kernel for my tf700t I download the source and get my config.gz and am running a ubuntu distribution but if you could post a link to a tutorial that has detailed instructions that will work for the infinity that would be greatly appreciated thankyou
Click to expand...
Click to collapse
Step 1: Get a suitable ARM toolchain. I can't help you here with Ubuntu because I'm using Gentoo and their crossdev tool (http://www.gentoo.org/proj/en/base/embedded/handbook/?part=1).
Step 2: Cross-compiling the kernel works just as for native kernels (make menuconfig, make), but you have to pass parameters to each make, e.g. make ARCH="arm" CROSS_COMPILE="arm-gentoo-linux-gnueabi-" (or whatever your toolchain is called)
Step 3: For the TF700-specific blob stuff I have written a detailed tutorial here: http://forum.xda-developers.com/showpost.php?p=36925180&postcount=4

Categories

Resources