OpenVPN - tun.ko Module for the GB leak - Droid 2 Android Development

Now when we got the new GB leak finally on our devices, I wonder if anyone was able to find compatible tun.ko module for the new kernel so we can use programs like OpenVPN/VPNC
I tried the old tun.ko module and one compiled for Moto Atrix (but I am not sure 2.2 or 2.3 Atrix) and they did not work (module fails to load).
I know we don't have the kernel source yet (as it is not even official), but I wonder if we can use similar device sources which were released (D3?) to compile a working module.

Related

building a kernel module

Hello All,
I am working on a project that involves building a new kernel module.
Has anyone built successfully a kernel module on an HTC hero?
I noticed that kernel module tools are already present on the phone, such as insmod, rmmod, etc, which are apparently necessary for the wireless kernel module.
From my understanding it will be hard to do since we do not have the source for the CDMA Hero, but you might be able to port some of it basing off of the GSM Hero source that has been released.

Anyone compiled 2.6.27 from HTC source?

I'm trying to compile the source (from the Sapphire link), but am running into compile errors in the iptables/netfilter subsystem
Seems there are filename case issues.. Which I resolved, but now getting an undefined symbol IPT_DSCP_MASK
It's not defined anywhere in the kernel source.
----
Subsequently tried the hero source and get
http://member.america.htc.com/download/RomCode/Source_and_Binaries/kernel_hero_0078c992.tar.bz2
This fails on undefd:
CC arch/arm/mach-msm/htc_battery.o
arch/arm/mach-msm/htc_battery.c: In function 'htc_set_smem_cable_type':
arch/arm/mach-msm/htc_battery.c:405: error: 'ENOTSUP' undeclared (first use in this function)
----
Can HTC really say that they released the source when it won't compile out of the box?
Anyone else have these issues?
Apparently, no one ever compiled the 2.6.27 kernel... simply amazing! (well, also, everybody is doing their stuff for their specific device, so you'll have to ask around in multiple forums like Dream, Hero, Nexus, etc.)
I didn't either.. but here is a nice starter guide.
The errors you get are probably due to missing files (they are available from your device).
In that starter guide he is building android itself, not the kernel...
I've been through every kernel build doc that google can reference...
The errors could be due to missing files... Why they are a missing is a mystery; as the kernel sources were those officially released by HTC for the device...
I even replaced the .config with that from my device.
Will try to pull a 2.6.27 kernel from the git this weekend and go at it again...
magicdroid said:
Apparently, no one ever compiled the 2.6.27 kernel... simply amazing! (well, also, everybody is doing their stuff for their specific device, so you'll have to ask around in multiple forums like Dream, Hero, Nexus, etc.)
I didn't either.. but here is a nice starter guide.
The errors you get are probably due to missing files (they are available from your device).
Click to expand...
Click to collapse
Stupid HTC kernel source...
I tried dozens of times to get it to compile and it never wanted to work.
Try this kernel source. Works for HTC Magic 6.35 radio and the HTC Hero (different .config)
http://github.com/cursordroid/HTC-CCR-Kernel
Thanks CD,
I was trying to compile for the old radio/SPL... There is an interlacing issue we are running into with this 32A on 2.6.29 so I want to build s 2.6.27 as it is supposed to be ok there, then figure out what has changed; or what is the difference with the board/chip variant in this version of the Rogers 32A...
Thx!
Kernels 32A
Questions for the enlightened:
1) If I want to build a Donut rom for the 32A, I need to compile a 2.6.29 kernel?
2) And if I want to build an Eclair rom for the 32A, I need to compile a 2.6.30+ kernel?
3) And these specific kernels need to be configured (forward-ported) for the 32A?
I think I'm getting there.. or not?
magicdroid said:
Questions for the enlightened:
1) If I want to build a Donut rom for the 32A, I need to compile a 2.6.29 kernel?
2) And if I want to build an Eclair rom for the 32A, I need to compile a 2.6.30+ kernel?
3) And these specific kernels need to be configured (forward-ported) for the 32A?
I think I'm getting there.. or not?
Click to expand...
Click to collapse
Donut and Eclair both require 2.6.29 kernels.
Eclair can run on a 2.6.30+ kernel
And you're right, we need specific kernel source for the 32A to get 2.6.29 or higher kernels.
Thanks for the input Cursor!
Maybe I'm wrong, but it seems to me that Magic kernel development is something that is mostly done solo. I know there are custom kernel sources available, but you have like a dozen to choose from, there doesn't seem to be any (community) effort to build one single kernel that could be used for all roms.
Wouldn't it help getting more result if people just would share their precious little spare-time and work together?
I'm thinking of starting an xda-msm-2.6.29 branch based on android-msm-2.6.29-donut..
Wait.. that would be yet another branch

[Q] Compile tun.ko for ME511

Hi folks!
My intention is to get openvpn working: I'm relatively new to Android and I'm trying to convince my ME511 on a one-click rooted 2.6.29-omap1 kernel with Android 2.1-update1 to load the tun.ko extension.
I think I need a newer build due the device is relatively new, too.
Builds I googled throughout the internet don't load with insmod. Nor do I have modprobe... so there's no tun support by default and I need to solve that as the last missing problem to get openvpn working.
Could someone give a short walkthrough on how this is done? For the Droid 2 and Droid X devices people have working builds.
Thanks for answers,
Marius

Seeking CIFS Module for Kernel 2.6.32.15-g59b9e50

Has anyone built the cifs.ko module for the 2.6.32.15-g59b9e50 kernel? I did some digging around here, found some copies, but they seem to be different versions and aren't loading.
If I should be using a different kernel, please recommend one... I am using OMJ's ROM.
I found instructions for building a kernel, but the kernel source code on HTC's Developer site is for 2.6.32.15-g746f4f0. Is this newer than g59b9e50?
Long story short, I'm trying to get CIFS working...
Thanks!

[MODULE] [EYG] Cifs.ko for Evil Yummy Gumdrop Kernel

Hi everyone, I have been wrangling with this for several days now. Despite some oddities and a syntax error in the kernel source code, I have successfully compiled a working cifs kernel module for the V10. As far as I know this module can only be used with livlogik's kernel, but it does not matter whether or not you are on LP or MM. Unfortunately, I do not think I can compile one for the stock kernel, as android kernels typically require modules to be signed, and I haven't been able to find signing keys for LG's kernels (if you have them let me know and I will try).
All credits go to livlogik for the kernel, give him a "Thanks" :victory:
Enjoy!
(Mods feel free to move this to dev section if you feel it is necessary)

Categories

Resources