Hi everyone,
I need tun/tap driver to get openvpn working. I know some kernel/rom have that, like CM, neoblaze, djdroid etc. But I want to keep stock kernel with stock rom because I have tried every roms and the stock one satisfies me the best! But it only lacks tun driver !
Can somebody compile a tun.ko file working with the stock rom and kernel? Thank you.
I've tried and I don't think it's possible. tun.ko requires the kernel to export the symbol "outer_cache" which it does not. (only tegra kernel seems to be missing this as default...). It's an easy fix, but to use the generated module you would have to replace the kernel as well (to one that exports the required symbol)
Thank you for you answer.
I have tried to do that too and wasted 2 hours. I wonder if I do it right. I downloaded not the aosp kernel but the v20l kernel source from http://www.lg.com/global/support/opensource/opensource-detail.jsp?detailCustomerModelCode=LGP990. I used this tutorial http://stevechui.blogspot.com/2011/10/compiling-kernel-modules-tunko-for.html. But the Lg sources doesn't include the tegra folder.
ergoen, you seem to say that you managed to create a tun.ko file with a slightly modified stock kernel ? That would be what I search for.
just flash spica HP kernel SR2 and if you want flash the PP7. it does support tun.ko and cifs.ko already tried. good luck if you want to try (in his kernel it's not module but it's on built in driver)
i use vpn to my office with vpnc connection and it good to go
here is the link if you want to download vpnc connection
Code:
http://code.google.com/p/get-a-robot-vpnc/downloads/list
just download the vpnc connection.apk don't download anything else in there
Or try the Modaco custom kernel r26 with GR5. You can get a nearly stock phone with that.
ergosum said:
Thank you for you answer.
I have tried to do that too and wasted 2 hours. I wonder if I do it right. I downloaded not the aosp kernel but the v20l kernel source from http://www.lg.com/global/support/opensource/opensource-detail.jsp?detailCustomerModelCode=LGP990. I used this tutorial http://stevechui.blogspot.com/2011/10/compiling-kernel-modules-tunko-for.html. But the Lg sources doesn't include the tegra folder.
ergoen, you seem to say that you managed to create a tun.ko file with a slightly modified stock kernel ? That would be what I search for.
Click to expand...
Click to collapse
I can build a kernel based on stock source with tun enabled and provide a cwm flashable.
ergosum said:
Hi everyone,
I need tun/tap driver to get openvpn working. I know some kernel/rom have that, like CM, neoblaze, djdroid etc. But I want to keep stock kernel with stock rom because I have tried every roms and the stock one satisfies me the best! But it only lacks tun driver !
Can somebody compile a tun.ko file working with the stock rom and kernel? Thank you.
Click to expand...
Click to collapse
It's not possible to keep stock kernel and just add the modules as if... You have to recompile the whole kernel and flash it... So why doing this as other kernel based in stock sources are available? Install SR2 kernel from spica and it will be perfect. A you perhaps... Know if you change only kernel it won't affect your /system, so you ROM will be stock like...
Don't waste time trying to make things that have already been made and working.
You have to recompile the whole kernel and flash it... So why doing this as other kernel based in stock sources are available?
Click to expand...
Click to collapse
Because I tested other kernels and even if there are lots of improvement authors do, there are some bugs they introduce (ex: neoblaze => tethering not working, thanatos 4.2 => mybackuppro not working, cm7 => hdmi partialy working, djdroid => changements I don't like, etc) or changements I don't like. That's why I like the principle of using the stock rom/kernel as long as everything works.
I don't know about spica kernel, it's the only one I've not tried with swiftextreme. I will try it maybe later because restoring apps takes some time.
ergosum said:
Because I tested other kernels and even if there are lots of improvement authors do, there are some bugs they introduce (ex: neoblaze => tethering not working, thanatos 4.2 => mybackuppro not working, cm7 => hdmi partialy working, djdroid => changements I don't like, etc) or changements I don't like. That's why I like the principle of using the stock rom/kernel as long as everything works.
I don't know about spica kernel, it's the only one I've not tried with swiftextreme. I will try it maybe later because restoring apps takes some time.
Click to expand...
Click to collapse
Flashing kernel doesn't touch /data you don't need to restore apps.
NeoBlaze seems not working with 20L. swiftextreme works only with CM7.
Hey there,
i've just built tun.ko vor v20l stock kernel.
Added a "struct outer_cache_fds outer_cache" in tun.c to replace a missing symbol in the stock kernel.
Greetings
Thank you so much tantalus! Although today I just installed Django with spica kernel (so with tun), that file should be usefull to other people!
tantalus1983v2 said:
Hey there,
i've just built tun.ko vor v20l stock kernel.
Added a "struct outer_cache_fds outer_cache" in tun.c to replace a missing symbol in the stock kernel.
Greetings
Click to expand...
Click to collapse
Hi there.
How can I install this module?
I have the v20o stock kernel: will it work?
Thank you!
svetj said:
Hi there.
How can I install this module?
I have the v20o stock kernel: will it work?
Thank you!
Click to expand...
Click to collapse
OK, I've solved using Module Loader.
Using VPNC widget I get connected to cisco our vpn gatway.
Hope this help.
Bye
Related
I would like to know if config_tun is set to Y or M?
thanks in advanced
For most kernels (including IR's), you can extract the .config file from /proc/config.gz
ch33kybutt said:
For most kernels (including IR's), you can extract the .config file from /proc/config.gz
Click to expand...
Click to collapse
Thanks man. BTW yesterday i switch back from CM 7.0.2.1 to CM 6.1.1 coz of wonk issues and i really want the vpnc app to work. i'm looking for a good battery life kernel currently i'm using WM last kernel version for CM6, if someone can give me a link for IR kernel (latest) that works with CM6.1.1 coz on IR's download page i tried all the kernel's for CM6 eventually i got boot loops and on RS kernel i got FC's & i can't find those with OC/UV. for now i don't have any issues with WM but i really want IR for comparison Thanks
Hi guys, today tried access my pc shares by sgs, and it looks like my current kernel doesnt have cifs module (cf 3.2).
My question, is there any kernel for jvh with cifs support available? or can I add cifs module to current kernel, if yes how?
polariscon said:
Hi guys, today tried access my pc shares by sgs, and it looks like my current kernel doesnt have cifs module (cf 3.2).
My question, is there any kernel for jvh with cifs support available? or can I add cifs module to current kernel, if yes how?
Click to expand...
Click to collapse
Try this kernel module: http://forum.xda-developers.com/showpost.php?p=12997697&postcount=123 (also linked in one of the first posts in chainfire's thread, IIRC).
thanks. it worked.
slow-work.ko + cifs.ko for JVZ (2.3.6)?
about five days ago, i flashed stock JVZ firmware to my SGS. so far, my experience has been excellent: smooooth(!!!), quicker browser, no battery drain, stable.
rooted it with CF root 4.3, works fine.
i just need new CIFS kernel modules - anyone know where to get compatible slow-work.ko and cifs.ko?
i am aware of this post/thread: http://forum.xda-developers.com/showthread.php?t=761414. they used to work on my previous JVP firmware, but none of the modules shown there can be loaded in JVZ. insmod slow-work.ko always returns "exec format error".
or, if anyone cares to explain to a non-developer (but a power-user) how to compile them myself...in plain ENGLISH please ;-)...i'll make some and post them here. sorry, all the threads i have found here so far regarding self-compiling kernel modules assume reasonable pre-requisite knowledge, which i dont have... :-(
thanks in advance!
Do you have any progress with the issue, damazta? I have same problem: slow-work.ko + cifs.ko for XWJVZ (2.3.6) on SGS. No compiled modules for the params.
thanks already.
Yes there is. I am using alliance rom's base release jw6 right now.
It is very close to stock samsung FW, runs super smooth, fast and stable AND includes a pre-compiled cifs.ko module, which works like a charm!
Highly recommended. Great forum over there with idiot-proof installation instructions. Go for it!
Sent from my GT-I9000 using Tapatalk 2
Hi!
I flashed the v20n this afternoon and it works fine but the vpnc client is no longer working. It says there is no tun.ko. So i learned that i have to flash my kernel...
No idea how to do that and how to get the right one...
Pls help !!!
I dont know if the tun.ko is enough, or if you really need a whole new kernel. If you need another kernel, you can go to Huexxx' Zeus thread in dev section and take one of his diana kernels, cause those have got VPN enabled and tun.ko is in his ROMs, too. But I am going to make a flashable zip for you and then you can test and see if it is enough
---------- Post added at 12:51 AM ---------- Previous post was at 12:33 AM ----------
Here is my flashable .zip with tun.ko in it, from Zeus ROM, so credits to Huexxx
http://www.mediafire.com/?vtrb50zxqpmhamt
I flashed the zip file, but unfortunatly it´s not working, vpnc still says no tun.ko. I found a support site and they say there must be a tun.ko in system - lib - modules. right now its in system - etc -modules.
Would you be so nice and modify that zip file for me...
Thx..
Golga said:
I flashed the zip file, but unfortunatly it´s not working, vpnc still says no tun.ko. I found a support site and they say there must be a tun.ko in system - lib - modules. right now its in system - etc -modules.
Would you be so nice and modify that zip file for me...
Thx..
Click to expand...
Click to collapse
Here you go, hope you get it working. And if not, simply flash a custom kernel of Huexxx
So. Now i flashed Kernel_4.4.3_eabi by Huexxx and it works!!!
Thx for the help!!!
Did you flash my tun.ko as well, or was the kernel already enough?
i flashed only the kernel. it´s a bit unstable at the moment. it crashed twice today. have to do it once again all over again. Any recommendations which kernel i can try instead of huexxx´s with my rooted v20n?
Try one of these: http://forum.xda-developers.com/showthread.php?t=1536264
All stock or diana kernels
Hm, the only one working with vpnc is the Kernel_4.4.3_eabi. So i give it another try and set up my system again..
Update: the system is too unstable . So if anyone has another tun.ko or a kernel which fits into the rooted v20n i would be the happiest ob user ever
Any Solution For PPTP, L2TP VPN On Stock Firmwares ...
I Have Requested This Many Times ...
PPTP, L2TP VPN Working On CM7 ...
Golga said:
Hm, the only one working with vpnc is the Kernel_4.4.3_eabi. So i give it another try and set up my system again..
Update: the system is too unstable . So if anyone has another tun.ko or a kernel which fits into the rooted v20n i would be the happiest ob user ever
Click to expand...
Click to collapse
Ok, I had the same problem, but I found solution - you should compile tun.ko by yourself. I've done it yesterday - the result was tun.ko working on rooted v20n (kernel version: 2.6.35.7+). Download and try tun.ko from attachment
Thanks!!!
Hey, thanks, great job, vpn is working!!!
I would like to compile it myself, but actually i don´t have a clue how to do it
Is there a thread or guide somewhere?
I've compiled tun.ko module for Arc 4.0.3 stock kernel.
Since the firmware I use is the Arc S one (ICS 4.0.3) - I believe this module will also work for Arc S.
Download:
Use it at your own risk!
tun_arc_ics.zip
This was was a difficult one to make, Sony choosed to disable some features within the kernel, but I was able to finally build it correctly so that the phone doesn't reboot.
One more reason I don't like other kernels beside what producer put - they have more 'junk' just because the PC can build it. Sony seems to keep everything very controlled and slim. Replacing the kernel usually puts something not phone optimized.
Enjoy!
PS: I will create a small installer with the modules, so you don't have to use other kernels and complex procedure if you want other governors and tun.ko (before this I will build cifs).
you should make a thread for all your modules..it will be much better. nice work man.
How to use it? Please teach me! Thanks
error01671 said:
How to use it? Please teach me! Thanks
Click to expand...
Click to collapse
This module was meant to be used with OpenVPN .. or other things where you might need the tun module ?
You could start here: https://play.google.com/store/apps/details?id=de.schaeuffelhut.android.openvpn.installer
Hi, this is my first kernel, this based on the latest Ultima ICS kernel from riyal, with two minor tweaks
-now touchscreen reponse while swiping is 4px instead of 9px, so no more bumpy movements while draging items
-official "Sony Ericsson" boot logo
Information about the touchscreen problem (if you have not noticed it):
http://talk.sonymobile.com/thread/40474
the problem is present in latest FXP (but probably not in next's) and also in stock kernel ICS
The solutions was 99% done by nicklas lof, here:
http://review.cyanogenmod.com/#/c/22164/
Works in Stock ICS, 431 and 587, it should work with FXP releases too
Installation:
Flash kernel using fastboot
Flash original Riyal wifi Modules using CWM
Riyals kernel thread is here
I do not deserve any credits on this, I just moved a line in code to compile and changed logo. :good:
What is Stock ICS 538? or you mean 587
the recovery are same or did u update it too ?
I have to install the img with fastboot ... And I have everything right???
Thanks for this kernel. will give it try one of these days
New Kernel for PRO [MK16a/i]
Thanks dafsoftware :good:
So just to clarify. Everything is the same as Ultima ICS Kernel v1.4 with the changes you made for the touchscreen precision and SE-X logo. The WiFi modules to flash are also of the v1.4 too right?
I'll try this when you confirm my query, as I am running on the Stock ICS MK16a 4.1.B.0.587 (US) build. I'll try to post any issues that I come across after flashing
[email protected]
MK16a Rooted, BL Unlocked
Kernel: LuPuS-PRo-v3-LiNaRo
Stock ICS ROM .587
BB 77
[email protected] said:
Thanks dafsoftware :good:
So just to clarify. Everything is the same as Ultima ICS Kernel v1.4 with the changes you made for the touchscreen precision and SE-X logo. The WiFi modules to flash are also of the v1.4 too right?
I'll try this when you confirm my query, as I am running on the Stock ICS MK16a 4.1.B.0.587 (US) build. I'll try to post any issues that I come across after flashing
[email protected]
MK16a Rooted, BL Unlocked
Kernel: LuPuS-PRo-v3-LiNaRo
Stock ICS ROM .587
BB 77
Click to expand...
Click to collapse
You are right, this is based in Ultima ICS v1.4, in fact Riyal already has this in his sourcecode, so next's versión should already have this fix, you have to use v1.4 modules
lawong said:
the recovery are same or did u update it too ?
Click to expand...
Click to collapse
Recovery is the same
josejuangr said:
I have to install the img with fastboot ... And I have everything right???
Click to expand...
Click to collapse
After you flash the kernel you have to flash latest wifi modules from riyal, using CWM
Why now 4px? Was Gingerbread not 2px?
paul5425 said:
Why now 4px? Was Gingerbread not 2px?
Click to expand...
Click to collapse
I think GB was 2px, but with the current driver is quite hard to tap on links at 2px, I will compile one at 2px if you want to try
I use this kernel with stock ICS 587 and my phone gets freeze every time I unplug from charger and PC.
Anyone has the same problem?
Can you please update stock kernel to use this fix.
Or give some link to add recovery to stock kernel.
Thanks,
Rajesh
rajeshjamnadas said:
Can you please update stock kernel to use this fix.
Or give some link to add recovery to stock kernel.
Thanks,
Rajesh
Click to expand...
Click to collapse
This is based on latest riyal changes, I think it has voltages messed up, so I will have to build it from stock kernel someday. I dont know how to add recovery to it.
I am, but not exactly when disconnecting the charger, only when its charging and very randomly, I think the source I am using has a messed up voltage table, I need to find the original voltage tables to fix it.
dafsoftware said:
I am, but not exactly when disconnecting the charger, only when its charging and very randomly, I think the source I am using has a messed up voltage table, I need to find the original voltage tables to fix it.
Click to expand...
Click to collapse
omg so nice plzz make it bugfree and everybody will be happy! Currently using this in combi with ics Miui. Thanks alot bro for ur work!
If u need any donation or help i will be there.
hopefully u will add more things if u have the time:good::good::good::laugh:
xperiap said:
omg so nice plzz make it bugfree and everybody will be happy! Currently using this in combi with ics Miui. Thanks alot bro for ur work!
If u need any donation or help i will be there.
hopefully u will add more things if u have the time:good::good::good::laugh:
Click to expand...
Click to collapse
+1
great kernel, thanks for your work.
also flashed it with MIUI ICS, feels smoother and fast.
thanks again.
dafsoftware said:
I think GB was 2px, but with the current driver is quite hard to tap on links at 2px, I will compile one at 2px if you want to try
Click to expand...
Click to collapse
OK - after reading more it sounds like there has been some structural change to the driver model (something that needs fixed at a deeper level). Anyway, it would be great if you could additionally provide us with a ROM set at 2px just so we can see for ourselves.
Ext4
Does this kernel support the Ext4 partition? Great kernel by the way...
Edit : and.... Swap partition?
Even better than that, I notice that the Touch Move app has a "tune" mode which allows the user to tune the sensitivity themself. It's currently only compatible with a couple of GSII custom kernels:
http://tegrak2x.blogspot.co.uk/2011/10/touch-move-tune-compatible-kernels.html?m=1
It would be interesting to see if we could get Touch Move Tune working on Xperia devices too.
Sent from my MK16i using xda app-developers app