Hello,
I had a tun.ko working with FROYO, but this tun.ko module doesn't work with Gingerbread 2.3.4 anymore.
Where can I find a new tun.ko module for Gingerbread 2.3.4 (XXJVP) ?
Thanks in advice
Use Darky's rom (10.1). Works great with OpenVPN.
Check load tun kernel module using insmod
Location is /lib/modules/tun.ko
Binary is installed to /system/xbin/openvpn
Hi,
thanks for this info, but currently I'm happy with my flashed/configured phone.
Is it possible, that you or someone else post tun.ko here ?
xdadev_user said:
Hi,
thanks for this info, but currently I'm happy with my flashed/configured phone.
Is it possible, that you or someone else post tun.ko here ?
Click to expand...
Click to collapse
Don't have time right now, but I'll try to compile it for JVP tomorrow.
Sent from my GT-I9100 using Tapatalk
don't know if it works, but this is the one extracted from latest darky's rom kernel.
I'm still on 2.2.1, but you may try it and post some feedback..
xdadev_user said:
Hi,
thanks for this info, but currently I'm happy with my flashed/configured phone.
Is it possible, that you or someone else post tun.ko here ?
Click to expand...
Click to collapse
I had a quick look, and as far as I can tell tun.ko should not be required as it should be built into the kernel in Gingerbread (that is, if you are not using a custom kernel). At least it is enabled in the kernel config that comes with the sources, can't confirm if it's actually enabled in the shipped kernel, but it should be.
@captive
thanks for this tun.ko, but it doens't work.
Code:
insmode tun.ko
invalid module format. Maybe this module is for 2.3.3.
@jps1974
lsmod shows me no tun device
Or can someone explain me how I can build my tun.ko ?
xdadev_user said:
@captive
thanks for this tun.ko, but it doens't work.
Code:
insmode tun.ko
invalid module format. Maybe this module is for 2.3.3.
@jps1974
lsmod shows me no tun device
Or can someone explain me how I can build my tun.ko ?
Click to expand...
Click to collapse
That's because it's not a kernel module but built into the kernel instead. So whatever you're trying to do should, from what I understand, work without having to load any module. Anyway, here's a tun.ko that you can try.
my question was stupid
thanks @jps1974,
but with your tun.ko I got the same error message
invalid module format
Click to expand...
Click to collapse
Any idea, what I'm doing wrong ? With Froyo I had no problem.
A module must only be compiled for correct kernel version 2.6.35.7, or?
My Basisbandversion: I9000XXJVP
Kernel-Version: 2.6.35.7-I9000XXJVO-CL182937
Buildnumber: GINGERBREAD.XXJVP
sorry for my dump question, but i´ve never heard about tun.ko
can someone tell me what the **** that is ?
xdadev_user said:
thanks @jps1974,
but with your tun.ko I got the same error message
Any idea, what I'm doing wrong ? With Froyo I had no problem.
A module must only be compiled for correct kernel version 2.6.35.7, or?
My Basisbandversion: I9000XXJVP
Kernel-Version: 2.6.35.7-I9000XXJVO-CL182937
Buildnumber: GINGERBREAD.XXJVP
Click to expand...
Click to collapse
Oh, so you have a JVP firmware with a JVO kernel - you neglected to mention that
Try the attached file.
The module must be compiled using the exact same source code that was used to build the kernel, and also in this case the version string (2.6.35.7-I9000XXJVO-CL182937 ...) must match exactly the kernel. I believe this is because the kernel is compiled without module versioning support, someone please correct me if I'm wrong.
Did you really need the tun.ko? I think thats compiled in the kernel and you don´t need that any more. I have vpncwidget for my vpn connection to my fritzbox.
Hi,
thanks @jps1974,
but with your tun.ko I got the same error message :-(
But I thínk Woddi123 and you jps1974 (mentioned before) are right.
I still have a /dev/tun device. So maybe I really don't need a tun.ko anymore.
Edit: Yes vpnc works. Sorry for this confusions.
Related
Is there a tun.ko file available for the Eris? And if so, is it something that just need to compile against a specific kernel (ie, CFSv4 vs BFSv4) or just the kernel version (ie 2.6.29)?
Basically, I'm trying to get VPN Connections connections to work so I can connect to Penn State's wifi (which uses "pure" ipsec authentication). Any time I try to connect, the app force closes, which seems to be a result of the missing tun.ko file.
(If there isn't one currently available, would one of you super awesome devs compile one? I'd be super appreciative.)
FunkyFender said:
Is there a tun.ko file available for the Eris? And if so, is it something that just need to compile against a specific kernel (ie, CFSv4 vs BFSv4) or just the kernel version (ie 2.6.29)?
Basically, I'm trying to get VPN Connections connections to work so I can connect to Penn State's wifi (which uses "pure" ipsec authentication). Any time I try to connect, the app force closes, which seems to be a result of the missing tun.ko file.
(If there isn't one currently available, would one of you super awesome devs compile one? I'd be super appreciative.)
Click to expand...
Click to collapse
I believe it needs to be compiled against the specific kernel source but i'm not sure.....I went ahead and compiled one for you but I had some changes to my source since CFSv4 so I compiled a new kernel with the tun.ko file. I'm assuming it needs to be in the system/lib/modules/ folder so that where I put it in the update script. This script will flash the CFSv5 kernel and put the tun.ko file in system/lib/modules. If you just want the tun.ko file you can pull it out of the update script.....I really don't know alot about vpn's so haven't done any testing on it but you can try it and let me know how it goes...I have been running this kernel for a little while and it is stable.
Edit post: I guess a link would be helpful....CFS Kernel with tun.ko
Haha, awesome! Flashing now. I'll update with my results.
Edit: Works fantastic! Thanks so much Conap!
Conap said:
I believe it needs to be compiled against the specific kernel source but i'm not sure.....I went ahead and compiled one for you but I had some changes to my source since CFSv4 so I compiled a new kernel with the tun.ko file. I'm assuming it needs to be in the system/lib/modules/ folder so that where I put it in the update script. This script will flash the CFSv5 kernel and put the tun.ko file in system/lib/modules. If you just want the tun.ko file you can pull it out of the update script.....I really don't know alot about vpn's so haven't done any testing on it but you can try it and let me know how it goes...I have been running this kernel for a little while and it is stable.
Edit post: I guess a link would be helpful....CFS Kernel with tun.ko
Click to expand...
Click to collapse
Conap, you and Deca are Super Devs! Like in capes and tights lol ok, maybe not the tights!
I'm sneakin' that CFSv5 on my phone... shhh, don't look!
workshed said:
Conap, you and Deca are Super Devs! Like in capes and tights lol ok, maybe not the tights!
I'm sneakin' that CFSv5 on my phone... shhh, don't look!
Click to expand...
Click to collapse
lol yeah i figured i'd post it over on the cfs thread too lol....
Conap said:
lol yeah i figured i'd post it over on the cfs thread too lol....
Click to expand...
Click to collapse
I seen that lol, thanks for answering that question too, even though I was comfortable in assuming it was the same... but that gets me in trouble sometimes, had to ask.
cifs.ko and tun.ko for Eris
Hi
I was looking for a tun.ko for my Eris as well, and was excited to see this thread... unfortunately it appears the link above is now broken.
Conap, I'm running Condemned CM7 on my Eris and I was looking for a tun.ko and cifs.ko. I looked at your kernel thread here
http://forum.xda-developers.com/showthread.php?t=774211
and downloaded DecufuctCFSV9, where I found a tun.ko in /system/lib/modules. However when I tried installing this on my phone via insmod, I got a "failed (exec format error)" so I presume it is not compatible.
Does anyone know where or how I can get the correct cifs and tun kernel modules? Thanks!
Wow, Resurrection lol. All the way from September 2010!
http://forum.xda-developers.com/showpost.php?p=19787703&postcount=6887
tun.ko, but no cifs.ko unless I built it into the kernel and don't remember
i begged for that back in june, it was mongoosehelix who compiled it. it only took me 5 months to check my private messages.
sirblacknite said:
i begged for that back in june, it was mongoosehelix who compiled it. it only took me 5 months to check my private messages.
Click to expand...
Click to collapse
? I was talking about this thread.
Mongoose didn't compile the one I linked you to, this is the .29 kernel I compiled with a tun.ko module and will be in my next eris rom.
... you don't have to use it.
yeah, your kernel is what im running now. i was saying that i sent out a quesiton in june asking the same thing, and he had actually compiled a tun.ko that worked in june, but it wasnt until the message i sent to you that i actually checked the messages to see if it worked.
at any rate, i find it easier to use your kernel than have to pump in a driver for tunneling. keep up the great work!
sirblacknite said:
yeah, your kernel is what im running now. i was saying that i sent out a quesiton in june asking the same thing, and he had actually compiled a tun.ko that worked in june, but it wasnt until the message i sent to you that i actually checked the messages to see if it worked.
at any rate, i find it easier to use your kernel than have to pump in a driver for tunneling. keep up the great work!
Click to expand...
Click to collapse
Sorry, not enough coffee today for me, I understand now.
Could you please give this a test, nand first of course, or just have the other kernel zip ready to flash again if problems.
This has a freshly compiled cifs.ko which is quite large in file size. I think I may have added to many options for it. Let me know how it goes (PM me if you can)
I tried
workshed said:
Sorry, not enough coffee today for me, I understand now.
Could you please give this a test, nand first of course, or just have the other kernel zip ready to flash again if problems.
This has a freshly compiled cifs.ko which is quite large in file size. I think I may have added to many options for it. Let me know how it goes (PM me if you can)
Click to expand...
Click to collapse
Thread resurrection FTW! Well hey I'm still rockin the eris and it's good to see there still so much support. Thanks so much for being responsive.
First I tried insmod-ing the tun.ko from the original link you send, then I tried the tun.ko in this recent zip; both failed on insmod. Then I tried flashing this zip with cifs and tun in it; boot took a long time, when it came up I still got the same error trying to connect to the vpn. Any tips to help analyzing what's failing?
If it ends up working on your ROM I may switch.
Thanks again.
---------- Post added at 06:12 PM ---------- Previous post was at 05:55 PM ----------
workshed said:
Sorry, not enough coffee today for me, I understand now.
Could you please give this a test, nand first of course, or just have the other kernel zip ready to flash again if problems.
This has a freshly compiled cifs.ko which is quite large in file size. I think I may have added to many options for it. Let me know how it goes (PM me if you can)
Click to expand...
Click to collapse
workshed,
I just made some progress on these kernel modules... I tried cifs via CifsManager and it works! I also tried insmod-ing tun.ko *after* flashing this zip and it worked without error; however I still got an error when trying to connect to the VPN. If there's any other ideas you have let me know; perhaps it could be a problem with my VPN settings but they seem ok....
Thanks so much
EasyVictor said:
Thread resurrection FTW! Well hey I'm still rockin the eris and it's good to see there still so much support. Thanks so much for being responsive.
First I tried insmod-ing the tun.ko from the original link you send, then I tried the tun.ko in this recent zip; both failed on insmod. Then I tried flashing this zip with cifs and tun in it; boot took a long time, when it came up I still got the same error trying to connect to the vpn. Any tips to help analyzing what's failing?
If it ends up working on your ROM I may switch.
Thanks again.
---------- Post added at 06:12 PM ---------- Previous post was at 05:55 PM ----------
workshed,
I just made some progress on these kernel modules... I tried cifs via CifsManager and it works! I also tried insmod-ing tun.ko *after* flashing this zip and it worked without error; however I still got an error when trying to connect to the VPN. If there's any other ideas you have let me know; perhaps it could be a problem with my VPN settings but they seem ok....
Thanks so much
Click to expand...
Click to collapse
Hmm, this user comfirmed the tun.ko working, so it may be your settings. http://forum.xda-developers.com/showpost.php?p=19810279&postcount=6890
Yeah basically you should be able to flash that zip and have everything working, maybe needing a reboot after the flash is all. That is, I'm still not sure if the cifs.ko is working correctly or not.
Working!
workshed said:
Hmm, this user comfirmed the tun.ko working, so it may be your settings. http://forum.xda-developers.com/showpost.php?p=19810279&postcount=6890
Yeah basically you should be able to flash that zip and have everything working, maybe needing a reboot after the flash is all. That is, I'm still not sure if the cifs.ko is working correctly or not.
Click to expand...
Click to collapse
I spoke too soon... so I still haven't got vpn working via the CM7 built-in interface, I think it has something to do with the certificates. However then I tried the app "OpenVPN Settings" and set that up with my certs and .ovpn file. Hit a few bumps but I have it working now! The CIFS is also working. I'm actually using both together right now... I'm VPN'd to my home network and have mounted one of my local shares via CIFS over the VPN. Pure magic; thanks so much for your help. Will donate!
EasyVictor said:
I spoke too soon... so I still haven't got vpn working via the CM7 built-in interface, I think it has something to do with the certificates. However then I tried the app "OpenVPN Settings" and set that up with my certs and .ovpn file. Hit a few bumps but I have it working now! The CIFS is also working. I'm actually using both together right now... I'm VPN'd to my home network and have mounted one of my local shares via CIFS over the VPN. Pure magic; thanks so much for your help. Will donate!
Click to expand...
Click to collapse
Glad you got it working, congrats!
Thank you for testing and sharing your findings, always helpful. Let me know if you run into any weird problems with it, and thank YOU for the contribution!
Anyone know of a working tun.ko module for the XOOM? Trying to get OpenVPN working.
Depends on what kernel your using, but yes. Just google "xoom tun.ko " and it will be your first result.
Weird, I searched earlier and must of overlooked it LOL. Thanks and sorry about that.
Edit: these are useful for stock 3.1 and should not be used with my kernel. See my kernel post for current capabilities etc.
Please use this thread to post kernel modules for the Samsung Galaxy 8.9
The kernel modules I post are compiled from the model 7310 WiFi-only kernel source released by Samsung for kernel 2.6.36.3 and Android 3.1. I do not know if they will work on any other model besides the 7310, but you are free to try.
You must have root access and mount "system" as read/write.
Create a folder called "modules" inside of /system/lib and copy the kernel module (.ko) into "modules"
cifs.ko - to mount shares from Windows, Linux and Mac
-View attachment 7310_cifs.ko.zip
-Unzip cifs.ko and verify with SHA1 65c5cc08ee5a4878fc99060885ecaefd6961a9f
-CifsManager from the Android Market works well. Goto "Settings..." and check both "Load cifs module" and "Load va insmod". The default path will be as shown (/system/lib/modules/cifs.ko)
View attachment other_7310_modules.zip
nls_utf8.ko 3b066984e0dca109df4fe234ea7b91f396448e58
option.ko f46babd6a030bc536869915961971bd110efb3b8
tun.ko 826b5b40749bfbd8978eee4e65838380bd614364
usb_wwan.ko cd76f800e39ce0883feb6a093242757e0a15d829
View attachment ntfs.ko.zip
ntfs.ko ee47d0f110aca30db79accbbc0058292491372a4
Please give "thanks" if this was helpful. If you are looking for a common module, please make a request and I will see what I can do. I have a regular job and a family, so I can't promise how long it will take or that it will work since I may not have the hardware to test it.
Thanks motley. A tip for other noobs like me: don't download through Tapatalk.
Sent from my GT-P7310 using Tapatalk
this is great, thanks for working on the tab 8.9. i think many of us 8.9 owners are a little sad we have so little development going on.
thanks , it works both on stock rom and overcome's rom, well done !!
Hi _motley,
do you know how to mount modules for east asian character folder ?
it seems involved with nls_utf8 module , i'm using cifs mgr...
batch load both cifs.ko and nls_utf8.ko from CIFS mgr , not work,
but western character works normally.
Alternatively , I use script to insmod , then works fine,
anyway , it works , thank you a lot.
Hi
Thanks a lot !
Any chance to get the NTFS Module as well ?
Thanks for testing, glad to hear cifs is working.
kevinchg, not sure on your mounting issue when also loading nls_utf8.ko, I don't currently have a way to test it, but I would make sure that you have your path's and options setup correctly in cifsmanager. Don't quote me, but I think you need to separate the two module paths by a semi-colon and I believe you also need to specify the option "iocharset=utf8" (or something like this) within your share configuration.
fishton, the NTFS module has been added. Let me know if it works for you. Can't believe I left this one out...would like to use it myself.
Thanks ! Will test it tonight and let you know if it works
I'm curious why you guys need the modules. As far as I can tell, they were built into the kernel on my 8.9 tab. I had no problem mounting cifs/ntfs shares and didn't need anything to do so.
phonic said:
I'm curious why you guys need the modules. As far as I can tell, they were built into the kernel on my 8.9 tab. I had no problem mounting cifs/ntfs shares and didn't need anything to do so.
Click to expand...
Click to collapse
Which model do you have? Perhaps you are mounting network drives with ES File Explorer or something like that that has SMB built-in? Neither the config from /proc/config.gz or the defconfig from the kernel source I downloaded from Samsung have any of these options built into the kernel. I definitely can't mount using cifsmanager without loading the cifs.ko module.
For NTFS, we are talking about mounting NTFS hard drives via USB. Haven't tried that yet...perhaps the other gentleman will report back if he tries.
Hi
I tried your NTFS Module yesterday and have been able to load the module. But unfortunately, I haven t been able to find the proper command for mounting my disk.
Could you advice me ?
Thanks !
fishton said:
Hi
I tried your NTFS Module yesterday and have been able to load the module. But unfortunately, I haven t been able to find the proper command for mounting my disk.
Could you advice me ?
Thanks !
Click to expand...
Click to collapse
Give this app a try and see if it works. I'll try to play around with this myself when I find some time.
https://market.android.com/details?id=au.dach.drivemount
Also, see this:
http://forum.xda-developers.com/showthread.php?t=1131924
Already tried both, no luck with it
Hi
Many thanks for your v2 kernel all smooth for me with OVC 2.1
I'm looking at for a working cifs.ko. The one given here never worked for me (exec format error) with previous kernel and the v2.
Any chance to get one to test from your v2 kernel build?
Thanks again.
Sent from my GT-P7310 using xda premium
questionmark said:
Hi
Many thanks for your v2 kernel all smooth for me with OVC 2.1
I'm looking at for a working cifs.ko. The one given here never worked for me (exec format error) with previous kernel and the v2.
Any chance to get one to test from your v2 kernel build?
Thanks again.
Sent from my GT-P7310 using xda premium
Click to expand...
Click to collapse
With the latest versions of my kernel, you don't need any modules...it's built right into the kernel. Only the stock kernel and the first alpha release of my kernel needed modules.
_motley said:
With the latest versions of my kernel, you don't need any modules...it's built right into the kernel. Only the stock kernel and the first alpha release of my kernel needed modules.
Click to expand...
Click to collapse
ho...!
Indeed used cifsmanager and got my share name wrong...
Thanks
Sent from my GT-P7310 using xda premium
I have compiled cifs.ko, md4.ko and nls_utf8.ko for the stock android 4.0.3.
Kernel Version: 3.0.8-gb55e9ac
Build Number: IML74K
EDIT:
These modules are required to use CifsManager (or any other mount managers for cifs/windows shares) for stock android 4.0.3.
Kernel source is from android.googlesource.com/kernel/samsung.git and the branch is android-samsung-3.0-ics-mr1.
cifs.ko module is compiled to have all possible configuration cifs options (except debugging).
md4.ko is required.
I have a GT-I9020T which is upgraded to 4.0.3 via OTA.
I'm using these modules to mount my samba shares at Centos6.2 box.
If you have questions please ask specifically.
EDIT:
You should enter "/system/modules/md4.ko;insmod /system/modules/nls_utf8.ko;insmod /system/modules/cifs.ko" to CifsManager/Settings/Path to cifs.ko
My modules are at /system/modules. Don't forget to change if your kernel modules are at different path.
bcanli said:
I have compiled cifs.ko, md4.ko and nls_utf8.ko for the stock android 4.0.3.
Kernel Version: 3.0.8-gb55e9ac
Build Number: IML74K
Click to expand...
Click to collapse
mind giving a small explanation?
Been looking for this the last few days! You're awesome!
yeah, mind explaining what you mean there?
I really dont get it!
Sent from my Nexus S using xda premium
bcanli said:
I have compiled cifs.ko, md4.ko and nls_utf8.ko for the stock android 4.0.3.
Kernel Version: 3.0.8-gb55e9ac
Build Number: IML74K
EDIT:
These modules are required to use CifsManager (or any other mount managers for cifs/windows shares) for stock android 4.0.3.
Kernel source is from android.googlesource.com/kernel/samsung.git and the branch is android-samsung-3.0-ics-mr1.
cifs.ko module is compiled to have all possible configuration cifs options (except debugging).
md4.ko is required.
I have a GT-I9020T which is upgraded to 4.0.3 via OTA.
I'm using these modules to mount my samba shares at Centos6.2 box.
If you have questions please ask specifically.
Click to expand...
Click to collapse
Oh, sweet!!! Thanks for both the description and the hard work this took!!! Since I'm not smart enough (lol) I hope someone who is rolls this into a rom I've been wondering why smb wasn't enabled....thanks again!!!!
how do you use these files with cifsmanager or mount manager ?
thanks bcanli for the working modules.
Thanks, and do take note of need for md4.ko
Many thanks indeed for these modules ! They work beautifully for the TF101 on ICS.
All, please take special note of the edit :
EDIT:
You should enter "/system/modules/md4.ko;insmod /system/modules/nls_utf8.ko;insmod /system/modules/cifs.ko" to CifsManager/Settings/Path to cifs.ko
My modules are at /system/modules. Don't forget to change if your kernel modules are at different path.
BOTH cifs.ko as well as md4.ko are REQUIRED for mounting a CIFS windows share.
For what are these ?
Sent from my Nexus S using xda premium
These are to be able to mount Windows or samba shares on a rooted device.
Sent from my Transformer TF101 using XDA
Hi,
I've tried these modules on my A10 based tab (i know this is a galaxy s forum). I checked the tab kernel and its 3.08, the build type in the build.prop is IML74K, tab is rooted, and the os is android 4.0.03 so i'm assuming they should work.
Using the terminal to figure out why the modules wont load i'm getting the following error for all modules:
insmod: init_module '/system/moduled.cifs.ko' faile (exec format error)
Can anyone help me with this?
CIFS for the Droid 4 ICS 4.04
bcanli said:
I have compiled cifs.ko, md4.ko and nls_utf8.ko for the stock android 4.0.3.
Kernel Version: 3.0.8-gb55e9ac
Build Number: IML74K
Click to expand...
Click to collapse
Any chance you could compile me up a cifs.ko module for the Droid4 maserati xt/894?
Latest/current (ICS 4.04) kernel is 3.0.8-gdde05fe
I know how to do it on a regular NIX box but I don't have the links for the source nor the instructions and build tools installed. Do you compile this on the phone or on a NIX box?
Thanks
Hello,
Could anybody provide tun.ko for this kernel or place where is it stored in rom?
I am using version[ GINGERBREAD (2.3.4/5/6) Kernel 2.6.32.50] 1,30Ghz
I looked for this file in /system/lib and not found it.
Adam
greenwitch said:
Hello,
Could anybody provide tun.ko for this kernel or place where is it stored in rom?
I am using version[ GINGERBREAD (2.3.4/5/6) Kernel 2.6.32.50] 1,30Ghz
I looked for this file in /system/lib and not found it.
Adam
Click to expand...
Click to collapse
I think that since it is compiled into his kernel there won't be a file available. You would either have to unpack the boot.img and extract the module from the zImage, or compile just the the module against the kernel source. You may want to ask over in his thread.
I cannot, ecause of the post limit. I have this rom on my Atrix so I can see all files but the module is not there in typical place like /system/lib/modules and in other /system/lib folders...
If you could ask the question for me i would be grateful
Adam
I think faux's kernel has TUN built in, you don't need any modules. It's already there, waiting to be used
greenwitch said:
Hello,
Could anybody provide tun.ko for this kernel or place where is it stored in rom?
I am using version[ GINGERBREAD (2.3.4/5/6) Kernel 2.6.32.50] 1,30Ghz
I looked for this file in /system/lib and not found it.
Adam
Click to expand...
Click to collapse
Try his github...but idk,I think I saw it there once
Could you provide link. Google results do not show anything interesting.
Adam