Jump to content

Recommended Posts

Guest pbando
Posted

I need the 2.2 kernel to complie the kernel module (tun.ko) to Froyo, but not released.

Posted

hmm - so no chance to get it to work until kernel sources are released - damn...

Guest andmod
Posted (edited)

Hi pbando,

If possible, is there any chance you could compile the kernel module (tun.ko) for 2.2, now that the kernel source has been published? I finally got vpnc to work in 2.1 (some editing of the vpnc-script was required - a lot of fun for a linux noob..) thanks to your compilation of tun.ko for 2.1.

Running 2.2 on my blade with Cisco VPN capabilities would be fantastic! :D

Many thanks in advance.

Edited by andmod
Guest leromarinvit
Posted

Attached the tun.ko I've been using with the old beta Froyo kernel (the one all Froyo ROMs were using until a few days ago). It works for me on JJ RLS3, still haven't found time for upgrading. No idea if it works on the new kernels compiled from the official source.

Contrary to the claims in this thread, the exact kernel source isn't needed to compile most modules. I just grabbed vanilla 2.6.32.9 from kernel.org, copied the config over and compiled the module. Works fine for me.

tun.zip

Guest Flykite
Posted
Attached the tun.ko I've been using with the old beta Froyo kernel (the one all Froyo ROMs were using until a few days ago). It works for me on JJ RLS3, still haven't found time for upgrading. No idea if it works on the new kernels compiled from the official source.

Contrary to the claims in this thread, the exact kernel source isn't needed to compile most modules. I just grabbed vanilla 2.6.32.9 from kernel.org, copied the config over and compiled the module. Works fine for me.

I get the "linux ifconfig failed: could not execute external program" error. -- JJ RLS6, 2.6.32.9

Posted
I get the "linux ifconfig failed: could not execute external program" error. -- JJ RLS6, 2.6.32.9

I think the error msg means that the 'ifconfig' program is either not installed, or installed in a location different to what the calling application (I'm guessing the 'vpnc-script' shell script) expects.

If you have access to the terminal, run this(no quotes): "which ifconfig"

This should at least tell you if the 'which' program is installed. I *think* it's only available if the Busybox suite of tools is installed (I could be wrong on that fact), maybe Busybox doesn't come with the JJ ROM? If not, you should be able to download it from the market.

Posted
You should create/generate those, depending on your OpenVPN server settings.

and how can i do that? (which programm/source)?

thx

Posted
and how can i do that? (which programm/source)?

thx

To clarify: we are talking about openvpn configuration files and certificates and so on.. (in step 3)

I suspect you want to connect to an openvpn server. That server is maintained/administered by someone. Ask that someone for information how your client config you should look like. If you want to set up a new openvpn server then I think you should consult the openvpn documentation then.

  • 2 weeks later...
Posted

I just tried to compile the tun.ko module myself. Unfortunately I was not successful. The Module is created, but when trying to insert the module I get the error:

# insmod tun.ko

insmod: init_module 'tun.ko' failed (Exec format error)

I used this as a guideline: http://android.modaco.com/content/htc-hero...r-for-htc-hero/

The Makefile was changed:

EXTRAVERSION = .9-mck-1.3

I use Pauls r11 from the online kitchen.

Any Ideas, what could go wrong?

  • 1 month later...
Guest nebukan
Posted

Hey!

I'm having problems with routeing.

Openvpn AUTH is ok and i get assigned an ip.

# ip route show

90.232.179.216/30 dev rmnet0 src 90.232.179.218

default via 90.232.179.217 dev rmnet0

#route

Invalid argument

# /system/xbin/route

Kernel IP routing table

Destination Gateway Genmask Flags Metric Ref Use Iface

90.232.179.216 * 255.255.255.252 U 0 0 0 rmnet0

5.5.8.0 * 255.255.248.0 U 0 0 0 tun0

default 90.232.179.217 0.0.0.0 UG 0 0 0 rmnet0

# ifconfig

# /system/xbin/ifconfig

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

inet6 addr: ::1/128 Scope:Host

UP LOOPBACK RUNNING MTU:16436 Metric:1

RX packets:99 errors:0 dropped:0 overruns:0 frame:0

TX packets:99 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:6470 (6.3 KiB) TX bytes:6470 (6.3 KiB)

rmnet0 Link encap:Ethernet HWaddr 56:E0:C0:28:7C:0A

inet addr:90.232.179.218 Bcast:90.232.179.219 Mask:255.255.255.252

inet6 addr: fe80::54e0:c0ff:fe28:7c0a/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:2000 Metric:1

RX packets:154 errors:0 dropped:0 overruns:0 frame:0

TX packets:166 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:75549 (73.7 KiB) TX bytes:20393 (19.9 KiB)

tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00

inet addr:5.5.8.29 P-t-P:5.5.8.29 Mask:255.255.248.0

UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:100

RX bytes:0 (0.0 :D TX bytes:0 (0.0 :D

#

Come to think about it, am i missing my route to my openvpnserver?

Could it be so easy that i need to hack the ovpnfiles alittlebit...

And my tun0 interface does look strange, inet addr xxx P-t-P same xxx ....

  • 3 weeks later...
Posted

Hi,

I have a bit strange request. I have ZTE Racer phone and on it 2.3.3 ROM made by rexchun (if you are interested, you can see "Device Specific - ZTE Racer" topics). Well, the guy made first some "beta" ROM version and with it installed I used your tun.ko (from the first post) happily in OpenVPN and VPNc for months. Now, he made "release" version and this tun.ko does not work any more. "Vermagic" is still the valid, dmesg returns:

<4>[04-13 22:04:42.997521] [28454: insmod]tun: Unknown symbol dynamic_debug_enabled

<4>[04-13 22:04:43.007510] [28454: insmod]tun: Unknown symbol dynamic_debug_enabled2

Do you know what is the problem?

Regards,

Ivan

Guest keitsi
Posted (edited)

Hi,

This was required on my ROM, to make the cp command work: (OpenVPN installer would fail otherwise)

# cd /system/xbin

# ln -s busybox cp

I used SSHDroid & wifi to get shell access.

I am using a finnish elisa 2.2 rom on a gen1 finnish saunalahti branded phone.

Edited by keitsi

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.