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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

If nothing else you can unpack the 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 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 ' preempt mod_unload ARMv6 ' should be' 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/ – 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


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.