tun.ko - Samsung Epic 4G Touch

Is there any way to run tun.ko module/driver on this phone ? I need this for VPN.

erik077 said:
Is there any way to run tun.ko module/driver on this phone ? I need this for VPN.
Click to expand...
Click to collapse
Tun module is built into the stock kernel.
It won't show up as tun.ko because it is statically linked into the kernel rather than a loadable module.

sfhub said:
Tun module is built into the stock kernel.
It won't show up as tun.ko because it is statically linked into the kernel rather than a loadable module.
Click to expand...
Click to collapse
Well that's good but it sucks too. What about a VPN client? Some of them require you to point it to the module in order to work like DroidVPN. How would you point it to tun.ko in that case?

Related

[Q] CIFS support module

Hello,
I would like to use cifsmanager apps but I see that our kernel doesn't have the proper module built in.
I just updated the kernel and modules using the latest available in the the kernel build service (following the incremental updates guide):
http://xdandroid.com/wiki/Incremental_Updates
but I'm not able to insmod the module.
I also tried to manually download the cifs.ko module and to load it telling to cifsmanager app where the module is, but I continue to receive the same error, no such device, like if the module isn't loaded correctly.
How can I solve this problem?
Thank you
Why not just use adb...? I don't see the need for CIFS.
If you can figure out how to get CIFS working, we can look about implementing it mainline.
Have you tried insmodding it after cp'ing the .ko file to /lib/modules?
ok thank you,
I tried to load the module using adb, but I think I'm using a wrong file because when I try to load it insmod return me the "invalid module format" output.
I'm using the kernel downloaded here:
http://zimages.googlecode.com/files/htc-msm-linux-20110914_084441-package.tar.bz2
somebody can tell me if is there a module that I can use with this kernel?
thank you
Caio said:
ok thank you,
I tried to load the module using adb, but I think I'm using a wrong file because when I try to load it insmod return me the "invalid module format" output.
I'm using the kernel downloaded here:
http://zimages.googlecode.com/files/htc-msm-linux-20110914_084441-package.tar.bz2
somebody can tell me if is there a module that I can use with this kernel?
thank you
Click to expand...
Click to collapse
Where did you get the module from...? Our kernel is probably not equipped with that module.
Caio,i've sent you a pm,let me know if it works,so i'll maybe push it in the mainline kernel
I downloaded the module on a thread of HTC Diamond's...can someone link me a module that could work with this kernel?
Or is there another way I can use to mount my samba share on my android?
thank you
Caio said:
I downloaded the module on a thread of HTC Diamond's...can someone link me a module that could work with this kernel?
Or is there another way I can use to mount my samba share on my android?
thank you
Click to expand...
Click to collapse
Did you miss helicopter88's PM? He built you a kernel that should have the module built into it...
arrrghhh said:
Did you miss helicopter88's PM? He built you a kernel that should have the module built into it...
Click to expand...
Click to collapse
Failed to boot,pheraps my fault or too much oc..
Later i'll make a stock kernel
Here's the module http://www.mediafire.com/?w6fp94b464cktkc
So you can put it somewhere and insmod it
well, i have the same problem, can anyone solve it?
helicopter88 said:
Here's the module
So you can put it somewhere and insmod it
Click to expand...
Click to collapse
sadly to say that, but the files had been removed
Here's the module..
thanks for your reply, but seems no luck, it just says "invalid module format" when insmod (using the FRX07.1)
ZSaberLv0 said:
thanks for your reply, but seems no luck, it just says "invalid module format" when insmod (using the FRX07.1)
Click to expand...
Click to collapse
Pheraps I should make it from original xdandroid source..
Here's another one
http://www.mediafire.com/file/wsw6tlah3lzp3gs/cifs.ko
helicopter88 said:
Pheraps I should make it from original xdandroid source..
Here's another one
http://www.mediafire.com/file/wsw6tlah3lzp3gs/cifs.ko
Click to expand...
Click to collapse
Didn't you just say it was some simple config flag?
Make use of that "recognized developer" insignia you throw around there and commit something . (Or at least post something to the ML!!)
still doesn't work, shows the same message when insmod or insmod -f
btw, the kernel is modules-2.6.27.46-01356-gd4c73bd.tar.gz, maybe you should build a complete one? (well, i have never played with linux kernel...)
ZSaberLv0 said:
still doesn't work, shows the same message when insmod or insmod -f
btw, the kernel is modules-2.6.27.46-01356-gd4c73bd.tar.gz, maybe you should build a complete one? (well, i have never played with linux kernel...)
Click to expand...
Click to collapse
Assuming his patch is accepted, it will get committed mainline. It's a quite simple change to how the kernel is built.
arrrghhh said:
Assuming his patch is accepted, it will get committed mainline. It's a quite simple change to how the kernel is built.
Click to expand...
Click to collapse
I think phh had an issue with the patch submitted. I have a patch to commit soon so i can look into this. One question i have is how do yall plan to load the module? Does the app insmod it ? or does it expect the module to be built into the kernel?
[ACL] said:
I think phh had an issue with the patch submitted. I have a patch to commit soon so i can look into this. One question i have is how do yall plan to load the module? Does the app insmod it ? or does it expect the module to be built into the kernel?
Click to expand...
Click to collapse
I think people just want the module available in the 'modules`uname-r`.tar.gz' file. That way they at least have the option of insmodding it...(*.user.conf etc) who knows what they want to do with it afterwards - I guess access their phone on a LAN from their PC?
just want to mount my share folder from my PC to Android, so that i can use the shared files online without copy-paste (it'll be quite annoying by copy-paste, especially when you want to edit file, because you must upload it after editing)
in short, same as Caio, just want to use cifsmanager, and it says "no such device"
ZSaberLv0 said:
just want to mount my share folder from my PC to Android, so that i can use the shared files online without copy-paste (it'll be quite annoying by copy-paste, especially when you want to edit file, because you must upload it after editing)
in short, same as Caio, just want to use cifsmanager, and it says "no such device"
Click to expand...
Click to collapse
The fixed patch has been sent to Mailing List,now let's see if it gets approved..

[REQ] TUN.KO

OK, before I go try and reinvent the wheel, has got a tun.ko module for the E4GT built yet?
--Mods feel free to delete this post. It would be good public knowledge for people to know that the tun module is built into our factory kernel though..
This needs to go in the Q&A forum. Not in development. Hope you brought some flame pants.
Wrong section, and it's built into the kernel.
flame on then. and a mod is free to move it to Q&A. I was going to go try and build it myself.
dodgeboy said:
Wrong section, and it's built into the kernel.
Click to expand...
Click to collapse
Is there somewhere that confirms it being built into the kernel for sure? I can't get Cisco Any Connect to work, which require that mod being loaded into the kernel, TIA!
I would have to agree that it's build into the kernel with what I have seen so far with trying to get openvpn to work.
KingOfThaJungle said:
Is there somewhere that confirms it being built into the kernel for sure? I can't get Cisco Any Connect to work, which require that mod being loaded into the kernel, TIA!
Click to expand...
Click to collapse
Cisco Anyconnect works fine for me. Stock rom (rooted), stock kernel. It did not work for me (gave some error about not being able to apply configuration changes) when I was using the CWM kernel briefly.
Dave
RUSSIAN NYAN CAT.
Every spam thread in Development means 15 more minutes of this. Please, think of your fellow users. Don't make me post this again.
OK, if it's in the kernel, does that mean it's automatically enabled, and I don't have to do anything to get it running? I'm coming from an Epic 4G where I had to run the tun.ko module, so bear with me on this please.
Robbzilla said:
OK, if it's in the kernel, does that mean it's automatically enabled, and I don't have to do anything to get it running? I'm coming from an Epic 4G where I had to run the tun.ko module, so bear with me on this please.
Click to expand...
Click to collapse
Correct. If it's in the kernel, you don't need to load a module.
OK, so dumb question #2: which kernels have it built in, or does it come in the stock kernel? I'm using Lost kernel at the moment, and get a robot is acting like I forgot to load the tun.ko module...
FYI: my work uses an old VPN system; ipsec psk that doesn't use certificates, and uses the old Cisco VPN client, which doesn't work with anyconnect. I've had successes with my epic 4G with get a robot and a good kernel, so that's where I'm coming from, but am still getting my feet wet on the new phone.
Sent from my SPH-D710 using Tapatalk
Robbzilla said:
OK, so dumb question #2: which kernels have it built in, or does it come in the stock kernel? I'm using Lost kernel at the moment, and get a robot is acting like I forgot to load the tun.ko module...
FYI: my work uses an old VPN system; ipsec psk that doesn't use certificates, and uses the old Cisco VPN client, which doesn't work with anyconnect. I've had successes with my epic 4G with get a robot and a good kernel, so that's where I'm coming from, but am still getting my feet wet on the new phone.
Sent from my SPH-D710 using Tapatalk
Click to expand...
Click to collapse
So far (for me, at least), it has only worked with the stock "pulled" kernel. It works with the pulled kernel that contains CWM, as well. All of my experience is related to the anyconnect client. I haven't tried to connect to any older IPSEC only systems, or used get a robot.
Dave
My turn for a nOOb question ...what is TUN.KO? Thanks friends
Sent from my Nexus S 4G using xda premium
JohnCorleone said:
My turn for a nOOb question ...what is TUN.KO? Thanks friends
Sent from my Nexus S 4G using xda premium
Click to expand...
Click to collapse
It's a tunneling module that allows you to connect via VPN if it's not built into the kernel that you're using. In short, you turn it on and it gives the VPN apps the tools they need to work right. Android has been pretty lax about including this over the years, although it's supposed to be integrated into ICS, allegedly.
dodgeboy said:
So far (for me, at least), it has only worked with the stock "pulled" kernel. It works with the pulled kernel that contains CWM, as well. All of my experience is related to the anyconnect client. I haven't tried to connect to any older IPSEC only systems, or used get a robot.
Dave
Click to expand...
Click to collapse
I've had no luck with get a robot. It's still crashing. Anyconnect just won't see our VPN. I've gone to the pulled stock kernel as well, and no dice. Bleh. Hopefully someone will release an external tun.ko for this.
I've only gotten openvpn to work in routed mode and not bridged. I'm not sure if it's an openvpn issue, a phone issue, or the fact that I'm using OpenVPN-AS (vmware appliance) and the openvpn on the phone doesn't support DHCP maybe?
If I'm not mistaken, OpenVPN won't connect to a Cisco 3000 concentrator...
I've done a lot of reading recently, and have come to the tenative conclusion that while the tun module is included in the kernel, it's not activated in the kernel.
So I've done some digging, and am trying the following:
First check if the TUN module is enabled on the hardware node:
lsmod | grep tun (No answer)
If not, load the module using modprobe:
modprobe tun
SIGH... no luck...
OK, I've done a little more work on this, but still no luck.
When I try modprobe tun, I get:
chdir(2.6.35.8_LostKernelExp+): No such file or directory
I can see the tun file in the /dev directory, but can't find an rc.conf. Is that possibly the reason that this isn't going? I'm fairly mediocre with Linux, so it's a little frustrating to say the least.
There is no module, its compiled into the kernel..
Robbzilla said:
I've done a lot of reading recently, and have come to the tenative conclusion that while the tun module is included in the kernel, it's not activated in the kernel.
So I've done some digging, and am trying the following:
First check if the TUN module is enabled on the hardware node:
lsmod | grep tun (No answer)
If not, load the module using modprobe:
modprobe tun
SIGH... no luck...
Click to expand...
Click to collapse
Sent from my PG86100 using XDA App

CIFS.ko for stock 4.0.4 [updated for IMM76I]

#compiled new cifs.ko, md4.ko, nls_utf8.ko for the new
IMM76I build
kernel number
3.0.8-gda6252b
attachment "cifs_gda6252b.zip"
------------------------------------------------------------------
hi there, i have compiled modules for CIFS to work on the stock 4.0.4 kernel.
kernel number must match "3.0.8-g034fec9"
in the attached zip,
here are the list of files.
cifs.ko
md4.ko
#above 2 are required to have it work
#here are native language support.
nls_utf8.ko
nls_cp932.ko
nls_cp936.ko
nls_cp950.ko
#above cp9xx are support for chinese characters.
nls_euc-jp.ko
#above is support for japanese letters.
thank you.
additional notes.
apparently you do not need any other native language support apart from utf8
the trick is, during the mounting process, you will need to specify the "iocharset=utf8" under options.
eg
"mount //192.168.15.123/a /home/b/c -t cifs -o username=d,password=e,uid=f,gid=g,iocharset=utf8"
for cifs manager, just put "iocharset=utf8" under the Options, and you should be able to see all different charsets.
do remember you will need to load the nls_utf8.ko
once you have the module install,
you can use cifs manager to manage your mounts.
(you can also set cifs manager to load this module for you).
Thanks, I'll give it a try later today.
soloxp said:
Thanks, I'll give it a try later today.
Click to expand...
Click to collapse
make sure that you have the correct stock kernel.
must match "3.0.8-g034fec9" else insmod will fail.
if anyone of you are running other version of kernel, i can try compile if for you as well, but let me know your kernel version.
do note, i have not tried compiling for other version, it might and might not work.
qwerp_ said:
must match "3.0.8-g034fec9" else insmod will fail.
if anyone of you are running other version of kernel, i can try compile if for you as well, but let me know your kernel version.
Click to expand...
Click to collapse
I've got the ICS 4.0.4 OTA update (IMM76D) to my Nexus S and it says "kernel 3.0.8-g6656123".
Any chance of getting a build for this one?
http :// dl.dropbox.com/u/11754796/imm74d.png
chrkad said:
I've got the ICS 4.0.4 OTA update (IMM76D) to my Nexus S and it says "kernel 3.0.8-g6656123".
Any chance of getting a build for this one?
http :// dl.dropbox.com/u/11754796/imm74d.png
Click to expand...
Click to collapse
here you go.
give it a try.
for stock Nexus S kernel "3.0.8-g6656123"
files included are
cifs.ko
md4.ko
nls_utf8.ko
Samba (CIFS) kernel modules for ICS 4.0.4 (IMM76D) kernel 3.0.8-g6656123.
qwerp_ said:
give it a try.
for stock Nexus S kernel "3.0.8-g6656123"
Click to expand...
Click to collapse
Thanks!
I confirm these work great on ICS 4.0.4 with "kernel 3.0.8-g6656123"
Awesome!
On my galaxy Nexus stock doestn work cifs manager said cannot access a needed shared library
Noob question, what is CIFS?
Enviado do meu Galaxy Nexus usando o Tapatalk
Guto ViP said:
Noob question, what is CIFS?
Click to expand...
Click to collapse
Common Internet File System, is another name for SMB (Server Message Block) also known as Samba. It's most commonly used in Microsoft Windows networks for providing shared network access to files, printers and other services.
These modules allows you to mount a shared directory from your windows computer, on your phone.
I use it to watch movies and play Mp3 on my phone, which is stored on my (windows) media server.
aplatas said:
On my galaxy Nexus stock doestn work cifs manager said cannot access a needed shared library
Click to expand...
Click to collapse
this is the shared library cifs manager is complaining about.
hence you need to download and insmod it.
note. you will need to be rooted to do this.
qwerp_ said:
this is the shared library cifs manager is complaining about.
hence you need to download and insmod it.
note. you will need to be rooted to do this.
Click to expand...
Click to collapse
I am root, now the module is loaded but When i mount cifs manager said the error No such file or directory this is extrange because On my old Nexus S works
aplatas said:
I am root, now the module is loaded but When i mount cifs manager said the error No such file or directory this is extrange because On my old Nexus S works
Click to expand...
Click to collapse
did you load both
cifs.ko and md4.ko
?
both is required to have it work.
qwerp_ said:
did you load both
cifs.ko and md4.ko
?
both is required to have it work.
Click to expand...
Click to collapse
Thanks, the problem it was that the md4.ko it wasn't loaded
qwerp_ said:
did you load both
cifs.ko and md4.ko
?
both is required to have it work.
Click to expand...
Click to collapse
thanks, works well.
Any idea how to get CIFS running on Galaxy Nexus 4.1.1?
funkdified said:
Any idea how to get CIFS running on Galaxy Nexus 4.1.1?
Click to expand...
Click to collapse
In case you didn't see [OP] created a new thread for 4.1.1 here
qwerp_ said:
make sure that you have the correct stock kernel.
must match "3.0.8-g034fec9" else insmod will fail.
if anyone of you are running other version of kernel, i can try compile if for you as well, but let me know your kernel version.
do note, i have not tried compiling for other version, it might and might not work.
Click to expand...
Click to collapse
Hello,
could you compile it for the kernel version 2.6.34.
( I have a Zenithink ZT 280 C91 with ICS 4.0.3)
regards
-janez
cifs help
Hi,
hoping you can help me out. i have an android tv box that id love to get cifs running on so i can use mount manager and download direct to my nas disk. could you possibly compile these modules for the following kernel???
$ cat /proc/versionLinux version 3.0.8 ([email protected]) (gcc version 4.5.1 (Sourcery G++ Lite 2010.09-50)
) #8 PREEMPT Wed Sep 12 11:07:28 CST 2012
[email protected]:/ $
Thanks in advance for your help!!!

cifs module for JB4.1.1 -g6fb96c9

(require root to work).
i have created cifs module for the new 4.1.1 kernel
3.0.31-g6fb96c9
use this in conjunction with cifs manager
the md5sum of file is
b9efd28e550bef8c89fe9bada3640561
both
md4.ko and cifs.ko must be loaded to work.
as for the native language support (nls_utf8.ko), its down to yourself.
to use it,
under cifsmanager (when creating a new share)
set options "iocharset=utf8"
Working great here, thanks!
any chance of compiling a version for kernel 3.0.31-ge8de0e2. thanks in advance.
Gonzalo1987 said:
Someone knows how compile it for 3.0.31-gd5a18e0 ??
Click to expand...
Click to collapse
I found them here http://zxvf.homeip.net/
Problem of empty folder =(...
Waiting for a solution xD!!
Thanks you in advance!
qwerp_ said:
(require root to work).
i have created cifs module for the new 4.1.1 kernel
3.0.31-g6fb96c9
use this in conjunction with
the md5sum of file is
b9efd28e550bef8c89fe9bada3640561
both
md4.ko and cifs.ko must be loaded to work.
as for the native language support (nls_utf8.ko), its down to yourself.
to use it,
under cifsmanager (when creating a new share)
set options "iocharset=utf8"
Click to expand...
Click to collapse
Any idea how to get CIFS running on Galaxy Nexus 4.2.2 with utf8?
Thanks.
My kernel and probably many others have cifs built in.
Sent from my Galaxy Nexus using Tapatalk 2

cifs.ko for N8000 (tested on XXALGA)

Hi there,
I noticed noone seems to have ever bothered building cifs.ko (the Kernel module necessary to access Windows Shares) for
the Galaxy Note 10.1
So I build one. Actually it's two modules md4.ko and cifs.ko (md4.ko has to be loaded first).
I have successfully tested the module on my EU N8000 running XXALGA with CIFSmanager. Streaming a 720p mkv with
MXPlayer just works really nice.
Here you go:
http://www.mediafire.com/?5lteys7tj45zuw7
DISCLAIMER: I am providing these kernel modules as-is. Altough they have been tested by me I take no responsibility whatsoever
if you break or damage your device while installing and/or using the modules. I am also not going to explain the steps necessary to actually
use the module. You should already know how to do it...or at least be smart enough to find out what to do
Enjoy!
maui
Sounds like a very helpful piece of code.
I really think that i could need this, but for me as a non developer... how to use this kernel modules?
Could you build a kernel including this modules for flashing via CWM so anybody can use it?
Best regards,
Gery
Sent from my GT-N8000 using xda app-developers app
It does not work for me: no such device.
I have moved the files to /mnt/sdcard/cifs. I entered " /mnt/sdcard/cifs/md4.ko;insmod /mnt/sdcard/cifs/cifs.ko" in cifs manager
I'm Running GT-N8000 DR.AKRIM_ROM N8000DDALI1_v0.31 4.1.1 12-9-2012
Is jellybean a problem?
They work on 4.0.4 (Hong Kong version - n8000zsali1)!!! Thank you.
I have an non-rooted italian N8000 running the latest stock firmware, and can access all my windows shares using the samba client built in in EsExplorer, no problem for me. What exactly is this module meant to do?
Inviato dal mio GT-N8000 con Tapatalk 2
HowHigh said:
It does not work for me: no such device.
I have moved the files to /mnt/sdcard/cifs. I entered " /mnt/sdcard/cifs/md4.ko;insmod /mnt/sdcard/cifs/cifs.ko" in cifs manager
I'm Running GT-N8000 DR.AKRIM_ROM N8000DDALI1_v0.31 4.1.1 12-9-2012
Is jellybean a problem?
Click to expand...
Click to collapse
Does not work for me as well. I'm running JellyNote beta 1 rom. Could someone please recommend custom rom which is supporting cifs or where would work this modul.
Thanks!
What's the use of this module? I don't understand... I haven't installed the module but can access flawlessly all my windows shares using the samba client of es file exlorer. I can also play any shared media file through such client, using any player installed in my note!
GT-N8000 using Tapatalk
Pls compile for 4.1.1.
Hi,
I compiled the cifs modules for the JB-Kernel. I couldn't test them out as I had no time to update, yet. But I need the cifs-modules so I started with them.
So, if anyone wants to try it out, please go ahead.
This is the first time I've build a kernel for android, just that you know :silly:
Greetings,
Maz
supermaz said:
Hi,
I compiled the cifs modules for the JB-Kernel. I couldn't test them out as I had no time to update, yet. But I need the cifs-modules so I started with them.
So, if anyone wants to try it out, please go ahead.
This is the first time I've build a kernel for android, just that you know :silly:
Greetings,
Maz
Click to expand...
Click to collapse
Compile nls_utf8.ko pls)
Can you say how to compile modules because at start I get error that file not found smc.h
Sent from my GT-N8000 using XDA Premium HD app
It seems like nls_utf8 is already build in the kernel.
If someone tests the cifs modules, it would be great to post here if they work or not.
supermaz said:
It seems like nls_utf8 is already build in the kernel.
If someone tests the cifs modules, it would be great to post here if they work or not.
Click to expand...
Click to collapse
Module works but I need nls_utf8 -no in kernel!!!
Sent from my GT-N8000 using XDA Premium HD app
I've attached the nls_utf8 kernel module. Please check if this helps.
Or do you need the NLS_KOI8_R for Russia?
supermaz said:
I've attached the nls_utf8 kernel module. Please check if this helps.
Or do you need the NLS_KOI8_R for Russia?
Click to expand...
Click to collapse
All works) Thanks)
Can you say how to compile this??
GooG2e said:
All works) Thanks)
Can you say how to compile this??
Click to expand...
Click to collapse
Then hit the Thanks button
To compile you need the android ndk prebuilt environment. I followed the this howto: http://source.android.com/source/building-kernels.html (from Downloading a prebuilt gcc downwards).
Then you need your kernel sources (look at the android dev section here). In the package is a README_Kernel where you can get the make command to build the default config. From there on you just run make menuconfig and make to compile things.
Best regards,
Maz
Please compile for 4.1.2
Sent from my GT-N8000 using XDA Premium HD app
hey man, can you please compile xpad.ko and ff-memless.ko for 4.1.1 ? You would bring a new wave of gamer to the galaxy note 10.1.
thx in regard
GooG2e said:
Please compile for 4.1.2
Sent from my GT-N8000 using XDA Premium HD app
Click to expand...
Click to collapse
+1 i have: init_module '/sdcard/cifs/md4.ko' failed (Exec format error)
Or am i doing smthg wrong?
Hi,
the cifs.ko and md4.ko given lately does not work on 4.1.2 rom.
Is there a compiled module for 4.1.2 ?
come on...
it shouldn't be hard to compile it for someone who has the setup.
If I had the storage capacity on my disk for installing a linux VM, I would do it but I really don't have a setup.

Categories

Resources