[Q] Compile tun.ko for ME511 - Android Software/Hacking General [Developers Only]

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

Related

[Solved] [Q] Build Android for phone on Qualcomm MSM7227 (Motorola Quench XT3)

Hello everybody!
I need an advice on where to get drivers (or what kernel options to use) for my phone (Motorola Quench XT3) build on Qualcomm MSM7227 chpset.
It would be cool to be able to compile new version of Android from source, like gentoo or LFS; we wouldn't depend on Motorola's software updates. The only thing that seems missing is drivers and kernel configuration. (May be I am wrong - correct me)
So how do I find out what drivers/kernel options to use for my hardware?
Any help is appreciated. I would make an understandable guide for compiling Android for Motorola Quench XT3 if I succeed.
Upd:: Motorola Quench XT3 is a "Boston Orange" phone. Look for mods on cyanogenmod forum, in the z71 variants section.
Therein lies the problem.
Linux drivers for phone chipsets (mostly Qualcomm) are often provided as binary lumps for a specific kernel version. When kernel sources are made available for a specific phone then we can generally compile a full AOSP build by making sure that the kernel we build is compatible with the binary blobs, this get more difficult as the framework gets upgraded and depends on features of newer kernels.
So the things to look for are:
What version of Andriod does it run, what do you want to run?
Have Moto released kernel sources yet?
What are the GPU/Radio/BT/Wifi/Audio chipsets
Do we have binder-friendly driver source available for any of the above.
This is all _hard_ stuff and generally if you've never compiled a Linux kernel before this is not the place to start.
Linux drivers for phone chipsets (mostly Qualcomm) are often provided as binary lumps for a specific kernel version.
Click to expand...
Click to collapse
This is OK as long as binary drivers are available for new kernels, I guess.
What version of Andriod does it run, what do you want to run?
Click to expand...
Click to collapse
It has Android 1.6, and my goal is 2.2.
Have Moto released kernel sources yet?
Click to expand...
Click to collapse
yes, they have sources available for download. I downloaded, but couldn't figure out what ".config" they use, in the bundled script "Android.mk" that depends on external variable KERNEL_DEFCONFIG.
What are the GPU/Radio/BT/Wifi/Audio chipsets
Click to expand...
Click to collapse
Ok, I am trying to find that out. Couldn't find specs in the net (including Motorola website), they only give processor (Qualcomm MSM7227) Is there a command like lspci on Android?
if you've never compiled a Linux kernel before this is not the place to start
Click to expand...
Click to collapse
What is the place to start then? Actually I've configured and compiled kernels for several desktops/laptops, they are fine. I am not any kind of expert, but may be it isn't too difficult to build a working 2.2 Android. There's almost no hope to get it from Motorola. Also I don't care about Motorola-specific software.
Overall, thank you for a good & quick response. I will try to figure out exactly what hardware it uses, and post it here.
P.S.: what else people do to upgrade their phones when it isn't supported by manufacturer?
It's MSM7227 !!!
Hello people!
After a lot of reading I start to understand concepts. Turns out, my phone has a good and popular chipset Qualcomm MSM7227. The same chipset is used in, say, HTC Aria and HTC Legend, which are well supported by cyanogen mod. And looks like chipset determines all major drivers I need! (probably except minor things like flash light)
So, I need help of somebody who knows these things better than me in the following questions:
What could be a difference in firmware between (say) HTC Legend and Motorola Quench XT3, which share the same chipset?
Is there a "generic" build for MSM7227?
Any input is greatly appreciated.
Unfortunately that is rarely the whole of it. Slight differences in implementation can make all the difference. E.G. the radio itself has a firmware that may fundamentally change the interface presented to the CPU. Sound/Display/3D are also up in the air.
Short version, if you can find out the chipset driving each of the above (not just the CPU/Radio SOC) and you can either find:
1. 2.2 binary blobs from another phone
2. Open source drivers that can be compiled for the 2.2 kernel
Then you may be ok.
The reason I said that this may not be the place to start is that what you are trying to do here is get binary blob drivers running for a kernel they were not intended to run with, debugging that is some heavy magic on a desktop, even more so on an embedded device.
I also have the same phone and i was looking for a froyo mod.
I would be willing to test it out (i have the same phone ).
I should warn you though i have no mobile phone hacking experience!
SilentMobius, thank you much for good explanations!!
I googled more, and I have strong suspicion that Motorola Quench XT3 is the same as "Orange Boston" phone. That piece of hardware has been manufactured by many companies under many names (GigaByte G1305 Codfish, Apanda A60, WellcoM A88, Vibo A688, Cincinnati Bell Blaze f800, Commtiva Z71, Muchtel A1, Chinavision Excalibur, Motorola Greco, Nexian A890).
Though I am not sure that orange boston hacks would apply to Quench XT3. Is there a way to check their compatability (in hardware, radio firmware, etc) ?
Cyanogenmod
Turns out we are lucky - Quench XT3 is a part of "Boston Orange", and it runs cyanogenmod. This is very nice, and there is no need to make rom from scratch. Moreover, everything I was thinking of is already done for this phone.
Look on cyanogenmod forums in z71 variants section for mods and other information.
Thanks a lot
Uh, could anyone help me?
I rooted the phone with Universal AndRoot but when i click on z41 on rom manager it gets an error.
Help?
qwerty156 said:
Uh, could anyone help me?
I rooted the phone with Universal AndRoot but when i click on z41 on rom manager it gets an error.
Help?
Click to expand...
Click to collapse
In ROM Manager the phone is known as an Commitiva A71. You are selecting the wrong phone.

[Q] Cisco VPN / tun module (tun.ko) for XT720

Hi all,
I search around and could not find info on getting Cisco VPN to work specifically on XT720. (is this even possible with a locked bootloader?)
Does anybody know if there is a tun.ko that works with our kernel? I have a XT720 from Wind Mobile in Canada, running on 2.1 rooted.
Kernel is 2.6.29-omap1 a24124
I am not sure how to compile one and I don't really have access to a linux machine.
Thanks in advance.
Cheers.

OpenVPN - tun.ko Module for the GB leak

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.

[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

[Q] Galaxy tab 2 10.1 tun.ko for vpn question

I have a galaxy tab 2 10.1. I want to get a vpn client (F5) running, but I need the tunnel module. I rooted the tablet, and have tun.ko installer on it, but there's no tunnel module available. So i thought I'd compile my own since I use linux on my pc, but I'm having trouble finding the source for the kernel. tun.ko installer says my system is:
model: gt-p5113
build number: IML74K.P5113UEALD7
Android version: 4.0.3
Kernel version: 3.0.8-396106-user
Does anyone know where I can find the source for the kernel? I tried http://android.git.kernel.org, but I didn't see it.
Thanks.
You could personal message cheatman about it (see this thread).
thanks. cheatman provided me this info:
Code:
The samsung code for the P5113 can be found here: http://opensource.samsung.com/
I can't give you a direct link because of the site JS codes, but do a search for "p5113" and it should turn out a single result.
i got the source code and the ARM cross compiler, but according the directions i found, the next step is i need to get the config.gz file off the tablet, but that file doesn't exist. anyone know what i could do about that? thanks again.
still can't find the tunnel module or config.gz, anyone have any ideas on how i can get this working? thanks
tun.ko for gt-p5100
we're having the same problem bro.. i cant find tun.ko for my tab2.. i can't use my openvpn.. grr.. by now i'm downloading the link that someone gave to you,,., my question is.. after downloading that.. what would happen next? was that the tun.ko that we are looking for?
aleks12345 said:
we're having the same problem bro.. i cant find tun.ko for my tab2.. i can't use my openvpn.. grr.. by now i'm downloading the link that someone gave to you,,., my question is.. after downloading that.. what would happen next? was that the tun.ko that we are looking for?
Click to expand...
Click to collapse
i downloaded the source code, but there's no config.gz file, so i couldn't compile the tun.ko module

Categories

Resources