tun module

Search This thread

gled

Senior Member
Jul 31, 2010
103
49
E975
for those of you who needing vpnc running, here's attached the tun.ko fresh built.
 

Attachments

  • tun.ko.zip
    64.5 KB · Views: 508

DaXmYsT

Member
Aug 2, 2010
17
0
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 :)
 
Last edited:

gled

Senior Member
Jul 31, 2010
103
49
E975
"cp not found" indicates you don't installed busybox.

by memory it's something like busybox --install /system/xbin
 

zedanee

New member
Aug 18, 2010
1
0
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

Member
Nov 28, 2010
7
0
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

Recognized Developer
Jan 16, 2008
1,583
19,555
Malaysia, Cheras
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

Member
Nov 28, 2010
7
0
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?
 

kovgergo

Member
Nov 28, 2010
7
0
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?
 

waby38

Member
Oct 29, 2010
19
5
could you please post the ".config" you are using to build the "tun.ko" on the mini?
Thanks for you work
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Finally I found a working tun module in this thread:
    http://xdaforums.com/showthread.php?t=996494

    I had to replace the original ifconfig and route commands by

    mount -o rw,remount /dev/block/mtdblock0 /system
    cd /system/bin
    mv ifconfig ifconfig.old
    ln -s ../xbin/busybox ifconfig
    mv route route.old
    ln -s ../xbin/busybox route