Openvpn and Tun.ko for Samsung Galaxy S Shw-M110s - Galaxy S I9000 General

Please help..
Please give me a instructions about openvpn..
And is there a available tun.ko for my phone?
Heres my info..
Version: 2.3.6
Kernel: 2.6.35.7
Build: GINGERBREAD.WC13
I try using tun.ko installer but when i open the app,it said, TUN MODULE IS PRELOADED, PATH FOR TUN.KO IS NOT FOUND and when i push install it says TUN MODULE IS INCOMPATIBLE..
Please help...
Sent from my SHW-M110S using XDA

Maybe the kernel has include tun.ko module.
You can enter the command line mode on the phone.(Bette Terminal Emulator)
Run modprobe or lsmod command to check tun status.
If Tun Installer can't find the correct and compatible tun.ko, you must compile it by youself.
To compile tun.ko, you must download the Phone's resource code. Establish a Linux system.

Phone is rooted?

Related

getting get-a-robot-vpnc working on vogue

I am trying to get the get-a-robot-vpnc (http://code.google.com/p/get-a-robot-vpnc/) working on my vogue. I am running from nand, using the donut ASOP build.
The first step would be to get tun.ko installed. I downloaded the one included on the google code page and pushed it to /system/lib/modules via adb. When I try to insmod it, i get:
Code:
# pwd
pwd
/system/lib/modules
# insmod tun.ko
insmod tun.ko
insmod: can't insert 'tun.ko': unknown symbol in module or invalid parameter
I am thinking that I need to compile my own tun.ko for vogue. But I am pretty lost. Can anyone suggest any resources to get the kernel cross compiling for vogue set up? A while back when I was hanging out in vogue IRC channel craig0r gave me some good links.. but I have since lost those.
EDIT: found a link for compiling kernel: http://www.androidonhtc.com/get_involved . In the process of doing this now..
EDIT: built a copy of tun.ko that will properly insmod on the vogue. Now the problem is that I can't specify the port through the software! It seems to be assuming 62465. Looks like this is already marked as an issue: http://code.google.com/p/get-a-robot-vpnc/issues/detail?id=34
If anyone wants the tun.ko I built for vogue just PM me.

VPN over android on HD2 ?

I wonder if there is anyone that tried to use any type of VPN over recent android builds for HD2?
Actually the problem resides in a missing kernel module "tun.ko".
I have tried to get the file from the internet to the same kernel and load it using "modprobe tun" or "insmod tun.ko" command but it is always giving me the same error: "modprobe: 'tun.ko' : invalid module format.
If anyone has a working module, that will be great.
hhhawasly said:
I wonder if there is anyone that tried to use any type of VPN over recent android builds for HD2?
Actually the problem resides in a missing kernel module "tun.ko".
I have tried to get the file from the internet to the same kernel and load it using "modprobe tun" or "insmod tun.ko" command but it is always giving me the same error: "modprobe: 'tun.ko' : invalid module format.
If anyone has a working module, that will be great.
Click to expand...
Click to collapse
I will update the kernel to include tunneling
EDIT:
http://git.linuxtogo.org/?p=groups/...it;h=17b1cb194c76267cae097241aea7a9f47ced7283
done.
tun.ko is present in all module autobuilds from today on.
check http://forum.xda-developers.com/showthread.php?t=719646#2 for the official GIT autobuilds
please let me know if it works for you
thanks
dcordes said:
I will update the kernel to include tunneling
EDIT:
http://git.linuxtogo.org/?p=groups/...it;h=17b1cb194c76267cae097241aea7a9f47ced7283
done.
tun.ko is present in all module autobuilds from today on.
check http://forum.xda-developers.com/showthread.php?t=719646#2 for the official GIT autobuilds
please let me know if it works for you
thanks
Click to expand...
Click to collapse
Thank you very much, with this module it should then be possible to have openvpn functionality.
Update: Ok, I am now using latest kernel with tun support.
With this kernel I am able to load the module tun.ko with insmod.
There are no errors and lsmod shows me the module as active.
Where to put an entry to load this module by default on boot?
I have tried the latest kernel build, on SHUBCRAFT CM6 froyo build, the module is loaded successfully and the device /dev/tun is also created successfully.
Thanks a lot.
Anyway I couldn't try the VPN functionality since the Wireless/3G didn't work after kernel upgrade! although I have successfully loaded the wireless modules.
--------
BTW, it didn't work with mattc Leo android build.
After some time of trying my openvpn is running very well with the new kernel and tun module. Thanks once again.
Downy said:
After some time of trying my openvpn is running very well with the new kernel and tun module. Thanks once again.
Click to expand...
Click to collapse
What Andriod build are you using?
Can you please tell us how did you manage to run the WIFI on the new kernel?
hhhawasly said:
What Andriod build are you using?
Can you please tell us how did you manage to run the WIFI on the new kernel?
Click to expand...
Click to collapse
try 1.3. VPN is enabled - not tested.
hhhawasly said:
What Andriod build are you using?
Can you please tell us how did you manage to run the WIFI on the new kernel?
Click to expand...
Click to collapse
I am running mattec release version 1.5 with the most current kernel (zImage) and the most current modules bcm4329.ko and tun.ko extracted from http://oe.netripper.com/files/htcleo_autobuild/modules-htcleo-latest.tgz.
For wifi it is very important to always use the correct bcm4329.ko according to your currently used zImage file.
So when I update a new kernel I also always download the newest modules and extract bcm4329.ko.
To get wifi working, I have extracted the bcm4329.ko out of the modules-htcleo-latest.tgz file and then used adb (I am using ADB Magic GUI to make things easier) to push the file to /system/lib/modules. Changed permissions at the end.
So
step 1:
I boot to wimo and replace zImage in my android folder.
step 2: boot back to android and connect via adb
step 3: extract bcm4329.ko out of modules-htcleo-latest.tgz
step 4: using adb I push this bcm4329.ko file to /system/lib/modules (command: adb push bcm4329.ko /system/lib/modules)
step 5: last but not least I change permissions, but dunno know if its really neccessary. (command: adb shell chmod 777 /system/lib/modules/bcm4329.ko)
Thats it. And thats what I am always doing when I am using a new zImage.
If you have further questions, just ask!
Currently I am running the latest kernel from today, 08/13/10 without any wifi or openvpn problems.
Unfortunatly the kernel module "tun" was not included with the 1.3!
Anyway I have managed now to run the new kernel and the tun module with 1.3.
And OpenVPN and wireless are now working fine.
hhhawasly said:
Unfortunatly the kernel module "tun" was not included with the 1.3!
Anyway I have managed now to run the new kernel and the tun module with 1.3.
And OpenVPN and wireless are now working fine.
Click to expand...
Click to collapse
vpn module is in first post
shu8i said:
vpn module is in first post
Click to expand...
Click to collapse
Oooops
I need a glasses for my eyes
I have tried the ROM and the module and everything was running smoothly.
Thank you all very much
Sorry To Bump This Post Up
But I AM NOt Able To Connect To Vpn PPTp On Any ANdroid Cyanogen Mod
What Should I DO Is There Update Or Solution Or ANything Around ?

.config for android 2.3.3 nexus S

Hi, i am trying to compile tun.ko and cifs.ko for my stock android kernel.
i have trouble getting the .config.gz from the phone as its nolonger available.
can someone share a workable .config.gz with me? i will share the tun.ko and cifs.ko if i am successful in creating it.
this is for stock kernel 2.3.3
i just need a similar .config of 2.3.3 from the custom rom community.
thanks. (i am new to this custom rom and i am trying hard to learn)
Just do a 'make herring_defconfig' and voila!
P
paulobrien said:
Just do a 'make herring_defconfig' and voila!
P
Click to expand...
Click to collapse
hi, i've tried "make msm_defconfig" and make "defconfig", but not working.
will defo try your suggestion.
thanks.
qwerp_ said:
hi, i've tried "make msm_defconfig" and make "defconfig", but not working.
will defo try your suggestion.
thanks.
Click to expand...
Click to collapse
Yeah, you need the herring one.
P
hi, i manage to create tun.ko and working for stock 2.3.3
but however i am still getting error on cifs.ko.
based on my understanding, i am missing out some pre-requisit for the module.
what other settings do i need to add to/remove from .config to make a workable cifs.ko?
thanks.
this is the tun.ko that i manage to complie for stock android 2.3.3 nexus s.
the MD5 of the tun.ko is
e2859858eb1e5d8ab1e69d1d9ffc4594 tun.ko
to whoever who wants it.
similar trouble for me...
trying to compile cifs/nls_utf8 for stock 2.3.3, too
I followed the steps like:
make herring_defconfig
make menuconfig (check cifs & nls_utf8 options)
make modules_prepare
make M=fs/cifs
make M=fs/nls
adb push fs/cifs/cifs.ko ...
adb push fs/nls/nls_utf8.ko ...
adb shell
$su
#insmod cifs.ko
#insmod nls_utf8.ko
and this is what I got....
insmod: init_module 'cifs.ko' failed (Exec format error)
insmod: init_module 'nls_utf8.ko' failed (Exec format error)
really need help. thanks.
p.s.
my environment includes:
. android.git.kernel.org/kernel/samsung.git
. ubuntu-10.10-desktop-i386.iso
. arm-2009q3-67-arm-none-linux-gnueabi-i686-pc-linux-gnu
success finally.
here is the attached file
slow-work.ko
cifs.ko
nls_utf8.ko
the catch is that cifs.ko requires slow-work.ko as a dependency.
so,
insmod slow-work.ko
insmod cifs.ko
insmod nls_utf8.ko
and volia..
thanks for all for the help.
this is for stock android build
2.6.35.7-g1d030a7 only.
wonderful~~ it does works!
could you introduce your operation?
I wanna know how I screwed it up
withinsea said:
wonderful~~ it does works!
could you introduce your operation?
I wanna know how I screwed it up
Click to expand...
Click to collapse
you will need to compile slow-work as module.
i found the guide somewhere on the xda forums under galaxy tab. there is a post where it shows you whats need to be done.
as i say before. cifs is dependent on slow-work.
without slow-work, it will complaint during init that file is not found.

A500 v3.2 stock (2.6.36.3+) kernel modules

/*Update Nov 09 2011: Added cryptoloop.ko */Update
/*Update Nov 02 2011: Added option.ko for some usb 3G modems and asix.ko for usb ethernet adapters that uses Asix AX88772 chipset */Update
*/Update Oct 12 2011: NTFS support comes standard with the 3.2's kernel, so I removed ntfs.ko module. */Update
Since I could not find all the modules I needed, and did not want to bug devs any more, I decided to bite the bullet and compile myself.
These are for the plain 3.2 kernel, which is 2.6.36.3+
I compiled the following modules, which are all in the same 7zip file:
Network:
tun.ko #for openvpn
option.ko #for some 3G modems
asix.ko #for usb ethernet adapters that uses Asix AX88x72 chipset​
Filesystem:
cifs.ko #windows shares
nfs.ko #unix/linux shares
isofs.ko #cd iso images
udf.ko #cd udf images​
USB to serial converter:
ftdio_sio.ko #ftdi usb2serial converters. Prolific chipset is already in the kernel so I did not compile that.​
I have tested these under the stock 3.2 with root rom, the one in http://forum.xda-developers.com/showthread.php?t=1290318 and they load fine without errors on dmesg.
Enjoy.
Let me know if you need any other modules and I will try to compile them.
I have a request I have looked around and have not been able to find this module anywhere. It is the joydev module that supports many gamepads, joysticks and even some racing wheels. The source is available and even some modules for other devices but nothing for any tegra devices. I have a transformer myself but being the same hardware the module should work on either device. I have included the list of devices that are supported by the driver and the source for the driver. Any help would be greatly appreciated.
Supported devices:
http://atrey.karlin.mff.cuni.cz/~vojtech/input/hardware.html
Source:
https://github.com/netarchy/android_kernel_TF101/blob/master/drivers/input/joydev.c
This is kind of beyond my skillset as I do not know how to patch the kernel tree so that this driver shows on the menuconfig. Sorry.
Could you please build usb_wwan.ko and option.ko for 2.6.36.3+ ?
VicDeo said:
Could you please build usb_wwan.ko and option.ko for 2.6.36.3+ ?
Click to expand...
Click to collapse
usb_wwan seems to be statically compiled into the kernel already (USB driver for GSM and CDMA modems), so there isn't any module but it is always there in the kernel.
I am going to update the original post for the option.ko shortly.
Getting some errors on some of these. Anyone else having issues?
Tried these from both /system/lib/modules and sdcard.
option.ko:
Code:
insmod: init_module '/sdcard/modules/option.ko' failed (Invalid argument)
nfs.ko:
Code:
insmod: init_module '/sdcard/modules/nfs.ko' failed (No such file or directory)
Triple checked that the nfs.ko file was there and named correctly.
Following modules have installed fine.
asix, ftdi_sio, and cifs
I've just checked those two on my a500. It seems like option.ko is statically linked into the kernel, because on dmesg it says "option: module is already loaded". If I am guessing it correct (e.g. driver is statically linked in the kernel) than it means you don't need the .ko at all.
For the nfs, it throws bunch of "unknown symbol" errors on dmesg, I am guessing it cannot read symbols from the kernel. If that's the case, it would need a new kernel with a modified makefile, which is beyond my abilities unfortunately.
How to make the system load the module automatically when boot up? Thanks
mcmugchu said:
How to make the system load the module automatically when boot up? Thanks
Click to expand...
Click to collapse
That I don't know, I manually load them whenever I need.
mcmugchu said:
How to make the system load the module automatically when boot up? Thanks
Click to expand...
Click to collapse
You need system/etc/init.d folder with modules file.
I posted a patch for testing here is link maybe it works , flash with cwm.
Based on this thread. so all credits go to OP.
http://www38.zippyshare.com/v/75708872/file.html
Hi does anybody know if these support netbios name, i can't download and try right now. I've only found modules that works with the ip but not the name. Not practical when moving a lot.
Thanks
Hi,
I am using the same kernel 2.6.36.3+ and I'd like to have please:
eeprom_93cx6.ko, mac80211.ko, rtl8187.ko
Thank you in advance and if you can provide a tutorial that would be awesome!
Thanks!!
Good jobs.
but the modules don't work on Sumsung P7500 tablet,(Kernel 2.6.36.4)
htt p:// droidbasement.com /db-blog/?p=2395
10.1 3G, Touchwiz UX (HC 3.1 (stock); GT-P7500):
boot-cm_2636.4_p4_ux-oc-xtra-vfpv3-d16_fp-112011.zip
insmod isofs.ko, I got a error message" Exec format error"
Can you compile them for this kernal version? Thanks!
I need isofs.ko,udf.ko to support DVD image files.

[HELP] OpenVPN settings about tun.ko

I just changed my kernel with nAa's v6 kernel from stock. I believe that tun.ko or tun/tap (correct me if im wrong) is already in kernel so i have to delete modules in /system/lib/modules to avoid conflict. Now my problem is how can I locate the path of tun.ko if it is already in the kernel. When I am using stock kernel the path in my openvpn setting of tun.ko is is system/lib/modules/tun.ko, but now I have nAa's kernel what path should i put in the openvpn setting coz if i only put tun.ko in the setting it doesnt work. Anyone can help me? Thank you.
Try modprobe I guess. haha mwah
modprobe is only for modules operation. you have no module per se to work with so modprobe is not the right command to work with.
have you tried just letting your openvpn run? I think it will automatically use whatever is provided in the kernel hence no need to specify anything for module at all.

Categories

Resources