Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I have a Samsung Intercept, running the VM stock image of Froyo. I'm trying to get OpenVpn running on it. The phone is rooted, and I have OpenVpn and the gui from the marketplace running on it, and running openvpn from the command line shows its connecting up, authenticating, but there IS no tun.ko. The several I've found on the net that claim to work on an Intercept but don't.. When trying to insmod all of these I get an error indicating kernel module was built for an "ARMv7" vs "ARMv6".. Anyone have an tun.ko for an Intercept OR alternatively a link to a howto on building Android kernels/kernel modules on Linux? I'm quite familiar with how to do that on Linux, but clueless on doing a crossplatform build on Linux..

Thanks Dave

share|improve this question

2 Answers 2

CyanogenMod 6 is Froyo, and ships with OpenVPN support for ARMv6 phones, such as my HTC Magic.

If nothing else you can unpack the update.zip they supply, find the tun.ko driver, and push it to your phone via adb.

share|improve this answer
    
Thanks for the tip! I downloaded the CyanogenMod 6 package (update-cm-6.10 DS-signed.zip) that was offered for the HTC Magic. Unpacked and searched the whole tree and found no tun.ko anywhere. The only /system/lib/modules ko there was a "wlan.ko" which I'm sure is not what I'm looking for.. Any other ideas?? This is royally kicking my butt.. Bought the phone/VM service to give me an easy way to access several networks/servers I admin via OpenVPN w/o looking for a McD/Starbucks wifi and pulling out the laptop... Any other ideas?? –  LVDave Aug 30 '11 at 16:20
    
In doing some further deep googling, I found what I thought might be what I was looking for, an ARM6/FroyoStock tun.ko... Quickly downloaded it, and was instantly disappointed, an insmod shows the following: –  LVDave Aug 30 '11 at 21:01
    
[47538.032379] tun: version magic '2.6.32.9 preempt mod_unload ARMv6 ' should be'2.6.32.9 mod_unload ARMv6 ' –  LVDave Aug 31 '11 at 12:39
    
Hmm. It looks like the kernel compiled with your phone is not set up to be compiled with PREEMPT. If you can figure out where that file came from, you might be able to find the source and recompile it with the right flags. –  Broam Sep 1 '11 at 14:03
    
Maybe try /system/lib/modules/2.6.35.9-cyanogenmod/kernel/net/ipv4/tunnel4.ko? –  Broam Sep 1 '11 at 14:12

You might want to take a look at this website: Tun.ko Repository

They got a long database of tun.ko for android phones. If you can see your phone model, kernel and build number on the list, Just download their app which lets you load the module from their database to your phone. After that you can then use a vpn for your android.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.