Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,814,393 Members 53,363 Now Online
XDA Developers Android and Mobile Development Forum

tun module

Tip us?
 
gled
Old
#1  
Member - OP
Thanks Meter 42
Posts: 84
Join Date: Jul 2010
Location: E975
Default tun module

for those of you who needing vpnc running, here's attached the tun.ko fresh built.
Attached Files
File Type: zip tun.ko.zip - [Click for QR Code] (64.5 KB, 490 views)
 
DaXmYsT
Old
(Last edited by DaXmYsT; 4th August 2010 at 03:21 AM.)
#2  
Junior Member
Thanks Meter 0
Posts: 15
Join Date: Aug 2010
Quote:
Originally Posted by gled View Post
for those of you who needing vpnc running, here's attached the tun.ko fresh built.
ty, but I need help to set it up. :/

First of all, my phone is rooted. (x10 mini pro)

- got latest Version of busybox.
- tun.ko is on my SD card
- installed OpenVpnGui
- installed OpenVpnInstaller
- executed insmod tun.ko
- started OpenVpnInstaller
- tryed to install to /system/bin/

but I cant install the binaries.

the log file says for example:
STDERR cp: cp not found
STDERR: Unable to chmod /system/bin/openvpn no such file or directory

Hope someone can help me
 
Farasy
Old
#3  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: Feb 2008
Same prob like Daxmyst here.

Anyone who can help us ??
 
gled
Old
#4  
Member - OP
Thanks Meter 42
Posts: 84
Join Date: Jul 2010
Location: E975
"cp not found" indicates you don't installed busybox.

by memory it's something like busybox --install /system/xbin
 
zedanee
Old
#5  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Aug 2010
Code:
# busybox cp /sdcard/tun.ko /system/lib/modules/
busybox cp /sdcard/tun.ko /system/lib/modules/
# cd /system/lib/modules
cd /system/lib/modules
# busybox insmod tun.ko
busybox insmod tun.ko
# dmesg|tail
dmesg|tail
<6>[67658.043432] bq24180: Set safety timer to 4305 minutes
<6>[67668.099598] bq24180: Set safety timer to 0 minutes
<6>[67838.603295] bq24180: Set safety timer to 2686 minutes
<6>[67848.643480] bq24180: Set safety timer to 0 minutes
<6>[67979.253107] bq24180: Set safety timer to 2686 minutes
<6>[67989.293892] bq24180: Set safety timer to 0 minutes
<6>[68139.993915] bq24180: Set safety timer to 2686 minutes
<6>[68150.043948] bq24180: Set safety timer to 0 minutes
<6>[68233.031543] tun: Universal TUN/TAP device driver, 1.6
<6>[68233.031568] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
#
here is how I just loaded it.
 
kovgergo
Old
#6  
Junior Member
Thanks Meter 0
Posts: 7
Join Date: Nov 2010
Default xperia x10 mini pro

Hi Guys!

I am trying to get working openvpn cliet on my xperiy x10 mini pro. I have android 2.1(UK version) and.

I downloded the tun.ko(I found it on this portal) and copied it to the below mentioned modules folder, then I tried insmod and got the following:

Code:
$ su
su
# insmod /system/lib/modules/tun.ko
insmod /system/lib/modules/tun.ko
insmod: init_module '/system/lib/modules/tun.ko' failed (Exec format error)
Does it mean I have wrong tun.ko version?
 
nobodyAtall
Old
#7  
nobodyAtall's Avatar
Recognized Developer
Thanks Meter 19,393
Posts: 1,527
Join Date: Jan 2008
Location: Patras

 
DONATE TO ME
Quote:
Originally Posted by kovgergo View Post
Hi Guys!

I am trying to get working openvpn cliet on my xperiy x10 mini pro. I have android 2.1(UK version) and.

I downloded the tun.ko(I found it on this portal) and copied it to the below mentioned modules folder, then I tried insmod and got the following:

Code:
$ su
su
# insmod /system/lib/modules/tun.ko
insmod /system/lib/modules/tun.ko
insmod: init_module '/system/lib/modules/tun.ko' failed (Exec format error)
Does it mean I have wrong tun.ko version?
The posted tun module is for Android 1.6. It won't work on 2.1.

Also, this is for vpnc, not for openvpn (probably this is covered natively? - haven't tried though).
 
kovgergo
Old
#8  
Junior Member
Thanks Meter 0
Posts: 7
Join Date: Nov 2010
Sorry I got the tun.ko from: droidforums.net

unfortunatelly I cannot post the link. the title: 'Got OpenVPN Running on 2.1!!! (How-To)'

It should work on 2.1. Or not?
 
nobodyAtall
Old
#9  
nobodyAtall's Avatar
Recognized Developer
Thanks Meter 19,393
Posts: 1,527
Join Date: Jan 2008
Location: Patras

 
DONATE TO ME
Quote:
Originally Posted by kovgergo View Post
Sorry I got the tun.ko from: droidforums.net

unfortunatelly I cannot post the link. the title: 'Got OpenVPN Running on 2.1!!! (How-To)'

It should work on 2.1. Or not?
I bet it won't.

Since it won't be built with the mini's .config file.

Try it out thought, at post the results!
 
kovgergo
Old
#10  
Junior Member
Thanks Meter 0
Posts: 7
Join Date: Nov 2010
Default attached tun.ko for X10 Mini Pro?

I have X10 mini pro.

Code:
D:\x10\ftool>adb shell
$ su
su
# insmod /system/lib/modules/tun.ko
insmod /system/lib/modules/tun.ko
insmod: init_module '/system/lib/modules/tun.ko' failed (Exec format error)
#
Then I did dmesg:

Code:
.
.
.
<3>[ 5883.527575] tun: version magic '2.6.29-rel preempt mod_unload ARMv7 ' should be '2.6.29 preempt mod_unload ARMv6 '
So, I ssume the attached tun.ko is compiled for X10 and not for X10 mini pro which has ARMv7 proc instead of ARMv6.

tun.ko should be built for Mini Pro.
Can anybody help where I can find the source of tun.ko and all the necessary source which I need for the compiling?

Any suggestion where to find desp. how to compile?

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA Xposed Tuesday: How to Shut Up Your Phone – XDA Developer TV

So many different applications want to send us notifications that … more

Add Some Power to First Generation Snapdragon CPUs

Some older devices still remain very popular. Phones like theHTC Desire, Sony Ericsson … more

Android M Mentions Spotted in Android Code Review

While we are still waiting for Android L to be officially released, the first mentions of … more

Create a Simple Custom Launcher from Scratch

When you are starting your journey intoany sort of development, it’s never easy at the … more