[Request] tun.ko for EVO kernel 2.6.32.15-g746f4f0 - EVO 4G Q&A, Help & Troubleshooting

I am attempting to get vpnc (for cisco vpn) working on my evo but I have looked everywhere and not been able to find the tun.ko module for my kernel.
There is a post here by sjakub: http://forum.xda-developers.com/showpost.php?p=5692491&postcount=12 which describes how to compile it, but I do not have access to linux currently.
Would anyone be kind enough to compile the proper file for me please? Thank you very much!

Bump
Looking for the same thing using DC 3.5

Help?
Is anyone able to help with this? Or offer any other suggestions? Thank you.
-David

I'm using netarchy's 4.0.* kernels (with tun.ko already loaded) but I'm still unable to VPN to my Cisco concentrator through VPN Connections
Have either of you tried netarchy's 4.0 kernel?
I'm running Fresh 3.1 with netarchy 4.0.3 kernel, VPN Connections says I'm connected, but when I try to access anything internal... no dice.

My company uses OpenVPN and I had it working with the tun.ko on the 2.1 roms. Also looking for a recompiled version for 2.2 kernels.

also interested in this one

Need this too
My kernel is also 2.6.32.15-g746f4f0 and I need the tun.ko file for this. How can I look/compile this? Is it safe to install another kernel? Very new to this, but I was able to successfully install 3.26.651.6 Froyo DeOdexed RevE.1, but don't know how to update a kernel that will work with VPN Connections.
Thanks very much in advance!

I had the same problem, until I switched to CM6 -- It's become a solid ROM and I've learned to live without sense, every time I kick my VPN in and fix a server issue I miss sense less and less. IMHO every ROM should look to integrate this feature.

Kernel
I am using AVA V5 and the Netarchy Kernel caused me problems, so I am using stock. I may try it again shortly if there is not anyone out there who can compile tun.ko for it.

drizkol said:
I'm using netarchy's 4.0.* kernels (with tun.ko already loaded) but I'm still unable to VPN to my Cisco concentrator through VPN Connections
Have either of you tried netarchy's 4.0 kernel?
I'm running Fresh 3.1 with netarchy 4.0.3 kernel, VPN Connections says I'm connected, but when I try to access anything internal... no dice.
Click to expand...
Click to collapse
I installed Netarchy 4.1.8 today and my VPN no longer force closes. However now it says connected, but I cannot access anything inside my work network same as you. Did you find a solution to this?

I have TUN vermagic=2.6.32.15-g746f4f0
I compiled TUN using the HTC sources see my post below
FYI, looks like tun.ko creates the /dev/tun device, but vpnc is looking for /dev/net/tun
will be looking into this next but tun.zip is attached to the post below
http://forum.xda-developers.com/showthread.php?p=7913695#post7913695

btedeski said:
I compiled TUN using the HTC sources see my post below
FYI, looks like tun.ko creates the /dev/tun device, but vpnc is looking for /dev/net/tun
will be looking into this next but tun.zip is attached to the post below
http://forum.xda-developers.com/showthread.php?p=7913695#post7913695
Click to expand...
Click to collapse
sweet, let me know if you get anywhere with this..

Symlink /dev/net/tun to /dev/tun

>> Symlink /dev/net/tun to /dev/tun
yes that is on the top of the list to try,
unfortunately my work is getting in the way of finding time to relax and play with my phone (as the girl friend calls it)
Bill

Related

[Request] cifs.ko for kernel 2.6.32.15-ge2fb08e

Will someone please make a cifs.ko and nls_utf8.ko for the new released kernel (2.6.32.15-ge2fb08e) or send links on how to and the tools needed? Thanks in advanced.
Never mind. Thanks for everyone's help.
Here is what I did to get the cifs.ko and nls_utf8.ko (from here http://forum.xda-developers.com/showthread.php?t=754793) to work for my kernel.
I took the cifs.ko and nls_utf8.ko created by "snq-" and used a hex editor to edit the kernel number to match mine.
That was all, no re-compile needed. then I followed the rest of the steps laid out by snq- to install the files and test them.
Lastly I installed CifsManager which is available on Market and everything worked.
I am able to connect to my network only locally. Comcast seems to be blocking ports so I cannot access smb from outside my network.
Well.. could ya please post the cifs.ko file that works for the rest of us?
Thanks!
cifs.ko and tun.ko
Yes, please post so we can use it too!
Thanks!
Do you know if this will work for Netarchy's 4.21 cfs kernel?
reekotubbs said:
Never mind. Thanks for everyone's help.
Here is what I did to get the cifs.ko and nls_utf8.ko (from here http://forum.xda-developers.com/showthread.php?t=754793) to work for my kernel.
I took the cifs.ko and nls_utf8.ko created by "snq-" and used a hex editor to edit the kernel number to match mine.
That was all, no re-compile needed. then I followed the rest of the steps laid out by snq- to install the files and test them.
Lastly I installed CifsManager which is available on Market and everything worked.
I am able to connect to my network only locally. Comcast seems to be blocking ports so I cannot access smb from outside my network.
Click to expand...
Click to collapse

Tun.ko in HTC Stock Rom

Hey,
Not sure if this is the right forum or not. But I have tried a few places and ended up with no reply or a dead end so I'm hoping I will actually get some where here.
But is there any way that makes it possible to get tun.ko working on a stock HTC Desire rom?. I have been searching for god know hows long to find any help or instructions on the matter without much help being offered :/
Its because I want to run VPNC on my Desire and I got all the stuff bar tun.ko, so that is the only thing stopping me from going any further and any and all help will be appreciated.
Kind regards.
Yes, you can download the desire kernel from http://developer.htc.com/
You also need the build toolchain for arm processors, find it on http://developer.android.com/sdk/index.html
You need to root your desire, so you can copy files to the system partition. http://unrevoked.com/
The kernel .config file for making oldconfig is , as far as I remember, delivered with the kernel package by htc. If not you can get it from your phone.
Build tun as module, and copy it on yor device.
Hope thats a good quick start for you.
malachay.
It helped somewhat, althought I am not sure how I actually build something as a module etc considering I dont really have much in the way of linux/unix experience.
But my phone is both rooted and S-OFF.
So considering my lack of experience with these things a more elaborate/comprehensive guide or just the steps I need to reproduce to actually build the file as a module, would be greatly appreciated.
MeX_DK said:
It helped somewhat, althought I am not sure how I actually build something as a module etc considering I dont really have much in the way of linux/unix experience.
But my phone is both rooted and S-OFF.
So considering my lack of experience with these things a more elaborate/comprehensive guide or just the steps I need to reproduce to actually build the file as a module, would be greatly appreciated.
Click to expand...
Click to collapse
You don't have to build one per say, you just need to find the Tun module (Tun.ko) for your specific kernel.
If you go to the "About phone" -> "Software Information" section, you'll see a Kernel version.
For example, the phone I have is using Kernel 2.6.32.15-gf5a401c - so I have a tun.ko that loads for that kernel.
There's quite a few TUN modules posted on this forum for various versions of the HTC kernels.
If you don't find a module that fits your kernel version , I can build it for you if you want.
Sent from my HTC Desire using XDA App
Mekrel said:
For example, the phone I have is using Kernel 2.6.32.15-gf5a401c - so I have a tun.ko that loads for that kernel.
Click to expand...
Click to collapse
My kernel seems to be the same, so would you mind sharing your tun.ko and possibly any instructions on how to get it on my phone and working ?
But my kernel version says: 2.6.32.15-gf5a401c
[email protected] #1
MeX_DK said:
My kernel seems to be the same, so would you mind sharing your tun.ko and possibly any instructions on how to get it on my phone and working ?
But my kernel version says: 2.6.32.15-gf5a401c
[email protected] #1
Click to expand...
Click to collapse
Here's the tun.ko I made for my ROM:
Tun.ko for 2.6.32.15-gf5a401c
It's not a flashable zip though, you need to push it to your phone using ADB (or use QtADB if you want a UI program to help you).
You need to put it in /system/lib/modules/
To load it, run terminal emulator on your device (it's free on the market) and run the command:
Code:
insmod /system/lib/modules/tun.ko
Although, if you're using a VPN application on your phone, the application might have an option to load the TUN module for you - so the insmod command might not be needed.
Mekrel,
Do you have the "exact" ADB command on hand?. Because I know how what ADB is for, but doesn't know the commands etc by heart
This is the error I get when I try :/
D:\Test\android-sdk-windows\platform-tools>adb push D:/tun.ko /system/lib/module
s
failed to copy 'D:/tun.ko' to '/system/lib/modules/tun.ko': Read-only file syste
m
Hi!
Seems like there is the same problem on all Android devices. OpenVPN requires the tun.ko kernel module that is hard to get. And it also seems like it must be compiled more or less exactly to much your rom version :-( .
I have a HTC Desire HD running stock rom kernel version 2.6.32.21-gf3f553d [email protected] #1
I have tried various tun.ko modules I have found, but none is comaptible; insmod tun.ko fails.
Questions:
#1 Where can the right version of this magical module tun.ko be found?
#2 Is it hard to compile it for the correct ROM?
#3 How? Isthere any good step-by-step guides.
This could also be a good way to get introduced to compiling kernel modules fro Android devices.
br akeso

[Q] 'TUN' Support in a CM7 ROM? Kernel?

Hi everyone, I use CM7 roms (keep switching between various flavours, just about to flash CM7 RC3 by kali http://forum.xda-developers.com/showthread.php?t=957336
My question is this. How do I get 'TUN' module support in a CM7 ROM. The reason I (think) I need it is because OpenVPN asks for it. I want to use OpenVPN to connect to my work. I've seen at least 3 kernels which support TUN, but they all work with Sense ROMs.
So, at present stage, would it not be possible for me to get TUN support in a CM7 ROM?
TIA.
Bump...
Anybody? Any other solution to connect to an openvpn server?
Sent from my Desire HD using Tapatalk
Tun Support for Gingerbread on Galaxy Tab
Hi everybody,
i have installed Gingerbread with CF-Root from Chainfire and everything is fine. But i need TUN support in the Kernel or by Module. So it is possible to make this running on that CF-Root-Kernel ?
I have start to build my own Kernel but when i load the zImage the Tab always restart with no funktion... When i load only the Build tun.ko module in then CF-Root-Kernel i got the message from insmod:
insmod: can't insert 'tun.ko': invalid module format
dmesg:
tun: exports duplicate symbol tun_get_socket (owned by kernel)
TAB-DATA:
Mod= GT-P1000
Firmware= 2.3.3
Basisbandversion=P1000XXJPZ
Kernel=2..3.7 [email protected] #2
Buildnumber=Gingerbread.XXJQ1
Hope anybody can help me.
Thanks

[Q]tun.ko module for 2.6.35.10 htc kernel

Hey all,
Anyone has got the tun.ko module for this kernel? Or anyone could compile one? Thanks!
Hi,
I tried to compile a matching tun.ko module. However, I have currently no possibility to test if it works. If someone wants to try it, I would be glad to hear, if it works or not. (As always, don't blame me, if it breaks anything.)
[Edit: OK. I removed this version, as it obviously did not work. A working tun.ko can now be found in post #8]
it loaded successfully but then i get FCs in settings ever since
it indeed does not work
I tried to use it in console
it loads OK, but when creating a tunnel interface the phone reboots unexpectedly
has anybody succeeded in building tun.ko against this 2.6.35.10-g0956377 kernel version?
thank you very much in advance
OK
since HTC has not release 2.6.35.10 kernel sources for DHD I was not able to build tun.ko against DHD kernel
I grabbed the only 2 kernel sources with this version that are available on developer.htc.com and tried to build tun.ko agains them
the one from HTC Desire S works fine on my phone
I will recompile it against DHD kernel once it gets released
so far you can try the one attached and report if it works or not
if was build with magic version number g0956377
just unpack
rename to tun.ko
insmod
and report if it works
Have a nice day
Martin
have not use
<s>Would you please build it against desire s's own g13f6602 ?</s>
thank you for the common idea
The official kernel sources for the 2.6.35.10-g0956377 kernel used in the 2.36.405.8 software for the DHD are now available. I have therefore compiled the tun.ko module again from these sources. This module works now also on my phone. You find it attached below.
Hi can anyone help me get a tun.ko for my HTC DHD, kernel is 2.6.32.21-gbe90714 ... Thanks
Can somebody please build tun module against 2.6.35.10-g13f6602 kernel?
Someone has already done this for this version of kernel (2.6.35.10-g13f6602), so tun module and everything else is in the archive.
openvpn got working
Posted by Karthik on May 8, 2011 in Android Support, Rooting and Mods | 0 comments
For those who have already rooted their phones and need ovpn, i’ve compiled tun.ko module, which suites stock ROM (2.6.35.10-g13f6602)
All you need is to put it into /system/lib/modules/ from the archive attached.
Also, you can find there working binary (and lib) from cm7.
Just place the binary into /system/xbin/ and lib to /system/lib/
Enjoy!
Click to expand...
Click to collapse
Hi
Has anyone got the tun.ko for 2.6.35.10-gd2564fb?
Thanks!

[Q] OpenVPN Support "tun.ko"

I was wondering if the Galaxy Nexus stock ROM had OpenVPN support in kernel and if someone was contemplating compiling tun.ko for the less tech savy users
Would also like to know if it's possible to use OpenVPN on the GN.
If it is not in there stock, I am sure one of the many kernel devs will add it for us.
Apparently...
"It should now be possible to write a OpenVPN client for Android."
According to:
https://code.google.com/p/android/issues/detail?id=3635#c87
So it's just a waiting game now for an app it looks like.
openVPN works
Hi,
Just wanted to let you know I got openVPN working. (pic below)
I have Revolution 1.3.0 ROM and Franco's kernel installed, both excellent I must add.
I didn't need a tun.ko, did on my sgs2.
There are 2 programs you need on the market, openVPN installer and openVPN setting. Run those and you should be good to go. The only thing I had to do was create a /system/xbin/bb folder and copy ifconfig into it. This may have been something to do with the way I installed busybox.
I use the last MCK kernel compatible with Android Revolution HD.
Will check if the kernel have support.
I can't wait to be able to watch Netflix from the USA again.
Unfortunately, stock ICS on the GN has no tun support. We still need a tun.ko. So far I didn't find one, so I guess I need to compile it myself...
I believe it stock ROM does have tun support. See this thread:
http://android.modaco.com/topic/349642-tunko-for-openvpn/
Steps are here for anyone else looking to get it working (which I gleaned from here http://forum.xda-developers.com/showpost.php?p=17233744&postcount=9):
Install Busybox from Market
Install OpenVPN Installer from Market and install to:
binaries: /system/xbin
route/ifconfig: /system/xbin/bb
Create /system/xbin/bb with Root Explorer or from shell
Create link to busybox for ifconfig and route
ln -s /system/xbin/busybox /system/xbin/bb/route
ln -s /system/xbin/busybox /system/xbin/bb/ifconfig
taylormadearmy said:
I believe it stock ROM does have tun support.
Click to expand...
Click to collapse
Indeed, you're right. Although my OpenVPN installer indicated my kernel was lacking a tun module, I justed ignored it and now I'm running OpenVPN on rooted/unlocked ICS. Great!
Mark
I would ideally like this to work without rooting. Hopefully a proper app gets made!
Great News though!
Indeed, I thought that I needed Franco's kernel to get openVPN to work, but when I flashed back to stock kernel (I had some battery issues) the openVPN still worked.
Everything worked fine, I can now connect on my VPN servers through OpenVPN Settings (On the Android Market) : D. Awesome ! Many thanks
nvm
10 characters
Just in case you haven't heard yet: The official Cisco AnyConnect VPN Beta has been released in the market a week or two ago. It supports all ICS devices (tested it on my Asus TF101 with stock 4.0.3). Works great on my unrooted GN!
Gesendet von meinem Galaxy Nexus mit Tapatalk
Help with OpenVPN setup
Hello,
I followed all the instructions on this post regarding install and reconfiguration of folder permissions. I'm running AOKP Milestone 3 and Franco kernel Milestone 2. My phone connects to openVPN but it's clear that data isn't flowing through it (i.e., I'm in China and still can't use Facebook or Youtube apps)
Any suggestions? OpenVPN app connects to the server very quickly but when visiting Facebook.com, I can see very easily that the download rate is 0.0kbps, then the page times out.
Any help would be appreciated!
romerjon said:
Just in case you haven't heard yet: The official Cisco AnyConnect VPN Beta has been released in the market a week or two ago. It supports all ICS devices (tested it on my Asus TF101 with stock 4.0.3). Works great on my unrooted GN!
Gesendet von meinem Galaxy Nexus mit Tapatalk
Click to expand...
Click to collapse
Does this work with open vpn? Sorry if this is a dumb question, I am a new user to open vpn. I am about to setup an open vpn server on my dd-wrt router.
does anyone know where the tun.ko module is located on stock rom?
i can't find it no matter how i search for it. will it be possible for someone to upload it and give us the link?
thank you...

Categories

Resources