OpenVPN works now on SGS Galaxy 3 (TUN compiled successfull for Android 2.1) - Galaxy 3 Android Development

What is OpenVPN ?
Google is your friend...
Requirements:
- SGS Galaxy 3 phone (with root access)
- OpenVPN installer (available on market)
- OpenVPN steetings (available on market)
- TUN module compiled successfull (tun.ko, you can download it below)
To install it just copy it on your phone '/system/lib/modules' is the better place but it works on your sdcard.
Tested only on firmware [I5800XXJH1]
Tun.zip : for kernel 2.6.29 (Eclair) only work if the comand 'uname -r' in a terminal give you '2.6.29'
Removed - Tun-2.6.32.zip : for kernel 2.6.32 (Froyo)... I am workin on it.

JPB gives 2.6.32.9 does it mean it will not work?

Nop i will try to compile it for this kernel.
PS: thx for the pm

Please build tun.ko for 2.6.32.9 (JPB). If you can share instructions that will be really great.

psyckotic said:
Tun-2.6.32.zip : for kernel 2.6.32 (Froyo) only work if the comand 'uname -r' in a terminal give you '2.6.32'
Click to expand...
Click to collapse
Its really correct?
Code:
[email protected]:~/Download/modules> strings tun-2.6.32.ko
#K10
alias=char-major-10-200
license=GPL
author=(C) 1999-2004 Max Krasnyansky <[email protected]>
description=Universal TUN/TAP device driver
depends=
vermagic=2.6.29 mod_unload ARMv6
&list->lock
include/net/netns/generic.h
tun%d
tap%d
<3>RTNL: assertion failed at %s (%d)
drivers/net/tun.c
<6>tun: %s, %s
Universal TUN/TAP device driver
<6>tun: %s
(C) 1999-2004 Max Krasnyansky <[email protected]>
<3>tun: Can't register pernet ops
<3>tun: Can't register misc device %d
look at:
vermagic=2.6.29 mod_unload ARMv6
with your tun-2.6.32.ko (renamed of course) on Samsung GT-I5500L
Code:
tun: version magic '2.6.29 mod_unload ARMv6 ' should be '2.6.32.9-perf preempt mod_unload ARMv6 '
Coud You help?
Thanks!

That's right. I have some trouble with that i am workin on it.

Hi..im.using openvpn on my galaxy i9000t with froyo..could you try use my tun.ko? Maybe it works..its same version..

No i don't think so because SGS i9000 arm cpu support arm v7 instruction and SGS i5800 arm cpu is only a arm v6l...

psyckotic said:
No i don't think so because SGS i9000 arm cpu support arm v7 instruction and SGS i5800 arm cpu is only a arm v6l...
Click to expand...
Click to collapse
Exactly.
Still no success
Code:
# insmod /system/lib/modules/tun.ko
insmod: init_module '/system/lib/modules/tun.ko' failed (Exec format error)
# dmesg |grep tun
<6>[ 1.467749] IPv6 over IPv4 tunneling driver
<3>[ 1092.896562] tun: version magic '2.6.32.9 mod_unload ARMv7 ' should be '2.6.32.9-perf preempt mod_unload ARMv6 '

Hi, does anybody have any new information about tun.ko for android 2.2 ?

volkovski said:
Hi, does anybody have any new information about tun.ko for android 2.2 ?
Click to expand...
Click to collapse
Well, i don't know for the others, but i can't run a module compiled for 2.6.32 in Samsung's kernel..

Have you tried to compile your own tun.ko for I5800 froyo ?

OK, guys!
ROll it tun.ko and cifs.ko
http://www.multiupload.com/LOWCT9PHBJ

What is OpenVPN?
Sent from my GT-I5800

abhimukesh25 said:
What is OpenVPN?
Sent from my GT-I5800
Click to expand...
Click to collapse
Virtual Private Network
A virtual private network (VPN) is a computer network that uses a public telecommunication infrastructure such as the Internet to provide remote offices or individual users with secure access to their organization's network. It aims to avoid an expensive system of owned or leased lines that can be used by only one organization.
more info from OpenVPN:
http://openvpn.net/index.php/open-source/333-what-is-openvpn.html

Thank for information.
Sent from my GT-I5800

tun module for Froyo
Here is the Froyo tun.ko. Should work with any 2.6.32.9 (Froyo i5800) kernel.

mizch said:
Here is the Froyo tun.ko. Should work with any 2.6.32.9 (Froyo i5800) kernel.
Click to expand...
Click to collapse
Can you kindly help combine cifs.ko as well. Many Thanks!

kenblat said:
Can you kindly help combine cifs.ko as well. Many Thanks!
Click to expand...
Click to collapse
See Mounting CIFS (Windows) shares on Froyo.

giovannivl said:
Hi..im.using openvpn on my galaxy i9000t with froyo..could you try use my tun.ko? Maybe it works..its same version..
Click to expand...
Click to collapse
Well, It works for me, I've just upgraded my Galaxy S to Froyo.
This version of tun.ko was the only one wich woks with vermagic=2.6.32.9 mod_unload ARMv7 this is the version released for this phone sold by movistar Colombia.
Julian-

Related

[Q] Tun.ko for 2.6.35.10-gcdeea98 (Desire S T-Mobile)

Hi,
I can't find a working tun.ko for my Desire S with kernel version 2.6.35.10-gcdeea98 (stock rom T-Mobile Germany).
dmesg says:
<3>[ 1869.000762] tun: version magic '2.6.35.10-g0956377 preempt mod_unload ARMv
7 ' should be '2.6.35.10-gcdeea98 preempt mod_unload ARMv7 '
Version checking seems to be very strict.
Can someone build a tun.ko for gcdeea98 please?
Thanks!
Hi,
just compiled it from saga source 2.6.35 with your specific extension.
Cheers
Hi,
thanks for your work.
The module won't load. dmesg says:
<3>[36546.249511] tun: unknown relocation: 3
Someone fixed it by setting some special flags before compiling:
http://www.android-hilfe.de/android...ule-kompilieren-erster-versuch.html#post49036
or the same error on xda:
http://forum.xda-developers.com/showthread.php?t=1194089
Is someone able to compile a working one?
Thanks!
f.reddy said:
The module won't load. dmesg says:
<3>[36546.249511] tun: unknown relocation: 3
Click to expand...
Click to collapse
Dunno if it really helps, but can you please provide your ".config"
as described in the first link. Maybe our ".configs" differ in some
point as the kernel modules I compiled for myself work flawlessly.
Currently on stock with 2.6.35.10-g2ee27f5.
Cheers
Meanwhile ...
... before someone else is also asking : here is the tun.ko for the 2.6.35.10-g2ee27f5 kernel.
Good luck!
Cheers

TUN.ko module compatible with kernel 2.6.35.13

Hi!
I'm looking for the TUN module to be able to launch openvpn for the kernel version : 2.6.35.13-g3422292
Can anybody compile it and post, please ?
Thanks in advance.
I have tried to use module from m-deejay's latest kernel:
insmod: init_module '/system/lib/modules/tun.ko' failed (Exec format error)
Task closed, I build it myself.
tvj2009 said:
Task closed, I build it myself.
Click to expand...
Click to collapse
Care to share? I am also in need of this...
Thanks,
Dave
dodgeboy said:
Care to share? I am also in need of this...
Thanks,
Dave
Click to expand...
Click to collapse
+1
I would appreciate it too.
Edit: Wrong phone :l
Here you are:
md5 a6c86c428c3eed39ca65296bb5588d7c tun.ko
strings tun.ko|grep vermagic
vermagic=2.6.35.13-g3422292 SMP preempt mod_unload ARMv7
Hi everyone!
I was so happy to see this thread and the attached file. However I somehow keep getting an error message when trying to install:
insmod /system/lib/modules/tun.ko
insmod : init_module '/system/lib/modules/tun.ko' failed (Exec format error)
Does anyone of you have an idea what can cause this error? Sorry, I'm still a complete noob, but I thought having the same device with the same kernel version (HTC Sensation, Kernel 2.6.35.13 g3422292) it should work...?
Thank you very much!
Edit:
I juts tried
dmesg | grep tun
tun: duplicate symbol tun_get_socket (owned by kernel)
Any ideas on that?
Thanks!
Edit2:
I guess it means that tun.ko is already available. After rebooting the device the information from dmesg |grep tun was clearly showing the already available version tun information.
Thanks anyway!
hello tvj2009.
Are you sure you compiled TUN.KO can be working for 2.6.35.13-g3422292 ?
I download your tun.ko, and insmod it,but i got a error :init_module '/system/lib/modules/tun.ko' failed (Exec format error)
And my kernel:Linux version 2.6.35.13-g3422292 ([email protected]) (gcc version 4.4.0 (GCC) ) #1 SMP PREEMPT Mon Aug 1 15:03:50 CST 2011,same and you?
I was wondering where‘s the wrong,can you help me?
may be you can post you how to compile it in the process? or tell me how to do it?
Thank you very much!
feizl_china said:
hello tvj2009.
Are you sure you compiled TUN.KO can be working for 2.6.35.13-g3422292 ?
I download your tun.ko, and insmod it,but i got a error :init_module '/system/lib/modules/tun.ko' failed (Exec format error)
And my kernel:Linux version 2.6.35.13-g3422292 ([email protected]) (gcc version 4.4.0 (GCC) ) #1 SMP PREEMPT Mon Aug 1 15:03:50 CST 2011,same and you?
I was wondering where‘s the wrong,can you help me?
may be you can post you how to compile it in the process? or tell me how to do it?
Thank you very much!
Click to expand...
Click to collapse
I have an HTC sensation with the following Kernel info:
2.6.13-g3422292
[email protected] #1
SMP PREEMPT Mon Aug 1 15:03:50 CST 2011
I think it's the same as yours. I would also need this to get OpenVPN working. Would greatly appreciate any help.
I installed the mKernel kernel and was able to use the Cisco Anyconnect VPN client (which requires TUN). It works perfectly. I've been running it for about 4 days now.
Dave
Will this tun.ko also work with the stock ROM? Thanks.
Sent from my HTC Sensation Z710e using XDA App

[Q] does anyone have XOOM ftdi_sio.ko kernel driver?

Hi there,
did anybody build ftdi_sio kernel driver for XOOM? I desperately need it and I doesnt know how to compile it against xoom kernel.
my kernel version is:
Code:
Linux version 2.6.36.3-gc2bee64 ([email protected]) (gcc v
ersion 4.4.3 (GCC) ) #1 SMP PREEMPT Tue May 3 15:33:26 PDT 2011
If anyone has it or can do it for me, I would be very happy
jupiik said:
Hi there,
did anybody build ftdi_sio kernel driver for XOOM? I desperately need it and I doesnt know how to compile it against xoom kernel.
my kernel version is:
Code:
Linux version 2.6.36.3-gc2bee64 ([email protected]) (gcc v
ersion 4.4.3 (GCC) ) #1 SMP PREEMPT Tue May 3 15:33:26 PDT 2011
If anyone has it or can do it for me, I would be very happy
Click to expand...
Click to collapse
Tell me more about this module. We can likely add it to our kernel config.
that's the usb to serial i/o driver. Also known as pl2303 chipset support. It would go great with the bt5 mod. Would allow connection to ttl serial ports likethe ones in routers, phones, and NAS devices. I.d be glad to test it as I've got several pl2303 serial converters.
I'd like this too. Have several FTDI usb/serial devices.. but only used in Windows. Is there a terminal app that could talk to a virtual com port? I see FTDI even has pages devoted to Android!
+1
+1
i can test it if will be possible
I use FTDI on android with the RXTX library: v-lad.org/projects/gnu.io.android witch allows me to work only in java and this library creates input output streams for me. Its fine but my application has to actually instal ftdi_sio.ko to kernel every time it is running first time after reboot and for xoom I cannot even find this module and I dont know how to build one. It would be nice if there were some kernels supporting this so that it can be used straight away after pluging in usb2serial chip.
+1 for the USB to serial adapter support. I use these guys all the time with windows to talk to FPGAs and the sort. I'd be willing to test, possibly even assist with the work (though I've never successfully compiled a kernel before - I tried tiamat once).
Thanks.
OK guys ill cook this up. Nice to get to a "more experienced " user thread.
Ok guys, give this a run
http://goo.gl/MhIBX
The link to the driver is not working anymore. Would the driver work for the ICS stable version of the eos ROM?

[Q] tun.ko for kernel 2.6.36.3-g111d827

Hi,
I'm a totally new to android. Can anyone help me find a compiled tun.ko driver for kernel 2.6.36.3-g111d827. I am trying to get Cisco Anyconnect working on my Xoom without much success.
Any help will be appreciated.
Regards,
Donny
Here is tun.ko compiled specifically for vermagic=2.6.36.3-g111d827 SMP preempt mod_unload ARMv7 (that is, for kernel 2.6.36.3-g111d827, motorola xoom).
I've also included a version of the vpn connections APK. Even with the updated version of tun.ko (freshly compiled from git source), I couldn't get vpn connections to connect to the VPN to save my life with HTK75D. So I learned about VPNC-debug.apk and it works like a charm.
Good luck.
Sov

Tun.ko driver for GT-S5670 2.6.35.7-perf-CL1035393 kernel

Hi,
I have tested this driver only on the above mentioned model and kernel.
This is to help people to install OpenVPN.
To install it copy the tun.ko file to /lib/modules on your phone using Root Explorer or something similar.
After copy, reboot your phone (or use "insmod /lib/modules/tun.ko" to install the module). Then, if you use adb you can check that the module is loaded by entering lsmod on a shell. If you don't use adb then try something like the OpenVPN Settings application from Google Play.
Enjoy
ckir said:
Hi,
I have tested this driver only on the above mentioned model and kernel.
Click to expand...
Click to collapse
hey can u pls elaborate more ond same. wats d apk for n ol..
sry fr my noob que. hope same mite b d que others
Hi. If you use Cyanogenmod then you don't need this one. It is included in your kernel.
Hello Gurus, I currently not using CM´s Rom and I am looking for Tun.ko module for a Samsung Galaxy FIT S5670 with this kernel:
# uname -r
2.6.35.7-perf-CL393192
# cat /proc/version
Linux version 2.6.35.7-perf-CL393192 ([email protected]) (gcc version 4.4.3 (GCC) ) #1 PREEMPT Mon Jul 18 23:28:35 KST 2011
Thanks in advance, I will appreciate any help.

Categories

Resources