Hi!
I'm looking for the TUN module to be able to launch openvpn for the kernel version : 2.6.35.13-g3422292
Can anybody compile it and post, please ?
Thanks in advance.
I have tried to use module from m-deejay's latest kernel:
insmod: init_module '/system/lib/modules/tun.ko' failed (Exec format error)
Task closed, I build it myself.
tvj2009 said:
Task closed, I build it myself.
Click to expand...
Click to collapse
Care to share? I am also in need of this...
Thanks,
Dave
dodgeboy said:
Care to share? I am also in need of this...
Thanks,
Dave
Click to expand...
Click to collapse
+1
I would appreciate it too.
Edit: Wrong phone :l
Here you are:
md5 a6c86c428c3eed39ca65296bb5588d7c tun.ko
strings tun.ko|grep vermagic
vermagic=2.6.35.13-g3422292 SMP preempt mod_unload ARMv7
Hi everyone!
I was so happy to see this thread and the attached file. However I somehow keep getting an error message when trying to install:
insmod /system/lib/modules/tun.ko
insmod : init_module '/system/lib/modules/tun.ko' failed (Exec format error)
Does anyone of you have an idea what can cause this error? Sorry, I'm still a complete noob, but I thought having the same device with the same kernel version (HTC Sensation, Kernel 2.6.35.13 g3422292) it should work...?
Thank you very much!
Edit:
I juts tried
dmesg | grep tun
tun: duplicate symbol tun_get_socket (owned by kernel)
Any ideas on that?
Thanks!
Edit2:
I guess it means that tun.ko is already available. After rebooting the device the information from dmesg |grep tun was clearly showing the already available version tun information.
Thanks anyway!
hello tvj2009.
Are you sure you compiled TUN.KO can be working for 2.6.35.13-g3422292 ?
I download your tun.ko, and insmod it,but i got a error :init_module '/system/lib/modules/tun.ko' failed (Exec format error)
And my kernel:Linux version 2.6.35.13-g3422292 ([email protected]) (gcc version 4.4.0 (GCC) ) #1 SMP PREEMPT Mon Aug 1 15:03:50 CST 2011,same and you?
I was wondering where‘s the wrong,can you help me?
may be you can post you how to compile it in the process? or tell me how to do it?
Thank you very much!
feizl_china said:
hello tvj2009.
Are you sure you compiled TUN.KO can be working for 2.6.35.13-g3422292 ?
I download your tun.ko, and insmod it,but i got a error :init_module '/system/lib/modules/tun.ko' failed (Exec format error)
And my kernel:Linux version 2.6.35.13-g3422292 ([email protected]) (gcc version 4.4.0 (GCC) ) #1 SMP PREEMPT Mon Aug 1 15:03:50 CST 2011,same and you?
I was wondering where‘s the wrong,can you help me?
may be you can post you how to compile it in the process? or tell me how to do it?
Thank you very much!
Click to expand...
Click to collapse
I have an HTC sensation with the following Kernel info:
2.6.13-g3422292
[email protected] #1
SMP PREEMPT Mon Aug 1 15:03:50 CST 2011
I think it's the same as yours. I would also need this to get OpenVPN working. Would greatly appreciate any help.
I installed the mKernel kernel and was able to use the Cisco Anyconnect VPN client (which requires TUN). It works perfectly. I've been running it for about 4 days now.
Dave
Will this tun.ko also work with the stock ROM? Thanks.
Sent from my HTC Sensation Z710e using XDA App
Related
Hi fellas,
the intent is quite obvious, collect the latest boot.img that are usable for Froyo.
So here it is, the Froyo kernel collection with all the bugs...
Unless there is no unlocked bootloader we have to deal with the delivery of Moto.
The files could be found easily in the web, but you'll have to search.
I know that searching is very hard for some, so i decided to put it down here and collect some other useful informations in this little thread.
Kernel images (boot.img) sorted by kernel build date:
Korean 5.06 (SHOLS_U2_05.06.0_kernel-2.6.32.9-g4bc8ed0-20101108_update.zip)
Linux version 2.6.32.9-g4bc8ed0 ([email protected]) (gcc version 4.4.0 (GCC) ) #1 PREEMPT Mon Nov 8 12:25:43 KST 2010
Generic 5.26 (SHOLS_U2_05.26.0_kernel-2.6.32.9-gafbfc43-20110119_update.zip)
Linux version 2.6.32.9-gafbfc43 ([email protected]) (gcc version 4.4.0 (GCC) ) #1 PREEMPT Wed Jan 19 00:39:50 CST 2011
Brazilian 5.14 (SHLA_U2_05.14.0_kernel-2.6.32.9-20110224_update.zip):
Linux version 2.6.32.9 ([email protected]) (gcc version 4.4.0 (GCC) ) #1 PREEMPT Thu Feb 24 11:30:29 BRT 2011
Brazilian 5.14 debug version (SHLA_U2_05.14.0-DB_kernel-2.6.32.9-20110224_update.zip):
Linux version 2.6.32.9 ([email protected]) (gcc version 4.4.0 (GCC) ) #1 PREEMPT Thu Feb 24 12:40:39 BRT 2011
Arabian 5.27 (SHOLS_U2_05.27.2_kernel-2.6.32.9-g11068ed-20110305_update.zip):
Linux version 2.6.32.9-g11068ed ([email protected]) (gcc version 4.4.0 (GCC) ) #1 PREEMPT Sat Mar 5 03:24:42 CST 2011
African 5.27 (SHOLS_U2_05.27.5_kernel-2.6.32.9-g11068ed-20110305_update.zip):
Linux version 2.6.32.9-g11068ed ([email protected]) (gcc version 4.4.0 (GCC) ) #1 PREEMPT Sat Mar 5 03:27:31 CST 2011
Basically the arabian and the african kernel are the same.
All files are installable through OpenRecovery and might be renamed to update.zip.
You could easily extract the boot.img and use Nandroid alternatively!
For the curious, here's the official kernel source:
https://opensource.motorola.com/sf/...rs.milestone_source_froyo.05_26/frs12183?dl=1
Disclaimer:
I did not re-pack these files myself, i just collected them.
If you harm your device using these packages, i'm not responsible.
If anyone is the best friend of w21529, wfp018 or r2d2 please ask for help.
If you are a motorola employee send the private keys to wikileaks.
If i made a mistake, tell me!
Thanks goes out to all the openminded developers out there.
@moderators:
If the attachments are getting to large tell me.
TBC
Cheers,
scholbert
~~~~~~~~~~~~~~~~~~~~~~~~
Example structure of MS1 boot.img:
Code:
0x0000 0000 - 0x0000 07ff Android header, the first 8 bytes are the magic = "ANDROID!", followed by:
unsigned kernel_size,
unsigned kernel_addr,
unsigned ramdisk_size,
unsigned ramdisk_addr,
0x0000 0240 - 0x0000 02e0 id (checksum 160Bits)
0x0000 0800 - 0x0027 07ff zImage
0x0027 0800 - 0x002a 77ff ramdisk.gz
0x002a 7800 - 0x002b f7ff n x 0xff + 0x0000 0100 at the end
0x002b f800 - 0x002c 07ff key structure
The key structure at the end of boot.img is explained more in detail here:
https://www.droid-developers.org/wiki/BootRecoverySignature
Advanced Linux tool for boot.img examination:
http://gitorious.org/ac100/abootimg
Some more to come...
Have fun!
scholbert
Maybe you can indicate the +'s and -'s of each one?
I think one has 4 point multitouch but usb bug included with it
One or two may have DSI bug, but not as bad as others
zeppelinrox said:
Maybe you can indicate the +'s and -'s of each one?
I think one has 4 point multitouch but usb bug included with it
One or two may have DSI bug, but not as bad as others
Click to expand...
Click to collapse
I agree, I'm still using the GOT leak kernel simply because I keep reading of various bugs on various kernels and haven't decided to change to any other yet. Although, I normally just pick the newest kernel and assume it had the most fixes - this is MOTO we're talking about (2.0 -> 2.1u1 kernel bugs anyone?)
zeppelinrox said:
Maybe you can indicate the +'s and -'s of each one?
Click to expand...
Click to collapse
Yupp nice idea.... need to gather some information though.
Need some days.
Regards,
scholbert
Could you please tell me which one of those is CM7 RC3 using?
max_3000 said:
Could you please tell me which one of those is CM7 RC3 using?
Click to expand...
Click to collapse
Arabian 5.27
Sent from my MILESTONE using Tapatalk
Hey,
thanks for the comments so far...
SHLA_U2_05.14.0_kernel-2.6.32.9-20110224_update.zip is not the best source i guess. It contains a boot.img which is slightly too big in size.
Though this might not cause any issues, please be warned.
I got no SDK at hand... so i'm looking for an alternative to build a new update.zip.
Further comments are welcome!
Regards,
scholbert
scholbert said:
Hey,
thanks for the comments so far...
SHLA_U2_05.14.0_kernel-2.6.32.9-20110224_update.zip is not the best source i guess. It contains a boot.img which is slightly too big in size.
Though this might not cause any issues, please be warned.
I got no SDK at hand... so i'm looking for an alternative to build a new update.zip.
Further comments are welcome!
Regards,
scholbert
Click to expand...
Click to collapse
I'm not sure if SignApk relies on the SDK - as it's not acutally part of the SDK, I think it just relies on JAVA, you could give that a shot - that's what I use (but I have the SDK installed so I don't know about dependencies)
http://www.londatiga.net/it/how-to-create-android-update-zip-package/
SophT said:
I'm not sure if SignApk relies on the SDK - as it's not acutally part of the SDK, I think it just relies on JAVA, you could give that a shot - that's what I use (but I have the SDK installed so I don't know about dependencies)
Click to expand...
Click to collapse
That's right, sorry for confusion and thanks for clearing up.
It just works with Java on your machine. The tool is called signapk.jar.
I found the package on my workstation... uploaded new Brazilian kernel (debug version)
Maybe i'll delete the standard version...
Regards,
scholbert
Hi,
I can't find a working tun.ko for my Desire S with kernel version 2.6.35.10-gcdeea98 (stock rom T-Mobile Germany).
dmesg says:
<3>[ 1869.000762] tun: version magic '2.6.35.10-g0956377 preempt mod_unload ARMv
7 ' should be '2.6.35.10-gcdeea98 preempt mod_unload ARMv7 '
Version checking seems to be very strict.
Can someone build a tun.ko for gcdeea98 please?
Thanks!
Hi,
just compiled it from saga source 2.6.35 with your specific extension.
Cheers
Hi,
thanks for your work.
The module won't load. dmesg says:
<3>[36546.249511] tun: unknown relocation: 3
Someone fixed it by setting some special flags before compiling:
http://www.android-hilfe.de/android...ule-kompilieren-erster-versuch.html#post49036
or the same error on xda:
http://forum.xda-developers.com/showthread.php?t=1194089
Is someone able to compile a working one?
Thanks!
f.reddy said:
The module won't load. dmesg says:
<3>[36546.249511] tun: unknown relocation: 3
Click to expand...
Click to collapse
Dunno if it really helps, but can you please provide your ".config"
as described in the first link. Maybe our ".configs" differ in some
point as the kernel modules I compiled for myself work flawlessly.
Currently on stock with 2.6.35.10-g2ee27f5.
Cheers
Meanwhile ...
... before someone else is also asking : here is the tun.ko for the 2.6.35.10-g2ee27f5 kernel.
Good luck!
Cheers
I tried make a tun.ko for my sensation,but no luck,I got: insmod: init_module '/system/lib/modules/tun.ko' failed (Exec format error),I made reference to http://android.modaco.com/topic/313133-howto-compiling-tuntap-driver-for-htc-hero/.
I downloaded Android NDK and Android SDK and pyramid-2.6.35_mr.tar from HTC Developere Site.
Everything is done according to tutorial, in addition to the things into sensation,Finally, I got a tun.ko but it does not work,I do not know what went wrong,anybody have good iders?I want everyone to help!
note:my kernel:Linux version 2.6.35.13-g3422292 ([email protected]) (gcc version 4.4.0 (GCC) ) #1 SMP PREEMPT Mon Aug 1 15:03:50 CST 2011
I've got the same problem with LG Optimus 3D........someone please help...
---------- Post added at 09:36 AM ---------- Previous post was at 09:10 AM ----------
hello, someone please help??
Hi there,
did anybody build ftdi_sio kernel driver for XOOM? I desperately need it and I doesnt know how to compile it against xoom kernel.
my kernel version is:
Code:
Linux version 2.6.36.3-gc2bee64 ([email protected]) (gcc v
ersion 4.4.3 (GCC) ) #1 SMP PREEMPT Tue May 3 15:33:26 PDT 2011
If anyone has it or can do it for me, I would be very happy
jupiik said:
Hi there,
did anybody build ftdi_sio kernel driver for XOOM? I desperately need it and I doesnt know how to compile it against xoom kernel.
my kernel version is:
Code:
Linux version 2.6.36.3-gc2bee64 ([email protected]) (gcc v
ersion 4.4.3 (GCC) ) #1 SMP PREEMPT Tue May 3 15:33:26 PDT 2011
If anyone has it or can do it for me, I would be very happy
Click to expand...
Click to collapse
Tell me more about this module. We can likely add it to our kernel config.
that's the usb to serial i/o driver. Also known as pl2303 chipset support. It would go great with the bt5 mod. Would allow connection to ttl serial ports likethe ones in routers, phones, and NAS devices. I.d be glad to test it as I've got several pl2303 serial converters.
I'd like this too. Have several FTDI usb/serial devices.. but only used in Windows. Is there a terminal app that could talk to a virtual com port? I see FTDI even has pages devoted to Android!
+1
+1
i can test it if will be possible
I use FTDI on android with the RXTX library: v-lad.org/projects/gnu.io.android witch allows me to work only in java and this library creates input output streams for me. Its fine but my application has to actually instal ftdi_sio.ko to kernel every time it is running first time after reboot and for xoom I cannot even find this module and I dont know how to build one. It would be nice if there were some kernels supporting this so that it can be used straight away after pluging in usb2serial chip.
+1 for the USB to serial adapter support. I use these guys all the time with windows to talk to FPGAs and the sort. I'd be willing to test, possibly even assist with the work (though I've never successfully compiled a kernel before - I tried tiamat once).
Thanks.
OK guys ill cook this up. Nice to get to a "more experienced " user thread.
Ok guys, give this a run
http://goo.gl/MhIBX
The link to the driver is not working anymore. Would the driver work for the ICS stable version of the eos ROM?
Hi,
I have tested this driver only on the above mentioned model and kernel.
This is to help people to install OpenVPN.
To install it copy the tun.ko file to /lib/modules on your phone using Root Explorer or something similar.
After copy, reboot your phone (or use "insmod /lib/modules/tun.ko" to install the module). Then, if you use adb you can check that the module is loaded by entering lsmod on a shell. If you don't use adb then try something like the OpenVPN Settings application from Google Play.
Enjoy
ckir said:
Hi,
I have tested this driver only on the above mentioned model and kernel.
Click to expand...
Click to collapse
hey can u pls elaborate more ond same. wats d apk for n ol..
sry fr my noob que. hope same mite b d que others
Hi. If you use Cyanogenmod then you don't need this one. It is included in your kernel.
Hello Gurus, I currently not using CM´s Rom and I am looking for Tun.ko module for a Samsung Galaxy FIT S5670 with this kernel:
# uname -r
2.6.35.7-perf-CL393192
# cat /proc/version
Linux version 2.6.35.7-perf-CL393192 ([email protected]) (gcc version 4.4.3 (GCC) ) #1 PREEMPT Mon Jul 18 23:28:35 KST 2011
Thanks in advance, I will appreciate any help.