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
I havent been able to get any of the kernels to work for the stock shipping rom of the phone. Does anyone know of the proper version or are there just none?
lmftmf said:
I havent been able to get any of the kernels to work for the stock shipping rom of the phone. Does anyone know of the proper version or are there just none?
Click to expand...
Click to collapse
Most of the kernels that I found built for gingerbread are only designed to work with sense 3.5 and not 3.0. I can't think of any custom kernels that would work for you other than the stock kernel. You really only have a couple of options if you want to switch kernels, find a rom based on gb and use the kernel that goes with it or switch to ics if you can and use a newer kernel.
Well is there a way i could modify my stock kernel to just support over clocking or is it really not practical for a non linux user like myself to just edit some code? lol
lmftmf said:
Well is there a way i could modify my stock kernel to just support over clocking or is it really not practical for a non linux user like myself to just edit some code? lol
Click to expand...
Click to collapse
Any kind of kernel tweaking will involve more than a little linux knowledge
I saw a post about swapping zimages. Would that work for this situation? http://forum.xda-developers.com/showthread.php?t=1426499 post #2 he mentions porting to other roms.
I have compiled TWRP for ZR (not resize, compiled from source)
To flash manually use this http://forum.xda-developers.com/showthread.php?p=46809849#post46809849
Or to use an app to download TWRP and flash it to phone automatically, use this
http://forum.xda-developers.com/showthread.php?t=2539686
**NOTE** this is only to be used with custom ROMs/Kernels. It will not work if you are on stock kernel.
The kernel needs to have support for "Extrac_elf_ramdisk" method. All CM/AOKP/PA/Omni etc type of ROMs have support for this method
For questions/requests, please use the threads posted above. Not on this thread. This is just to inform you people
hey, thanks your great works , but why not create one for stock rom? many are using stock rom as their daily rom you know ...
Hi all
I have been trying to find out what the latest version of clockwerkmod is and I would just like someone who knows to inform me if the version given out by rom manager which is 6.0.4.3 is the latest and greatest just so i can make sure it has selinux support as i'm quite new to hacking android.
I have been using the thread on the original development section however could some also inform me as to what "cm only" and "tw only" means as i cant find that on the thread
Thanks
CM only : kernel will only work on cm roms.
TW only : will work only of stock based custom rom.
I think the latest for note as per the cm kernel is 6.0.4.5.
nokiamodeln91 said:
CM only : kernel will only work on cm roms.
TW only : will work only of stock based custom rom.
I think the latest for note as per the cm kernel is 6.0.4.5.
Click to expand...
Click to collapse
Ah, so TW would stand for touchwiz then, ok
Also I've found an update but its not sticking when i flash it. Everytime i reboot, it reverts to an old version...
You cannot flash recovery using rom manager. You will need to change the kernel.
Want to know what kernels to be flashed over what ROMs?
(I'm new to kernals but know how to flash roms )
hashtag_harsh said:
Want to know what kernels to be flashed over what ROMs?
(I'm new to kernals but know how to flash roms )
Click to expand...
Click to collapse
Hello... Check development and original development forum for kernel threads. You can flash most of them I guess over any ROM unless specified by the OP.
Some also provide different kernels for different Android versions.
Ex: 6.x, 7.x, 7.1.x
Read the first posts of these threads or use the search function and simply download the proper version for your ROM/Android version.
Some offer some extra features, but overall you can tweak most of them as you want with a kernel manager app: kernel adiutor, Ex kernel manager, etc...
Good luck...